Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- build.sh
- #!/bin/sh
- if [ "$#" -ne 2 ]; then
- echo "usage: $0 stage2_url pkg_prefix_url" >&2
- exit 1
- fi
- cp loader.rop.bin host/stage1.bin
- python preprocess.py exploit.rop.bin host/stage2.bin
- python write_pkg_url.py host/stage1.bin "$1"
- python write_pkg_url.py host/stage2.bin "$2"
- python preprocess.py host/stage1.bin host/payload.js
- echo "done." >&2
- ./build.sh http://192.168.1.10:4000/ http://192.168.1.10:8888/pkg/
- python -m http.server 8888
- go run stage2.go -payload stage2.bin -port 4000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement