Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gvcgo/vpnparser
Parse VPN URI to sing-box/xray-core Outbound.
https://github.com/gvcgo/vpnparser
parser shadowsocks shadowsocksr ss ssr trojan vless vmess wireguard
Last synced: 3 months ago
JSON representation
Parse VPN URI to sing-box/xray-core Outbound.
- Host: GitHub
- URL: https://github.com/gvcgo/vpnparser
- Owner: gvcgo
- License: mit
- Created: 2023-08-28T11:27:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-15T13:59:27.000Z (10 months ago)
- Last Synced: 2024-09-26T21:23:19.280Z (3 months ago)
- Topics: parser, shadowsocks, shadowsocksr, ss, ssr, trojan, vless, vmess, wireguard
- Language: Go
- Homepage:
- Size: 240 KB
- Stars: 10
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vpnparser
Vpnparser parses VPN URI to sing-box/xray-core Outbound.## install
```bash
go install github.com/moqsien/vpnparser@latest
```## commands
```bash
moqsien> vpnparser helpNAME:
vpnparser.exe - vpnparser ...USAGE:
vpnparser.exe [global options] command [command options] [arguments...]DESCRIPTION:
vpnparser, download files from github for gvc.COMMANDS:
sing, s Generate sing-box outbound from vpn url.
xray, x Generate xray-core outbound from vpn url.
help, h Shows a list of commands or help for one commandGLOBAL OPTIONS:
--help, -h show help
```## examples
```bash
moqsien> vpnparser s "ss://chacha20-ietf-poly1305:[email protected]:2377/?plugin=obfs-local\u0026obfs=tls\u0026obfs-host=(TG@WangCai_1)c68b799:50307#8DKJ|www.zyw.asia ZYW免费节点"ss://chacha20-ietf-poly1305:[email protected]:2377/?plugin=obfs-local\u0026obfs=tls\u0026obfs-host=(TG@WangCai_1)c68b799:50307#8DKJ|www.zyw.asia ZYW免费节点
{
"method": "chacha20-ietf-poly1305",
"password": "t0srmdxrm3xyjnvqz9ewlxb2myq7rjuv",
"plugin": "obfs-local\\u0026obfs=tls\\u0026obfs-host=(TG@WangCai_1)c68b799:50307",
"server": "4e168c3.h4.gladns.com",
"server_port": 2377,
"tag": "PROXY_OUT",
"tls": {
"enabled": false
},
"transport": {},
"type": "shadowsocks"
}
``````bash
moqsien> .\vpnparser.exe x '"vmess://{\"add\":\"us47.encrypted.my.id\",\"port\":\"80\",\"id\":\"4bf9b7e0-85d1-4a59-9a29-e6619dcd7c50\",\"aid\":\"0\",\"scy\":\"auto\",\"net\":\"ws\",\"v\":\"2\",\"ps\":\"美国_0828698\",\"host\":\"\",\"path\":\"/pSAXxD8Ib7FZloqUMG\",\"tls\":\"\",\"sni\":\"\",\"type\":\"none\",\"serverPort\":0,\"nation\":\"🇺🇸US\"}"'vmess://{"add":"us47.encrypted.my.id","port":"80","id":"4bf9b7e0-85d1-4a59-9a29-e6619dcd7c50","aid":"0","scy":"auto","net":"ws","v":"2","ps":"美国_0828698","host":"","path":"/pSAXxD8Ib7FZloqUMG","tls":"","sni":"","type":"none","serverPort":0,"nation":"🇺🇸US"}
{
"protocol": "vmess",
"sendThrough": "0.0.0.0",
"settings": {
"vnext": [
{
"address": "us47.encrypted.my.id",
"port": 80,
"users": [
{
"alterId": 0,
"id": "4bf9b7e0-85d1-4a59-9a29-e6619dcd7c50",
"security": "auto"
}
]
}
]
},
"streamSettings": {
"network": "ws",
"security": "",
"wsSettings": {
"headers": {
"Host": ""
},
"path": "/pSAXxD8Ib7FZloqUMG"
}
},
"tag": "PROXY_OUT"
}
```