Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.comp.os.windows-10 > #188948

Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware

From Marion <mariond@facts.com>
Newsgroups alt.comp.os.windows-10, alt.comp.os.windows-11, alt.msdos.batch
Subject Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware
Date 2025-10-29 11:58 -0600
Organization BWH Usenet Archive (https://usenet.blueworldhosting.com)
Message-ID <10dtkjv$280m$1@nnrp.usenet.blueworldhosting.com> (permalink)
References (14 earlier) <10aul08$j93$1@nnrp.usenet.blueworldhosting.com> <10bajgs$4bl$1@nnrp.usenet.blueworldhosting.com> <10cskt5$f86$1@nnrp.usenet.blueworldhosting.com> <10csl4j$id7$1@nnrp.usenet.blueworldhosting.com> <10dtkef$24ul$1@nnrp.usenet.blueworldhosting.com>

Cross-posted to 3 groups.

Show all headers | View raw


Marion wrote:
> Hence, after posting this proxy-testing script, I will post a much simpler 
> proxy test, which outputs a formatted PASS/FAIL to whether or not your IP 
> address is proxied through Tor/Psiphon free no-registration proxy servers.

Here is a vastly simpler pass/fail script to test if your IP is truly tunneled.

Note that if the proxy is as good as my setup, it's difficult to skirt past it.
But it can be done. As shown below. Using direct DNS queries, for example.

  @echo off
  REM C:\data\sys\batch\checkip.bat 20251029 
  REM This is version 1p2
  REM  Designed to be a simple proxy check to compare ISP vs Psiphon exit IP
  REM  Outputs:       Proxy OK: ISP=<your real IP> Psiphon=<proxy IP>
  REM  Or it outputs: Proxy FAIL: both=<your real IP>
  REM v1p0 20251029
  REM  compares IP addresses with & without proxy 
  REM  Drat. The proxy is well entrenced. Curl just can't get around it.
  REM  This failed: curl -s https://api.ipify.org 
  REM   because, while curl doesn't use WinINET/WinHTTP,
  REM   curl was being proxied by proxybridge.
  REM  This failed: curl -s --noproxy "*" https://api.ipify.org
  REM   because --noproxy only tells curl to ignore configured proxies. 
  REM   It doesn't bypass ProxyBridge's process-level interception
  REM   The --noproxy doesn't bypass ProxyBridge's interception. 
  REM  This failed: curl -s --proxy 127.0.0.1:34010 
  REM   because the local ProxyBridge relay port is then proxied by Psiphon.
  REM   That just pointed curl at ProxyBridge's local relay, 
  REM   which itself forwards into Psiphon. So we still got Psiphon's IP.
  REM  This failed: powershell -Command "(Invoke-WebRequest -UseBasicParsing
  REM   https://api.ipify.org -Proxy $null).Content"
  REM   because ProxyBridge was still intercepting PowerShell's HTTP traffic, 
  REM   so even the classic PowerShell "no proxy" call was being tunneled.
  REM v1p1 20261029 
  REM  added nslookup to slip around a well-entrenched proxy which worked
  REM  because ProxyBridge/Psiphon doesn't proxy UDP DNS queries, 
  REM  so nslookup was finally able to slip around the tunnel.
  REM  That nslookup DNS trick bypasses ProxyBridge/Psiphon because 
  REM  it's a raw DNS query, not HTTP, to get the true IP. 
  REM  DNS query gives a guaranteed "direct" view of the ISP IP address.
  REM v1p2 20261029 
  REM  modified to make the output a single line for simplicity
  REM  a 1st "for /f" grabs the real ISP IP from the DNS trick.
  REM  a 2nd "for /f" grabs the Psiphon exit IP via SOCKS5
  REM  then it compares them for an OK vs FAIL outpout.
  
  @echo off
  for /f "tokens=2 delims= " %%A in ('nslookup myip.opendns.com resolver1.opendns.com ^| findstr /R "Address:"') do set ISPIP=%%A
  for /f %%A in ('curl -s --socks5 127.0.0.1:1080 https://api.ipify.org') do set PROXYIP=%%A
  
  if "%ISPIP%"=="%PROXYIP%" (
    echo Proxy FAIL: both=%ISPIP%
  ) else (
    echo Proxy OK: ISP=%ISPIP% Psiphon=%PROXYIP%
  )
  pause
  
  :: end of C:\data\sys\batch\checkip.bat 
-- 
I am not here for my ego; nor for my amusement; but to teach & learn.

Back to alt.comp.os.windows-10 | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-18 07:30 +0000
  Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-18 07:53 +0000
    Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-18 08:15 +0000
      Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-18 08:46 +0000
        Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-18 09:59 +0000
          Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-18 10:11 +0000
            Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-18 10:51 +0000
              Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-18 11:09 +0000
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-18 11:53 +0000
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware "R.Wieser" <address@is.invalid> - 2025-09-18 15:06 +0200
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-19 00:42 +0000
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-21 04:34 +0000
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-22 20:31 +0000
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-22 20:41 +0000
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-23 17:22 +0000
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-28 06:10 +0000
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-10-17 05:40 +0000
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-10-17 05:44 +0000
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <mariond@facts.com> - 2025-10-29 11:55 -0600
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <mariond@facts.com> - 2025-10-29 11:58 -0600
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <mariond@facts.com> - 2025-10-30 00:56 -0600
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <mariond@facts.com> - 2025-11-02 20:45 -0700
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <mariond@facts.com> - 2025-11-02 20:58 -0700
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <mariond@facts.com> - 2025-11-03 10:41 -0700
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marian <marianjones@helpfulpeople.com> - 2025-12-01 15:38 -0700
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marian <marianjones@helpfulpeople.com> - 2025-12-02 01:11 -0700
  Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marian <marianjones@helpfulpeople.com> - 2025-12-02 09:19 -0700

csiph-web