summaryrefslogtreecommitdiff
path: root/tools/build_native.sh
blob: 90ecb60fc78d68634351abfe980782fa47462555 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mkdir bin
rm bin/thread_shit
gcc thread_shit.c -o bin/thread_shit --std=c99
ldid -S bin/thread_shit

rm bin/testlol
gcc testlol.c -o bin/testlol --std=c99
ldid -S bin/testlol

rm bin/935csbypass
gcc 935csbypass.c -o bin/935csbypass --std=c99 -marm
ldid -S bin/935csbypass

rm shc/bin/shellcode
gcc shc/shellcode.c -o shc/bin/shellcode --std=c99 -marm -ffreestanding -c -fPIC
#ldid -S shc/bin/shellcode

otool -t shc/bin/shellcode -X | cut -d " " -f 2- | tr -d "\n" | xxd -r -ps > shc/bin/shellcode.bin