更新 “西工大的猫” 1.4

前段时间很多同学反馈西工大的猫用不了了。

简单看了下新版搜狗浏览器,确实代理验证有变化。 于是修改代码,升级了程序。

1. 搜狗代理服务器有哪些IP?

搜狗的代理服务器是非常好扫到的,我小范围扫了几个段,就发现了30几个可用的IP地址。

根据HTTP Headers中的特征字符串判断即可:

Server:squid/2.6.STABLE22
Via:1.0 bjzw_36_46.sogou-in.domain:80 (squid/2.6.STABLE22)
X-Cache:MISS from bjzw_36_46.sogou-in.domain

HTTP服务器是squid,并且via域和X-Cache都有关键字sogou。

edu_servers = ['121.195.187.17', '121.195.187.21', '121.195.187.23',
               '121.195.187.27', '121.195.187.19',]
unicom_servers = ['123.126.51.161', '123.126.51.163', '123.126.51.165',
                  '123.126.51.171', '123.126.51.173','123.126.51.169',
                  '123.126.51.167', '123.126.51.175', '123.126.51.168',
                  '123.126.51.166','123.126.51.162', '123.126.51.172',
                  '123.126.51.170', '123.126.51.174', '123.126.51.176',
                  '123.126.51.164',]
telecom_servers = ['220.181.118.155', '220.181.118.157', '220.181.118.161',
                   '220.181.118.158', '220.181.118.162', '220.181.118.166']
other_servers = ['106.120.151.2', '106.120.151.3', '106.120.151.6',
                 '106.120.151.8', '106.120.151.5', '106.120.151.9',
                 '106.120.151.10', '106.120.151.11']

2. HTTP代理验证

继续阅读更新 “西工大的猫” 1.4