Skip to content

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

version 3.1.0 Windows

Sourav Kalal2a8a0f60ab43
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
new file mode 100644
index 0000000..8d8008e
--- /dev/null
+++ b/CODE_OF_CONDUCT.md
@@ -0,0 +1,131 @@
+# Code of Conduct
+
+## Our Pledge
+
+We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
+
+We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
+
+## Our Standards
+
+Examples of behavior that contributes to a positive environment for our community include:
+
+* **Being respectful and inclusive** of differing opinions, viewpoints, and experiences
+* **Giving and gracefully accepting constructive feedback**
+* **Accepting responsibility** and apologizing to those affected by our mistakes, and learning from the experience
+* **Focusing on what is best** not just for us as individuals, but for the overall community
+* **Showing empathy** towards other community members
+* **Using welcoming and inclusive language**
+* **Being patient** with new contributors and questions
+
+Examples of unacceptable behavior include:
+
+* The use of sexualized language or imagery, and sexual attention or advances of any kind
+* Trolling, insulting or derogatory comments, and personal or political attacks
+* Public or private harassment
+* Publishing others' private information, such as a physical or email address, without their explicit permission
+* Spam, promotional content, or excessive self-promotion
+* Disruptive behavior that interferes with constructive discussion
+* Other conduct which could reasonably be considered inappropriate in a professional setting
+
+## Enforcement Responsibilities
+
+Project maintainers are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
+
+Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
+
+## Scope
+
+This Code of Conduct applies within all community spaces, including:
+
+- GitHub repository (issues, pull requests, discussions)
+- Project communication channels
+- Official project social media accounts
+- Project events and meetups
+
+This Code of Conduct also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official email address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
+
+## Reporting Violations
+
+Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the project team at:
+
+- **GitHub Issues** (for public, non-sensitive violations)
+- **Email:** [email protected] (for private reports)
+- **GitHub Security Advisories** (for security-related concerns)
+
+All complaints will be reviewed and investigated promptly and fairly.
+
+All project maintainers are obligated to respect the privacy and security of the reporter of any incident.
+
+## Enforcement Guidelines
+
+Project maintainers will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
+
+### 1. Correction
+
+**Community Impact:** Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
+
+**Consequence:** A private, written warning from project maintainers, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
+
+### 2. Warning
+
+**Community Impact:** A violation through a single incident or series of actions.
+
+**Consequence:** A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
+
+### 3. Temporary Ban
+
+**Community Impact:** A serious violation of community standards, including sustained inappropriate behavior.
+
+**Consequence:** A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
+
+### 4. Permanent Ban
+
+**Community Impact:** Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
+
+**Consequence:** A permanent ban from any sort of public interaction within the community.
+
+## Technical Conduct
+
+In addition to general community standards, we expect technical contributions to adhere to:
+
+### Code Quality
+- Follow the coding standards outlined in [CONTRIBUTING.md](CONTRIBUTING.md)
+- Write clear, maintainable code with appropriate comments
+- Test your changes thoroughly before submitting
+
+### Security
+- Report security vulnerabilities privately (see [SECURITY.md](SECURITY.md))
+- Do not publicly disclose security issues before they are addressed
+- Do not include malicious code or backdoors
+
+### Intellectual Property
+- Respect software licenses and copyright
+- Do not submit copyrighted code without proper attribution
+- Ensure you have the right to contribute the code you submit
+
+### Pull Requests and Issues
+- Create GitHub issues before submitting PRs for new features or bug fixes
+- Provide clear descriptions and context
+- Be responsive to feedback and questions
+- Respect maintainers' decisions on feature inclusion
+
+## Attribution
+
+This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html](https://www.contributor-covenant.org/version/2/1/code_of_conduct.html).
+
+Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
+
+For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq](https://www.contributor-covenant.org/faq).
+
+## Contact
+
+For questions about this Code of Conduct, please:
+- Open a discussion in [GitHub Discussions](https://github.com/InterceptSuite/ProxyBridge/discussions)
+- Contact the project maintainers via [GitHub Issues](https://github.com/InterceptSuite/ProxyBridge/issues)
+
+---
+
+**Last Updated:** January 2026
+
+Thank you for helping make ProxyBridge a welcoming and inclusive community! 🀝
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..2c989af
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,575 @@
+# Contributing to ProxyBridge
+
+Thank you for your interest in contributing to ProxyBridge! We welcome contributions from the community to help make this project better.
+
+## Table of Contents
+
+- [Code of Conduct](#code-of-conduct)
+- [How Can I Contribute?](#how-can-i-contribute)
+- [Development Setup](#development-setup)
+- [Pull Request Process](#pull-request-process)
+- [Coding Standards](#coding-standards)
+- [Reporting Bugs](#reporting-bugs)
+- [Suggesting Features](#suggesting-features)
+
+## Code of Conduct
+
+This project and everyone participating in it is governed by our commitment to fostering an open and welcoming environment. We pledge to make participation in our project a harassment-free experience for everyone.
+
+### Our Standards
+
+- Be respectful and inclusive
+- Accept constructive criticism gracefully
+- Focus on what is best for the community
+- Show empathy towards other community members
+
+## How Can I Contribute?
+
+### Reporting Bugs
+
+Before creating bug reports, please check existing issues to avoid duplicates. When creating a bug report, include:
+
+- **Clear title and description**
+- **Steps to reproduce** the issue
+- **Expected behavior** vs **actual behavior**
+- **Screenshots** if applicable
+- **Environment details**:
+ - OS version (Windows 10/11, macOS version)
+ - ProxyBridge version
+ - Proxy server type (SOCKS5/HTTP)
+
+### Suggesting Features
+
+Feature suggestions are welcome! Please provide:
+
+- **Clear use case** - explain the problem you're trying to solve
+- **Proposed solution** - describe how the feature would work
+- **Alternatives considered** - what other solutions did you think about?
+- **Additional context** - mockups, examples, etc.
+
+### Pull Requests
+
+**IMPORTANT: Before Creating a Pull Request**
+
+1. **Create a GitHub Issue First**
+ - If you want to fix a bug or add a new feature, **create a GitHub issue first**
+ - This allows us to track and confirm whether:
+ - The feature is already implemented in our development branch
+ - We plan to include that feature (some features may not align with project goals)
+ - Your pull request will be accepted before you invest time coding
+ - If a GitHub issue already exists for the bug/feature you want to work on:
+ - Comment on the existing issue mentioning you plan to fix it
+ - **Do NOT create a duplicate issue**
+
+2. **Fork the `dev` Branch**
+ - **Always fork and create pull requests against the `dev` branch**
+ - **NEVER create pull requests against the `master` branch**
+ - The `master` branch is only updated with new releases
+ - All development work happens in the `dev` branch
+ - Pull requests to `master` will be **automatically rejected**
+
+3. **macOS Code Changes - Apple Developer Account Required**
+ - If you are making changes to macOS code, you **MUST**:
+ - Have a valid Apple Developer account ($99/year)
+ - Have tested your code changes and verified they work as expected
+ - Have proper code signing configured (see Apple Signing section below)
+ - **Pull requests with untested macOS code will NOT be merged**
+ - If you don't have an Apple Developer account and cannot test your changes, your PR will be rejected
+
+**Standard Pull Request Process:**
+
+1. Fork the repository (`dev` branch)
+2. Create a feature branch (`git checkout -b feature/amazing-feature`)
+3. Make your changes
+4. Test thoroughly
+5. Commit with clear messages (`git commit -m 'Add amazing feature'`)
+6. Push to your fork (`git push origin feature/amazing-feature`)
+7. Open a Pull Request to the `dev` branch
+
+## Development Setup
+
+### Windows
+
+**Prerequisites:**
+- Visual Studio 2022 or later (with C++ tools)
+- .NET 10.0 SDK
+- PowerShell 5.1 or later
+- Git
+- **WinDivert 2.2.2-A** - Download from: https://www.reqrypt.org/windivert.html
+- **NSIS** (optional, for building installer) - Download from: https://nsis.sourceforge.io/
+ - **EnVar Plugin** (required for NSIS) - Download from: https://nsis.sourceforge.io/EnVar_plug-in
+ - Install EnVar plugin to: `C:\Program Files (x86)\NSIS\Plugins\`
+ - The installer uses EnVar to add ProxyBridge to system PATH
+
+**WinDivert Setup:**
+1. Download WinDivert 2.2.2-A from the official website
+2. Extract to `C:\WinDivert-2.2.2-A\` (default path used by compile script)
+3. Or extract to a different location and update the path in `compile.ps1`:
+ ```powershell
+ $WinDivertPath = "C:\Your\Custom\Path\WinDivert-2.2.2-A"
+ ```
+
+**Required WinDivert Files:**
+- `WinDivert-2.2.2-A\include\windivert.h` (header file)
+- `WinDivert-2.2.2-A\x64\WinDivert.lib` (import library)
+- `WinDivert-2.2.2-A\x64\WinDivert.dll` (runtime library)
+- `WinDivert-2.2.2-A\x64\WinDivert64.sys` (kernel driver)
+- `WinDivert-2.2.2-A\x64\WinDivert32.sys` (32-bit driver)
+
+**Setup:**
+```powershell
+# Clone the repository (dev branch)
+git clone -b dev https://github.com/InterceptSuite/ProxyBridge.git
+cd ProxyBridge/Windows
+
+# Verify WinDivert is installed
+Test-Path C:\WinDivert-2.2.2-A\include\windivert.h
+
+# Build the project (auto-detects MSVC or GCC)
+.\compile.ps1
+
+# Or specify compiler explicitly
+.\compile.ps1 -Compiler msvc # Recommended
+.\compile.ps1 -Compiler gcc # Use MinGW-w64
+
+# Build without code signing
+.\compile.ps1 -NoSign
+```
+
+**What compile.ps1 Does:**
+1. Compiles `ProxyBridgeCore.dll` from C source code (using MSVC or GCC)
+2. Copies WinDivert runtime files (`WinDivert.dll`, `WinDivert64.sys`, `WinDivert32.sys`)
+3. Publishes GUI app (`ProxyBridge.exe`) with .NET single-file deployment
+4. Publishes CLI app (`ProxyBridge_CLI.exe`) as single executable
+5. Optionally signs all binaries (requires code signing certificate)
+6. Builds NSIS installer (`ProxyBridge-Setup-3.1.0.exe`) if NSIS is installed
+
+**Output:**
+All compiled files are placed in `Windows/output/` directory:
+- `ProxyBridgeCore.dll` - Native C library
+- `ProxyBridge.exe` - GUI application
+- `ProxyBridge_CLI.exe` - CLI application
+- `WinDivert.dll`, `WinDivert64.sys` - WinDivert files
+- `ProxyBridge-Setup-3.1.0.exe` - Installer (if NSIS installed)
+- Additional .NET runtime DLLs
+
+**Project Structure:**
+- `Windows/src/` - C library core (ProxyBridge.c, ProxyBridge.h)
+ - `ProxyBridge.c` - Main packet interception logic
+ - Uses WinDivert for kernel-level packet capture
+- `Windows/gui/` - Avalonia GUI (.NET 10.0)
+ - GUI application using Avalonia UI framework
+- `Windows/cli/` - Command-line interface (.NET 10.0)
+ - CLI application for headless operation
+- `Windows/installer/` - NSIS installer script
+ - `ProxyBridge.nsi` - Installer configuration
+- `Windows/compile.ps1` - Build script
+- `Windows/output/` - Compiled binaries (created by compile.ps1)
+
+### macOS
+
+**Prerequisites:**
+- Xcode 15.0 or later
+- macOS 13.0 (Ventura) or later
+- Swift 5.9+
+- Git
+- **Valid Apple Developer Account** (required for code signing)
+- **Provisioning Profiles** installed on your system
+
+**Apple Developer Account & Code Signing:**
+
+macOS development requires a valid Apple Developer account with proper signing configuration:
+
+1. **Apple Developer Account:**
+ - Sign up at: https://developer.apple.com/programs/
+ - Cost: $99/year (required for System Extension development)
+ - You need this to create Provisioning Profiles and sign the app
+
+2. **Create Provisioning Profiles:**
+ - Log in to Apple Developer Portal: https://developer.apple.com/account
+ - Create two Provisioning Profiles:
+ - **ProxyBridge Prod** - for the main GUI app
+ - **ProxyBridge Extension Prod** - for the Network Extension
+ - Download and install both profiles on your system (double-click to install)
+
+3. **Configure Xcode Signing:**
+
+ The Xcode project uses configuration files to store signing details:
+
+ **File 1: `proxybridge-app.xcconfig`** (GUI app configuration)
+ ```plaintext
+ // Update these values with YOUR details:
+ DEVELOPMENT_TEAM = YOUR_TEAM_ID // e.g., L12345ABCD
+ PROVISIONING_PROFILE_SPECIFIER = ProxyBridge Prod // Your provisioning profile name
+ ```
+
+ **File 2: `proxybridge-ext.xcconfig`** (Network Extension configuration)
+ ```plaintext
+ // Update these values with YOUR details:
+ DEVELOPMENT_TEAM = YOUR_TEAM_ID // e.g., L12345ABCD
+ PROVISIONING_PROFILE_SPECIFIER = ProxyBridge Extension Prod // Your extension profile name
+ ```
+
+ **How to find your DEVELOPMENT_TEAM ID:**
+ - Open Xcode
+ - Go to Xcode β†’ Settings β†’ Accounts
+ - Select your Apple ID
+ - Click "Manage Certificates"
+ - Your Team ID is shown next to your team name
+
+4. **Apply Configuration Files in Xcode:**
+
+ After editing the `.xcconfig` files with your details:
+
+ ```
+ Step 1: Open ProxyBridge.xcodeproj in Xcode
+
+ Step 2: Select the ProxyBridge project in the navigator
+
+ Step 3: In the main editor, select "ProxyBridge" project (not target)
+
+ Step 4: Go to the "Info" tab
+
+ Step 5: Under "Configurations", expand each configuration:
+ - Debug
+ - Release
+
+ Step 6: For each configuration:
+ - For "ProxyBridge" target β†’ Select "proxybridge-app"
+ - For "extension" target β†’ Select "proxybridge-ext"
+
+ Step 7: Clean build folder (Product β†’ Clean Build Folder)
+
+ Step 8: Build the project (⌘B)
+ ```
+
+**Setup:**
+```bash
+# Clone the repository (dev branch)
+git clone -b dev https://github.com/InterceptSuite/ProxyBridge.git
+cd ProxyBridge/MacOS/ProxyBridge
+
+# Edit signing configuration files with your Apple Developer details
+# proxybridge-app.xcconfig - for main app
+# proxybridge-ext.xcconfig - for network extension
+
+# Open in Xcode and configure signing (see steps above)
+open ProxyBridge.xcodeproj
+```
+
+**Building the Application:**
+
+**⚠️ IMPORTANT: Network Extension will NOT work with Debug builds!**
+
+You **MUST** create a **Release build** for the Network Extension to function properly.
+
+**Step-by-Step Build Process:**
+
+1. **Configure Signing** (see "Apply Configuration Files in Xcode" above)
+
+2. **Create Archive (Release Build):**
+ ```
+ In Xcode:
+ - Select "ProxyBridge" scheme
+ - Go to: Product β†’ Archive
+ - Wait for archive to complete
+ ```
+
+3. **Export the App:**
+ ```
+ After archive completes:
+ - Xcode Organizer window will open automatically
+ - Select your archive
+ - Click "Distribute App"
+ - Choose "Developer ID" (for distribution outside App Store)
+ - Select "Export"
+ - Choose export location: MacOS/ProxyBridge/output/
+ - Click "Export"
+ ```
+
+ This will create a **signed and notarized** `ProxyBridge.app` in the output folder.
+
+4. **Create PKG Installer (Optional):**
+ ```bash
+ # The build.sh script creates a PKG installer from the .app
+ # It does NOT build the .app - you must export it from Xcode first
+
+ cd MacOS/ProxyBridge
+
+ # Verify ProxyBridge.app exists in output/
+ ls -la output/ProxyBridge.app
+
+ # Create PKG installer
+ ./build.sh
+ ```
+
+ **What build.sh does:**
+ - Checks for `output/ProxyBridge.app` (exits if not found)
+ - Creates PKG installer: `output/ProxyBridge-v3.1-Universal-Installer.pkg`
+ - Optionally signs and notarizes the PKG (requires .env file with credentials)
+
+**Output:**
+- `MacOS/ProxyBridge/output/ProxyBridge.app` - Release build (from Xcode Archive)
+- `MacOS/ProxyBridge/output/ProxyBridge-v3.1-Universal-Installer.pkg` - PKG installer (from build.sh)
+
+**Project Structure:**
+- `MacOS/ProxyBridge/ProxyBridge/` - SwiftUI main app
+- `MacOS/ProxyBridge/extension/` - Network Extension provider
+- `MacOS/ProxyBridge/proxybridge-app.xcconfig` - App signing configuration
+- `MacOS/ProxyBridge/proxybridge-ext.xcconfig` - Extension signing configuration
+- `MacOS/ProxyBridge/build.sh` - PKG installer creation script
+- `MacOS/ProxyBridge/output/` - Exported .app and PKG installer
+
+## Pull Request Process
+
+1. **Update documentation** - if your changes affect user-facing features
+2. **Add tests** - for new functionality when applicable
+3. **Follow coding standards** - see below
+4. **Update CHANGELOG** - add a note about your changes
+5. **One feature per PR** - keep pull requests focused
+6. **Sign your commits** - use `git commit -s`
+
+### PR Checklist
+
+- [ ] Code builds without errors
+- [ ] All tests pass
+- [ ] Documentation updated
+- [ ] No merge conflicts
+- [ ] Commit messages are clear
+- [ ] Code follows project style
+
+## Coding Standards
+
+All code submissions must follow these standards and optimization principles.
+
+### AI-Generated Code
+
+We **accept and welcome** code written with AI assistance (such as Claude, GitHub Copilot, or other AI coding tools), provided it meets our quality and optimization standards.
+
+**Requirements for AI-Generated Code:**
+
+1. **Code Quality Standards**
+ - Code must be well-written, optimized, and follow project coding standards
+ - Follow the same review process as manually written code
+ - Must be thoroughly tested and verified before submission
+
+2. **Optimization is Critical**
+ - We take code optimization **very seriously**
+ - All code must be optimized for performance and clarity
+ - Contributors are responsible for understanding and optimizing AI-generated code
+
+3. **Contributor Responsibility**
+ - **Understand what the code does** - Don't blindly submit AI-generated code
+ - **Review and optimize** - If code seems verbose or inefficient, refactor it
+ - **Question verbosity** - If you feel the code is too large or can be written better, optimize it
+ - **Benchmark when needed** - For performance-critical code, verify optimization claims
+
+**Our Two Optimization Priorities:**
+
+1. **Performance First**
+ - Code must be optimized for best performance
+ - Choose algorithms and data structures wisely
+ - Minimize memory allocations, CPU cycles, and I/O operations
+ - Profile performance-critical sections
+
+2. **Simplicity and Brevity**
+ - Prefer clear, concise code over verbose implementations
+ - **If 10 lines can do what 20-30 lines do, use 10 lines**
+ - Even without performance difference, we prefer shorter, clearer code
+ - Avoid unnecessary abstractions, boilerplate, or redundant code
+ - Write code that is easy to read, understand, and maintain
+
+**Examples:**
+
+βœ… **Good - Optimized and concise:**
+```c
+// Fast hash lookup, minimal code
+if (connection_table[hash] && connection_table[hash]->port == port) {
+ return connection_table[hash];
+}
+```
+
+❌ **Bad - Verbose, unnecessary:**
+```c
+// Same functionality but unnecessarily verbose
+ConnectionInfo* info = connection_table[hash];
+if (info != NULL) {
+ if (info->port == port) {
+ return info;
+ }
+}
+return NULL;
+```
+
+**Before Submitting AI-Generated Code:**
+
+- [ ] I understand what this code does and how it works
+- [ ] I have reviewed it for optimization opportunities
+- [ ] I have removed unnecessary code, variables, or abstractions
+- [ ] I have verified it follows project coding standards
+- [ ] I have tested it thoroughly
+- [ ] Performance-critical code has been profiled/benchmarked
+- [ ] Code is as simple and concise as possible while remaining clear
+
+**Remember:** Using AI tools is encouraged, but you are responsible for the quality and optimization of the code you submit. AI-generated code that is verbose, inefficient, or poorly optimized will be rejected.
+
+### C/C++ (Windows Core)
+
+```c
+// Use clear, descriptive names
+static bool check_proxy_rules(const char *process, uint32_t dest_ip,
+ uint16_t dest_port, uint8_t proto)
+{
+ // Comments for complex logic
+ if (!process || !dest_ip) return false;
+
+ // Use consistent formatting
+ for (int i = 0; i < rule_count; i++) {
+ if (match_rule(&rules[i], process, dest_ip, dest_port, proto)) {
+ return rules[i].action;
+ }
+ }
+
+ return ACTION_DIRECT;
+}
+```
+
+**Standards:**
+- Use 4 spaces for indentation (no tabs)
+- Maximum line length: 100 characters
+- Always use braces for if/while/for blocks
+- Declare variables close to usage
+- Check for NULL/error conditions
+- Free allocated memory
+- Use meaningful variable names
+
+### C# (Windows GUI/CLI)
+
+```csharp
+// Follow .NET naming conventions
+public class ProxySettingsViewModel : ViewModelBase
+{
+ private string _proxyHost = "127.0.0.1";
+
+ // Properties use PascalCase
+ public string ProxyHost
+ {
+ get => _proxyHost;
+ set => this.RaiseAndSetIfChanged(ref _proxyHost, value);
+ }
+
+ // Methods use PascalCase
+ public async Task SaveSettingsAsync()
+ {
+ // Use meaningful names
+ var settings = new ProxySettings
+ {
+ ProxyHost = ProxyHost,
+ ProxyPort = ProxyPort
+ };
+
+ await _configManager.SaveAsync(settings);
+ }
+}
+```
+
+**Standards:**
+- Use 4 spaces for indentation
+- Follow C# naming conventions (PascalCase for public, camelCase for private)
+- Use `async/await` for asynchronous operations
+- Handle exceptions appropriately
+- Use `using` statements for IDisposable
+- Add XML documentation comments for public APIs
+
+### Swift (macOS)
+
+```swift
+// Use Swift naming conventions
+class ProxyBridgeViewModel: ObservableObject {
+ @Published var proxyHost: String = "127.0.0.1"
+ @Published var proxyPort: String = "1080"
+
+ // Use descriptive parameter names
+ func saveProxySettings(host: String, port: UInt16) async throws {
+ // Guard for early returns
+ guard !host.isEmpty else {
+ throw ProxyError.invalidHost
+ }
+
+ // Use clear, self-documenting code
+ let settings = ProxySettings(host: host, port: port)
+ try await configManager.save(settings)
+ }
+}
+```
+
+**Standards:**
+- Use 4 spaces for indentation
+- Follow Swift naming conventions (camelCase)
+- Use `guard` for early returns
+- Prefer `let` over `var` when possible
+- Use optionals appropriately
+- Add documentation comments for public APIs
+
+
+### Manual Testing Checklist
+
+- [ ] Proxy connection works (SOCKS5)
+- [ ] Proxy connection works (HTTP)
+- [ ] Rules are applied correctly
+- [ ] Direct connections bypass proxy
+- [ ] Blocked connections are denied
+- [ ] TCP traffic routes correctly
+- [ ] UDP traffic routes correctly
+- [ ] GUI updates reflect changes
+- [ ] Settings persist after restart
+- [ ] No memory leaks
+- [ ] Clean shutdown/cleanup
+
+## Commit Messages
+
+Use clear, descriptive commit messages:
+
+```
+Good:
+βœ… Fix memory leak in connection table cleanup
+βœ… Add support for wildcard IP matching
+βœ… Update GUI to show connection count
+
+Bad:
+❌ fix bug
+❌ update
+❌ wip
+```
+
+### Format:
+```
+<type>: <subject>
+
+<body (optional)>
+
+<footer (optional)>
+```
+
+**Types:**
+- `feat:` - New feature
+- `fix:` - Bug fix
+- `docs:` - Documentation changes
+- `style:` - Code formatting (no functional changes)
+- `refactor:` - Code restructuring
+- `test:` - Adding/updating tests
+- `chore:` - Maintenance tasks
+
+## Questions?
+
+- Open an issue for discussion
+- Check existing issues and discussions
+- Contact: [GitHub Issues](https://github.com/InterceptSuite/ProxyBridge/issues)
+
+## License
+
+By contributing to ProxyBridge, you agree that your contributions will be licensed under the MIT License.
+
+---
+
+Thank you for contributing to ProxyBridge! πŸŽ‰
diff --git a/MacOS/ProxyBridge/ProxyBridge.xcodeproj/project.pbxproj b/MacOS/ProxyBridge/ProxyBridge.xcodeproj/project.pbxproj
index babf263..0c64807 100644
--- a/MacOS/ProxyBridge/ProxyBridge.xcodeproj/project.pbxproj
+++ b/MacOS/ProxyBridge/ProxyBridge.xcodeproj/project.pbxproj
@@ -410,7 +410,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
- MARKETING_VERSION = 4.0;
+ MARKETING_VERSION = 3.1;
PRODUCT_BUNDLE_IDENTIFIER = com.interceptsuite.ProxyBridge;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -455,7 +455,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
- MARKETING_VERSION = 4.0;
+ MARKETING_VERSION = 3.1;
REGISTER_APP_GROUPS = YES;
STRING_CATALOG_GENERATE_SYMBOLS = YES;
SWIFT_APPROACHABLE_CONCURRENCY = YES;
@@ -495,7 +495,7 @@
"@executable_path/../Frameworks",
"@executable_path/../../../../Frameworks",
);
- MARKETING_VERSION = 4.0;
+ MARKETING_VERSION = 3.1;
PRODUCT_BUNDLE_IDENTIFIER = com.interceptsuite.ProxyBridge.extension;
PRODUCT_NAME = "$(inherited)";
REGISTER_APP_GROUPS = YES;
@@ -534,7 +534,7 @@
"@executable_path/../Frameworks",
"@executable_path/../../../../Frameworks",
);
- MARKETING_VERSION = 4.0;
+ MARKETING_VERSION = 3.1;
REGISTER_APP_GROUPS = YES;
SKIP_INSTALL = YES;
STRING_CATALOG_GENERATE_SYMBOLS = YES;
diff --git a/MacOS/ProxyBridge/ProxyBridge/AboutView.swift b/MacOS/ProxyBridge/ProxyBridge/AboutView.swift
index 652f250..01775f4 100644
--- a/MacOS/ProxyBridge/ProxyBridge/AboutView.swift
+++ b/MacOS/ProxyBridge/ProxyBridge/AboutView.swift
@@ -2,28 +2,28 @@ import SwiftUI
struct AboutView: View {
@Environment(\.dismiss) var dismiss
-
+
var body: some View {
VStack(spacing: 20) {
Text("ProxyBridge")
.font(.system(size: 28, weight: .bold))
.foregroundColor(.accentColor)
-
- Text("Version 4.0")
+
+ Text("Version 3.1")
.font(.system(size: 14))
.foregroundColor(.secondary)
-
+
Text("Universal proxy client for macOS applications")
.font(.system(size: 14))
.foregroundColor(.secondary)
.multilineTextAlignment(.center)
.padding(.bottom, 8)
-
+
Text("Author: Sourav Kalal / InterceptSuite")
.font(.system(size: 13))
.foregroundColor(.secondary)
.padding(.top, 4)
-
+
VStack(spacing: 12) {
HStack {
Text("Website:")
@@ -31,7 +31,7 @@ struct AboutView: View {
Link("interceptsuite.com", destination: URL(string: "https://interceptsuite.com")!)
.foregroundColor(.accentColor)
}
-
+
HStack {
Text("GitHub:")
.foregroundColor(.secondary)
@@ -40,12 +40,12 @@ struct AboutView: View {
}
}
.font(.system(size: 13))
-
+
Text("License: MIT")
.font(.system(size: 13))
.foregroundColor(.secondary)
.padding(.top, 8)
-
+
Button("Close") {
dismiss()
}
diff --git a/MacOS/ProxyBridge/ProxyBridge/UpdateService.swift b/MacOS/ProxyBridge/ProxyBridge/UpdateService.swift
index a0a0d68..529937b 100644
--- a/MacOS/ProxyBridge/ProxyBridge/UpdateService.swift
+++ b/MacOS/ProxyBridge/ProxyBridge/UpdateService.swift
@@ -7,7 +7,7 @@ struct GitHubRelease: Codable {
let prerelease: Bool
let publishedAt: String
let assets: [GitHubAsset]
-
+
enum CodingKeys: String, CodingKey {
case tagName = "tag_name"
case name
@@ -21,7 +21,7 @@ struct GitHubAsset: Codable {
let name: String
let browserDownloadUrl: String
let size: Int64
-
+
enum CodingKeys: String, CodingKey {
case name
case browserDownloadUrl = "browser_download_url"
@@ -40,29 +40,29 @@ struct VersionInfo {
class UpdateService {
private let githubApiUrl = "https://api.github.com/repos/InterceptSuite/ProxyBridge/releases/latest"
-
+
func checkForUpdates() async -> VersionInfo {
do {
guard let url = URL(string: githubApiUrl) else {
return errorVersion("Invalid API URL")
}
-
+
var request = URLRequest(url: url)
request.setValue("ProxyBridge-UpdateChecker", forHTTPHeaderField: "User-Agent")
-
+
let (data, _) = try await URLSession.shared.data(for: request)
let release = try JSONDecoder().decode(GitHubRelease.self, from: data)
-
+
let currentVersion = getCurrentVersion()
let latestVersion = parseVersion(release.tagName)
-
+
// Find the PKG installer in assets
let pkgAsset = release.assets.first { asset in
asset.name.lowercased().hasSuffix(".pkg") &&
(asset.name.lowercased().contains("proxybridge") ||
asset.name.lowercased().contains("installer"))
}
-
+
return VersionInfo(
currentVersion: currentVersion,
latestVersion: release.tagName,
@@ -75,34 +75,34 @@ class UpdateService {
return errorVersion("Failed to check for updates: \(error.localizedDescription)")
}
}
-
+
func downloadUpdate(from urlString: String, fileName: String, progress: @escaping (Double) -> Void) async throws -> URL {
guard let url = URL(string: urlString) else {
throw NSError(domain: "UpdateService", code: -1, userInfo: [NSLocalizedDescriptionKey: "Invalid download URL"])
}
-
+
let (asyncBytes, response) = try await URLSession.shared.bytes(from: url)
-
+
guard let httpResponse = response as? HTTPURLResponse,
httpResponse.statusCode == 200 else {
throw NSError(domain: "UpdateService", code: -1, userInfo: [NSLocalizedDescriptionKey: "Download failed"])
}
-
+
let totalBytes = response.expectedContentLength
let tempDir = FileManager.default.temporaryDirectory
let fileURL = tempDir.appendingPathComponent(fileName)
-
+
// Remove existing file if any
try? FileManager.default.removeItem(at: fileURL)
-
+
var downloadedBytes: Int64 = 0
let data = NSMutableData()
-
+
for try await byte in asyncBytes {
var byteValue = byte
data.append(&byteValue, length: 1)
downloadedBytes += 1
-
+
if totalBytes > 0 {
let progressValue = Double(downloadedBytes) / Double(totalBytes)
await MainActor.run {
@@ -110,37 +110,37 @@ class UpdateService {
}
}
}
-
+
try data.write(to: fileURL)
return fileURL
}
-
+
func installUpdateAndQuit(installerPath: URL) {
// Open the PKG installer
NSWorkspace.shared.open(installerPath)
-
+
// Give the installer a moment to start, then quit
DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) {
NSApplication.shared.terminate(nil)
}
}
-
+
private func getCurrentVersion() -> String {
if let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String {
return "v\(version)"
}
- return "v4.0"
+ return "v3.1"
}
-
+
private func parseVersion(_ tagName: String) -> String {
return tagName.hasPrefix("v") ? String(tagName.dropFirst()) : tagName
}
-
+
private func isNewerVersion(_ latest: String, _ current: String) -> Bool {
let latestComponents = latest.split(separator: ".").compactMap { Int($0) }
let currentVersionString = current.hasPrefix("v") ? String(current.dropFirst()) : current
let currentComponents = currentVersionString.split(separator: ".").compactMap { Int($0) }
-
+
for i in 0..<min(latestComponents.count, currentComponents.count) {
if latestComponents[i] > currentComponents[i] {
return true
@@ -148,10 +148,10 @@ class UpdateService {
return false
}
}
-
+
return latestComponents.count > currentComponents.count
}
-
+
private func errorVersion(_ message: String) -> VersionInfo {
return VersionInfo(
currentVersion: getCurrentVersion(),
diff --git a/MacOS/ProxyBridge/build.sh b/MacOS/ProxyBridge/build.sh
index 9b81781..ee6d583 100755
--- a/MacOS/ProxyBridge/build.sh
+++ b/MacOS/ProxyBridge/build.sh
@@ -3,7 +3,7 @@
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
-VERSION="4.0"
+VERSION="3.1"
if [ -f "$SCRIPT_DIR/.env" ]; then
source "$SCRIPT_DIR/.env"
@@ -26,7 +26,7 @@ echo "Creating installer package..."
pkgbuild \
--root build/component \
--identifier com.interceptsuite.ProxyBridge \
- --version 4.0.0 \
+ --version 3.1.0 \
--install-location /Applications \
build/temp.pkg
@@ -45,7 +45,7 @@ cat > build/distribution.xml << 'EOF'
<choice id="com.interceptsuite.ProxyBridge" visible="false">
<pkg-ref id="com.interceptsuite.ProxyBridge"/>
</choice>
- <pkg-ref id="com.interceptsuite.ProxyBridge" version="4.0.0" onConclusion="none">temp.pkg</pkg-ref>
+ <pkg-ref id="com.interceptsuite.ProxyBridge" version="3.1.0" onConclusion="none">temp.pkg</pkg-ref>
</installer-gui-script>
EOF
@@ -61,16 +61,16 @@ if [ -n "$APPLE_ID" ] && [ -n "$APPLE_APP_PASSWORD" ] && [ -n "$SIGNING_IDENTITY
productsign --sign "$SIGNING_IDENTITY" \
output/ProxyBridge-v$VERSION-Universal-Installer.pkg \
output/ProxyBridge-v$VERSION-Universal-Installer-signed.pkg
-
+
mv output/ProxyBridge-v$VERSION-Universal-Installer-signed.pkg output/ProxyBridge-v$VERSION-Universal-Installer.pkg
-
+
echo "Notarizing installer..."
xcrun notarytool submit output/ProxyBridge-v$VERSION-Universal-Installer.pkg \
--apple-id "$APPLE_ID" \
--team-id "$TEAM_ID" \
--password "$APPLE_APP_PASSWORD" \
--wait
-
+
echo "Stapling notarization ticket..."
xcrun stapler staple output/ProxyBridge-v$VERSION-Universal-Installer.pkg
echo "Installer signed and notarized"
diff --git a/README.md b/README.md
index 33692d7..8441e85 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
# ProxyBridge
<p align="center">
- <img src="img/logo.png" alt="ProxyBridge Logo" width="200"/>
+ <img src="img/logo.png" alt="ProxyBridge Logo" />
</p>
ProxyBridge is a lightweight, open-source universal proxy client (Proxifier alternative) that provides transparent proxy routing for applications on **Windows** and **macOS**. It redirects TCP and UDP traffic from specific processes through SOCKS5 or HTTP proxies, with the ability to route, block, or allow traffic on a per-application basis. ProxyBridge fully supports both TCP and UDP proxy routing and works at the system level, making it compatible with proxy-unaware applications without requiring any configuration changes.
diff --git a/SECURITY.md b/SECURITY.md
new file mode 100644
index 0000000..0fb265e
--- /dev/null
+++ b/SECURITY.md
@@ -0,0 +1,236 @@
+# Security Policy
+
+## Supported Versions
+
+We actively support the following versions of ProxyBridge with security updates:
+
+| Version | Supported | Platform |
+| ------- | ------------------ | -------- |
+| 3.1.x | :white_check_mark: | Windows, macOS |
+| 3.0.x | :x: | Windows, macOS |
+| < 3.0 | :x: | All |
+
+**Note:** Only the latest minor version (3.1.x) receives security updates. Please upgrade to the latest version to ensure you have all security fixes.
+
+## Reporting a Vulnerability
+
+We take the security of ProxyBridge seriously. If you discover a security vulnerability, please follow these steps:
+
+### πŸ”’ Please DO NOT:
+
+- Open a public GitHub issue for security vulnerabilities
+- Disclose the vulnerability publicly before it has been addressed
+- Share the vulnerability with third parties
+
+### βœ… Please DO:
+
+1. **Report privately via GitHub Security Advisories:**
+ - Go to: https://github.com/InterceptSuite/ProxyBridge/security/advisories
+ - Click "Report a vulnerability"
+ - Fill in the details
+
+2. **Or email directly:**
+ - Email: [email protected] (if available)
+ - Subject: `[SECURITY] ProxyBridge Vulnerability Report`
+
+### What to Include
+
+Please provide as much information as possible:
+
+- **Vulnerability type** (e.g., privilege escalation, code injection, etc.)
+- **Affected versions** (e.g., 3.1.0, all versions, etc.)
+- **Platform** (Windows, macOS, or both)
+- **Step-by-step reproduction** instructions
+- **Proof of concept** or exploit code (if applicable)
+- **Impact assessment** - what can an attacker achieve?
+- **Suggested fix** (if you have one)
+
+### What to Expect
+
+- **Initial Response:** Within 48 hours
+- **Assessment:** Within 7 days we'll confirm the issue and severity
+- **Fix Timeline:**
+ - Critical: 7-14 days
+ - High: 14-30 days
+ - Medium: 30-60 days
+ - Low: Next release cycle
+- **Disclosure:** We'll coordinate with you on public disclosure timing
+- **Credit:** We'll acknowledge your contribution (unless you prefer to remain anonymous)
+
+## Security Considerations
+
+### ProxyBridge Security Model
+
+ProxyBridge is an **open-source project** and does not provide monetary rewards or bug bounty programs for vulnerability reports. Some vulnerabilities may be applicable for CVE assignments through standard disclosure processes.
+
+ProxyBridge operates with the following security considerations:
+
+#### Windows Architecture
+- **Three Components:**
+ - **ProxyBridgeCore.dll** - Native C library for packet interception (WinDivert-based)
+ - **ProxyBridge.exe** - Avalonia-based GUI application (.NET 10.0)
+ - **ProxyBridge_CLI.exe** - Command-line interface application (.NET 10.0)
+- **Requires Administrator privileges** to install and run WinDivert kernel driver
+- **Kernel-level packet interception** via WinDivert.sys driver
+- **Local TCP relay server** runs on port 34010 (127.0.0.1 only)
+- **Local UDP relay server** runs on port 34011 (127.0.0.1 only)
+- **No remote access** - relay servers bind to localhost only, not exposed to network
+- **Credential storage** - proxy credentials (username/password) stored in **plaintext** in `%APPDATA%\ProxyBridge\config.json`
+- **Configuration storage** - all rules and settings in JSON format at `%APPDATA%\ProxyBridge\config.json`
+
+#### macOS Architecture
+- **Two Components:**
+ - **ProxyBridge.app** - SwiftUI-based GUI application (sandboxed)
+ - **ProxyBridge Extension** - Network Extension (System Extension, runs with elevated privileges)
+- **Requires System Extension approval** via System Settings
+- **Network Extension runs as system daemon** - operates at network layer with elevated privileges
+- **App Sandbox** for main GUI application with limited permissions
+- **Network Extension Entitlements:**
+ - `com.apple.developer.networking.networkextension` (app-proxy-provider-systemextension)
+ - `com.apple.security.network.client` and `com.apple.security.network.server`
+ - `com.apple.security.application-groups` for inter-process communication
+- **Credential storage** - proxy credentials and configuration stored in **UserDefaults** (not Keychain)
+ - UserDefaults stored at: `~/Library/Containers/com.interceptsuite.ProxyBridge/Data/Library/Preferences/`
+ - **Not encrypted** - stored in plaintext plist format
+- **No remote access** - all configuration is local via IPC to System Extension
+
+### Known Limitations
+
+1. **Proxy Credentials - PLAINTEXT STORAGE:**
+ - **Windows:** Stored in **plaintext** in `%APPDATA%\ProxyBridge\config.json`
+ - Username and password visible to anyone with file access
+ - Readable by all processes running under the same user
+ - **macOS:** Stored in **plaintext** in UserDefaults plist files
+ - Located at: `~/Library/Containers/com.interceptsuite.ProxyBridge/Data/Library/Preferences/`
+ - Not using Keychain - credentials stored unencrypted
+
+2. **Local Relay Server (Windows):**
+ - **TCP relay on 127.0.0.1:34010** - handles proxied connections
+ - **UDP relay on 127.0.0.1:34011** - handles SOCKS5 UDP ASSOCIATE
+ - Only binds to localhost (not exposed to network)
+ - **Risk:** Local processes could potentially interact with relay servers
+
+3. **Process Privilege:**
+ - **Windows:** Requires Administrator to install/run WinDivert driver
+ - Core DLL runs with administrator privileges
+ - GUI/CLI apps run as administrator
+ - **macOS:** Network Extension runs as system daemon with elevated privileges
+ - Has broad network interception capabilities
+ - GUI app runs sandboxed with limited privileges
+ - **Impact:** Vulnerabilities in core components could lead to privilege escalation or system compromise
+4. **Local File Access:**
+ - Configuration files readable by all local administrators
+ - **Windows:** `%APPDATA%\ProxyBridge\` accessible to user and admins
+ - **macOS:** App Container accessible to user and admins
+
+5. **Third-party Dependencies:**
+ - **Windows:**
+ - WinDivert 2.x (kernel driver + userspace library) - trusted, open-source
+ - Avalonia UI 11.x framework
+ - .NET 10.0 runtime
+ - **macOS:**
+ - Apple NetworkExtension framework (system component)
+ - Swift standard library
+ - **Monitoring:** We track security advisories for all dependencies
+ - **Update Policy:** Dependencies are updated when security issues are published
+
+## Security Best Practices for Users
+
+### Installation
+
+1. **Download from official sources only:**
+ - βœ… GitHub Releases: https://github.com/InterceptSuite/ProxyBridge/releases
+ - βœ… Official website https://interceptsuite.com
+ - ❌ Third-party download sites
+
+2. **Verify signatures** (when available):
+ - Windows: Check code signing certificate
+ - macOS: Check notarization status
+
+
+
+## Vulnerability Disclosure Policy
+
+### Timeline
+
+1. **Day 0:** Vulnerability reported
+2. **Day 2:** Initial response and acknowledgment
+3. **Day 7:** Severity assessment completed
+4. **Day 14-60:** Fix developed and tested (depending on severity)
+5. **Release:** Security update published
+6. **+7 days:** Public disclosure (coordinated with reporter)
+
+### Credit Policy
+
+We believe in giving credit where it's due:
+
+- Security researchers will be credited in:
+ - Security advisory
+ - Release notes
+ - CHANGELOG.md
+ - GitHub Security Advisories
+
+- You may choose to:
+ - Be credited by name/handle
+ - Remain anonymous
+ - Include company/affiliation
+
+### Severity Levels
+
+| Severity | Description | Example |
+|----------|-------------|---------|
+| **Critical** | Remote code execution, privilege escalation, credential theft | Arbitrary code execution via crafted packet, kernel driver exploit, credential extraction from memory |
+| **High** | Authentication bypass, sensitive data exposure, DoS | Bypass process rules, config file exposure, relay server abuse, crash with system impact |
+| **Medium** | Information disclosure, local DoS, logic errors | Connection log information leak, application crash, rule matching bypass |
+| **Low** | Minor issues with limited security impact | UI rendering issue, non-security configuration bug, cosmetic issues |
+
+**Note:** This is an open-source project. We do not offer monetary rewards or bug bounty payments. However:
+- Security researchers will receive public credit (if desired)
+- Some vulnerabilities may qualify for CVE assignment
+- We coordinate responsible disclosure with reporters
+- Contributions that fix vulnerabilities are highly valued
+
+## Security Updates
+
+Security updates are distributed via:
+
+1. **GitHub Releases** - Primary distribution
+2. **GitHub Security Advisories** - Notification system
+3. **CHANGELOG.md** - Documented in release notes
+
+### How to Stay Updated
+
+- ⭐ **Star** the repository for notifications
+- πŸ‘οΈ **Watch** releases on GitHub
+- πŸ“§ Subscribe to GitHub Security Advisories
+- πŸ”” Enable update checks in ProxyBridge settings
+
+## Past Security Advisories
+
+Currently no published security advisories.
+
+When vulnerabilities are discovered and fixed, they will be listed here with:
+- CVE identifier (if applicable)
+- Severity rating
+- Affected versions
+- Fix version
+- Brief description
+
+## Contact
+
+For security concerns:
+- **Private:** GitHub Security Advisories
+- **General:** GitHub Issues (non-security bugs only)
+- **Project:** https://github.com/InterceptSuite/ProxyBridge
+
+## Acknowledgments
+
+We thank the security research community for helping keep ProxyBridge secure. Special thanks to:
+
+- *(Security researchers who responsibly disclose vulnerabilities will be listed here)*
+
+---
+
+**Last Updated:** January 2026
+
+Thank you for helping keep ProxyBridge and our users safe! πŸ›‘οΈ
diff --git a/Windows/README.md b/Windows/README.md
index 5008d38..6ae4ed4 100644
--- a/Windows/README.md
+++ b/Windows/README.md
@@ -209,7 +209,7 @@ ProxyBridge_CLI.exe -h
| |_) | '__/ _ \ \/ / | | | | _ \| '__| |/ _` |/ _` |/ _ \
| __/| | | (_) > <| |_| | | |_) | | | | (_| | (_| | __/
|_| |_| \___/_/\_\\__, | |____/|_| |_|\__,_|\__, |\___|
- |___/ |___/ V3.0.0
+ |___/ |___/ V3.1.0
Universal proxy client for Windows applications
diff --git a/Windows/cli/Program.cs b/Windows/cli/Program.cs
index de922f8..733a3d4 100644
--- a/Windows/cli/Program.cs
+++ b/Windows/cli/Program.cs
@@ -421,7 +421,7 @@ class Program
Console.WriteLine(" | |_) | '__/ _ \\ \\/ / | | | | _ \\| '__| |/ _` |/ _` |/ _ \\");
Console.WriteLine(" | __/| | | (_) > <| |_| | | |_) | | | | (_| | (_| | __/");
Console.WriteLine(" |_| |_| \\___/_/\\_\\\\__, | |____/|_| |_|\\__,_|\\__, |\\___|");
- var version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version?.ToString(3) ?? "4.0.0";
+ var version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version?.ToString(3) ?? "3.1.0";
Console.WriteLine($" |___/ |___/ V{version}");
Console.WriteLine();
Console.WriteLine(" Universal proxy client for Windows applications");
diff --git a/Windows/cli/ProxyBridge.CLI.csproj b/Windows/cli/ProxyBridge.CLI.csproj
index 983d6fe..4502e24 100644
--- a/Windows/cli/ProxyBridge.CLI.csproj
+++ b/Windows/cli/ProxyBridge.CLI.csproj
@@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AssemblyName>ProxyBridge_CLI</AssemblyName>
- <Version>4.0.0</Version>
+ <Version>3.1.0</Version>
<PublishAot>true</PublishAot>
<InvariantGlobalization>false</InvariantGlobalization>
<SelfContained>true</SelfContained>
diff --git a/Windows/compile.ps1 b/Windows/compile.ps1
index befe24f..ec3cfd4 100644
--- a/Windows/compile.ps1
+++ b/Windows/compile.ps1
@@ -296,7 +296,7 @@ if ($success) {
Pop-Location
if ($LASTEXITCODE -eq 0) {
Write-Host " Installer created successfully" -ForegroundColor Green
- $installerName = "ProxyBridge-Setup-4.0.0.exe"
+ $installerName = "ProxyBridge-Setup-3.1.0.exe"
if (Test-Path "installer\$installerName") {
Move-Item "installer\$installerName" -Destination $OutputDir -Force
Write-Host " Moved: $installerName -> $OutputDir\" -ForegroundColor Gray
diff --git a/Windows/gui/App.axaml.cs b/Windows/gui/App.axaml.cs
index f5cf384..599d032 100644
--- a/Windows/gui/App.axaml.cs
+++ b/Windows/gui/App.axaml.cs
@@ -15,7 +15,7 @@ public class App : Application
public static bool StartMinimized { get; set; }
private EventWaitHandle? _showWindowEvent;
private CancellationTokenSource? _eventListenerCts;
- private const string EventName = "Global\\ProxyBridge_ShowWindow_Event_v4.0";
+ private const string EventName = "Global\\ProxyBridge_ShowWindow_Event_v3.1";
public override void Initialize() => AvaloniaXamlLoader.Load(this);
diff --git a/Windows/gui/Program.cs b/Windows/gui/Program.cs
index a66774e..3d873bb 100644
--- a/Windows/gui/Program.cs
+++ b/Windows/gui/Program.cs
@@ -7,8 +7,8 @@ namespace ProxyBridge.GUI;
class Program
{
private static Mutex? _instanceMutex;
- private const string MutexName = "Global\\ProxyBridge_SingleInstance_Mutex_v4.0";
- private const string EventName = "Global\\ProxyBridge_ShowWindow_Event_v4.0";
+ private const string MutexName = "Global\\ProxyBridge_SingleInstance_Mutex_v3.1";
+ private const string EventName = "Global\\ProxyBridge_ShowWindow_Event_v3.1";
[STAThread]
public static void Main(string[] args)
diff --git a/Windows/gui/ProxyBridge.GUI.csproj b/Windows/gui/ProxyBridge.GUI.csproj
index 89c2a84..ace47c5 100644
--- a/Windows/gui/ProxyBridge.GUI.csproj
+++ b/Windows/gui/ProxyBridge.GUI.csproj
@@ -7,9 +7,9 @@
<ApplicationManifest>app.manifest</ApplicationManifest>
<AssemblyName>ProxyBridge</AssemblyName>
<RootNamespace>ProxyBridge.GUI</RootNamespace>
- <Version>4.0.0</Version>
- <AssemblyVersion>4.0.0</AssemblyVersion>
- <FileVersion>4.0.0</FileVersion>
+ <Version>3.1.0</Version>
+ <AssemblyVersion>3.1.0</AssemblyVersion>
+ <FileVersion>3.1.0</FileVersion>
<ApplicationIcon>Assets\logo.ico</ApplicationIcon>
<Company>InterceptSuite</Company>
<Product>ProxyBridge</Product>
diff --git a/Windows/gui/app.manifest b/Windows/gui/app.manifest
index 742084b..3b02a12 100644
--- a/Windows/gui/app.manifest
+++ b/Windows/gui/app.manifest
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
- version="3.0.0.0"
+ version="3.1.0.0"
processorArchitecture="*"
name="ProxyBridge"
type="win32"
diff --git a/Windows/installer/ProxyBridge.nsi b/Windows/installer/ProxyBridge.nsi
index e3a3704..1e9f3b2 100644
--- a/Windows/installer/ProxyBridge.nsi
+++ b/Windows/installer/ProxyBridge.nsi
@@ -1,5 +1,5 @@
!define PRODUCT_NAME "ProxyBridge"
-!define PRODUCT_VERSION "4.0.0"
+!define PRODUCT_VERSION "3.1.0"
!define PRODUCT_PUBLISHER "InterceptSuite"
!define PRODUCT_WEB_SITE "https://github.com/InterceptSuite/ProxyBridge"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
diff --git a/Windows/src/ProxyBridge.c b/Windows/src/ProxyBridge.c
index 230496c..1bf6899 100644
--- a/Windows/src/ProxyBridge.c
+++ b/Windows/src/ProxyBridge.c
@@ -16,7 +16,7 @@
#define LOCAL_PROXY_PORT 34010
#define LOCAL_UDP_RELAY_PORT 34011 // its running UDP port still make sure to not run on same port as TCP, opening same port and tcp and udp cause issue and handling port at relay server response injection
#define MAX_PROCESS_NAME 256
-#define VERSION "4.0.0"
+#define VERSION "3.1.0"
#define PID_CACHE_SIZE 1024
#define PID_CACHE_TTL_MS 1000
#define NUM_PACKET_THREADS 4