mirror of
https://github.com/badsectorlabs/copyfail-go.git
synced 2026-05-16 06:30:10 +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.
19 lines
No EOL
377 B
Markdown
19 lines
No EOL
377 B
Markdown
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())'
|
|
``` |