mirror of
				https://github.com/rofl0r/proxychains-ng.git
				synced 2025-11-04 00:56:03 +00:00 
			
		
		
		
	Add vanila proxychains 3.1 sources.
This commit is contained in:
		
							
								
								
									
										16
									
								
								proxychains/proxyresolv
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										16
									
								
								proxychains/proxyresolv
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
#!/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;}'
 | 
			
		||||
		Reference in New Issue
	
	Block a user