mirror of
https://github.com/badsectorlabs/copyfail-go.git
synced 2026-05-16 14:38:09 +00:00
- Added new shellcode payloads for exec-argv1 and exec-bin-sh for amd64, i386, and aarch64 architectures. - Introduced a backup feature for the su binary before overwriting it. - Enhanced README.md with usage instructions and details about affected kernels. - Added build-n-print.sh script for building and printing payloads in hex format.
377 B
377 B
These are the assembly and binary payloads embedded in copyfail-go
Scripted
Just run build-n-print.sh
Manual
To build the asm run
nasm -f bin {{ payload }}.asm -o {{ payload }}
To format the binary into the hex for copyfail-go, run
cat {{ payload }} | python3 -c 'import sys, zlib; print(zlib.compress(sys.stdin.buffer.read()).hex())'