Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OB2-ProxyInjector

Automatically download proxy lists from remote APIs and inject them directly into the OpenBullet 2 database.

Features

  • Fetch proxies from multiple remote API endpoints
  • Supports HTTP, SOCKS4, and SOCKS5
  • Automatically imports proxies into the OpenBullet 2 database
  • Removes old proxies before inserting new ones
  • Creates missing Proxy Groups automatically
  • Fast SQLite transaction-based insertion
  • Removes duplicate proxies automatically
  • Supports unlimited proxy source URLs
  • Lightweight standalone executable
  • Written in Rust

How It Works

ProxyApi.txt
      │
      ▼
Download Proxy Lists
      │
      ▼
Extract IP:PORT
      │
      ▼
Remove Duplicates
      │
      ▼
Clear Existing Groups
      │
      ▼
Insert Into OpenBullet Database

Requirements

  • Windows
  • OpenBullet 2
  • Internet Connection

Installation

Download the latest release from the Releases page.

Extract the files into your OpenBullet directory so the following structure exists:

OpenBullet2/
│
├── UserData/
│   ├── OpenBullet.db
│   └── ProxyApi.txt
│
└── OB2-ProxyInjector.exe

Configuration

Create a file named:

UserData/ProxyApi.txt

Each line must follow this format:

TYPE|URL

Example:

HTTP|https://example.com/http.txt
SOCKS4|https://example.com/socks4.txt
SOCKS5|https://example.com/socks5.txt

Multiple sources are supported:

HTTP|https://provider1.com/http.txt
HTTP|https://provider2.com/http.txt

SOCKS4|https://provider.com/socks4.txt

SOCKS5|https://provider.com/socks5.txt
SOCKS5|https://provider2.com/list.txt

Supported Types

Prefix Imported As
HTTP HTTP
SOCKS4 SOCKS4
SOCKS5 SOCKS5
HT HTTP
S4 SOCKS4
S5 SOCKS5

What Gets Imported

Only proxies matching the following format are imported:

IP:PORT

Example:

1.2.3.4:8080
8.8.8.8:3128
103.45.22.15:1080

Duplicate entries are removed automatically.

Usage

  1. Close OpenBullet 2.
  2. Configure UserData/ProxyApi.txt.
  3. Run OB2-ProxyInjector.exe.
  4. Wait until the import finishes.
  5. Launch OpenBullet 2.

Done.

Database Behavior

During execution the application will:

  • Locate OpenBullet.db

  • Create missing proxy groups

  • Delete existing proxies from:

    • HTTP
    • SOCKS4
    • SOCKS5
  • Download new proxy lists

  • Remove duplicates

  • Insert fresh proxies

No manual database editing is required.

Console Output

Example:

[*] Connecting to database...

[*] Resolving ProxyGroups...

[+] Found 'HTTP'

[+] Found 'SOCKS4'

[+] Found 'SOCKS5'

[*] Fetching HTTP proxies...

[+] Found 1523 proxies

[+] Inserted 1523 HTTP proxies

Task Complete!

Project Structure

.
├── src/
│   └── main.rs
├── Cargo.toml
├── Cargo.lock
├── .gitignore
└── README.md

Build

Release build:

cargo build --release

Optimized binary:

target/release/OB2-ProxyInjector.exe

Notes

  • Existing HTTP/SOCKS4/SOCKS5 proxies are replaced on every run.
  • Invalid proxy formats are ignored.
  • Duplicate proxies are removed automatically.
  • Missing Proxy Groups are created automatically.
  • The application uses SQLite transactions for high-speed imports.

License

This project is released under the MIT License.

Disclaimer

This project is intended only for importing publicly available proxy lists into OpenBullet 2. Users are responsible for ensuring they comply with the terms of service, applicable laws, and the policies of the proxy sources they use.

About

Automatically fetch and organize HTTP/SOCKS4/SOCKS5 proxies into OpenBullet2 database from API endpoints.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages