Kodkollektivet / owtf-valhalla

owtf-valhalla
Other
2 stars 3 forks source link

API endpoint with commands #35

Closed jherrlin closed 8 years ago

jherrlin commented 8 years ago

Endpoint that contains only the available commands: JSON Structure like this: The 1,2 and 3 are the OWASP codes. They are the key, in each key there is a list with commands for that OWASP code.

{ "1": [ { "code": "1", "target": "", "image": "owtfvalhallatestcontainer:0.1", "noise": "passive", "command": "sleep 5s", "description": "Test" }, { "code": "1", "target": "", "image": "owtfvalhallatestcontainer:0.1", "noise": "passive", "command": "sleep 5s", "description": "Test" }, { "code": "1", "target": "", "image": "owtfvalhallatestcontainer1:0.1", "noise": "passive", "command": "sleep 5s", "description": "Test" }, { "code": "1", "target": "", "image": "owtfvalhallatestcontainer1:0.1", "noise": "passive", "command": "sleep 5s", "description": "Test" } ], "3": [ { "code": "3", "target": "", "image": "owtfvalhallatestcontainer1:0.1", "noise": "passive", "command": "sleep 5s", "description": "Test" } ], "2": [ { "code": "2", "target": "", "image": "owtfvalhallatestcontainer:0.1", "noise": "passive", "command": "sleep 5s", "description": "Test" }, { "code": "2", "target": "", "image": "owtfvalhallatestcontainer1:0.1", "noise": "passive", "command": "sleep 5s", "description": "Test" }, { "code": "2", "target": "", "image": "owtfvalhallatestcontainer1:0.1", "noise": "passive", "command": "sleep 5s", "description": "Test" } ] }

jherrlin commented 8 years ago

Resolved in #34

jherrlin commented 8 years ago

Endpoint can be found at: /containers/commands/

jherrlin commented 8 years ago

Resolved in #46