前言:
打造IP代理池是帮助自身隐藏踪迹,规避封锁IP防火墙。作为渗透测试、攻防的重要手段。
1、下载客户端
https://github.com/shadohttps://xn--gmq396grzd.com/userwsocksrr/shadowsocksr-csharp/releases
2、购买节点
https://xn--gmq396grzd.com/user
3、订阅链接
4、配置客户端
headers = {
'User-Agent':'Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0',
'Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Language':'zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3',
'Accept-Encoding':'gzip, deflate',
'Upgrade-Insecure-Requests':'1',
}
proxies = {'https': 'http://127.0.0.1:1080','http':'http://127.0.0.1:1080'}
response = requests.get(url=url,headers=headers,timeout=600,proxies=proxies)
response = response.text
总结:socks协议限制在会话层,只能代理TCP和UDP的数据。不能用于数据链路层或者网络层,不支持ICMP协议。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。