kali exploit compilation

cross compilation for exploits

Linux

# sudo apt install gcc-multilib g++-multilib

# x86
gcc -m32 [-Wl,--hash-style=both] FILE.c -o FILE

Windows

# x64
i686-w64-mingw32-gcc exploit.c -o exploit

# x86
i686-w64-mingw32-gcc exploit.c -o exploit -lws2_32 

Last updated