This is an article for usage with avet, my antivirus evasion tool you can find here:
https://github.com/govolution/avet
I had some trouble using mingw cross compiler. It should work fine, so I suggest you try that first.
But if you want an alternative, here is how to use tdm for windows with wine in kali (2016.2).
First, download from:
https://sourceforge.net/projects/tdm-gcc/
Update – On 64bit platforms you may execute first:
dpkg –add-architecture i386 && apt-get update && apt-get install wine32
Then install with wine:
# wine tdm64-gcc-5.1.0-2.exe
Then simply go through the gui installation:
After successful installation you can compile stuff for windows with:
wine gcc.exe mycode.c
Discover more from Daniel Sauder
Subscribe to get the latest posts sent to your email.
9 replies on “Using TDM gcc with Kali 2”
[…] the code with: wine gcc -m32 psexecservice.c I use TDM GCC with wine: https://govolution.wordpress.com/2017/02/04/using-tdm-gcc-with-kali-2/ The shellcode was produced with: msfvenom -p windows/meterpreter/bind_tcp lport=8443 -f c -a x86 […]
[…] How to install tdm-gcc with wine: https://govolution.wordpress.com/2017/02/04/using-tdm-gcc-with-kali-2/ […]
[…] How to install tdm-gcc with wine: https://govolution.wordpress.com/2017/02/04/using-tdm-gcc-with-kali-2/ […]
[…] How to install tdm-gcc with wine: https://govolution.wordpress.com/2017/02/04/using-tdm-gcc-with-kali-2/ […]
Reblogged this on hack6.
[…] when running an exe file made with msfpayload & co, the exe file will often be recognized by the antivirus software avet is a antivirus evasion tool targeting windows machines with executable files assembly shellcodes can be used make_avet can be used for configuring the sourcecode with make_avet you can load ASCII encoded shellcodes from a textfile or from a webserver, further it is using an av evasion technique to avoid sandboxing and emulation for ASCII encoding the shellcode the tool format.sh and sh_format are included this readme applies for Kali 2 (64bit) and tdm-gcc How to install tdm-gcc with wine: https://govolution.wordpress.com/2017/02/04/using-tdm-gcc-with-kali-2/ […]
[…] https://govolution.wordpress.com/2017/02/04/using-tdm-gcc-with-kali-2/ […]
[…] https://govolution.wordpress.com/2017/02/04/using-tdm-gcc-with-kali-2/ […]
[…] https://govolution.wordpress.com/2017/02/04/using-tdm-gcc-with-kali-2/ […]