Skip to content

Force Proxy to any Windows/MacOS/Linux Application TCP and UDP traffic

fix(windows): add version info (Properties > Details) to the CLI, engine DLL and service

AnoF-Cyberd18a4d0654bb
diff --git a/.gitignore b/.gitignore
index eb335bf..2f34c82 100644
--- a/.gitignore
+++ b/.gitignore
@@ -107,3 +107,4 @@ Windows/*.lib
Windows/*.obj
Windows/**/*.obj
Windows/gui/*.res
+Windows/**/*.res
diff --git a/Windows/cli/cli.rc b/Windows/cli/cli.rc
new file mode 100644
index 0000000..287ef29
--- /dev/null
+++ b/Windows/cli/cli.rc
@@ -0,0 +1,4 @@
+#define PB_FILE_DESC "ProxyBridge command-line client"
+#define PB_ORIG_NAME "ProxyBridge_CLI.exe"
+#define PB_FTYPE VFT_APP
+#include "../gui/res/pbver.inc"
diff --git a/Windows/compile.ps1 b/Windows/compile.ps1
index f7b6197..bddfda5 100644
--- a/Windows/compile.ps1
+++ b/Windows/compile.ps1
@@ -66,18 +66,20 @@ function Compile-MSVC {
"/arch:SSE2 /fp:fast /GS /guard:cf /Qpar " +
"/I`"$WinDivertPath\include`" " +
"$SourceFiles " +
+ "src\core.res " +
"/LD " +
"/link /LTCG /OPT:REF /OPT:ICF /RELEASE /DYNAMICBASE /NXCOMPAT " +
"/LIBPATH:`"$WinDivertPath\$Arch`" " +
"WinDivert.lib ws2_32.lib iphlpapi.lib " +
"/OUT:$OutputDLL"
- $cmd = "`"$vcvarsPath`" $Arch >nul && cl.exe $clArgs"
+ $cmd = "`"$vcvarsPath`" $Arch >nul && rc /nologo /fo src\core.res src\core.rc && cl.exe $clArgs"
Write-Host "Command: cl.exe $clArgs" -ForegroundColor Gray
$result = cmd /c $cmd '2>&1'
$exitCode = $LASTEXITCODE
+ Remove-Item "src\core.res" -Force -ErrorAction SilentlyContinue
Write-Host $result
@@ -243,16 +245,18 @@ if ($success) {
$cliArgs = "/nologo /O2 /Ot /GL /Gy /W4 /wd4100 /wd4189 /wd4267 /wd4244 /wd4996 " +
"/D_WINSOCK_DEPRECATED_NO_WARNINGS /D_WIN32_WINNT=0x0601 /DNDEBUG " +
"/arch:SSE2 /fp:fast /GS /guard:cf /Qpar " +
- "cli\main.c " +
+ "cli\main.c cli\cli.res " +
"/link /LTCG /OPT:REF /OPT:ICF /RELEASE /DYNAMICBASE /NXCOMPAT /SUBSYSTEM:CONSOLE " +
"winhttp.lib shell32.lib advapi32.lib " +
"/OUT:ProxyBridge_CLI.exe"
- $cliCmd = "`"$script:foundVcvarsPath`" $script:foundArch >nul && cl.exe $cliArgs"
+ $cliCmd = "`"$script:foundVcvarsPath`" $script:foundArch >nul && rc /nologo /fo cli\cli.res cli\cli.rc && cl.exe $cliArgs"
Write-Host "Command: cl.exe $cliArgs" -ForegroundColor Gray
$cliOut = cmd /c $cliCmd '2>&1'
- if ($LASTEXITCODE -eq 0) {
+ $cliExit = $LASTEXITCODE
+ Remove-Item "cli\cli.res" -Force -ErrorAction SilentlyContinue
+ if ($cliExit -eq 0) {
Move-Item "ProxyBridge_CLI.exe" -Destination $OutputDir -Force
Write-Host " CLI built: ProxyBridge_CLI.exe" -ForegroundColor Gray
Remove-Item "*.obj" -Force -ErrorAction SilentlyContinue
@@ -270,13 +274,15 @@ if ($success) {
Write-Host "`nBuilding service..." -ForegroundColor Green
if ($script:foundVcvarsPath -and (Test-Path $script:foundVcvarsPath)) {
$svcArgs = "/nologo /O2 /GL /Gy /W4 /MT /GS /guard:cf /sdl /DNDEBUG /D_CRT_SECURE_NO_WARNINGS /DUNICODE /D_UNICODE " +
- "src\service\pb_service.c " +
+ "src\service\pb_service.c src\service\svc.res " +
"/link /LTCG /OPT:REF /OPT:ICF /RELEASE /DYNAMICBASE /HIGHENTROPYVA /NXCOMPAT /guard:cf /CETCOMPAT /SUBSYSTEM:CONSOLE " +
"advapi32.lib " +
"/OUT:ProxyBridgeSvc.exe"
- $svcCmd = "`"$script:foundVcvarsPath`" $script:foundArch >nul && cl.exe $svcArgs"
+ $svcCmd = "`"$script:foundVcvarsPath`" $script:foundArch >nul && rc /nologo /fo src\service\svc.res src\service\svc.rc && cl.exe $svcArgs"
$svcOut = cmd /c $svcCmd '2>&1'
- if ($LASTEXITCODE -eq 0) {
+ $svcExit = $LASTEXITCODE
+ Remove-Item "src\service\svc.res" -Force -ErrorAction SilentlyContinue
+ if ($svcExit -eq 0) {
Move-Item "ProxyBridgeSvc.exe" -Destination $OutputDir -Force
Write-Host " Service built: ProxyBridgeSvc.exe" -ForegroundColor Gray
Remove-Item "*.obj" -Force -ErrorAction SilentlyContinue
diff --git a/Windows/gui/res/pbver.inc b/Windows/gui/res/pbver.inc
new file mode 100644
index 0000000..6db4a74
--- /dev/null
+++ b/Windows/gui/res/pbver.inc
@@ -0,0 +1,34 @@
+// pbver.inc - VERSIONINFO shared by the non-GUI binaries (Properties > Details).
+// Including .rc defines PB_FILE_DESC, PB_ORIG_NAME and PB_FTYPE (VFT_APP / VFT_DLL); the version
+// numbers come from resource.h, same as the GUI's app.rc.
+#include <windows.h>
+#include "resource.h"
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION PB_VER_MAJOR,PB_VER_MINOR,PB_VER_PATCH,PB_VER_BUILD
+ PRODUCTVERSION PB_VER_MAJOR,PB_VER_MINOR,PB_VER_PATCH,PB_VER_BUILD
+ FILEFLAGSMASK 0x3fL
+ FILEFLAGS 0x0L
+ FILEOS VOS_NT_WINDOWS32
+ FILETYPE PB_FTYPE
+ FILESUBTYPE 0x0L
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "040904b0"
+ BEGIN
+ VALUE "CompanyName", "InterceptSuite"
+ VALUE "FileDescription", PB_FILE_DESC
+ VALUE "FileVersion", PB_VER_STR
+ VALUE "InternalName", PB_ORIG_NAME
+ VALUE "OriginalFilename", PB_ORIG_NAME
+ VALUE "ProductName", "ProxyBridge"
+ VALUE "ProductVersion", PB_VER_STR
+ VALUE "LegalCopyright", "Copyright (c) 2026 InterceptSuite"
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x409, 1200
+ END
+END
diff --git a/Windows/src/core.rc b/Windows/src/core.rc
new file mode 100644
index 0000000..418ce02
--- /dev/null
+++ b/Windows/src/core.rc
@@ -0,0 +1,4 @@
+#define PB_FILE_DESC "ProxyBridge core engine"
+#define PB_ORIG_NAME "ProxyBridgeCore.dll"
+#define PB_FTYPE VFT_DLL
+#include "../gui/res/pbver.inc"
diff --git a/Windows/src/service/svc.rc b/Windows/src/service/svc.rc
new file mode 100644
index 0000000..cc948de
--- /dev/null
+++ b/Windows/src/service/svc.rc
@@ -0,0 +1,4 @@
+#define PB_FILE_DESC "ProxyBridge engine service"
+#define PB_ORIG_NAME "ProxyBridgeSvc.exe"
+#define PB_FTYPE VFT_APP
+#include "../../gui/res/pbver.inc"