> For the complete documentation index, see [llms.txt](https://pnpt.adot8.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pnpt.adot8.com/post-exploitation/av-evasion/compiling-code.md).

# Compiling Code

{% embed url="<https://github.com/int0x33/nc.exe/>" %}

We can use **mingw** to compile source code for Windows machines. The most popular compiler is **x86\_64-w64-mingw32-gcc**.

Edit make file and add \``CC=x86_64-w64-mingw32-gcc`\`

<figure><img src="https://152155081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUczSr73L34emqNMDOxDg%2Fuploads%2FAtz1JxGph5ds9etccdZH%2Fimage.png?alt=media&amp;token=8bca4d55-b72e-46f9-afeb-f47018d9b03f" alt=""><figcaption></figcaption></figure>

Compile

```
make 2>/dev/null
```

<figure><img src="https://152155081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUczSr73L34emqNMDOxDg%2Fuploads%2FdslYJnSjDTTtgdUoTGOd%2Fimage.png?alt=media&amp;token=593e5460-ed65-4f55-8be6-2675ef8c35d8" alt=""><figcaption></figcaption></figure>

{% embed url="<https://raw.githubusercontent.com/besimorhino/powercat/master/powercat.ps1>" %}
