Skip to content

Extract info from v2ray, xray and wireguard config file and upload to database.

Notifications You must be signed in to change notification settings

shafiqsaaidin/go-csv-to-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extract information from config file


Get V2ray info from config file

  • Get all email
awk '/"email"/ {print $2}' /etc/xray/config.json | sed -e 's/^"//' -e 's/"$//'
  • Get all uuid
awk '/"id"/ {print $2}' /etc/xray/config.json | sed -e 's/^"//' -e 's/",$//'
  • Get all username by removing @vpnje.com
awk '/"email"/ {print $2}' /etc/xray/config.json | sed -e 's/^"//' -e 's/\-.*$//' -e 's/@vpnje.com"$//'

Get Wireguard info

  • Get all email
grep -w "# BEGIN_PEER" /etc/wireguard/wg0.conf | awk '{print $3}'

About

Extract info from v2ray, xray and wireguard config file and upload to database.

Resources

Stars

Watchers

Forks

Languages