IT security is a matter of trust.

Using TDM gcc with Kali 2

This is an article for usage with avet, my antivirus evasion tool you can find here:


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:


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

Published by

9 responses to “Using TDM gcc with Kali 2”

  1. […] 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 […]

  2. […] 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/ […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: