Browse Source

working on attacks level 2

cecylia 8 years ago
parent
commit
4aa9775b92
2 changed files with 115 additions and 0 deletions
  1. 17 0
      levels/04 Attacks/attacks02.html
  2. 98 0
      levels/04 Attacks/attacks02.json

+ 17 - 0
levels/04 Attacks/attacks02.html

@@ -0,0 +1,17 @@
+
+<h1>Attacks Level 1</h1>
+
+<p>In this level, Alice's Internet browsing is being <strong>censored.</strong> She can browse an <strong>allowed site</strong>, but the censor will drop any packets to a <strong>blocked site</strong>.
+
+<p>One way to evade censorship is to make an intermediate connection to a <strong>proxy server</strong>. This server will take packets that are destined to it and redirect them to the blocked site. Since the censor can only see the link between Alice and the proxy, it does not know which site Alice is browsing through it.
+
+<p>To beat this level, you need to evade the censor and send a packet from Alice to the Blocked Site.</p>
+
+<p><em><strong>Hint:</strong> there is an example of how the encryption protocol works at the top of the field.  Use the 
+<span class="button">pause</span> button to see what the values of the packet headers are in the protocol.</em>
+
+<h3>Level Objectives</h3>
+
+<ul>
+    <li>Send a packet from Alice to Blocked Site.</li>
+</ul>

+ 98 - 0
levels/04 Attacks/attacks02.json

@@ -0,0 +1,98 @@
+{
+	devices:[
+		{
+			id:"Alice",
+			ports:1,
+			x:0.25,
+			y:0.6,
+                        script: deviceScripts.encryption,
+                        player: true
+		},
+		{
+			id:"Censor",
+                        image: "router",
+			ports:4,
+			x:0.5,
+			y:0.6,
+                        script: deviceScripts.manualRouter,
+			rules:[
+				{dstip:"Alice", portNum:0},
+                                {dstip:"Allowed Site", portNum:2},
+                                {dstip:"Proxy", portNum:3}
+			],
+			player:false
+		},
+		{
+			id:"Blocked Site",
+                        image: "server",
+			ports:1,
+			x:0.8,
+			y:0.4,
+			player:false
+		},
+		{
+			id:"Allowed Site",
+                        image: "server",
+			ports:1,
+			x:0.8,
+			y:0.6
+		},
+		{
+			id:"Proxy",
+                        image: "server",
+			ports:1,
+			x:0.6,
+			y:0.4,
+                        script: deviceScripts.manualRouter
+		}
+	],
+	links:[
+		{
+			src:"Alice", srcport:0,
+			dst:"Censor", dstport:0
+		},
+		{
+			src:"Censor", srcport:1,
+			dst:"Blocked Site", dstport:0
+		},
+		{
+			src:"Censor", srcport:2,
+			dst:"Allowed Site", dstport:0
+		},
+		{
+			src:"Censor", srcport:3,
+			dst:"Proxy", dstport:0
+		},
+		{
+			src:"Proxy", srcport:0,
+			dst:"Blocked Site", dstport:0
+		}
+	],
+	timeline:[
+		{
+			type:"packet",
+			at:500,
+			from:"Alice",
+			payload:{
+				network:{srcip:"Alice",dstip:"Allowed Site"}
+			}
+		},
+		{
+			type:"packet",
+			at:500,
+			from:"Alice",
+			payload:{
+				network:{srcip:"Alice",dstip:"Blocked Site"}
+			}
+		}
+	],
+	triggers:[
+		{
+			type:"packet",
+			device:"Blocked Site",
+			payload:{
+				network:{srcip:"Alice",dstip:"Blocked Site"}
+			}
+		}
+        ]
+}