Advertisement
SH1NU11b1

dirtrav

Jan 21st, 2015
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. #For Directory Traversal
  2. #websphinx
  3.  
  4. #!/bin/sh
  5. #getit.sh script
  6. if [ -z $1 ]; then
  7. echo -e "\n\tUsage: $0 <host> <URL>"
  8. exit
  9. fi
  10. echo -e "GET $2 HTTP/1.0\n\n" | \
  11. nc -vv $1 80
  12.  
  13.  
  14.  
  15. Now you’re working on the command line with HTTP and HTTPS. The web
  16. applications are going to fall! So, instead of saving every file from your browser or
  17. running lynx, use the getit scripts shown previously, as illustrated in this example:
  18. [root@meddle ]# mkdir www.victim.com
  19. [root@meddle ]# cd www.victim.com
  20. [root@meddle www.victim.com]# getit.sh www.victim.com /index.html >
  21. index.html
  22. www.victim.com [192.168.33.101] 80 (http) open
  23. sent 27, rcvd 2683: NOTSOCK
  24. [root@meddle www.victim.com ]# mkdir secure
  25. [root@meddle www.victim.com ]# cd secure
  26. [root@meddle secure]# sgetit.sh www.victim.com /secure/admin.html >
  27. admin.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement