Advertisement
Guest User

Untitled

a guest
Aug 8th, 2016
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. build.sh
  2.  
  3. #!/bin/sh
  4.  
  5. if [ "$#" -ne 2 ]; then
  6. echo "usage: $0 stage2_url pkg_prefix_url" >&2
  7. exit 1
  8. fi
  9.  
  10. cp loader.rop.bin host/stage1.bin
  11. python preprocess.py exploit.rop.bin host/stage2.bin
  12. python write_pkg_url.py host/stage1.bin "$1"
  13. python write_pkg_url.py host/stage2.bin "$2"
  14. python preprocess.py host/stage1.bin host/payload.js
  15. echo "done." >&2
  16.  
  17.  
  18. ./build.sh http://192.168.1.10:4000/ http://192.168.1.10:8888/pkg/
  19.  
  20. python -m http.server 8888
  21. go run stage2.go -payload stage2.bin -port 4000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement