https://github.com/imrostami/matchconfig
A small library to extract the list of Vmess Vless Telegram Proxy Shadowsocks Trojan configs from texts
https://github.com/imrostami/matchconfig
csharp library proxy regex regexp shadowsocks telegram telegram-proxy trojan vless vmess
Last synced: about 1 month ago
JSON representation
A small library to extract the list of Vmess Vless Telegram Proxy Shadowsocks Trojan configs from texts
- Host: GitHub
- URL: https://github.com/imrostami/matchconfig
- Owner: imrostami
- License: mit
- Created: 2024-03-10T22:04:44.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-03-31T17:04:08.000Z (about 1 year ago)
- Last Synced: 2024-08-27T18:48:26.052Z (8 months ago)
- Topics: csharp, library, proxy, regex, regexp, shadowsocks, telegram, telegram-proxy, trojan, vless, vmess
- Language: Smalltalk
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# MatchConfig
یک لایبرری کوچیک و ساده برای استخراج کانفیگ های
- VLESS
- VMESS
- Trojan
- ShaodwSocks
- TelegramProxy
از داخل متن ها
روش نصب به این صورته که توی آدرس گیت هاب وارد بخش ریلیز ها بشین و آخرین dll که منتشر میشه رو دانلود کنین و به پروژتون اضافه کنید (بعدا Nuget هم براش منتشر میکنم برای راحتی کار)
روش استفاده ازش بسیار راحته و به دو صورت قابل استفاده اس
📌 1- به صورت Single Match یا استخراج لیست تکی به این صورت
```csharp
var data = File.ReadAllText("یه فایل متنی با یه عالمه پروکسی.txt");
ConfigMatcher matcher = new ();
//استخراج Vless
List vlessProxys = matcher.Vless.Match(data);
//استخراج Vmess
List vmessProxys = matcher.Vmess.Match(data);
// و الباقی چیز ها
```
📌 به صورت Multi Match (استخراج لیست چند تایی)
```csharp
var data = File.ReadAllText("proxy.txt");
ConfigMatcher matcher = new();
var builder = new MatchEngineBuilder();
//استخراج لیست پروکسی های تلگرام و vless و vmess از متن
var matchEngine = builder.AppendMatch(matcher.TelegramProxy)
.AppenMatch(matcher.Vless)
.AppendMatch(matcher.Vmess)
.Build();
//گرفتن خروجی
List results = matchEngine.GetMatches(data);
```