Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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 help

NAME:
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 command

GLOBAL 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"
}
```