m3rl1ne

check

Apr 8th, 2018
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. for target in $(cat /media/khunerable/796D-4229/abc/Desktop/PunyaKhun/target.txt); do
  4. for backup in $(cat /media/khunerable/796D-4229/abc/Desktop/PunyaKhun/list.txt); do
  5. res=$(curl -sL -w "%{http_code}\\n" -H "User-Agent: *" "$target$backup" -o /dev/null)
  6. echo "[+] $target$backup => $res"
  7. if (($res == 200))
  8. then
  9. #echo "[*] Downloading $backup ...."
  10. #exec wget -q $target$backup
  11. #echo "[*] Done!"
  12. echo "$target$backup" >> result.txt
  13. fi
  14. done
  15. done
Advertisement
Add Comment
Please, Sign In to add comment