feat: allow binary exec and improve documentation

- 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.
This commit is contained in:
kernel-sanders 2026-04-30 01:33:04 -04:00
parent e52acbb172
commit 131f7d1842
12 changed files with 552 additions and 63 deletions

19
payloads/README.md Normal file
View file

@ -0,0 +1,19 @@
These are the assembly and binary payloads embedded in copyfail-go
## Scripted
Just run `build-n-print.sh`
## Manual
To build the asm run
```shell
nasm -f bin {{ payload }}.asm -o {{ payload }}
```
To format the binary into the hex for copyfail-go, run
```shell
cat {{ payload }} | python3 -c 'import sys, zlib; print(zlib.compress(sys.stdin.buffer.read()).hex())'
```