• Check a socks5 proxy with netcat.

    From hongyi.zhao@gmail.com@21:1/5 to All on Sat Mar 4 05:29:38 2023
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Janis Papanagnou@21:1/5 to hongy...@gmail.com on Sat Mar 4 15:08:14 2023
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenny McCormack@21:1/5 to janis_papanagnou+ng@hotmail.com on Sat Mar 4 14:16:08 2023
    In article <ttvjcf$104kc$1@dont-email.me>,
    Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
    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.?

    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kees Nuyt@21:1/5 to janis_papanagnou+ng@hotmail.com on Sun Mar 5 19:04:10 2023
    On Sat, 4 Mar 2023 15:08:14 +0100, Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:

    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.?

    Yes, you're right. Thanks for the heads up.
    I'll be more selective in my replies.
    --
    Kees Nuyt

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jalen Q@21:1/5 to hongy...@gmail.com on Sun Mar 5 16:50:08 2023
    On Saturday, March 4, 2023 at 7:29:42 AM UTC-6, 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:

    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
    rrcrrrrfrffrrfrrrrrrfrfrftrd

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jalen Q@21:1/5 to Jalen Q on Wed Apr 12 10:08:06 2023
    On Sunday, March 5, 2023 at 6:50:12 PM UTC-6, Jalen Q wrote:
    On Saturday, March 4, 2023 at 7:29:42 AM UTC-6, 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:

    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
    rrcrrrrfrffrrfrrrrrrfrfrftrd
    fffffrfrfrgfyrftttrtrrttttfttrrtrtrtrrtrtrtrtttrtrttftttt

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)