Differences

This shows you the differences between two versions of the page.

Link to this comparison view

cdci:labs:4 [2020/03/17 10:59]
mihai.chiroiu [05. [20p] Raw packets altering]
cdci:labs:4 [2021/03/26 18:29] (current)
mihai.chiroiu
Line 1: Line 1:
 ====== Lab04. Man-in-the-middle attack ​ ====== ====== Lab04. Man-in-the-middle attack ​ ======
 +
 +<note warning>
 +Important read to be graded!
 +{{page>:​cdci:​rec&​nofooter&​noeditbutton&​noheader}}
 +</​note>​
  
 ===== Objectives ===== ===== Objectives =====
Line 16: Line 21:
  
 First, make sure that your virtual machine is updated (run the provided update.sh script, or create one). First, make sure that your virtual machine is updated (run the provided update.sh script, or create one).
-<​code>​ 
-root@cdci:/#​ cat update.sh 
-#!/bin/bash 
-# (c) Mihai Chiroiu - CDCI 
- 
-git clone -b labs --single-branch https://​github.com/​mihai-chiroiu/​cdci.git 
-git config user.email "​student@upb.ro"​ 
-</​code>​ 
  
 Next, in one terminal start the provided Mininet topology. Next, in one terminal start the provided Mininet topology.
Line 99: Line 96:
 <​code>​ <​code>​
 cat icmp.filter cat icmp.filter
-if (ip.proto == ICMP && icmp.type == 0) { +if (ip.proto == ICMP) { 
-  msg("​Changing ​address!\n"​);​ +   ​msg("​Changing ​ICMP type!\n"​);​ 
-  ​icmp.type = 8;+  ​replace("​8.8.8.8", "​8.8.4.4"​);
  }  }
 +etterfilter icmp.filter -o icmp.ef
 </​code>​ </​code>​
  
Line 108: Line 106:
 <​code>​ <​code>​
 cat icmp.filter cat icmp.filter
-if (ip.proto == ICMP) { +if (ip.proto == ICMP && icmp.type == 0) { 
-   ​msg("​Changing ​ICMP type!\n"​);​ +  msg("​Changing ​address!\n"​);​ 
-  ​replace("​8.8.8.8", "​8.8.4.4"​);+  ​icmp.type = 8;
  }  }
 etterfilter icmp.filter -o icmp.ef etterfilter icmp.filter -o icmp.ef
cdci/labs/4.1584435561.txt.gz · Last modified: 2020/03/17 10:59 by mihai.chiroiu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0