TP sysres IMA2a5 2019/2020 G5 : Différence entre versions

De Wiki d'activités IMA
Ligne 21 : Ligne 21 :
 
Instalation du proxy
 
Instalation du proxy
 
export http_proxy=http://proxy.polytech-lille.fr:3128
 
export http_proxy=http://proxy.polytech-lille.fr:3128
 +
 +
25000 50%
 +
50000 80% de chance de trouver la clef WEP
 +
  
 
Configuration du commutateur catalyst 4600
 
Configuration du commutateur catalyst 4600
Ligne 37 : Ligne 41 :
  
  
25000 50%#
+
 
 +
 
 
# Configuration file for the Xen instance ima2a5-nofun, created
 
# Configuration file for the Xen instance ima2a5-nofun, created
 
# by xen-tools 4.7 on Fri Nov  8 08:52:31 2019.
 
# by xen-tools 4.7 on Fri Nov  8 08:52:31 2019.

Version du 13 novembre 2019 à 08:12

Salut à tous les amis, on se retrouve pour un nouveau tuto.


Décodage clef WEP

On utilise le logiciel aircrack-ng

Premièrement, il faut activer la carte réseau afin de capter les trames venant des 8 raspberry pi avec clef Wi-Pi.

Configuration de la carte réseau

auto eth0 iface eth0 inet static

  address 172.26.145.202
  netmask 255.255.255.0
  gateway 172.26.145.254

ifdown eth0 ifup eth0

Instalation du proxy export http_proxy=http://proxy.polytech-lille.fr:3128

25000 50% 50000 80% de chance de trouver la clef WEP


Configuration du commutateur catalyst 4600

une fois connecté avec minicom, le commutateur est en état "rommon" on fait donc "boot" pour le redemmarer.


Configurationde la vm sur cordouan brctl show pour retrouver le nom du bridge

Fichier de configuratiion : ima2a5-nofun.cfg

on ouvre avec: root@cordouan:~# nano /etc/xen/ima2a5-nofun.cfg

xen permet de creer la machine virtuelle



  1. Configuration file for the Xen instance ima2a5-nofun, created
  2. by xen-tools 4.7 on Fri Nov 8 08:52:31 2019.
  1. Kernel + memory size

kernel = '/boot/vmlinuz-4.9.0-6-amd64' extra = 'elevator=noop' ramdisk = '/boot/initrd.img-4.9.0-6-amd64'

vcpus = '1' memory = '256'


  1. Disk device(s).

root = '/dev/xvda2 ro' disk = [

                 'file:/usr/local/xen/domains/ima2a5-nofun/disk.img,xvda2,w',
                 'file:/usr/local/xen/domains/ima2a5-nofun/swap.img,xvda1,w',
             ]


  1. Physical volumes


  1. Hostname

name = 'ima2a5-nofun'

  1. Networking

dhcp = 'dhcp' vif = [ 'mac=00:16:3E:C2:61:EB,bridge=IMA2a5' ] #On ajoute le nom du bridge

  1. Behaviour

on_poweroff = 'destroy' on_reboot = 'restart' on_crash = 'restart'

50000 90% de chance de trouver la clef