diff options
| author | spv420 <spv@spv.sh> | 2022-07-30 23:32:19 -0400 |
|---|---|---|
| committer | spv420 <spv@spv.sh> | 2022-07-30 23:32:19 -0400 |
| commit | 630aecdb5082b7aabf38c4d5594fb236bebcceff (patch) | |
| tree | dd65f68e2d342a53bd4cfa59d0a8fcd149376be2 /tools/build_native.sh | |
| parent | e35a04268fb48fac634ca123a58584a26b513831 (diff) | |
hell
Diffstat (limited to 'tools/build_native.sh')
| -rwxr-xr-x | tools/build_native.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/build_native.sh b/tools/build_native.sh index 6edac97..2290017 100755 --- a/tools/build_native.sh +++ b/tools/build_native.sh @@ -20,10 +20,14 @@ gcc defines.c -o bin/defines --std=c99 -marm ldid -S bin/defines rm shc/bin/shellcode -gcc shc/shellcode.c -o shc/bin/shellcode --std=c99 -marm -ffreestanding -c -fPIC +gcc shc/shellcode.c -o shc/bin/shellcode.o --std=c99 -marm -ffreestanding -fno-common -Os -fomit-frame-pointer -fPIC -c -static #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 +#otool -t shc/bin/shellcode -X | cut -d " " -f 2- | tr -d "\n" | xxd -r -ps > shc/bin/shellcode.bin + +objcopy -O binary shc/bin/shellcode.o shc/bin/shellcode.bin +cp shc/bin/shellcode.bin /etc/racoon/ +chmod 777 /etc/racoon/shellcode.bin rm bin/jit_all_the_things gcc jit_all_the_things.c -o bin/jit_all_the_things --std=c99 -marm -fPIC |
