Browse Source

working on attacks01

cecylia 8 years ago
parent
commit
c8a0898d96
1 changed files with 2 additions and 0 deletions
  1. 2 0
      js/devicescripts.js

+ 2 - 0
js/devicescripts.js

@@ -188,6 +188,8 @@ var deviceScripts = {
                 if (device.rules[i].dstip == packet.network.dstip) {
                 if (device.rules[i].dstip == packet.network.dstip) {
                     if(portNum == 0){
                     if(portNum == 0){
                         sendPacket(device.id, device.rules[i].portNum, packet);
                         sendPacket(device.id, device.rules[i].portNum, packet);
+                    } else {
+                        sendPacket(device.id, 0, packet);
                     }
                     }
                 }
                 }
             }
             }