配置信息格式

高级规则的配置信息格式,快速使用方法!

配置信息格式说明

通过配置信息快速生成含有配置信息规则,配置信息格式包含几乎所有参数,不需要的参数可以选择删除!

注意:通过原始数据导入方式建议不要超过5000个字符,否则可能无法导入,如果过长推荐使用URL方式导入!

支持全部http/https/socks5/socks5-tls/custom服务器类型,支持全新tfo/obfs特性!

整个配置需要使用JSON格式编写,请按照JSON标准编写!

为了确保配置正确性,可以使用JSON校验进行检查正确性!

为了降低字符串数量,可以使用JSON压缩进行压缩字符串!

最后使用Base64编码进行编码配置数据!

进行这些步骤之后你会得到Base64数据,你可以将数据放置在{规则名称}?JSON=后面导入使用!

或者你可以直接将JSON数据存储为一个文件,然后通过{规则名称}?JSON={文件URL}方式导入!

关于配置信息格式

高级规则语法 功能描述
Author 使用该配置用户的名字非必要
Version 用于区分不同版本的重要信息必要
MITM MITM信息,true为开启\ 15F5092B为ca-passphrase信息\ URL为ca-p12信息
External 外部控制器,true开启\ BurpSuite密码\ 0.0.0.0默认信息\ 6170端口
MacOS MacOS参数,true开启\ 1.2.3.4监听地址\ 5.6.7.8socks监听地址\ 3040服务端口\ 5030socks服务端口
DNS DNS参数,true开启\ 8.8.8.8主DNS\ 8.8.4.4副DNS,还可以继续无限增加
EnhancedMode 等价enhanced-mode-by-rule参数,TUN增强模式
ExcludeHost 等价exclude-simple-hostnames参数
WIFIAccess 等价allow-wifi-access参数,允许WIFI访问
Replica 等价replica参数,抓取流量默认关闭
URLREGEX 等价URL-REGEX参数,2.x版本以上支持,以下会报错可以关闭
IPCIDR6 等价IP-CIDR6参数,2.x版本以上支持,以下会报错可以关闭
USERAGENT 等价USER-AGENT参数,2.x版本以上支持,以下会报错可以关闭
IPV6 IPV6支持
Rule 选择代理列表高级或基本,开启选择基本规则,不开启选择高级规则规则数量变化
SERVER 第一个参数为代理名称,第二个为类型,第三个为地址,第四个为加密方式或用户名,第五个为密码
Module custom模块,shadowsocks必须添加,只有填写了[Module]才会输出Other->Module信息
Group 等价与规则组,规则组包含代理名称,可以放置无限个代理,可以为AutoGroup
Apple Apple规则块的后缀,可以填写Group组的名称,可以随意自定义
Apple Apple规则块的后缀,可以填写Group组的名称,可以随意自定义
Proxy Proxy规则块的后缀,可以填写Group组的名称,可以随意自定义
KEYWORD KEYWORD规则块的后缀,可以填写Group组的名称,可以随意自定义
URLREGEX URLREGEX规则块的后缀,可以填写Group组的名称,可以随意自定义只有启用才会生效
USERAGENT USERAGENT规则块的后缀,可以填写Group组的名称,可以随意自定义只有启用才会生效
IPCIDR6 IPCIDR6规则块的后缀,可以填写Group组的名称,可以随意自定义只有启用才会生效
IPCIDR IPCIDR规则块的后缀,可以填写Group组的名称,可以随意自定义
Other Other规则块的后缀,可以填写Group组的名称,可以随意自定义
Module 就是上面提到的Module
List 规则列表参数,规则列表参数必须存在缺少无法生成规则

Info格式示例

如果你需要使用除Surge之外的Advanced规则,那么你需要了解Info格式!

简要概括:通过[规则名称]|标记符进行区分规则所属服务器信息,非当前规则服务器将会跳过!

