Defensive security tool demonstrating how spyware can exploit unauthenticated SOCKS5 proxies on localhost to discover VPN exit IPs. Modules: - PortScanner: parallel TCP scan of 127.0.0.1 (known ports + full range) - Socks5Probe: SOCKS5/HTTP/gRPC handshake detection with auth check - ExitIPResolver: exit IP discovery through vulnerable SOCKS5 - XrayAPIDetector: xray gRPC API (HandlerService) detection - DeviceInfoCollector: VPN status, interfaces, direct IP - GeoLocator: IP geolocation via ip-api.com - ScanOrchestrator: pipeline orchestrator - Jetpack Compose UI with Material 3 GitHub Actions CI for automated APK builds. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
35 lines
907 B
Batchfile
35 lines
907 B
Batchfile
@rem Gradle startup script for Windows
|
|
|
|
@if "%DEBUG%"=="" @echo off
|
|
@rem Set local scope for the variables with windows NT shell
|
|
if "%OS%"=="Windows_NT" setlocal
|
|
|
|
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
|
|
|
set DIRNAME=%~dp0
|
|
if "%DIRNAME%"=="" set DIRNAME=.
|
|
@rem This is normally unused
|
|
set APP_BASE_NAME=%~n0
|
|
set APP_HOME=%DIRNAME%
|
|
|
|
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
|
|
|
@rem Find java.exe
|
|
set JAVA_EXE=java.exe
|
|
if defined JAVA_HOME goto findJavaFromJavaHome
|
|
|
|
goto execute
|
|
|
|
:findJavaFromJavaHome
|
|
set JAVA_HOME=%JAVA_HOME:"=%
|
|
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
|
if exist "%JAVA_EXE%" goto execute
|
|
|
|
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
|
exit /b 1
|
|
|
|
:execute
|
|
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
|
|
|
:end
|
|
if "%OS%"=="Windows_NT" endlocal
|