mirror of
https://github.com/badsectorlabs/copyfail-go.git
synced 2026-05-16 06:30:10 +00:00
✨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:
parent
e52acbb172
commit
131f7d1842
12 changed files with 552 additions and 63 deletions
19
payloads/README.md
Normal file
19
payloads/README.md
Normal 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())'
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue