// notes/ Pivoting & Tunneling
🚀

Av Evasion Compiling Code

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

#post exploitation#adot8
source · oscp.adot8.com · post-exploitation/av-evasion_compiling-code

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="/files/2rWpTHdqZF8YNn4LKClm" alt=""><figcaption></figcaption></figure>

Compile

code
01make 2>/dev/null
<figure><img src="/files/tZFB1F4jGsuHU6FH029s" alt=""><figcaption></figcaption></figure>

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