cURL을 사용하여 TOR의 숨겨진 서비스에 액세스하려고 하면 어떤 이유로 사이트에 100% 액세스할 수 없습니다. 여러 번 돌아올 것입니다"curl: (7) Can't complete SOCKS5 connection to 0.0.0.0:0. (5)"
TOR에서 더 잘 작동하도록 cURL을 구성하기 위해 할 수 있는 일이 있나요? 이것은 내가 얻는 결과입니다.
root@Dexter:~# curl --proxy socks5h://localhost:9050 http://5ztppjwojkuslibm.onion/
curl: (7) Can't complete SOCKS5 connection to 0.0.0.0:0. (5)
root@Dexter:~# curl --proxy socks5h://localhost:9050 http://5ztppjwojkuslibm.onion/
curl: (7) Can't complete SOCKS5 connection to 0.0.0.0:0. (5)
root@Dexter:~# curl --proxy socks5h://localhost:9050 http://5ztppjwojkuslibm.onion/
curl: (18) transfer closed with 1 bytes remaining to read
<h1>This is a test page to see if I can run a hidden tor service!</h1><h3>Looks like it's working!</h3>root@Dexter:~#
root@Dexter:~# curl --proxy socks5h://localhost:9050 http://5ztppjwojkuslibm.onion/
curl: (18) transfer closed with 1 bytes remaining to read
<h1>This is a test page to see if I can run a hidden tor service!</h1><h3>Looks like it's working!</h3>root@Dexter:~#
답변1
네트워크 환경에 문제가 있을 수 있습니다.
duckduckgo onion 웹사이트를 https://3g2upl4pq6kufc4m.onion
예로 들겠습니다. AWS EC2나 로컬 네트워크 환경 모두에서 잘 작동합니다.
$time curl -I --proxy socks5h://localhost:9050 https://3g2upl4pq6kufc4m.onion/
HTTP/1.1 200 OK
Server: nginx
Date: Tue, 17 Jul 2018 13:51:35 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 5499
Connection: keep-alive
ETag: "5b4d156e-157b"
Strict-Transport-Security: max-age=0
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: default-src https: blob: data: 'unsafe-inline' 'unsafe-eval'; frame-ancestors 'self'
X-XSS-Protection: 1;mode=block
X-Content-Type-Options: nosniff
Referrer-Policy: origin
Expect-CT: max-age=0
Expires: Tue, 17 Jul 2018 13:51:34 GMT
Cache-Control: no-cache
Accept-Ranges: bytes
real 0m2.235s
user 0m0.048s
sys 0m0.016s
<title>
알았어
curl -fsL --proxy socks5h://localhost:9050 https://3g2upl4pq6kufc4m.onion | grep 'title'
<title>DuckDuckGo — Privacy, simplified.</title>