Compiling the Exploit
Linux Binaries
Basic Syntax
gcc cowroot.c -o cowroot
For 32 bit environment
gcc -m32 input.c -o output
For 64 bit environment
gcc -m64 input.c -o output
Windows Binaries
For 32 bit environment
i686-w64-mingw32-gcc -o main32.exe main.c
For 64 bit environment
x86_64-w64-mingw32-gcc -o main64.exe main.c
Note that these Windows executables will not work inside Linux Subsystem, only outside of it.
Python to Exe
pyinstaller --onefile test.py
# will save executable in dist folder