I have two lab machines, one Kali and one Windows 10. Netcat is running on both and both are communicating successfully. If I create a simple text file I can transfer the file from Kali onto Windows no problem. However, if I run the following commands:
[on windows] nc -nlvp 4444 > incoming.exe
[on kali] nc -nv 10.11.0.22 4444 < /usr/share/windows-resources/binaries/wget.exe
And then try to execute incoming.exe on the Windows host (through Powershell) I get:
Program 'incoming.exe' failed to run: The specified executable is not a valid application for this OS platform.
Just in case, I tried to send over executables that for sure work on the Windows machine and it still showed the same message. What's weird is that the size of the executable is approximately doubled from what it is in Kali. In fact it seems that even the text files double in size once transferred to Windows. What could the issue be?