Advertisement
rfmonk

proxyresolve.sh

Mar 31st, 2014
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.33 KB | None | 0 0
  1. #!/bin/sh
  2. # This script is called by proxychains to resolve DNS names
  3. # DNS server used to resolve names
  4. # credit goes to robert fuller
  5. DNS_SERVER=4.2.2.2
  6.  
  7. if[$# = 0]; then
  8. echo " usage:"
  9. echo " proxyresolv"
  10. exit
  11. fi
  12.  
  13. export LD_PRELOAD=libproxychains.so.3
  14. dig $1 @DNS_SERVER + tcp | awk '/A.+[0-9]+\.[0-9]+\.[0-9]/{print $5;}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement