perl isProxyOK.pl --help
perl isProxyOK.pl -proxy http://61.158.219.226:8118

perl isProxyOK.pl -proxy socks://180.153.139.246:8888

perl isProxyOK.pl -proxy proxy_Scrapebox.txt [-out proxy_20140511_out]



vim /etc/lighttpd/conf-enabled/10-accesslog.conf
具体的日志格式设置可参考《Apache/Nginx/Lighttpd/Tomcat 日志格式 cheatsheet 》accesslog.format = "%h %V %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{X-Forwarded-For}i\" \"%{VIA}i\""
accesslog.filename = "/var/log/lighttpd/access.log"
perl isProxyOK.pl -vv -url http://www.tanjiti.com -ip [web server IP] -proxy http://218.107.217.82:8080

perl isProxyOK.pl -vv -url http://www.tanjiti.com -ip [web server IP] -proxy http://64.34.14.28:7808

perl isProxyOK.pl -vv -url http://www.tanjiti.com -ip [web server IP] -proxy socks://180.153.139.246:8888

第二步:启用auth模块htpasswd -c [认证文件路径,使用绝对路径] tanjiti(用户名)
lighttpd-enable-mod auth
第三步: 配置auth模块/etc/init.d/lighttpd force-reload
vim conf-enabled/05-auth.conf
增加auth.backend = "htpasswd"auth.backend.htpasswd.userfile = "[filepath absolute]"auth.require = ("[需要采取基本认证的路径,使用相当路径]" => ("method" => "basic","realm" => "[基本认证框中的服务器提示]","require" => "user=tanjiti"))
此时访问该路径的文件,则会要求进行基本认证,否则401/etc/init.d/lighttpd force-reload

perl crackbasicAuth.pl -h
选项说明:perl crackbasicAuth.pl -url http://www.tanjiti.com/xxxx/ -username tanjiti -password 123 -vv


perl crackbasicAuth.pl -url http://www.tanjiti.com/xxxx/ -username a -password b

perl crackbasicAuth.pl -url http://www.tanjiti.com/xxxx/ -username a -password b -tor

perl crackbasicAuth.pl -url http://www.tanjiti.com/xxxx -username a -password b -proxy proxy_Scrapebox.txt_out
