Browse Source

debugging switch script

cecylia 8 years ago
parent
commit
3c59af965f
2 changed files with 1 additions and 3 deletions
  1. 1 0
      js/devicescripts.js
  2. 0 3
      levels/02 Spoofs/spoofs02.html

+ 1 - 0
js/devicescripts.js

@@ -86,6 +86,7 @@ var deviceScripts = {
             var found = false;
             for (var i = 0; (i < device.rules.length) && !found; i++) {
                 if (device.rules[i].dstip == packet.network.srcip) {
+                    device.rules[i].portNum = portNum;
                     found = true;
                 }
             }

+ 0 - 3
levels/02 Spoofs/spoofs02.html

@@ -1,6 +1,3 @@
-<link rel="stylesheet" href="../../includes/css/base.css" />
-<link rel="stylesheet" href="../../includes/css/style.css" />
-
 <h1>Spoofs Level 2</h1>
 
 <p>This level contains several devices connected to a <strong>switch</strong>. A <strong>switch</strong> is similar