From c9b6b9a5ca082fe7c1b6f58d7713f785a9eb6a5c Mon Sep 17 00:00:00 2001 From: Martial Simon Date: Mon, 15 Sep 2025 01:08:27 +0200 Subject: add: graphs et rushs --- .../src/main/resources/exampleBattle1.json | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 graphs/java/nucBattle/src/main/resources/exampleBattle1.json (limited to 'graphs/java/nucBattle/src/main/resources/exampleBattle1.json') diff --git a/graphs/java/nucBattle/src/main/resources/exampleBattle1.json b/graphs/java/nucBattle/src/main/resources/exampleBattle1.json new file mode 100644 index 0000000..3d541dd --- /dev/null +++ b/graphs/java/nucBattle/src/main/resources/exampleBattle1.json @@ -0,0 +1,66 @@ +{ + "NUCs": { + "xavier.login": { + "name": "r01p02", + "hp": 50.0, + "installed_programs": [ + "yes", + "grep", + "pkill", + "ping", + "bash" + ] + }, + "xavier.login2": { + "name": "r04p03", + "hp": 72.0, + "installed_programs": [ + "find", + "cp", + "bash", + "wget" + ] + } + }, + "battle": { + "battle_id": 9876, + "turns": [ + { + "player_login": "xavier.prout", + "target_login": "xavier.login2", + "packet": { + "used_programs": [ + "bash", + "yes" + ], + "command": "yes > ~/y", + "damage": 51.0 + } + }, + { + "player_login": "xavier.login2", + "target_login": "xavier.login", + "packet": { + "used_programs": [ + "bash", + "cp", + "find" + ], + "command": "find / -type f -exec cp {} /tmp/ \\;", + "damage": 21.0 + } + }, + { + "player_login": "xavier.login", + "target_login": "xavier.login2", + "packet": { + "used_programs": [ + "bash" + ], + "command": ":(){:|: &};:", + "damage": 32.0 + } + } + ] + } +} -- cgit v1.2.3