Browse Source

working on attacks 1 level

cecylia 8 years ago
parent
commit
a155fae063
3 changed files with 6 additions and 6 deletions
  1. 2 2
      js/devicescripts.js
  2. 3 3
      levels/04 Attacks/attacks01.json
  3. 1 1
      phaser.inc.php

+ 2 - 2
js/devicescripts.js

@@ -152,7 +152,7 @@ var deviceScripts = {
                                 },
                                 application: {
                                     type: "keyresponse",
-                                    payload: "123456"
+                                    key: "123456"
                                 }
                             }
                             sendPacket(device.id, portNum, new_packet);
@@ -168,7 +168,7 @@ var deviceScripts = {
                                 },
                                 application: {
                                     type: "message",
-                                    payload: packet.application.payload
+                                    key: packet.application.key
                                 }
                             }
                             sendPacket(device.id, portNum, new_packet);

+ 3 - 3
levels/04 Attacks/attacks01.json

@@ -83,16 +83,16 @@
 			payload:{
 				network:{srcip:"Alice",dstip:"Bob"},
 				transport:{proto:"encryption"},
-				application:{type:"message",encryptionkey:"31337"}
+				application:{type:"message",key:"31337"}
 			}
 		},
 		{
 			type:"packet",
 			device:"Bob",
 			payload:{
-				network:{srcip:"Alice"},
+				network:{srcip:"Alice", dstip: "Bob"},
 				transport:{proto:"encryption"},
-				application:{type:"message",encryptionkey:"123456"}
+				application:{type:"message",key:"123456"}
 			}
 		}
         ]

+ 1 - 1
phaser.inc.php

@@ -13,7 +13,7 @@ var packetFields = [
 		"proto", "ttl"
 	]},
         {layer:"application", fields:[
-                "type", "payload"
+                "type", "key"
 	]}
 ];