我有一些代理应用程序,例如 Ultra-surf 或 Tor 浏览器。我可以在浏览器或其他应用程序中设置他们的代理。例如,对于 Tor,我可以在任何应用程序中将ocks: 设置为“127.0.0.1:9150”。
但我想使用这个代理来执行 CMD。
我看到了这些答案
netsh winhttp set proxy proxy-server="socks=localhost:9090" bypass-list="localhost"
或者
set HTTP_PROXY=http://proxy_userid:proxy_password@proxy_ip:proxy_port
我以管理员身份打开了 CMD,然后尝试了这些命令。在每一个网站之后,我测试了 3 个网站:“google.com”、“facebook.com”和“youtu.be”。但注意事项发生了变化。“google.com”始终有效,而“facebook.com 和 youtu.be”则无效。另外,我的代理应用程序是否打开并没有什么区别。有人知道如何为 CMD 设置这种代理吗?
netsh winhttp set proxy 127.0.0.1:1080
netsh winhttp set proxy proxy-server="socks=127.0.0.1:9150" bypass-list="127.0.0.1"
netsh winhttp set proxy proxy-server="socks=localhost:9150" bypass-list="localhost"
netsh winhttp set proxy proxy-server="http=127.0.0.1:1080" bypass-list="127.0.0.1"
netsh winhttp set proxy proxy-server="https=127.0.0.1:1080" bypass-list="127.0.0.1"
set HTTP_PROXY=127.0.0.1:1080
set HTTPs_PROXY=127.0.0.1:1080
set HTTP_PROXY=@127.0.0.1:1080
set HTTPs_PROXY=@127.0.0.1:1080
set HTTP_PROXY=:@127.0.0.1:1080
set HTTPs_PROXY=:@127.0.0.1:1080
Run Code Online (Sandbox Code Playgroud)
ping 响应始终是:
对于未检测到的站点:
C:\>ping google.com
Pinging google.com [172.217.18.142] with 32 bytes of data:
Reply from 172.217.18.142: bytes=32 time=198ms TTL=51
Reply from 172.217.18.142: bytes=32 time=94ms TTL=51
Reply from 172.217.18.142: bytes=32 time=95ms TTL=51
Reply from 172.217.18.142: bytes=32 time=102ms TTL=51
Ping statistics for 172.217.18.142:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 94ms, Maximum = 198ms, Average = 122ms
Run Code Online (Sandbox Code Playgroud)
对于传感站点:
C:\WINDOWS\system32>ping youtu.be
C:\WINDOWS\system32>ping facebook.com
Pinging facebook.com [10.10.34.35] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 10.10.34.35:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8462 次 |
| 最近记录: |