Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
elearning:workbooks:centos:6:sec:l104 [2020/02/21 06:08] – créée admin | elearning:workbooks:centos:6:sec:l104 [2024/04/25 11:53] (Version actuelle) – admin | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
~~PDF: | ~~PDF: | ||
- | Version : **2020.01** | + | Version : **2020.03** - Consulter le Change Log en fin de module. |
Dernière mise-à-jour : ~~LASTMOD~~ | Dernière mise-à-jour : ~~LASTMOD~~ | ||
Ligne 7: | Ligne 7: | ||
======LRF404 - Balayage des Ports====== | ======LRF404 - Balayage des Ports====== | ||
- | Dans cette unité, vous allez apprendre : | + | =====Contenu du Module===== |
- | * Comment scanner les ports d'un système d' | + | * **LRF404 - Balayage des Ports** |
- | | + | |
- | * Comment mettre | + | * Le Problématique |
+ | * LAB #1 - Utilisation | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | * LAB #2 - Mise en place du Système de Détection d' | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | * 2020.01 | ||
+ | * 2020.02 | ||
+ | * 2020.03 | ||
=====Le Problématique===== | =====Le Problématique===== | ||
Ligne 655: | Ligne 679: | ||
< | < | ||
- | [root@centos7 ~]# yum install | + | [root@centos7 ~]# rpm -ivh https://www.dropbox.com/scl/fi/qfum8mzhl0sgxud7sl4qd/ |
</ | </ | ||
Ligne 661: | Ligne 685: | ||
< | < | ||
- | [root@centos7 ~]# yum install http://download-ib01.fedoraproject.org/pub/ | + | [root@centos7 ~]# rpm -ivh https://www.dropbox.com/scl/fi/y0og3n0uvmbzpxlk3ry7e/ |
</ | </ | ||
+ | |||
Il est maintenant possible d' | Il est maintenant possible d' | ||
< | < | ||
- | [root@centos7 ~]# yum install | + | [root@centos7 ~]# rpm -ivh https:// |
</ | </ | ||
Ligne 823: | Ligne 848: | ||
< | < | ||
- | [root@centos7 ~]# wget https:// | + | [root@centos7 ~]# wget https:// |
- | --2017-08-05 15: | + | |
- | Resolving www.snort.org (www.snort.org)... 104.16.65.75, | + | |
- | Connecting to www.snort.org (www.snort.org)|104.16.65.75|: | + | |
- | HTTP request sent, awaiting response... 302 Found | + | |
- | Location: https:// | + | |
- | --2017-08-05 15: | + | |
- | Resolving s3.amazonaws.com (s3.amazonaws.com)... 54.231.82.12 | + | |
- | Connecting to s3.amazonaws.com (s3.amazonaws.com)|54.231.82.12|: | + | |
- | HTTP request sent, awaiting response... 200 OK | + | |
- | Length: 45752661 (44M) [application/ | + | |
- | Saving to: ‘/ | + | |
- | + | ||
- | 100%[=============================================================================================> | + | |
- | + | ||
- | 2017-08-05 15:58:19 (119 KB/s) - ‘/ | + | |
</ | </ | ||
Ligne 910: | Ligne 920: | ||
... | ... | ||
</ | </ | ||
- | |||
- | Créez ensuite les deux fichiers ci-dessous : | ||
- | |||
- | < | ||
- | [root@centos7 ~]# touch / | ||
- | [root@centos7 ~]# touch / | ||
- | </ | ||
Décommentez la ligne qui commence par **ooutput unified2** concernant la journalisation et supprimez le mot **nostamp** : | Décommentez la ligne qui commence par **ooutput unified2** concernant la journalisation et supprimez le mot **nostamp** : | ||
Ligne 928: | Ligne 931: | ||
</ | </ | ||
- | Commentez ensuite la ligne commencant | + | Commentez ensuite la ligne commençant |
< | < | ||
# path to dynamic rules libraries | # path to dynamic rules libraries | ||
# dynamicdetection directory / | # dynamicdetection directory / | ||
+ | </ | ||
+ | |||
+ | Créez ensuite les deux fichiers ci-dessous : | ||
+ | |||
+ | < | ||
+ | [root@centos7 ~]# touch / | ||
+ | [root@centos7 ~]# touch / | ||
</ | </ | ||
Ligne 1145: | Ligne 1155: | ||
< | < | ||
- | [root@centos7 ~]# yum install http://flexbox.sourceforge.net/centos/5/x86_64// | + | [root@centos7 ~]# rpm -ivh https://www.dropbox.com/scl/fi/v1iniimmjkvj0kx6xllmt/ |
Loaded plugins: fastestmirror, | Loaded plugins: fastestmirror, | ||
portsentry-1.2-1.el5.x86_64.rpm | portsentry-1.2-1.el5.x86_64.rpm | ||
Ligne 1482: | Ligne 1492: | ||
</ | </ | ||
- | Dernièrement pour rendre le service SysVInit compatible avec Systemd, éditez le fichier **/ | + | Pour rendre le service SysVInit compatible avec Systemd, éditez le fichier **/ |
< | < | ||
Ligne 1518: | Ligne 1528: | ||
85 # See how we were called. | 85 # See how we were called. | ||
... | ... | ||
+ | </ | ||
+ | |||
+ | Dernièrement, | ||
+ | |||
+ | < | ||
+ | [root@centos7 ~]# yum install -y initscripts | ||
</ | </ | ||
Ligne 1587: | Ligne 1603: | ||
28 # Exclude all local interfaces | 28 # Exclude all local interfaces | ||
- | 29 #10.0.2.15 < | + | 29 #172.YY+20.0.3 < |
30 fe80:: | 30 fe80:: | ||
31 127.0.0.1 | 31 127.0.0.1 | ||
Ligne 1605: | Ligne 1621: | ||
< | < | ||
- | [root@centos7 ~]# nmap -sC 10.0.2.15 | + | [root@centos7 ~]# nmap -sC 172.YY+20.0.3 |
Starting Nmap 6.40 ( http:// | Starting Nmap 6.40 ( http:// | ||
Ligne 1622: | Ligne 1638: | ||
Chain INPUT (policy ACCEPT) | Chain INPUT (policy ACCEPT) | ||
target | target | ||
- | DROP | + | DROP |
ACCEPT | ACCEPT | ||
ACCEPT | ACCEPT | ||
Ligne 1684: | Ligne 1700: | ||
----- | ----- | ||
+ | |||
< | < | ||
<div align=" | <div align=" |