first commit
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
bin/
|
||||
params.txt
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
<# :
|
||||
@echo off
|
||||
chcp 65001 >nul
|
||||
cd /d "%~dp0"
|
||||
powershell -ExecutionPolicy Bypass -NoProfile -Command "Invoke-Command -ScriptBlock ([ScriptBlock]::Create((Get-Content -LiteralPath '%~f0' -Encoding UTF8 -Raw)))"
|
||||
pause
|
||||
exit /b
|
||||
#>
|
||||
|
||||
# --- ЗДЕСЬ НАЧИНАЕТСЯ POWERSHELL ---
|
||||
|
||||
$PARAMS_FILE = "params.txt"
|
||||
$paths = @(
|
||||
".\conf_EE_eth\config1.json",
|
||||
".\conf_DE_eth\config1.json"
|
||||
)
|
||||
|
||||
# 1. Проверяем наличие файла с параметрами
|
||||
if (-not (Test-Path $PARAMS_FILE)) {
|
||||
Write-Host "ОШИБКА: Файл $PARAMS_FILE не найден!" -ForegroundColor Red
|
||||
return
|
||||
}
|
||||
|
||||
# 2. Читаем параметры из файла
|
||||
$params = Get-Content $PARAMS_FILE -Raw | ConvertFrom-StringData
|
||||
$LOCAL_ADDR = $params.LOCAL_ADDR
|
||||
$PRIV_KEY = $params.PRIV_KEY
|
||||
|
||||
if (-not $LOCAL_ADDR -or -not $PRIV_KEY) {
|
||||
Write-Host "ОШИБКА: В файле $PARAMS_FILE не найдены LOCAL_ADDR или PRIV_KEY!" -ForegroundColor Red
|
||||
return
|
||||
}
|
||||
|
||||
Write-Host "Параметры загружены: ADDR=$LOCAL_ADDR" -ForegroundColor Gray
|
||||
|
||||
# 3. Настройка кодировки UTF-8 без BOM
|
||||
$utf8NoBom = New-Object System.Text.UTF8Encoding $False
|
||||
|
||||
foreach ($path in $paths) {
|
||||
if (Test-Path $path) {
|
||||
Write-Host "Обработка файла: $path" -ForegroundColor Cyan
|
||||
|
||||
$originalText = Get-Content $path -Raw -Encoding UTF8
|
||||
|
||||
# Регулярные выражения для замены значений внутри кавычек
|
||||
$newText = [regex]::Replace($originalText, '("private_key"\s*:\s*")[^"]+(")', "`${1}$PRIV_KEY`$2")
|
||||
$newText = [regex]::Replace($newText, '("local_address"\s*:\s*\[\s*")[^"]+("\s*\])', "`${1}$LOCAL_ADDR`$2")
|
||||
|
||||
if ($originalText -cne $newText) {
|
||||
$fullPath = (Resolve-Path $path).Path
|
||||
[System.IO.File]::WriteAllText($fullPath, $newText, $utf8NoBom)
|
||||
Write-Host " [+] Успешно обновлено" -ForegroundColor Green
|
||||
} else {
|
||||
Write-Host " [-] Изменений не требуется (значения уже совпадают или поля не найдены)" -ForegroundColor Yellow
|
||||
}
|
||||
} else {
|
||||
Write-Host "Файл не найден: $path" -ForegroundColor Red
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
{
|
||||
"log": {
|
||||
"level": "warn",
|
||||
"timestamp": true
|
||||
},
|
||||
"dns": {
|
||||
"strategy": "ipv4_only",
|
||||
"servers": [
|
||||
{
|
||||
"tag": "dns-yandex",
|
||||
"address": "https://77.88.8.8",
|
||||
"detour": "proxy-wireguard"
|
||||
},
|
||||
{
|
||||
"tag": "dns-google",
|
||||
"address": "https://8.8.8.8",
|
||||
"detour": "proxy-wireguard"
|
||||
},
|
||||
{
|
||||
"tag": "dns-cloudflare",
|
||||
"address": "https://1.1.1.1",
|
||||
"detour": "proxy-wireguard",
|
||||
"strategy": "ipv4_only"
|
||||
},
|
||||
{
|
||||
"tag": "local",
|
||||
"address": "local",
|
||||
"detour": "direct"
|
||||
},
|
||||
{
|
||||
"tag": "block",
|
||||
"address": "rcode://success"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"domain_suffix": [
|
||||
".ru",
|
||||
".su",
|
||||
".xn--p1ai"
|
||||
],
|
||||
"server": "dns-yandex"
|
||||
},
|
||||
{
|
||||
"rule_set": "geoip-ru",
|
||||
"server": "dns-yandex"
|
||||
}
|
||||
// {
|
||||
// "domain_keyword": ["github"],
|
||||
// "server": "dns-yandex"
|
||||
// }
|
||||
],
|
||||
"final": "dns-cloudflare"
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"type": "tun",
|
||||
"tag": "tun-in",
|
||||
"interface_name": "sing-box-tun",
|
||||
"address": [
|
||||
"172.19.0.1/30"
|
||||
],
|
||||
"auto_route": true,
|
||||
"strict_route": true,
|
||||
"stack": "gvisor",
|
||||
"mtu": 1280,
|
||||
"sniff": true,
|
||||
"sniff_timeout": "300ms",
|
||||
"sniff_override_destination": true
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"type": "dns",
|
||||
"tag": "dns-out"
|
||||
},
|
||||
{
|
||||
"type": "wireguard",
|
||||
"tag": "proxy-wireguard",
|
||||
"server": "10.13.213.230",
|
||||
"server_port": 51820,
|
||||
"local_address": [
|
||||
"10.10.0.19/24" //
|
||||
],
|
||||
"private_key": "YPofraCnl5+cze/hCaIrsKlG+KvCoSz2PzyPb9roqk0=", //
|
||||
"peer_public_key": "9HtCros3QcKqxDelI/LSYL1GAO6jt+YlSxQsvzE2nHk=",
|
||||
"mtu": 1280,
|
||||
"domain_strategy": "ipv4_only"
|
||||
},
|
||||
{
|
||||
"type": "direct",
|
||||
"tag": "direct",
|
||||
"domain_strategy": "ipv4_only"
|
||||
}
|
||||
],
|
||||
"route": {
|
||||
"rule_set": [
|
||||
{
|
||||
"tag": "geoip-ru",
|
||||
"type": "local",
|
||||
"format": "binary",
|
||||
//"url": "https://raw.githubusercontent.com/lyc8503/sing-box-rules/rule-set-geoip/geoip-ru.srs",
|
||||
//"download_detour": "proxy-wireguard",
|
||||
"path": "./../doc/doc.srs",
|
||||
//"update_interval": "1d"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"protocol": "dns",
|
||||
"action": "hijack-dns"
|
||||
},
|
||||
{
|
||||
"port": 53,
|
||||
"outbound": "dns-out"
|
||||
},
|
||||
{
|
||||
"domain_suffix": [
|
||||
".ru",
|
||||
".su",
|
||||
".xn--p1ai"
|
||||
],
|
||||
"outbound": "proxy-wireguard"
|
||||
},
|
||||
{
|
||||
"rule_set": [
|
||||
"geoip-ru"
|
||||
],
|
||||
"outbound": "proxy-wireguard"
|
||||
}
|
||||
],
|
||||
"auto_detect_interface": true,
|
||||
"final": "proxy-wireguard"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
' Áëîê ïîâûøåíèÿ ïðàâ (îñòàâüòå åãî â íà÷àëå)
|
||||
If Not WScript.Arguments.Named.Exists("elevate") Then
|
||||
CreateObject("Shell.Application").ShellExecute "wscript.exe", _
|
||||
"""" & WScript.ScriptFullName & """ /elevate", "", "runas", 1
|
||||
WScript.Quit
|
||||
End If
|
||||
|
||||
' ÈÑÏÐÀÂËÅÍÈÅ: Ïîëó÷àåì ïóòü ê ïàïêå, ãäå ëåæèò âàø VBS-ôàéë
|
||||
Set fso = CreateObject("Scripting.FileSystemObject")
|
||||
strPath = fso.GetParentFolderName(WScript.ScriptFullName)
|
||||
|
||||
Set WshShell = CreateObject("WScript.Shell")
|
||||
|
||||
' Çàïóñêàåì bat-ôàéë, óêàçûâàÿ åãî ÏÎËÍÛÉ ïóòü
|
||||
' 0 — ñêðûòü îêíî, True — æäàòü çàâåðøåíèÿ (ïî æåëàíèþ)
|
||||
WshShell.Run chr(34) & strPath & "\start0.bat" & Chr(34), 1, True
|
||||
|
||||
Set WshShell = Nothing
|
||||
Set fso = Nothing
|
||||
@@ -0,0 +1,7 @@
|
||||
@echo off
|
||||
cd /d "%~dp0"
|
||||
set ENABLE_DEPRECATED_WIREGUARD_OUTBOUND=true
|
||||
set ENABLE_DEPRECATED_TUN_ADDRESS_X=true
|
||||
set ENABLE_DEPRECATED_SPECIAL_OUTBOUNDS=true
|
||||
.\..\bin\sb.exe run -c config0.json
|
||||
pause
|
||||
@@ -0,0 +1,178 @@
|
||||
{
|
||||
"log": {
|
||||
"level": "warn",
|
||||
"timestamp": true
|
||||
},
|
||||
"dns": {
|
||||
"strategy": "ipv4_only",
|
||||
"fakeip": {
|
||||
"enabled": true,
|
||||
"inet4_range": "198.18.0.0/15",
|
||||
"inet6_range": "fc00::/18",
|
||||
"include_rule": [
|
||||
{
|
||||
"domain_suffix": [
|
||||
"gemini.google.com",
|
||||
"aistudio.google.com",
|
||||
"alkalimining-pa.googleapis.com",
|
||||
"proactivebackend-pa.googleapis.com",
|
||||
"generativelanguage.googleapis.com",
|
||||
"ai.google.com",
|
||||
"alkali.google.com",
|
||||
"oauth2.googleapis.com",
|
||||
"oauthaccountmanager.googleapis.com",
|
||||
"robinfrontend-pa.googleapis.com",
|
||||
"notifications-pa.googleapis.com",
|
||||
"app-analytics-services.com"
|
||||
],
|
||||
"domain_keyword": [
|
||||
"gemini"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"servers": [
|
||||
{
|
||||
"tag": "dns-bootstrap",
|
||||
"address": "8.8.8.8",
|
||||
"detour": "wi-fi"
|
||||
},
|
||||
{
|
||||
"tag": "dns-ru",
|
||||
"address": "77.88.8.8",
|
||||
"detour": "wi-fi"
|
||||
},
|
||||
{
|
||||
"tag": "dns-global",
|
||||
"address": "https://cloudflare-dns.com/dns-query",
|
||||
"detour": "proxy-vless"
|
||||
},
|
||||
{
|
||||
"tag": "local",
|
||||
"address": "local",
|
||||
"detour": "direct"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"domain": [
|
||||
"cloudflare-dns.com"
|
||||
],
|
||||
"server": "dns-bootstrap"
|
||||
},
|
||||
{
|
||||
"domain_suffix": [
|
||||
".ru",
|
||||
".su",
|
||||
".xn--p1ai"
|
||||
],
|
||||
"server": "dns-ru"
|
||||
},
|
||||
{
|
||||
"rule_set": "geoip-ru",
|
||||
"server": "dns-ru"
|
||||
}
|
||||
],
|
||||
"final": "dns-global"
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"type": "tun",
|
||||
"tag": "tun-in",
|
||||
"interface_name": "sing-box-tun",
|
||||
"address": [
|
||||
"172.19.0.1/30"
|
||||
],
|
||||
"auto_route": true,
|
||||
"strict_route": true,
|
||||
"route_exclude_address": [
|
||||
"10.0.0.0/8"
|
||||
],
|
||||
"stack": "gvisor",
|
||||
// "mtu": 1280,
|
||||
"sniff": true,
|
||||
"sniff_timeout": "300ms",
|
||||
"sniff_override_destination": true
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"type": "direct",
|
||||
"tag": "wi-fi",
|
||||
"bind_interface": "WiFi",
|
||||
"domain_strategy": "ipv4_only"
|
||||
},
|
||||
{
|
||||
"type": "vless",
|
||||
"tag": "proxy-vless",
|
||||
"server": "108.165.173.226",
|
||||
"server_port": 443,
|
||||
"uuid": "a9f3118f-1556-48c7-932b-3911ce1aea71",
|
||||
"flow": "xtls-rprx-vision",
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"server_name": "cloud-fc.de",
|
||||
"utls": {
|
||||
"enabled": true,
|
||||
"fingerprint": "chrome"
|
||||
},
|
||||
"reality": {
|
||||
"enabled": true,
|
||||
"public_key": "CNcLTOK5TLXhHsDDWsGaSLkrVJOa4qJXAG-jd0OyOCI",
|
||||
"short_id": "f200"
|
||||
}
|
||||
},
|
||||
"packet_encoding": "xudp",
|
||||
"detour": "wi-fi",
|
||||
"domain_strategy": "ipv4_only"
|
||||
},
|
||||
{
|
||||
"type": "direct",
|
||||
"tag": "direct",
|
||||
//"bind_interface": "Ethernet",
|
||||
"domain_strategy": "ipv4_only"
|
||||
}
|
||||
],
|
||||
"route": {
|
||||
"default_domain_resolver": "dns-bootstrap",
|
||||
"rule_set": [
|
||||
{
|
||||
"tag": "geoip-ru",
|
||||
"type": "local",
|
||||
"format": "binary",
|
||||
"path": "./../doc/doc.srs"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"protocol": "dns",
|
||||
"action": "hijack-dns"
|
||||
},
|
||||
{
|
||||
"network": "udp",
|
||||
"port": 443,
|
||||
"action": "reject"
|
||||
},
|
||||
{
|
||||
"domain_suffix": [
|
||||
".ru",
|
||||
".su",
|
||||
".xn--p1ai"
|
||||
],
|
||||
"outbound": "wi-fi"
|
||||
},
|
||||
{
|
||||
"rule_set": [
|
||||
"geoip-ru"
|
||||
],
|
||||
"outbound": "wi-fi"
|
||||
},
|
||||
{
|
||||
"ip_cidr": ["10.0.0.0/8"],
|
||||
"outbound": "direct"
|
||||
}
|
||||
],
|
||||
"auto_detect_interface": true,
|
||||
"final": "proxy-vless"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,164 @@
|
||||
{
|
||||
"log": {
|
||||
"level": "warn",
|
||||
"timestamp": true
|
||||
},
|
||||
"dns": {
|
||||
"strategy": "ipv4_only",
|
||||
"servers": [
|
||||
{
|
||||
"tag": "dns-yandex",
|
||||
"address": "https://77.88.8.8", // ßíäåêñ DNS
|
||||
"detour": "proxy-wi-fi"
|
||||
},
|
||||
{
|
||||
"tag": "dns-google",
|
||||
"address": "https://8.8.8.8", // Google DNS
|
||||
"detour": "proxy-wi-fi",
|
||||
},
|
||||
{
|
||||
"tag": "dns-cloudflare",
|
||||
"address": "https://1.1.1.1", // Cloudflare DNS
|
||||
"detour": "proxy-vless",
|
||||
"strategy": "ipv4_only"
|
||||
},
|
||||
{
|
||||
"tag": "dns-germany",
|
||||
"address": "https://84.200.69.80", // DNS.WATCH (Ãåðìàíèÿ)
|
||||
"detour": "proxy-vless",
|
||||
"strategy": "ipv4_only"
|
||||
},
|
||||
{
|
||||
"tag": "local",
|
||||
"address": "local",
|
||||
"detour": "direct"
|
||||
},
|
||||
{
|
||||
"tag": "block",
|
||||
"address": "rcode://success"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"domain_suffix": [
|
||||
".ru",
|
||||
".su",
|
||||
".xn--p1ai" // ýòî .ðô
|
||||
],
|
||||
"server": "dns-yandex"
|
||||
},
|
||||
{
|
||||
"rule_set": "geoip-ru",
|
||||
"server": "dns-yandex"
|
||||
},
|
||||
{
|
||||
"domain_keyword": ["github"],
|
||||
"server": "dns-google"
|
||||
}
|
||||
],
|
||||
"final": "dns-cloudflare"
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"type": "tun",
|
||||
"tag": "tun-in",
|
||||
"interface_name": "sing-box-tun",
|
||||
"address": [
|
||||
"172.19.0.1/30"
|
||||
],
|
||||
"auto_route": true,
|
||||
"strict_route": true,
|
||||
"route_exclude_address": [
|
||||
"10.0.0.0/8"
|
||||
],
|
||||
"stack": "gvisor",
|
||||
// "mtu": 1280,
|
||||
"sniff": true,
|
||||
"sniff_timeout": "300ms",
|
||||
"sniff_override_destination": true // Ïîìîãàåò áîëåå òî÷íî îïðåäåëÿòü äîìåíû
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"type": "dns",
|
||||
"tag": "dns-out"
|
||||
},
|
||||
{
|
||||
"type": "direct",
|
||||
"tag": "proxy-wi-fi",
|
||||
"bind_interface": "WiFi",
|
||||
"domain_strategy": "ipv4_only"
|
||||
},
|
||||
{
|
||||
"type": "vless",
|
||||
"tag": "proxy-vless",
|
||||
"server": "108.165.173.226",
|
||||
"server_port": 443,
|
||||
"uuid": "a9f3118f-1556-48c7-932b-3911ce1aea71",
|
||||
"flow": "xtls-rprx-vision",
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"server_name": "www.sony.com",
|
||||
"utls": {
|
||||
"enabled": true,
|
||||
"fingerprint": "chrome"
|
||||
},
|
||||
"reality": {
|
||||
"enabled": true,
|
||||
"public_key": "_sv3AHU06_oGOy12BDGHbK22IsobtCcPdnHq7imCnFg",
|
||||
"short_id": "f200"
|
||||
}
|
||||
},
|
||||
"packet_encoding": "xudp",
|
||||
"detour": "proxy-wi-fi",
|
||||
"domain_strategy": "ipv4_only"
|
||||
},
|
||||
{
|
||||
"type": "direct",
|
||||
"tag": "direct",
|
||||
//"bind_interface": "Ethernet 5",
|
||||
"domain_strategy": "ipv4_only"
|
||||
}
|
||||
],
|
||||
"route": {
|
||||
"rule_set": [
|
||||
{
|
||||
"tag": "geoip-ru",
|
||||
"type": "remote",
|
||||
"format": "binary",
|
||||
"url": "https://raw.githubusercontent.com/lyc8503/sing-box-rules/rule-set-geoip/geoip-ru.srs",
|
||||
"download_detour": "proxy-wi-fi"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"protocol": "dns",
|
||||
"action": "hijack-dns"
|
||||
},
|
||||
{
|
||||
"port": 53,
|
||||
"outbound": "dns-out" // Åñëè åñòü dns-out â outbounds
|
||||
},
|
||||
{
|
||||
"domain_suffix": [
|
||||
".ru",
|
||||
".su",
|
||||
".xn--p1ai" // ýòî .ðô
|
||||
],
|
||||
"outbound": "proxy-wi-fi"
|
||||
},
|
||||
{
|
||||
"rule_set": [
|
||||
"geoip-ru"
|
||||
],
|
||||
"outbound": "proxy-wi-fi"
|
||||
},
|
||||
{
|
||||
"ip_cidr": ["10.0.0.0/8"],
|
||||
"outbound": "direct"
|
||||
}
|
||||
],
|
||||
"final": "proxy-vless",
|
||||
"auto_detect_interface": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
' Áëîê ïîâûøåíèÿ ïðàâ (îñòàâüòå åãî â íà÷àëå)
|
||||
If Not WScript.Arguments.Named.Exists("elevate") Then
|
||||
CreateObject("Shell.Application").ShellExecute "wscript.exe", _
|
||||
"""" & WScript.ScriptFullName & """ /elevate", "", "runas", 1
|
||||
WScript.Quit
|
||||
End If
|
||||
|
||||
' ÈÑÏÐÀÂËÅÍÈÅ: Ïîëó÷àåì ïóòü ê ïàïêå, ãäå ëåæèò âàø VBS-ôàéë
|
||||
Set fso = CreateObject("Scripting.FileSystemObject")
|
||||
strPath = fso.GetParentFolderName(WScript.ScriptFullName)
|
||||
|
||||
Set WshShell = CreateObject("WScript.Shell")
|
||||
|
||||
' Çàïóñêàåì bat-ôàéë, óêàçûâàÿ åãî ÏÎËÍÛÉ ïóòü
|
||||
' 0 — ñêðûòü îêíî, True — æäàòü çàâåðøåíèÿ (ïî æåëàíèþ)
|
||||
WshShell.Run chr(34) & strPath & "\start2.bat" & Chr(34), 1, True
|
||||
|
||||
Set WshShell = Nothing
|
||||
Set fso = Nothing
|
||||
@@ -0,0 +1,7 @@
|
||||
@echo off
|
||||
cd /d "%~dp0"
|
||||
set ENABLE_DEPRECATED_WIREGUARD_OUTBOUND=true
|
||||
set ENABLE_DEPRECATED_TUN_ADDRESS_X=true
|
||||
set ENABLE_DEPRECATED_SPECIAL_OUTBOUNDS=true
|
||||
.\..\bin\sb.exe run -c config2.json
|
||||
pause
|
||||
@@ -0,0 +1,161 @@
|
||||
{
|
||||
"log": {
|
||||
"level": "warn",
|
||||
"timestamp": true
|
||||
},
|
||||
"dns": {
|
||||
"strategy": "ipv4_only",
|
||||
"servers": [
|
||||
{
|
||||
"tag": "dns-yandex",
|
||||
"address": "https://xbox-dns.ru/dns-query", // Яндекс DNS
|
||||
"detour": "proxy-wireguard"
|
||||
},
|
||||
{
|
||||
"tag": "dns-google",
|
||||
"address": "https://8.8.8.8", // Google DNS
|
||||
"detour": "proxy-wireguard",
|
||||
},
|
||||
{
|
||||
"tag": "dns-cloudflare",
|
||||
"address": "https://1.1.1.1", // Cloudflare DNS
|
||||
"detour": "proxy-vless",
|
||||
"strategy": "ipv4_only"
|
||||
},
|
||||
{
|
||||
"tag": "dns-germany",
|
||||
"address": "https://84.200.69.80", // DNS.WATCH (Германия)
|
||||
"detour": "proxy-vless",
|
||||
"strategy": "ipv4_only"
|
||||
},
|
||||
{
|
||||
"tag": "local",
|
||||
"address": "local",
|
||||
"detour": "direct"
|
||||
},
|
||||
{
|
||||
"tag": "block",
|
||||
"address": "rcode://success"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"domain_suffix": [
|
||||
".ru",
|
||||
".su",
|
||||
".xn--p1ai" // это .рф
|
||||
],
|
||||
"server": "dns-google"
|
||||
},
|
||||
{
|
||||
"rule_set": "geoip-ru",
|
||||
"server": "dns-yandex"
|
||||
}
|
||||
],
|
||||
"final": "dns-cloudflare"
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"type": "tun",
|
||||
"tag": "tun-in",
|
||||
"interface_name": "sing-box-tun",
|
||||
"address": [
|
||||
"172.19.0.1/30"
|
||||
],
|
||||
"auto_route": true,
|
||||
"strict_route": true,
|
||||
"stack": "gvisor",
|
||||
"mtu": 1280,
|
||||
"sniff": true,
|
||||
"sniff_timeout": "300ms",
|
||||
"sniff_override_destination": true // Помогает более точно определять домены
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"type": "dns",
|
||||
"tag": "dns-out"
|
||||
},
|
||||
{
|
||||
"type": "wireguard",
|
||||
"tag": "proxy-wireguard",
|
||||
"server": "10.13.213.230",
|
||||
"server_port": 51820,
|
||||
"local_address": [
|
||||
"10.10.0.19/24"
|
||||
],
|
||||
"private_key": "YPofraCnl5+cze/hCaIrsKlG+KvCoSz2PzyPb9roqk0=",
|
||||
"peer_public_key": "9HtCros3QcKqxDelI/LSYL1GAO6jt+YlSxQsvzE2nHk=",
|
||||
"mtu": 1280,
|
||||
"domain_strategy": "ipv4_only"
|
||||
},
|
||||
{
|
||||
"type": "vless",
|
||||
"tag": "proxy-vless",
|
||||
"server": "108.165.173.226",
|
||||
"server_port": 443,
|
||||
"uuid": "a9f3118f-1556-48c7-932b-3911ce1aea71",
|
||||
"flow": "xtls-rprx-vision",
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"server_name": "www.sony.com",
|
||||
"utls": {
|
||||
"enabled": true,
|
||||
"fingerprint": "chrome"
|
||||
},
|
||||
"reality": {
|
||||
"enabled": true,
|
||||
"public_key": "_sv3AHU06_oGOy12BDGHbK22IsobtCcPdnHq7imCnFg",
|
||||
"short_id": "f200"
|
||||
}
|
||||
},
|
||||
"packet_encoding": "xudp",
|
||||
"detour": "proxy-wireguard",
|
||||
"domain_strategy": "ipv4_only"
|
||||
},
|
||||
{
|
||||
"type": "direct",
|
||||
"tag": "direct",
|
||||
"domain_strategy": "ipv4_only"
|
||||
}
|
||||
],
|
||||
"route": {
|
||||
"rule_set": [
|
||||
{
|
||||
"tag": "geoip-ru",
|
||||
"type": "local",
|
||||
"format": "binary",
|
||||
//"url": "https://raw.githubusercontent.com/lyc8503/sing-box-rules/rule-set-geoip/geoip-ru.srs",
|
||||
//"download_detour": "proxy-wireguard",
|
||||
"path": "./../doc/doc.srs",
|
||||
//"update_interval": "1d"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"protocol": "dns",
|
||||
"action": "hijack-dns"
|
||||
},
|
||||
{
|
||||
"port": 53,
|
||||
"outbound": "dns-out" // Если есть dns-out в outbounds
|
||||
},
|
||||
{
|
||||
"domain_suffix": [
|
||||
".ru",
|
||||
".su",
|
||||
".xn--p1ai" // это .рф
|
||||
],
|
||||
"outbound": "proxy-wireguard"
|
||||
},
|
||||
{
|
||||
"rule_set": [
|
||||
"geoip-ru"
|
||||
],
|
||||
"outbound": "proxy-wireguard"
|
||||
}
|
||||
],
|
||||
"auto_detect_interface": true,
|
||||
"final": "proxy-vless"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,169 @@
|
||||
{
|
||||
"log": {
|
||||
"level": "warn",
|
||||
"timestamp": true
|
||||
},
|
||||
"dns": {
|
||||
"strategy": "ipv4_only",
|
||||
"fakeip": {
|
||||
"enabled": true,
|
||||
"inet4_range": "198.18.0.0/15",
|
||||
"inet6_range": "fc00::/18",
|
||||
"include_rule": [
|
||||
{
|
||||
"domain_suffix": [
|
||||
"gemini.google.com",
|
||||
"aistudio.google.com",
|
||||
"alkalimining-pa.googleapis.com",
|
||||
"proactivebackend-pa.googleapis.com",
|
||||
"generativelanguage.googleapis.com",
|
||||
"ai.google.com",
|
||||
"alkali.google.com",
|
||||
"oauth2.googleapis.com",
|
||||
"oauthaccountmanager.googleapis.com",
|
||||
"robinfrontend-pa.googleapis.com",
|
||||
"notifications-pa.googleapis.com",
|
||||
"app-analytics-services.com"
|
||||
],
|
||||
"domain_keyword": [
|
||||
"gemini"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"servers": [
|
||||
{
|
||||
"tag": "dns-bootstrap",
|
||||
"address": "8.8.8.8",
|
||||
"detour": "proxy-wireguard"
|
||||
},
|
||||
{
|
||||
"tag": "dns-ru",
|
||||
"address": "77.88.8.8",
|
||||
"detour": "proxy-wireguard"
|
||||
},
|
||||
{
|
||||
"tag": "dns-global",
|
||||
"address": "https://cloudflare-dns.com/dns-query",
|
||||
"detour": "proxy-vless"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"domain": [
|
||||
"cloudflare-dns.com"
|
||||
],
|
||||
"server": "dns-bootstrap"
|
||||
},
|
||||
{
|
||||
"domain_suffix": [
|
||||
".ru",
|
||||
".su",
|
||||
".xn--p1ai"
|
||||
],
|
||||
"server": "dns-ru"
|
||||
},
|
||||
{
|
||||
"rule_set": "geoip-ru",
|
||||
"server": "dns-ru"
|
||||
}
|
||||
],
|
||||
"final": "dns-global"
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"type": "tun",
|
||||
"tag": "tun-in",
|
||||
"interface_name": "sing-box-tun",
|
||||
"address": [
|
||||
"172.19.0.1/30"
|
||||
],
|
||||
"auto_route": true,
|
||||
"strict_route": true,
|
||||
"stack": "gvisor",
|
||||
"mtu": 1280,
|
||||
"sniff": true,
|
||||
"sniff_timeout": "300ms",
|
||||
"sniff_override_destination": true
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"type": "wireguard",
|
||||
"tag": "proxy-wireguard",
|
||||
"server": "10.13.213.230",
|
||||
"server_port": 51820,
|
||||
"local_address": [
|
||||
"YOUR ADDR"
|
||||
],
|
||||
"private_key": "YOUR KEY",
|
||||
"peer_public_key": "9HtCros3QcKqxDelI/LSYL1GAO6jt+YlSxQsvzE2nHk=",
|
||||
"mtu": 1280
|
||||
},
|
||||
{
|
||||
"type": "vless",
|
||||
"tag": "proxy-vless",
|
||||
"server": "108.165.173.226",
|
||||
"server_port": 443,
|
||||
"uuid": "a9f3118f-1556-48c7-932b-3911ce1aea71",
|
||||
"flow": "xtls-rprx-vision",
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"server_name": "cloud-fc.de",
|
||||
"utls": {
|
||||
"enabled": true,
|
||||
"fingerprint": "chrome"
|
||||
},
|
||||
"reality": {
|
||||
"enabled": true,
|
||||
"public_key": "CNcLTOK5TLXhHsDDWsGaSLkrVJOa4qJXAG-jd0OyOCI",
|
||||
"short_id": "f200"
|
||||
}
|
||||
},
|
||||
"packet_encoding": "xudp",
|
||||
"detour": "proxy-wireguard"
|
||||
},
|
||||
{
|
||||
"type": "direct",
|
||||
"tag": "direct"
|
||||
}
|
||||
],
|
||||
"route": {
|
||||
"default_domain_resolver": "dns-bootstrap",
|
||||
"rule_set": [
|
||||
{
|
||||
"tag": "geoip-ru",
|
||||
"type": "local",
|
||||
"format": "binary",
|
||||
"path": "./../doc/doc.srs"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"protocol": "dns",
|
||||
"action": "hijack-dns"
|
||||
},
|
||||
{
|
||||
"network": "udp",
|
||||
"port": 443,
|
||||
"action": "reject"
|
||||
},
|
||||
{
|
||||
"domain_suffix": [
|
||||
".ru",
|
||||
".su",
|
||||
".xn--p1ai"
|
||||
],
|
||||
"outbound": "proxy-wireguard"
|
||||
},
|
||||
{
|
||||
"rule_set": [
|
||||
"geoip-ru"
|
||||
],
|
||||
"outbound": "proxy-wireguard"
|
||||
}
|
||||
],
|
||||
"auto_detect_interface": true,
|
||||
"final": "proxy-vless"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
' Áëîê ïîâûøåíèÿ ïðàâ (îñòàâüòå åãî â íà÷àëå)
|
||||
If Not WScript.Arguments.Named.Exists("elevate") Then
|
||||
CreateObject("Shell.Application").ShellExecute "wscript.exe", _
|
||||
"""" & WScript.ScriptFullName & """ /elevate", "", "runas", 1
|
||||
WScript.Quit
|
||||
End If
|
||||
|
||||
' ÈÑÏÐÀÂËÅÍÈÅ: Ïîëó÷àåì ïóòü ê ïàïêå, ãäå ëåæèò âàø VBS-ôàéë
|
||||
Set fso = CreateObject("Scripting.FileSystemObject")
|
||||
strPath = fso.GetParentFolderName(WScript.ScriptFullName)
|
||||
|
||||
Set WshShell = CreateObject("WScript.Shell")
|
||||
|
||||
' Çàïóñêàåì bat-ôàéë, óêàçûâàÿ åãî ÏÎËÍÛÉ ïóòü
|
||||
' 0 — ñêðûòü îêíî, True — æäàòü çàâåðøåíèÿ (ïî æåëàíèþ)
|
||||
WshShell.Run chr(34) & strPath & "\start1.bat" & Chr(34), 1, True
|
||||
|
||||
Set WshShell = Nothing
|
||||
Set fso = Nothing
|
||||
@@ -0,0 +1,7 @@
|
||||
@echo off
|
||||
cd /d "%~dp0"
|
||||
set ENABLE_DEPRECATED_WIREGUARD_OUTBOUND=true
|
||||
set ENABLE_DEPRECATED_TUN_ADDRESS_X=true
|
||||
set ENABLE_DEPRECATED_SPECIAL_OUTBOUNDS=true
|
||||
.\..\bin\sb.exe run -c config1.json
|
||||
pause
|
||||
@@ -0,0 +1,179 @@
|
||||
{
|
||||
"log": {
|
||||
"level": "warn",
|
||||
"timestamp": true
|
||||
},
|
||||
"dns": {
|
||||
"strategy": "ipv4_only",
|
||||
"fakeip": {
|
||||
"enabled": true,
|
||||
"inet4_range": "198.18.0.0/15",
|
||||
"inet6_range": "fc00::/18",
|
||||
"include_rule": [
|
||||
{
|
||||
"domain_suffix": [
|
||||
"gemini.google.com",
|
||||
"aistudio.google.com",
|
||||
"alkalimining-pa.googleapis.com",
|
||||
"proactivebackend-pa.googleapis.com",
|
||||
"generativelanguage.googleapis.com",
|
||||
"ai.google.com",
|
||||
"alkali.google.com",
|
||||
"oauth2.googleapis.com",
|
||||
"oauthaccountmanager.googleapis.com",
|
||||
"robinfrontend-pa.googleapis.com",
|
||||
"notifications-pa.googleapis.com",
|
||||
"app-analytics-services.com"
|
||||
],
|
||||
"domain_keyword": [
|
||||
"gemini"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"servers": [
|
||||
{
|
||||
"tag": "dns-bootstrap",
|
||||
"address": "8.8.8.8",
|
||||
"detour": "wi-fi"
|
||||
},
|
||||
{
|
||||
"tag": "dns-ru",
|
||||
"address": "77.88.8.8",
|
||||
"detour": "wi-fi"
|
||||
},
|
||||
{
|
||||
"tag": "dns-global",
|
||||
"address": "https://cloudflare-dns.com/dns-query",
|
||||
"detour": "proxy-vless"
|
||||
},
|
||||
{
|
||||
"tag": "local",
|
||||
"address": "local",
|
||||
"detour": "direct"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"domain": [
|
||||
"cloudflare-dns.com"
|
||||
],
|
||||
"server": "dns-bootstrap"
|
||||
},
|
||||
{
|
||||
"domain_suffix": [
|
||||
".ru",
|
||||
".su",
|
||||
".xn--p1ai"
|
||||
],
|
||||
"server": "dns-ru"
|
||||
},
|
||||
{
|
||||
"rule_set": "geoip-ru",
|
||||
"server": "dns-ru"
|
||||
}
|
||||
],
|
||||
"final": "dns-global"
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"type": "tun",
|
||||
"tag": "tun-in",
|
||||
"interface_name": "sing-box-tun",
|
||||
"address": [
|
||||
"172.19.0.1/30"
|
||||
],
|
||||
"auto_route": true,
|
||||
"strict_route": true,
|
||||
"route_exclude_address": [
|
||||
"10.0.0.0/8"
|
||||
],
|
||||
"stack": "gvisor",
|
||||
// "mtu": 1280,
|
||||
"sniff": true,
|
||||
"sniff_timeout": "300ms",
|
||||
"sniff_override_destination": true
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"type": "direct",
|
||||
"tag": "wi-fi",
|
||||
"bind_interface": "WiFi",
|
||||
"domain_strategy": "ipv4_only"
|
||||
},
|
||||
{
|
||||
"type": "vless",
|
||||
"tag": "proxy-vless",
|
||||
"server": "5.183.190.30",
|
||||
"server_port": 443,
|
||||
"uuid": "6ab95aee-4406-46b6-96b2-6c8ba3fd42a7",
|
||||
"flow": "xtls-rprx-vision",
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"server_name": "back2russia.net",
|
||||
"utls": {
|
||||
"enabled": true,
|
||||
"fingerprint": "chrome"
|
||||
},
|
||||
"reality": {
|
||||
"enabled": true,
|
||||
"public_key": "ALXeVL8_LagCkzs0enk0dh98D9S_Vo2BTdDPVQiWAlw",
|
||||
"short_id": "6b"
|
||||
}
|
||||
},
|
||||
"packet_encoding": "xudp",
|
||||
"detour": "wi-fi",
|
||||
"domain_strategy": "ipv4_only"
|
||||
},
|
||||
|
||||
{
|
||||
"type": "direct",
|
||||
"tag": "direct",
|
||||
//"bind_interface": "Ethernet",
|
||||
"domain_strategy": "ipv4_only"
|
||||
}
|
||||
],
|
||||
"route": {
|
||||
"default_domain_resolver": "dns-bootstrap",
|
||||
"rule_set": [
|
||||
{
|
||||
"tag": "geoip-ru",
|
||||
"type": "local",
|
||||
"format": "binary",
|
||||
"path": "./../doc/doc.srs"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"protocol": "dns",
|
||||
"action": "hijack-dns"
|
||||
},
|
||||
{
|
||||
"network": "udp",
|
||||
"port": 443,
|
||||
"action": "reject"
|
||||
},
|
||||
{
|
||||
"domain_suffix": [
|
||||
".ru",
|
||||
".su",
|
||||
".xn--p1ai"
|
||||
],
|
||||
"outbound": "wi-fi"
|
||||
},
|
||||
{
|
||||
"rule_set": [
|
||||
"geoip-ru"
|
||||
],
|
||||
"outbound": "wi-fi"
|
||||
},
|
||||
{
|
||||
"ip_cidr": ["10.0.0.0/8"],
|
||||
"outbound": "direct"
|
||||
}
|
||||
],
|
||||
"auto_detect_interface": true,
|
||||
"final": "proxy-vless"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
' Áëîê ïîâûøåíèÿ ïðàâ (îñòàâüòå åãî â íà÷àëå)
|
||||
If Not WScript.Arguments.Named.Exists("elevate") Then
|
||||
CreateObject("Shell.Application").ShellExecute "wscript.exe", _
|
||||
"""" & WScript.ScriptFullName & """ /elevate", "", "runas", 1
|
||||
WScript.Quit
|
||||
End If
|
||||
|
||||
' ÈÑÏÐÀÂËÅÍÈÅ: Ïîëó÷àåì ïóòü ê ïàïêå, ãäå ëåæèò âàø VBS-ôàéë
|
||||
Set fso = CreateObject("Scripting.FileSystemObject")
|
||||
strPath = fso.GetParentFolderName(WScript.ScriptFullName)
|
||||
|
||||
Set WshShell = CreateObject("WScript.Shell")
|
||||
|
||||
' Çàïóñêàåì bat-ôàéë, óêàçûâàÿ åãî ÏÎËÍÛÉ ïóòü
|
||||
' 0 — ñêðûòü îêíî, True — æäàòü çàâåðøåíèÿ (ïî æåëàíèþ)
|
||||
WshShell.Run chr(34) & strPath & "\start2.bat" & Chr(34), 1, True
|
||||
|
||||
Set WshShell = Nothing
|
||||
Set fso = Nothing
|
||||
@@ -0,0 +1,7 @@
|
||||
@echo off
|
||||
cd /d "%~dp0"
|
||||
set ENABLE_DEPRECATED_WIREGUARD_OUTBOUND=true
|
||||
set ENABLE_DEPRECATED_TUN_ADDRESS_X=true
|
||||
set ENABLE_DEPRECATED_SPECIAL_OUTBOUNDS=true
|
||||
.\..\bin\sb.exe run -c config2.json
|
||||
pause
|
||||
@@ -0,0 +1,171 @@
|
||||
{
|
||||
"log": {
|
||||
"level": "warn",
|
||||
"timestamp": true
|
||||
},
|
||||
"dns": {
|
||||
"strategy": "ipv4_only",
|
||||
"fakeip": {
|
||||
"enabled": true,
|
||||
"inet4_range": "198.18.0.0/15",
|
||||
"inet6_range": "fc00::/18",
|
||||
"include_rule": [
|
||||
{
|
||||
"domain_suffix": [
|
||||
"gemini.google.com",
|
||||
"aistudio.google.com",
|
||||
"alkalimining-pa.googleapis.com",
|
||||
"proactivebackend-pa.googleapis.com",
|
||||
"generativelanguage.googleapis.com",
|
||||
"ai.google.com",
|
||||
"alkali.google.com",
|
||||
"oauth2.googleapis.com",
|
||||
"oauthaccountmanager.googleapis.com",
|
||||
"robinfrontend-pa.googleapis.com",
|
||||
"notifications-pa.googleapis.com",
|
||||
"app-analytics-services.com"
|
||||
],
|
||||
"domain_keyword": [
|
||||
"gemini"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"servers": [
|
||||
{
|
||||
"tag": "dns-bootstrap",
|
||||
"address": "8.8.8.8",
|
||||
"detour": "proxy-wireguard"
|
||||
},
|
||||
{
|
||||
"tag": "dns-ru",
|
||||
"address": "77.88.8.8",
|
||||
"detour": "proxy-wireguard"
|
||||
},
|
||||
{
|
||||
"tag": "dns-global",
|
||||
"address": "https://cloudflare-dns.com/dns-query",
|
||||
"detour": "proxy-vless"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"domain": [
|
||||
"cloudflare-dns.com"
|
||||
],
|
||||
"server": "dns-bootstrap"
|
||||
},
|
||||
{
|
||||
"domain_suffix": [
|
||||
".ru",
|
||||
".su",
|
||||
".xn--p1ai"
|
||||
],
|
||||
"server": "dns-ru"
|
||||
},
|
||||
{
|
||||
"rule_set": "geoip-ru",
|
||||
"server": "dns-ru"
|
||||
}
|
||||
],
|
||||
"final": "dns-global"
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"type": "tun",
|
||||
"tag": "tun-in",
|
||||
"interface_name": "sing-box-tun",
|
||||
"address": [
|
||||
"172.19.0.1/30"
|
||||
],
|
||||
"auto_route": true,
|
||||
"strict_route": true,
|
||||
"stack": "gvisor",
|
||||
"mtu": 1280,
|
||||
"sniff": true,
|
||||
"sniff_timeout": "300ms",
|
||||
"sniff_override_destination": true
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"type": "wireguard",
|
||||
"tag": "proxy-wireguard",
|
||||
"server": "10.13.213.230",
|
||||
"server_port": 51820,
|
||||
"local_address": [
|
||||
"YOUR ADDR"
|
||||
],
|
||||
"private_key": "YOUR KEY",
|
||||
"peer_public_key": "9HtCros3QcKqxDelI/LSYL1GAO6jt+YlSxQsvzE2nHk=",
|
||||
"mtu": 1280
|
||||
},
|
||||
{
|
||||
"type": "vless",
|
||||
"tag": "proxy-vless",
|
||||
"server": "5.183.190.30",
|
||||
"server_port": 443,
|
||||
"uuid": "6ab95aee-4406-46b6-96b2-6c8ba3fd42a7",
|
||||
"flow": "xtls-rprx-vision",
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"server_name": "back2russia.net",
|
||||
"utls": {
|
||||
"enabled": true,
|
||||
"fingerprint": "chrome"
|
||||
},
|
||||
"reality": {
|
||||
"enabled": true,
|
||||
"public_key": "ALXeVL8_LagCkzs0enk0dh98D9S_Vo2BTdDPVQiWAlw",
|
||||
"short_id": "6b"
|
||||
}
|
||||
},
|
||||
"packet_encoding": "xudp",
|
||||
"detour": "proxy-wireguard",
|
||||
"domain_strategy": "ipv4_only"
|
||||
},
|
||||
|
||||
{
|
||||
"type": "direct",
|
||||
"tag": "direct"
|
||||
}
|
||||
],
|
||||
"route": {
|
||||
"default_domain_resolver": "dns-bootstrap",
|
||||
"rule_set": [
|
||||
{
|
||||
"tag": "geoip-ru",
|
||||
"type": "local",
|
||||
"format": "binary",
|
||||
"path": "./../doc/doc.srs"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"protocol": "dns",
|
||||
"action": "hijack-dns"
|
||||
},
|
||||
{
|
||||
"network": "udp",
|
||||
"port": 443,
|
||||
"action": "reject"
|
||||
},
|
||||
{
|
||||
"domain_suffix": [
|
||||
".ru",
|
||||
".su",
|
||||
".xn--p1ai"
|
||||
],
|
||||
"outbound": "proxy-wireguard"
|
||||
},
|
||||
{
|
||||
"rule_set": [
|
||||
"geoip-ru"
|
||||
],
|
||||
"outbound": "proxy-wireguard"
|
||||
}
|
||||
],
|
||||
"auto_detect_interface": true,
|
||||
"final": "proxy-vless"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
' Áëîê ïîâûøåíèÿ ïðàâ (îñòàâüòå åãî â íà÷àëå)
|
||||
If Not WScript.Arguments.Named.Exists("elevate") Then
|
||||
CreateObject("Shell.Application").ShellExecute "wscript.exe", _
|
||||
"""" & WScript.ScriptFullName & """ /elevate", "", "runas", 1
|
||||
WScript.Quit
|
||||
End If
|
||||
|
||||
' ÈÑÏÐÀÂËÅÍÈÅ: Ïîëó÷àåì ïóòü ê ïàïêå, ãäå ëåæèò âàø VBS-ôàéë
|
||||
Set fso = CreateObject("Scripting.FileSystemObject")
|
||||
strPath = fso.GetParentFolderName(WScript.ScriptFullName)
|
||||
|
||||
Set WshShell = CreateObject("WScript.Shell")
|
||||
|
||||
' Çàïóñêàåì bat-ôàéë, óêàçûâàÿ åãî ÏÎËÍÛÉ ïóòü
|
||||
' 0 — ñêðûòü îêíî, True — æäàòü çàâåðøåíèÿ (ïî æåëàíèþ)
|
||||
WshShell.Run chr(34) & strPath & "\start1.bat" & Chr(34), 1, True
|
||||
|
||||
Set WshShell = Nothing
|
||||
Set fso = Nothing
|
||||
@@ -0,0 +1,7 @@
|
||||
@echo off
|
||||
cd /d "%~dp0"
|
||||
set ENABLE_DEPRECATED_WIREGUARD_OUTBOUND=true
|
||||
set ENABLE_DEPRECATED_TUN_ADDRESS_X=true
|
||||
set ENABLE_DEPRECATED_SPECIAL_OUTBOUNDS=true
|
||||
.\..\bin\sb.exe run -c config1.json
|
||||
pause
|
||||
BIN
Binary file not shown.
Reference in New Issue
Block a user