Advertisement
fenix_of_fire

DNS leak test script

Jan 19th, 2017
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.51 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. ####----All these commands were tested on kali linux 2.0 debian jessie----######
  4.  
  5. clear
  6. GET www.dnsleaktest.com > Dleak.txt
  7. clear
  8. a0000b="$(cat Dleak.txt | grep Hello | cut -d" " -f7 | cut -d"<" -f1)"
  9. c0000d="$(cat Dleak.txt | grep from |cut -d"," -f2 | cut -d"<" -f1)"
  10. e0000f="$(cat Dleak.txt | grep from |cut -d"," -f1 | cut -d" " -f6-99)"
  11. echo "-------DNS LEAK TEST-------"
  12. echo -e "\nIP:\t$a0000b\nCOUTRY:\b:$c0000d\nCITY:\t$e0000f\n\n"
  13. echo "---------------------------"
  14. rm Dleak.txt
  15. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement