mirror of
https://github.com/SajadMRjl/find-me-internet.git
synced 2026-07-13 05:46:27 +00:00
108 lines
2.8 KiB
Markdown
108 lines
2.8 KiB
Markdown
# Find Me Internet 🌐
|
|
|
|
**Find Me Internet** is a high-performance, scalable proxy scanner and tester written in Go. It is designed to ingest thousands of proxy links (VLESS, VMess, Trojan, Reality, etc.), filter out dead nodes efficiently using "cheap" network checks, and rigorously test survivors using a real **Sing-box** core.
|
|
|
|
It uses a "Funnel Architecture" to minimize resource usage, allowing it to scan 100,000+ proxies without crashing your system.
|
|
|
|
## 🚀 Architecture
|
|
|
|
The system processes proxies through a multi-stage pipeline:
|
|
|
|
```mermaid
|
|
graph LR
|
|
A[Source File/URL] --> B(Parser)
|
|
B --> C{Dedup}
|
|
C -- New --> D{Cheap Filter}
|
|
C -- Duplicate --> X[Discard]
|
|
D -- TCP/TLS OK --> E(Sing-box Core)
|
|
D -- Fail --> X
|
|
E -- Latency OK --> F(GeoIP Enricher)
|
|
E -- Fail --> X
|
|
F --> G[JSONL Sink]
|
|
|
|
```
|
|
|
|
## 🛠️ Prerequisites
|
|
|
|
1. **Go 1.21+** installed.
|
|
2. **Sing-box Binary:** The engine that powers the tests.
|
|
3. **GeoLite2 Database (Optional):** For country detection.
|
|
|
|
## 📦 Installation
|
|
|
|
### 1. Clone & Dependencies
|
|
|
|
```bash
|
|
git clone https://github.com/sajadMRjl/find-me-internet.git
|
|
cd find-me-internet
|
|
go mod tidy
|
|
|
|
```
|
|
|
|
### 2. Install Sing-box
|
|
|
|
Download the latest release for your OS from [Sing-box Releases](https://github.com/SagerNet/sing-box/releases).
|
|
|
|
- Extract the binary.
|
|
- Place it in the `./bin/` folder (or anywhere you like).
|
|
- _Linux/macOS:_ Ensure it is executable: `chmod +x ./bin/sing-box`
|
|
|
|
### 3. Setup GeoIP (Optional)
|
|
|
|
- Register for a free MaxMind account.
|
|
- Download the `GeoLite2-Country.mmdb`.
|
|
- Place it in `./data/`.
|
|
|
|
## ⚙️ Configuration
|
|
|
|
Create a `.env` file in the root directory:
|
|
|
|
```ini
|
|
# --- General ---
|
|
LOG_LEVEL=INFO # Options: DEBUG, INFO, WARN, ERROR
|
|
MAX_WORKERS=50 # Concurrency limit for Sing-box instances
|
|
|
|
# --- Timeouts ---
|
|
TCP_TIMEOUT=2s # Max time for "Cheap" TCP connect
|
|
TEST_TIMEOUT=10s # Max time for "Expensive" HTTP test
|
|
TEST_URL=http://cp.cloudflare.com # The target to fetch
|
|
|
|
# --- Paths ---
|
|
SING_BOX_PATH=./bin/sing-box
|
|
INPUT_PATH=./data/proxies.txt
|
|
OUTPUT_PATH=./data/valid_proxies.jsonl
|
|
GEOIP_PATH=./data/GeoLite2-Country.mmdb
|
|
|
|
```
|
|
|
|
## 🏃 Usage
|
|
|
|
1. **Prepare Input:**
|
|
Add your raw proxy links (one per line) to `data/proxies.txt`.
|
|
2. **Run the Scanner:**
|
|
|
|
```bash
|
|
go run cmd/main.go
|
|
|
|
```
|
|
|
|
3. **View Results:**
|
|
Valid proxies are streamed to `data/valid_proxies.jsonl`.
|
|
|
|
```bash
|
|
tail -f data/valid_proxies.jsonl
|
|
|
|
```
|
|
|
|
### Output Example
|
|
|
|
```json
|
|
{"link":"vless://uuid@1.2.3.4:443...","type":"vless","address":"1.2.3.4","port":443,"latency_ms":145,"country":"DE"}
|
|
{"link":"vmess://...","type":"vmess","address":"5.6.7.8","port":80,"latency_ms":210,"country":"US"}
|
|
|
|
```
|
|
|
|
## ⚠️ Disclaimer
|
|
|
|
This tool is for educational purposes and network analysis only. The user is responsible for ensuring they have permission to test the networks and proxies they scan.
|