配置信息格式示例

  1. {
  2. "Configuration": {
  3. "Author": "BurpSuite",
  4. "Version": "6.0"
  5. },
  6. "Arguments": {
  7. "MITM": "true,15F5092B,https://raw.githubusercontent.com/BurpSuite/RuleList/master/Example/MITM",
  8. "External": "true,BurpSuite@0.0.0.0:6170",
  9. "MacOS": "true,1.2.3.4,5.6.7.8,3040,5030",
  10. "DNS": "true,8.8.8.8,8.8.4.4"
  11. },
  12. "General": {
  13. "EnhancedMode": true,
  14. "ExcludeHost": true,
  15. "WIFIAccess": true,
  16. "Replica": false,
  17. "URLREGEX": true,
  18. "IPCIDR6": true,
  19. "USERAGENT": true,
  20. "IPV6": false,
  21. "Rule": true
  22. },
  23. "Info": {
  24. "SERVER": [
  25. "[Surge]|SERVERNama = http,1.2.3.1,8081,User,Password1",
  26. "[Surge]|SERVERNamb = https,1.2.3.2,8082,User,Password2,skip-cert-verify=true",
  27. "[Surge]|SERVERNamc = socks5,1.2.3.3,8083,User,Password3",
  28. "[Surge]|SERVERNamd = socks5-tls,1.2.3.4,8084,User,Password4,skip-cert-verify=true",
  29. "[Surge]|SERVERName = custom,1.2.3.5,8085,chacha20,Password5,[Module]",
  30. "[Surge]|SERVERNamf = custom,1.2.3.6,8086,chacha20,Password5,[Module],obfs=http,obfs-host=www.google.com",
  31. "[Surge]|SERVERNamg = custom,1.2.3.6,8086,chacha20,Password5,[Module],tfo=true"
  32. ],
  33. "Group": [
  34. "[Surge]|Proxya = select,SERVERNama,SERVERNamb,SERVERNamc,SERVERNamd,SERVERName",
  35. "[Surge]|Proxyb = select,SERVERNama,SERVERNamb,SERVERNamc,SERVERNamd",
  36. "[Surge]|Proxyc = select,SERVERNama,SERVERNamb,SERVERName",
  37. "[Surge]|Proxyd = select,SERVERNamd,SERVERName",
  38. "[Surge]|Autoxy = url-test,SERVERNama, SERVERNamb, url = http://www.gstatic.com/generate_204, interval = 600, tolerance = 200, timeout = 5"
  39. ]
  40. },
  41. "SUFFIX": {
  42. "Apple": "Proxyd",
  43. "Proxy": "Autoxy",
  44. "KEYWORD": "Proxyb",
  45. "URLREGEX": "Proxyb",
  46. "USERAGENT": "Proxya",
  47. "IPCIDR6": "Proxyc",
  48. "IPCIDR": "Proxyc",
  49. "Other": "Autoxy"
  50. },
  51. "Other": {
  52. "Module": "https://raw.githubusercontent.com/BurpSuite/RuleList/master/Module/Module",
  53. "List": "https://raw.githubusercontent.com/BurpSuite/RuleList/master/Default.json"
  54. }
  55. }

配置信息压缩示例

  1. {"Configuration":{"Author":"BurpSuite","Version":"6.0"},"Arguments":{"MITM":"true,15F5092B,https://raw.githubusercontent.com/BurpSuite/RuleList/master/Example/MITM","External":"true,BurpSuite@0.0.0.0:6170","MacOS":"true,1.2.3.4,5.6.7.8,3040,5030","DNS":"true,8.8.8.8,8.8.4.4"},"General":{"EnhancedMode":true,"ExcludeHost":true,"WIFIAccess":true,"Replica":false,"URLREGEX":true,"IPCIDR6":true,"USERAGENT":true,"IPV6":false,"Rule":true},"Info":{"SERVER":["[Surge]|SERVERNama = http,1.2.3.1,8081,User,Password1","[Surge]|SERVERNamb = https,1.2.3.2,8082,User,Password2,skip-cert-verify=true","[Surge]|SERVERNamc = socks5,1.2.3.3,8083,User,Password3","[Surge]|SERVERNamd = socks5-tls,1.2.3.4,8084,User,Password4,skip-cert-verify=true","[Surge]|SERVERName = custom,1.2.3.5,8085,chacha20,Password5,[Module]","[Surge]|SERVERNamf = custom,1.2.3.6,8086,chacha20,Password5,[Module],obfs=http,obfs-host=www.google.com","[Surge]|SERVERNamg = custom,1.2.3.6,8086,chacha20,Password5,[Module],tfo=true"],"Group":["[Surge]|Proxya = select,SERVERNama,SERVERNamb,SERVERNamc,SERVERNamd,SERVERName","[Surge]|Proxyb = select,SERVERNama,SERVERNamb,SERVERNamc,SERVERNamd","[Surge]|Proxyc = select,SERVERNama,SERVERNamb,SERVERName","[Surge]|Proxyd = select,SERVERNamd,SERVERName","[Surge]|Autoxy = url-test,SERVERNama, SERVERNamb, url = http://www.gstatic.com/generate_204, interval = 600, tolerance = 200, timeout = 5"]},"SUFFIX":{"Apple":"Proxyd","Proxy":"Autoxy","KEYWORD":"Proxyb","URLREGEX":"Proxyb","USERAGENT":"Proxya","IPCIDR6":"Proxyc","IPCIDR":"Proxyc","Other":"Autoxy"},"Other":{"Module":"https://raw.githubusercontent.com/BurpSuite/RuleList/master/Module/Module","List":"https://raw.githubusercontent.com/BurpSuite/RuleList/master/Default.json"}}

配置信息编码示例

  1. eyJDb25maWd1cmF0aW9uIjp7IkF1dGhvciI6IkJ1cnBTdWl0ZSIsIlZlcnNpb24iOiI1LjAifSwiQXJndW1lbnRzIjp7Ik1JVE0iOiJ0cnVlLDE1RjUwOTJCLGh0dHBzOi8vcmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbS9CdXJwU3VpdGUvUnVsZUxpc3QvbWFzdGVyL0V4YW1wbGUvTUlUTSIsIkV4dGVybmFsIjoidHJ1ZSxCdXJwU3VpdGVAMC4wLjAuMDo2MTcwIiwiTWFjT1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lbnQuY29tL0J1cnBTdWl0ZS9SdWxlTGlzdC9tYXN0ZXIvTW9kdWxlL01vZHVsZSIsIkxpc3QiOiJodHRwczovL3Jhdy5naXRodWJ1c2VyY29udGVudC5jb20vQnVycFN1aXRlL1J1bGVMaXN0L21hc3Rlci9EZWZhdWx0Lmpzb24ifX0=

网址配置示例

  1. https://async.be/Rule/JSON/Surge?JSON=https://raw.githubusercontent.com/BurpSuite/RuleList/master/Example/Example.json