|
avr 05
|
Je release au passage un petit code python que j’ai fait a l’arrache dans le cadre de mes cours de sécurité, j’espère que ça sera utile a quelqu’un
|
|
Je release au passage un petit code python que j’ai fait a l’arrache dans le cadre de mes cours de sécurité, j’espère que ça sera utile a quelqu’un
Un exemple de configuration type Cisco pour un routeur, avec une sécurisation de base : # configure terminal # --- GENERAL --- (config)# hostname FAI (config)# enable secret class (config)# line console 0 # --- VTYs --- (config-line)# password cisco (config-line)# login (config-line)# logging synchronous (config-line)# exec-timeout 3 30 (config-line)# exit (config)# line vty 0 15 (config-line)# password cisco (config-line)# login (config-line)# exec-timeout 3 30 (config-line)# logging synchronous (config-line)# exit (config)# banner motd "Avez-vous les droits ?" # --- INTERFACE ETHERNET --- (config)# interface fa0/0 (config-if)# description Réseau client 1 (config-if)# ip address 192.168.10.254 255.255.255.0 (config-if)# no shutdown (config-if)# exit # --- INTERFACE SERIE --- (config)# interface se0/0 (config-if)# description Réseau FAI 1 DCE 64000 Kbps (config-if)# clock rate 64000 (config-if)# bandwith 64 # En Kbps ! (config-if)# encapsulation hdlc # Par défaut (config-if)# ip address 200.200.200.5 255.255.255.252 (config-if)# no shutdown (config-if)# exit # --- ROUTAGE RIP --- (config)# router rip (config-router)# network X.X.X.X (config-router)# exit (config)# exit %SYS-5-CONFIG_I: Configured from console by console Un exemple de configuration type Cisco pour un switch, avec une sécurisation de base : # configure terminal (config)# interface Vlan 1 (config-if)# ip address 192.168.10.253 255.255.255.0 (config-if)# no shutdown (config-if)# exit # --- INTERFACE ETHERNET - VLANs --- (config)# interface fa0/0.100 (config-if)# description Réseau client VLAN 100 (config-if)# encapsulation dot1Q 100 # VLAN 100 (config-if)# bridge-group 1 (config-if)# exit Debuggage :
Tard dans la nuit, un savant fou exulte devant sa nouvelle création. « Pooooooooooooooooooooong » !!! … Wait what ? 2:28 kegeruneku@aurora /media/stock/Travail/VMs% sensors acpitz-virtual-0 Adapter: Virtual device temp1: +88.0°C (crit = +95.0°C) k8temp-pci-00c3 Adapter: PCI adapter Core0 Temp: +82.0°C # --- root> show version Model: olive JUNOS Base OS boot [8.3R1.5] JUNOS Base OS Software Suite [8.3R1.5] JUNOS Kernel Software Suite [8.3R1.5] JUNOS Crypto Software Suite [8.3R1.5] JUNOS Packet Forwarding Engine Support (M/T Common) [8.3R1.5] JUNOS Packet Forwarding Engine Support (M20/M40) [8.3R1.5] JUNOS Online Documentation [8.3R1.5] JUNOS Routing Software Suite [8.3R1.5] root> start shell root@% dmesg|grep QEMU CPU: QEMU Virtual CPU version 0.13.50 (2010.39-MHz 686-class CPU) ad0: 8192MB <QEMU HARDDISK> [16644/16/63] at ata0-master BIOSPIO Teasing !!! bientôt plus … |
|