TP sysres IMA2a5 2019/2020 G1

De Wiki d'activités IMA

Maxime Hirt - Fabien Cavalier


Installation de la machine virtuelle avec xen

ssh root@cordouan.insecserv.deule.net
   xen-create-image --hostname=ima2a5-zerofun --dhcp --dir=/usr/local/xen --dist=ascii
   --apt-proxy=http://proxy.polytech-lille.fr:3128

Creation fichier de config:

xl create ima2a5-zerofun.cfg

Fichier de config :

nano ima2a5-zerofun.cfg

  1. Configuration file for the Xen instance ima2a5-zerofun, created
  2. by xen-tools 4.7 on Fri Nov 8 08:57:54 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-zerofun/disk.img,xvda2,w',
                 'file:/usr/local/xen/domains/ima2a5-zerofun/swap.img,xvda1,w',
             ]


  1. Physical volumes


  1. Hostname

name = 'ima2a5-zerofun'

  1. Networking

dhcp = 'dhcp' vif = [ 'mac=00:16:3E:92:4D:4E, bridge=IMA2a5' ]

  1. Behaviour

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


5 Tests d'intrusion Le package aircrack-ng était déjà installé, pas besoin de le refaire. airmon-ng >> phy0 wlx40a5ef0f679b rt2800usb Ralink Technology, Corp. RT5370