You can use phc after a few minutes if you do like this step by step:
tar zxvf phc-1.2.tar.gz
cd phc-1.2
./configure
make
make install
cp doc/phc.conf.example phc.conf
You can put phc.conf to /etc/phc.conf or ~/.phc.conf. Phc will search ./phc.conf,then ~/.phc.conf , at last /etc/phc.conf until it found the first one.
Now read the configuration file "phc.conf". Notice: The line begin with '#' is commet line. The line after the line begin with '#' must be customized with you own setting. And the line begin with
'#! if'
need be updated only if the condition expression after "if" is true.
For example, you username at myproxy is abc, password is guest, then you should set myuser and mypass like this:
myuser=abc
mypass=guest
httptestmethod=1
socks5testmethod=2
socks4testmethod=5
logfilename=.
If you want to see it laterly:
logfilename=./phc.log
cp doc/proxylist .
Notice, phc.conf must be in the same directory now.
phc
Tips: If you have found enough free proxies, you can use "^C" to stop phc at any time. The result of validating will be printed on screen and saved to file named proxyout in current directory immediately after any free proxy is found .
Want to validate: free http CONNECT proxy and free socks5 proxy which support connect command.
You configuration should look like this:
#You must customize the follow
mytype=4
myhost=socks.you.com
myport=1080
myuser=abc
mypass=def
httptestmethod=1
#You should leave the following items intact.
socks5testmethod=2
socks4testmethod=5
#Optional to be changed. But you SHOULD NOT comment or remove it.
threads=50
checksite=http://www.google.com:80/webhp?hl=en
key=2006 Google
user_agent=User-Agent: MSIE 6.0
myconreplysize=256
testconreplysize=256
testtagreplysize=65535
rcvtimeo=10
sndtimeo=5
logfilename=phc.log
Want to validate: Common free http proxy and free socks5 proxy which support connect command.
Your setting will be similiar with this:
#The follow lines must be customized.
mytype=1
myhost=proxy.you.com
myport=8080
httptestmethod=0
#Please leave the following items intact.
socks5testmethod=2
socks4testmethod=5
#The follow lines is optional to be changed , but you should not
#delete or remove it.
threads=50
checksite=http://www.google.com:80/webhp?hl=en
key=2006 Google
user_agent=User-Agent: MSIE 6.0
myconreplysize=256
testconreplysize=256
testtagreplysize=65535
rcvtimeo=10
sndtimeo=5
logfilename=phc.log