mirror of
https://github.com/rofl0r/proxychains-ng.git
synced 2024-12-22 20:38:49 +00:00
17 lines
316 B
Plaintext
17 lines
316 B
Plaintext
|
#!/bin/sh
|
||
|
# This script is called by proxychains to resolve DNS names
|
||
|
|
||
|
# DNS server used to resolve names
|
||
|
DNS_SERVER=4.2.2.2
|
||
|
|
||
|
|
||
|
if [ $# = 0 ] ; then
|
||
|
echo " usage:"
|
||
|
echo " proxyresolv <hostname> "
|
||
|
exit
|
||
|
fi
|
||
|
|
||
|
|
||
|
export LD_PRELOAD=libproxychains.so
|
||
|
dig $1 @$DNS_SERVER +tcp | awk '/A.+[0-9]+\.[0-9]+\.[0-9]/{print $5;}'
|