home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.comp.os.windows-10      Steaming pile of horseshit Windows 10      197,590 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 195,896 of 197,590   
   Marian to All   
   VPN+Psiphon+ProxyBridge & Psiphon+ProxyB   
   01 Dec 25 15:47:38   
   
   [continued from previous message]   
      
     echo (Tor SOCKS not required unless anonymity chaining is desired.)   
     echo ============================================   
     echo Press any key to close...   
     pause >nul   
      
     REM End batch without killing the shell   
     exit /b   
      
     REM end of C:\data\sys\batch\psiphon.bat   
      
     @echo off   
     REM v2p1 C:\data\sys\batch\psiphonstop.bat   
     REM   
     REM Run psiphonstop.bat to:   
     REM 1. Check for any lingering processes (Psiphon or Mongoose).   
     REM 2. Kill any lingering processes (Psiphon or Mongoose).   
     REM 3. Reset WinINET and WinHTTP proxy settings.   
     REM 4. Log the shutdown for traceability in mongoose & proxy logs.   
     REM   
     REM v1p0 20250819 (41 lines)   
     REM  As admin, it stops Psiphon GUI, Mongoose, and resets proxy settings   
     REM  Logs shutdown event to proxy.log and mongoose.log for lifecycle tracking   
     REM v1p1 20250819 (46 lines)   
     REM  Added Psiphon GUI termination step (v1.1)   
     REM  Added [STOP] prefix to log entries for clarity (v1.1)   
     REM v1p2 20250818 (56 lines)   
     REM  Added conditional checks for running processes before attempting   
   kill/log   
     REM  Only logs shutdown events if process was found running   
     REM v1p3 20250820 (68 lines)   
     REM  Fixed Registry Key Not Found error when run with nothing to do   
     REM  Fixed "reset" not a command error by removing the ampersand in the echo   
     REM v1p4 20250920 (79 lines)   
     REM  Added better error checking to see if Psiphon or Mongoose are running   
     REM  Added a closer line in the console   
     REM v1p5 20250920 (89 lines)   
     REM  Added better explanation of the registry changes in the console output   
     REM v1p6 20250920 (108 lines)   
     REM  Set ProxyEnable to 0 so the system knows to bypass proxies (v1.6)   
     REM  Clear ProxyOverride if Psiphon used custom bypass rules (v1.6)   
     REM  Flush DNS and restart networking stack (v1.6)   
     REM v1p7 20250920 (121 lines)   
     REM  Exported keys before deletion, just in case (v1.7)   
     REM  fully refresh network adaptor (optional) v1.7   
     REM v1p8 20250920 (138 lines)   
     REM  Check for environment proxy settings (v1.8)   
     REM  add browser cache flush and settings reminder (v1.8)   
     REM  add summary log entry with system state (v1.8)   
     REM  Add a success beep or visual cue (v1.8)   
     REM v1p9 20250920 (152 lines)   
     REM  Added version banner   
     REM  Log envvars (v1.9)   
     REM  Add browser-specific cleanup reminders (v1.9)   
     REM v2p0 20250922 (163 lines)   
     REM  Added a timed wait of 2 seconds before skipping action (v2.0)   
     REM v2p1 20250922 (217 lines)   
     REM  Added protection from when the PC reboots with psiphon running.   
     REM  Added winsock detection and remediation block which will   
     REM  skip live winsock resets when the adapter is offline,   
     REM  and then it will attempt a safe remediation when netsh reports   
     REM  Access is denied, and log outcomes.   
      
     echo ----------------------------------------   
     echo Psiphonstop.bat v1.9 - Proxy Reset Tool   
     echo ----------------------------------------   
      
     :: --- Elevate to admin if not already ---   
     >nul 2>&1 net session   
     if %errorlevel% neq 0 (   
         echo Requesting administrative privileges...   
         powershell -Command "Start-Process '%~f0' -Verb RunAs"   
         exit /b   
     )   
      
     REM Check if Psiphon GUI is running (updated for better errors) v1p4   
     tasklist /fi "imagename eq psiphon3.exe" | find /i "psiphon3.exe" >nul   
     if %errorlevel%==0 (   
         taskkill /f /im psiphon3.exe >nul 2>&1   
         echo [%DATE% %TIME%] [STOP] Psiphon GUI terminated by psiphonstop.bat >>   
   C:\data\sys\log\proxy.log   
     ) else (   
         echo [%DATE% %TIME%] [STOP] No Psiphon GUI process found >>   
   C:\data\sys\log\proxy.log   
     )   
      
     REM Check if Mongoose is running (updated checks in v1.4)   
     tasklist /fi "imagename eq mongoose.exe" | find /i "mongoose.exe" >nul   
     if %errorlevel%==0 (   
         taskkill /f /im mongoose.exe >nul 2>&1   
         echo [%DATE% %TIME%] [STOP] Mongoose terminated by psiphonstop.bat >>   
   C:\data\sys\batch\mongoose.log   
     ) else (   
         echo [%DATE% %TIME%] [STOP] No Mongoose process found >> C   
   \data\sys\batch\mongoose.log   
     )   
      
     REM Exported keys before deletion, just in case (v1.7)   
     REM reg export "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet   
   Settings" C:\data\sys\log\proxy_before_reset.reg   
     REM Added a timed wait of 2 seconds before skipping action (v2.0)   
     echo File C:\data\sys\log\proxy_before_reset.reg already exists. Overwrite   
   (Yes/No)?   
     choice /c YN /n /t 2 /d N >nul   
     if errorlevel 2 if not errorlevel 3 (   
         echo The operation was canceled by the user.   
         goto :skip_export   
     )   
     reg export "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet   
   Settings" C:\data\sys\log\proxy_before_reset.reg   
      
     :skip_export   
      
     REM Reset WinINET proxy settings   
     echo Resetting WinINET proxy registry values...   
     REM Fixed Registry Key Not Found error when run with nothing to do (v1.3)   
     :: reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet   
   Settings" /v AutoConfigURL /f >nul   
     reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet   
   Settings" /v AutoConfigURL /f 2>nul   
      
     echo reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet   
   Settings" /v AutoConfigURL /f 2>nul   
      
     reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings"   
   /v AutoDetect /t REG_DWORD /d 0 /f >nul   
      
     echo reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet   
   Settings" /v AutoDetect /t REG_DWORD /d 0 /f >nul   
      
     :: reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet   
   Settings" /v ProxyServer /f >nul   
     reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet   
   Settings" /v ProxyServer /f 2>nul   
     echo reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet   
   Settings" /v ProxyServer /f 2>nul   
      
     :: reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet   
   Settings" /v ProxyEnable /f >nul   
     reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet   
   Settings" /v ProxyEnable /f 2>nul   
     echo reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet   
   Settings" /v ProxyEnable /f 2>nul   
      
     REM v1p6   
     REM Deleting ProxyEnable and ProxyServer does not restore direct access.   
     REM Set ProxyEnable to 0 so the system knows to bypass proxies (v1.6)   
     REM Windows interprets missing values differently than explicitly set ones.   
     REM Explicitly set ProxyEnable to 0 so the system knows to bypass proxies.   
     REM Now Windows knows to use direct access, not ´no proxy server defined.¡   
     reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings"   
   /v ProxyEnable /t REG_DWORD /d 0 /f   
      
     REM Clear ProxyOverride if Psiphon used custom bypass rules (v1.6)   
     reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet   
   Settings" /v ProxyOverride /f   
      
     REM Flush DNS and restart networking stack (v1.6)   
     ipconfig /flushdns   
     netsh int ip reset   
      
     echo Registry operations completed with Proxy settings cleared or updated.   
      
     REM Reset WinHTTP proxy settings   
     netsh winhttp reset proxy   
      
     REM Always log proxy reset regardless of process status   
     echo [%DATE% %TIME%] [STOP] Proxy settings reset by psiphonstop.bat >>   
   C:\data\sys\log\proxy.log   
      
     REM Fixed "reset" unrecognized command error by removing ampersand (v1p3)   
     :: echo Psiphon, proxy settings, and Mongoose have been logged & reset.   
     echo "Psiphon, proxy settings and Mongoose have been logged and reset."   
      
     REM Check for environment proxy settings (v1.8)   
     set | findstr /i proxy   
     REM Log envvars (v1.9)   
     set | findstr /i proxy >> C:\data\sys\log\proxy_envvars.log   
      
      
   [continued in next message]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca