Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Check a socks5 proxy with netcat.

44 views
Skip to first unread message

hongy...@gmail.com

unread,
Mar 4, 2023, 8:29:42 AM3/4/23
to
Based on the comments here [1-2], I tried to test the availability of my socks5 proxy, but failed to get the information I needed:

werner@X10DAi:~$ echo 050100 | xxd -p -r | netcat 127.0.0.1 18888
^C
werner@X10DAi:~$ printf "\x05\x01\x00\r\n" | nc 127.0.0.1 18888 | hd
^C

But curl will return useful information as follows:

werner@X10DAi:~$ curl -Ivx socks5h://127.0.0.1:18888 www.baidu.com
* Trying 127.0.0.1:18888...
* SOCKS5 connect to www.baidu.com:80 (remotely resolved)
* SOCKS5 request granted.
* Connected to (nil) (127.0.0.1) port 18888 (#0)
> HEAD / HTTP/1.1
> Host: www.baidu.com
> User-Agent: curl/7.85.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Accept-Ranges: bytes
Accept-Ranges: bytes
< Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
< Connection: keep-alive
Connection: keep-alive
< Content-Length: 277
Content-Length: 277
< Content-Type: text/html
Content-Type: text/html
< Date: Sat, 04 Mar 2023 13:24:38 GMT
Date: Sat, 04 Mar 2023 13:24:38 GMT
< Etag: "575e1f6f-115"
Etag: "575e1f6f-115"
< Last-Modified: Mon, 13 Jun 2016 02:50:23 GMT
Last-Modified: Mon, 13 Jun 2016 02:50:23 GMT
< Pragma: no-cache
Pragma: no-cache
< Server: bfe/1.0.8.18
Server: bfe/1.0.8.18

<
* Connection #0 to host (nil) left intact

Any tips/comments/explanations for this problem will be appreciated.

[1] https://superuser.com/questions/303251/how-to-check-if-a-socks5-proxy-works
[2] https://stackoverflow.com/questions/52530515/how-use-netcat-to-test-socks5-server

Regards,
Zhao

Janis Papanagnou

unread,
Mar 4, 2023, 9:08:21 AM3/4/23
to
On 04.03.2023 14:29, hongy...@gmail.com wrote:
> Based on the comments here [1-2], I tried to test the availability of my socks5 proxy, but failed to get the information I needed:
> [...]

Aren't all those recent postings from the OP off-topic here and
better placed in either of c.u.questions, c.u.admin, c.u.misc,
etc.?

Janis


Kenny McCormack

unread,
Mar 4, 2023, 9:16:13 AM3/4/23
to
In article <ttvjcf$104kc$1...@dont-email.me>,
Really, they should be posted to alt.dev.null (if that exists).

Most of this guy's ("hongy") postings are of the form:

Hey! I just noticed that the sun is shining. How does that work?
Isn't that amazing?

--
Nov 4, 2008 - the day when everything went
from being Clinton's fault to being Obama's fault.

Kees Nuyt

unread,
Mar 5, 2023, 1:04:19 PM3/5/23
to
Yes, you're right. Thanks for the heads up.
I'll be more selective in my replies.
--
Kees Nuyt

Jalen Q

unread,
Mar 5, 2023, 7:50:12 PM3/5/23
to
rrcrrrrfrffrrfrrrrrrfrfrftrd

Jalen Q

unread,
Apr 12, 2023, 1:08:10 PM4/12/23
to
fffffrfrfrgfyrftttrtrrttttfttrrtrtrtrrtrtrtrtttrtrttftttt
0 new messages