posgnu / pajero

Packet analyzer for attack & defense CTF
GNU General Public License v3.0
7 stars 2 forks source link

Wrapper for config.json #20

Closed posgnu closed 5 years ago

posgnu commented 5 years ago

config.json will be constructed like this.

"team" : [
  { "name" : PLUS, "ip" : 0.0.0.0, "service" : [ {"name" : bof, "port" : 8888 }, .. ] } , ...
],
"service" : [
  {"name" : bof "flag" : "DEFCON{"}}, ..
]

We need a wrapper module providing CRUD of config.json.

posgnu commented 5 years ago

{ "teams": [{ "name": "PLUS", "ip": "0.0.0.0" }, { "name": "PLUS1", "ip": "0.0.0.1" }, { "name": "PLUS2", "ip": "0.0.0.2" }, { "name": "PLUS3", "ip": "175.45.176.0" }, { "name": "PLUS4", "ip": "175.45.176.1" }, { "name": "PLUS5", "ip": "175.45.176.2" }, { "name": "PLUS6", "ip": "175.45.176.3" }, { "name": "PLUS7", "ip": "175.45.176.4" }, { "name": "PLUS8", "ip": "175.45.176.5" }, { "name": "PLUS9", "ip": "175.45.176.6" }, { "name": "PLUS10", "ip": "175.45.176.7" }, { "name": "PLUS11", "ip": "175.45.176.8" }, { "name": "PLUS12", "ip": "175.45.176.9" }, { "name": "PLUS13", "ip": "175.45.176.10" }], "services": [{ "name": "bof", "flag": "DEFCON{", "port": 8888 }, { "name": "uaf", "flag": "DEFCON{", "port": 7777 }, { "name": "service5", "flag": "DEFCON{", "port": 6969 }, { "name": "service7", "flag": "DEFCON{", "port": 10001 }, { "name": "service9", "flag": "DEFCON{", "port": 1221 }] }