{"id":482000,"date":"2026-06-02T05:50:39","date_gmt":"2026-06-02T05:50:39","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=482000"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=482000","title":{"rendered":"Nmap \u2014 \u0421\u0435\u0442\u0435\u0432\u043e\u0439 \u0441\u043a\u0430\u043d\u0435\u0440 \u043f\u043e\u0440\u0442\u043e\u0432 \u0438 \u0441\u043b\u0443\u0436\u0431"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0420\u0430\u0437\u0432\u0435\u0434\u043a\u0430 \u2014 \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u0442\u0430\u043f \u043b\u044e\u0431\u043e\u0433\u043e \u043f\u0435\u043d\u0442\u0435\u0441\u0442\u0430. \u0426\u0435\u043b\u044c: \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u0446\u0435\u043b\u0438 \u0434\u043e \u043d\u0430\u0447\u0430\u043b\u0430 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439.<\/p>\n<h2>nmap<\/h2>\n<h3>\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442<\/h3>\n<p>\u0421\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442 \u0441\u0435\u0442\u0438 \u0438 \u0445\u043e\u0441\u0442\u044b: \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0435 \u043f\u043e\u0440\u0442\u044b, \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b, \u0432\u0435\u0440\u0441\u0438\u0438 \u041f\u041e \u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443. \u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0443 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0438 \u0430\u043d\u0430\u043b\u0438\u0437 \u043e\u0442\u0432\u0435\u0442\u043e\u0432. \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u0434\u0435-\u0444\u0430\u043a\u0442\u043e \u0434\u043b\u044f \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0440\u0430\u0437\u0432\u0435\u0434\u043a\u0438.<\/p>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h3>\n<pre><code class=\"bash\"># \u041f\u0440\u0435\u0434\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0432 Kali Linux. \u0415\u0441\u043b\u0438 \u043d\u0435\u0442:sudo apt update &amp;&amp; sudo apt install nmap -y<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h3>\u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441<\/h3>\n<pre><code>nmap [\u0442\u0438\u043f \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f] [\u043e\u043f\u0446\u0438\u0438] [\u0446\u0435\u043b\u044c]<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h3>\u041a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0444\u043b\u0430\u0433\u0438 \u0438 \u043e\u043f\u0446\u0438\u0438<\/h3>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0424\u043b\u0430\u0433<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u041f\u0440\u0438\u043c\u0435\u0440<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>-sS<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">SYN-\u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 (\u0441\u0442\u0435\u043b\u0441, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441 root)<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>nmap -sS 192.168.1.1<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>-sT<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">TCP connect (\u0431\u0435\u0437 root)<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>nmap -sT 192.168.1.1<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>-sU<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">UDP-\u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>nmap -sU -p 53,161 192.168.1.1<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>-sV<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0432\u0435\u0440\u0441\u0438\u0439 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>nmap -sV 192.168.1.1<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>-O<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u041e\u0421<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>nmap -O 192.168.1.1<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>-A<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0410\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u043e\u0435: \u041e\u0421 + \u0432\u0435\u0440\u0441\u0438\u0438 + \u0441\u043a\u0440\u0438\u043f\u0442\u044b + traceroute<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>nmap -A 192.168.1.1<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>-p<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0423\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u0440\u0442\u044b<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>-p 22,80,443<\/code> \u0438\u043b\u0438 <code>-p 1-1000<\/code> \u0438\u043b\u0438 <code>-p-<\/code> (\u0432\u0441\u0435)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>-T0<\/code>\u2026<code>-T5<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c (0=\u043f\u0430\u0440\u0430\u043d\u043e\u0439\u044f, 3=\u043f\u043e \u0443\u043c\u043e\u043b\u0447., 5=\u0431\u0435\u0437\u0443\u043c\u0438\u0435)<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>-T4<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>--open<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0435 \u043f\u043e\u0440\u0442\u044b<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>nmap --open 192.168.1.0\/24<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>-oN<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u044b\u0432\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b (\u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442)<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>-oN scan.txt<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>-oX<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u044b\u0432\u043e\u0434 \u0432 XML<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>-oX scan.xml<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>-oG<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u044b\u0432\u043e\u0434 \u0432 greppable-\u0444\u043e\u0440\u043c\u0430\u0442<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>-oG scan.gnmap<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>-oA<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u044b\u0432\u043e\u0434 \u0432\u043e \u0432\u0441\u0435 \u0442\u0440\u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>-oA scan<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>-v<\/code> \/ <code>-vv<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>nmap -vv<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>-n<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041d\u0435 \u0440\u0435\u0437\u043e\u043b\u0432\u0438\u0442\u044c DNS<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>nmap -n 192.168.1.0\/24<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>--script<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c NSE-\u0441\u043a\u0440\u0438\u043f\u0442<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>--script vuln<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>-iL<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0427\u0438\u0442\u0430\u0442\u044c \u0446\u0435\u043b\u0438 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>-iL targets.txt<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>-Pn<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041d\u0435 \u043f\u0438\u043d\u0433\u043e\u0432\u0430\u0442\u044c \u0445\u043e\u0441\u0442\u044b \u043f\u0435\u0440\u0435\u0434 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>nmap -Pn 192.168.1.1<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>-sn<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">Ping sweep (\u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0445\u043e\u0441\u0442\u043e\u0432)<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>nmap -sn 192.168.1.0\/24<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>--min-rate<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043f\u0430\u043a\u0435\u0442\u043e\u0432\/\u0441\u0435\u043a<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>--min-rate 1000<\/code><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h3>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b<\/h3>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440 1: \u041e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0436\u0438\u0432\u044b\u0445 \u0445\u043e\u0441\u0442\u043e\u0432 \u0432 \u0441\u0435\u0442\u0438<\/h4>\n<pre><code class=\"bash\">sudo nmap -sn 192.168.1.0\/24<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>\u0412\u044b\u0432\u043e\u0434:<\/strong><\/p>\n<pre><code>Starting Nmap 7.94 ( https:\/\/nmap.org )Nmap scan report for 192.168.1.1Host is up (0.00054s latency).MAC Address: C8:3A:35:27:4C:01 (Tenda Technology)Nmap scan report for 192.168.1.105Host is up (0.0012s latency).MAC Address: DC:A6:32:5E:2B:17 (Raspberry Pi Trading)Nmap scan report for 192.168.1.200Host is up (0.00087s latency).MAC Address: 00:50:56:C0:00:08 (VMware)Nmap done: 256 IP addresses (3 hosts up) scanned in 2.34 seconds<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>\u0427\u0442\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e:<\/strong> nmap \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043b ARP-\u0437\u0430\u043f\u0440\u043e\u0441\u044b (\u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438) \u0438 ICMP-\u044d\u0445\u043e, \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u043e\u0442\u0432\u0435\u0442\u044b \u043e\u0442 \u0442\u0440\u0451\u0445 \u0445\u043e\u0441\u0442\u043e\u0432.<\/p>\n<hr\/>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440 2: \u041f\u043e\u043b\u043d\u043e\u0435 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u0432\u0435\u0440\u0441\u0438\u0439 \u0438 \u041e\u0421<\/h4>\n<pre><code class=\"bash\">sudo nmap -sS -sV -O -p- --min-rate 5000 -T4 -oA full_scan 192.168.1.105<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>\u0412\u044b\u0432\u043e\u0434:<\/strong><\/p>\n<pre><code>Starting Nmap 7.94Nmap scan report for 192.168.1.105Host is up (0.0011s latency).Not shown: 65528 closed tcp ports (reset)PORT     STATE SERVICE     VERSION22\/tcp   open  ssh         OpenSSH 8.4p1 Debian 5+deb11u1 (protocol 2.0)80\/tcp   open  http        Apache httpd 2.4.54 ((Debian))111\/tcp  open  rpcbind     2-4 (RPC #100000)443\/tcp  open  ssl\/http    Apache httpd 2.4.543306\/tcp open  mysql       MySQL 5.7.398080\/tcp open  http-proxy  Squid http proxy 4.13MAC Address: DC:A6:32:5E:2B:17 (Raspberry Pi)Device type: general purposeRunning: Linux 4.X|5.XOS CPE: cpe:\/o:linux:linux_kernel:4 cpe:\/o:linux:linux_kernel:5OS details: Linux 4.15 - 5.6Network Distance: 1 hopService Info: OS: Linux; CPE: cpe:\/o:linux:linux_kernelNmap done: 1 IP address (1 host up) scanned in 24.87 seconds<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>\u0427\u0442\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e:<\/strong> \u043f\u0440\u043e\u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0432\u0441\u0435 65535 \u043f\u043e\u0440\u0442\u043e\u0432, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0441 \u0432\u0435\u0440\u0441\u0438\u044f\u043c\u0438 \u0438 \u041e\u0421.<\/p>\n<hr\/>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440 3: \u041f\u043e\u0438\u0441\u043a \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0447\u0435\u0440\u0435\u0437 NSE-\u0441\u043a\u0440\u0438\u043f\u0442\u044b<\/h4>\n<pre><code class=\"bash\">sudo nmap -sV --script vuln -p 80,443,8080 testphp.vulnweb.com<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>\u0412\u044b\u0432\u043e\u0434:<\/strong><\/p>\n<pre><code>Starting Nmap 7.94Nmap scan report for testphp.vulnweb.com (44.228.249.3)Host is up (0.18s latency).PORT     STATE SERVICE VERSION80\/tcp   open  http    Apache httpd 2.4.7 ((Ubuntu))| http-sql-injection:|   Possible sqli for queries:|     http:\/\/testphp.vulnweb.com\/artists.php?artist=1%27%20OR%20sqlspider|_    http:\/\/testphp.vulnweb.com\/listproducts.php?cat=1%27%20OR%20sqlspider| http-csrf:|   Spidering limited to: maxdepth=3; maxpagecount=20; withinhost=testphp.vulnweb.com|     Found the following possible CSRF vulnerabilities:|       Path: http:\/\/testphp.vulnweb.com\/userinfo.php|       Form id: |_      Form action: userinfo.php| http-stored-xss:|_  Couldn't find any stored XSS vulnerabilities.|_http-dombased-xss: Couldn't find any DOM based XSS.<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>\u0427\u0442\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e:<\/strong> NSE-\u0441\u043a\u0440\u0438\u043f\u0442 <code>vuln<\/code> \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b \u043d\u0430\u0431\u043e\u0440 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \u043d\u0430 \u0432\u0435\u0431-\u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438, \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0442\u043e\u0447\u043a\u0438 SQL-\u0438\u043d\u044a\u0435\u043a \u0446\u0438\u0438.<\/p>\n<hr\/>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440 4: \u0421\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 + \u044d\u043a\u0441\u043f\u043e\u0440\u0442<\/h4>\n<pre><code class=\"bash\">sudo nmap -p 445 --script smb-vuln-ms17-010 192.168.1.0\/24 -oN eternalblue_scan.txt<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>\u0412\u044b\u0432\u043e\u0434:<\/strong><\/p>\n<pre><code>Nmap scan report for 192.168.1.200Host is up (0.00098s latency).PORT    STATE SERVICE445\/tcp open  microsoft-dsHost script results:| smb-vuln-ms17-010: |   VULNERABLE:|   Remote Code Execution vulnerability in Microsoft SMBv1 servers (MS17-010)|     State: VULNERABLE|     IDs:  CVE:CVE-2017-0143|     Risk factor: HIGH|       A critical remote code execution vulnerability exists in Microsoft SMBv1|       servers (named pipe functionality).|     References:|_      https:\/\/technet.microsoft.com\/en-us\/library\/security\/ms17-010.aspx<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>\u0427\u0442\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e:<\/strong> \u0441\u043a\u0440\u0438\u043f\u0442 <code>smb-vuln-ms17-010<\/code> \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b \u043a\u0430\u0436\u0434\u044b\u0439 \u0445\u043e\u0441\u0442 \u0441\u0435\u0442\u0438 \u043d\u0430 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c EternalBlue (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0430\u0441\u044c WannaCry).<\/p>\n<hr\/>\n<h3>\u0427\u0430\u0441\u0442\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438<\/h3>\n<ul>\n<li>\n<p><code>Note: Host seems down<\/code> \u2192 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439 <code>-Pn<\/code> (\u0445\u043e\u0441\u0442 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442 ICMP, \u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d)<\/p>\n<\/li>\n<li>\n<p><code>You requested a scan type which requires root privileges<\/code> \u2192 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0439 \u0441 <code>sudo<\/code><\/p>\n<\/li>\n<li>\n<p>\u0421\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u0432\u0438\u0441\u043b\u043e \u043d\u0430 UDP \u2192 UDP \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0439 \u043f\u043e \u043f\u0440\u0438\u0440\u043e\u0434\u0435, \u0434\u043e\u0431\u0430\u0432\u044c <code>--min-rate 1000<\/code> \u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u044c \u043f\u043e\u0440\u0442\u044b <code>-p 53,67,68,69,123,161<\/code><\/p>\n<\/li>\n<li>\n<p><code>WARNING: RST from...<\/code> \u0432 \u0431\u043e\u043b\u044c\u0448\u043e\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u2192 \u0444\u0430\u0439\u0440\u0432\u043e\u043b\/IDS \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442 \u043f\u0430\u043a\u0435\u0442\u044b, \u0441\u043d\u0438\u0437\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c <code>-T2<\/code><\/p>\n<\/li>\n<li>\n<p>DNS \u0440\u0435\u0437\u043e\u043b\u0432\u0438\u043d\u0433 \u0437\u0430\u043c\u0435\u0434\u043b\u044f\u0435\u0442 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0435\u0442\u0438 \u2192 \u0434\u043e\u0431\u0430\u0432\u044c <code>-n<\/code><\/p>\n<\/li>\n<\/ul>\n<h3>\u0417\u0430\u043c\u0435\u0442\u043a\u0438 OPSEC<\/h3>\n<blockquote>\n<p><strong>\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0448\u0443\u043c\u0430: \u0412\u042b\u0421\u041e\u041a\u0418\u0419<\/strong> (\u043f\u0440\u0438 <code>-A<\/code>, <code>-T4<\/code>, <code>--script vuln<\/code>)<\/p>\n<ul>\n<li>\n<p>SYN-\u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 (<code>-sS<\/code>) \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u0444\u0430\u0439\u0440\u0432\u043e\u043b\u0435 \u0438 IDS (Snort, Suricata)<\/p>\n<\/li>\n<li>\n<p><code>-A<\/code> \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0434\u0435\u0441\u044f\u0442\u043a\u0438 \u0442\u044b\u0441\u044f\u0447 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u2014 \u043b\u0435\u0433\u043a\u043e \u0434\u0435\u0442\u0435\u043a\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f<\/p>\n<\/li>\n<li>\n<p>\u041b\u043e\u0433\u0438 \u043d\u0430 \u0446\u0435\u043b\u0438: <code>\/var\/log\/auth.log<\/code> (SSH), \u043b\u043e\u0433\u0438 Apache\/nginx \u043f\u0440\u0438 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0432\u0435\u0431<\/p>\n<\/li>\n<li>\n<p>\u0414\u043b\u044f \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u044f \u0437\u0430\u043c\u0435\u0442\u043d\u043e\u0441\u0442\u0438: <code>-T1 -T2<\/code>, <code>--scan-delay 2000ms<\/code>, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>--source-port 53<\/code> \u0434\u043b\u044f \u043e\u0431\u0445\u043e\u0434\u0430 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u043f\u0440\u0430\u0432\u0438\u043b<\/p>\n<\/li>\n<\/ul>\n<\/blockquote>\n<h3>\u0421\u0432\u044f\u0437\u043a\u0430 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438<\/h3>\n<blockquote>\n<p><code>nmap<\/code> (\u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0445\u043e\u0441\u0442\u043e\u0432 \u0438 \u043f\u043e\u0440\u0442\u043e\u0432) \u2192 <code>nessus<\/code>\/<code>openvas<\/code> (\u0433\u043b\u0443\u0431\u043e\u043a\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439) \u2192 <code>metasploit<\/code> (\u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u044f \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0445 CVE)<\/p>\n<\/blockquote>\n<blockquote>\n<p><code>nmap -sV<\/code> (\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432) \u2192 <code>searchsploit<\/code> (\u043f\u043e\u0438\u0441\u043a \u044d\u043a\u0441\u043f\u043b\u043e\u0439\u0442\u043e\u0432 \u043f\u043e \u0432\u0435\u0440\u0441\u0438\u0438) \u2192 <code>exploitdb<\/code> (\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 PoC)<\/p>\n<\/blockquote>\n<hr\/>\n<blockquote>\n<p>\u0412\u0441\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u044b \u043d\u0430 Kali Linux 2024.x. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0446\u0435\u043b\u0438: <code>scanme.nmap.org<\/code>, <code>192.168.1.0\/24<\/code>, <code>testphp.vulnweb.com<\/code>, <code>hack.me<\/code>.<\/p>\n<\/blockquote>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1042462\/\">https:\/\/habr.com\/ru\/articles\/1042462\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0420\u0430\u0437\u0432\u0435\u0434\u043a\u0430 \u2014 \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u0442\u0430\u043f \u043b\u044e\u0431\u043e\u0433\u043e \u043f\u0435\u043d\u0442\u0435\u0441\u0442\u0430. \u0426\u0435\u043b\u044c: \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u0446\u0435\u043b\u0438 \u0434\u043e \u043d\u0430\u0447\u0430\u043b\u0430 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439.nmap\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0421\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442 \u0441\u0435\u0442\u0438 \u0438 \u0445\u043e\u0441\u0442\u044b: \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0435 \u043f\u043e\u0440\u0442\u044b, \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b, \u0432\u0435\u0440\u0441\u0438\u0438 \u041f\u041e \u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443. \u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0443 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0438 \u0430\u043d\u0430\u043b\u0438\u0437 \u043e\u0442\u0432\u0435\u0442\u043e\u0432. \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u0434\u0435-\u0444\u0430\u043a\u0442\u043e \u0434\u043b\u044f \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0440\u0430\u0437\u0432\u0435\u0434\u043a\u0438.\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430# \u041f\u0440\u0435\u0434\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0432 Kali Linux. \u0415\u0441\u043b\u0438 \u043d\u0435\u0442:sudo apt update &amp;&amp; sudo apt install nmap -y\u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441nmap [\u0442\u0438\u043f \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f] [\u043e\u043f\u0446\u0438\u0438] [\u0446\u0435\u043b\u044c]\u041a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0444\u043b\u0430\u0433\u0438 \u0438 \u043e\u043f\u0446\u0438\u0438\u0424\u043b\u0430\u0433\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u041f\u0440\u0438\u043c\u0435\u0440-sSSYN-\u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 (\u0441\u0442\u0435\u043b\u0441, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441 root)nmap -sS 192.168.1.1-sTTCP connect (\u0431\u0435\u0437 root)nmap -sT 192.168.1.1-sUUDP-\u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435nmap -sU -p 53,161 192.168.1.1-sV\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0432\u0435\u0440\u0441\u0438\u0439 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432nmap -sV 192.168.1.1-O\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u041e\u0421nmap -O 192.168.1.1-A\u0410\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u043e\u0435: \u041e\u0421 + \u0432\u0435\u0440\u0441\u0438\u0438 + \u0441\u043a\u0440\u0438\u043f\u0442\u044b + traceroutenmap -A 192.168.1.1-p\u0423\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u0440\u0442\u044b-p 22,80,443 \u0438\u043b\u0438 -p 1-1000 \u0438\u043b\u0438 -p- (\u0432\u0441\u0435)-T0\u2026-T5\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c (0=\u043f\u0430\u0440\u0430\u043d\u043e\u0439\u044f, 3=\u043f\u043e \u0443\u043c\u043e\u043b\u0447., 5=\u0431\u0435\u0437\u0443\u043c\u0438\u0435)-T4&#8212;open\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0435 \u043f\u043e\u0440\u0442\u044bnmap &#8212;open 192.168.1.0\/24-oN\u0412\u044b\u0432\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b (\u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442)-oN scan.txt-oX\u0412\u044b\u0432\u043e\u0434 \u0432 XML-oX scan.xml-oG\u0412\u044b\u0432\u043e\u0434 \u0432 greppable-\u0444\u043e\u0440\u043c\u0430\u0442-oG scan.gnmap-oA\u0412\u044b\u0432\u043e\u0434 \u0432\u043e \u0432\u0441\u0435 \u0442\u0440\u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0430-oA scan-v \/ -vv\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434nmap -vv-n\u041d\u0435 \u0440\u0435\u0437\u043e\u043b\u0432\u0438\u0442\u044c DNSnmap -n 192.168.1.0\/24&#8212;script\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c NSE-\u0441\u043a\u0440\u0438\u043f\u0442&#8212;script vuln-iL\u0427\u0438\u0442\u0430\u0442\u044c \u0446\u0435\u043b\u0438 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430-iL targets.txt-Pn\u041d\u0435 \u043f\u0438\u043d\u0433\u043e\u0432\u0430\u0442\u044c \u0445\u043e\u0441\u0442\u044b \u043f\u0435\u0440\u0435\u0434 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043cnmap -Pn 192.168.1.1-snPing sweep (\u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0445\u043e\u0441\u0442\u043e\u0432)nmap -sn 192.168.1.0\/24&#8212;min-rate\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043f\u0430\u043a\u0435\u0442\u043e\u0432\/\u0441\u0435\u043a&#8212;min-rate 1000\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b\u041f\u0440\u0438\u043c\u0435\u0440 1: \u041e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0436\u0438\u0432\u044b\u0445 \u0445\u043e\u0441\u0442\u043e\u0432 \u0432 \u0441\u0435\u0442\u0438sudo nmap -sn 192.168.1.0\/24\u0412\u044b\u0432\u043e\u0434:Starting Nmap 7.94 ( https:\/\/nmap.org )Nmap scan report for 192.168.1.1Host is up (0.00054s latency).MAC Address: C8:3A:35:27:4C:01 (Tenda Technology)Nmap scan report for 192.168.1.105Host is up (0.0012s latency).MAC Address: DC:A6:32:5E:2B:17 (Raspberry Pi Trading)Nmap scan report for 192.168.1.200Host is up (0.00087s latency).MAC Address: 00:50:56:C0:00:08 (VMware)Nmap done: 256 IP addresses (3 hosts up) scanned in 2.34 seconds\u0427\u0442\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e: nmap \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043b ARP-\u0437\u0430\u043f\u0440\u043e\u0441\u044b (\u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438) \u0438 ICMP-\u044d\u0445\u043e, \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u043e\u0442\u0432\u0435\u0442\u044b \u043e\u0442 \u0442\u0440\u0451\u0445 \u0445\u043e\u0441\u0442\u043e\u0432.\u041f\u0440\u0438\u043c\u0435\u0440 2: \u041f\u043e\u043b\u043d\u043e\u0435 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u0432\u0435\u0440\u0441\u0438\u0439 \u0438 \u041e\u0421sudo nmap -sS -sV -O -p- &#8212;min-rate 5000 -T4 -oA full_scan 192.168.1.105\u0412\u044b\u0432\u043e\u0434:Starting Nmap 7.94Nmap scan report for 192.168.1.105Host is up (0.0011s latency).Not shown: 65528 closed tcp ports (reset)PORT     STATE SERVICE     VERSION22\/tcp   open  ssh         OpenSSH 8.4p1 Debian 5+deb11u1 (protocol 2.0)80\/tcp   open  http        Apache httpd 2.4.54 ((Debian))111\/tcp  open  rpcbind     2-4 (RPC #100000)443\/tcp  open  ssl\/http    Apache httpd 2.4.543306\/tcp open  mysql       MySQL 5.7.398080\/tcp open  http-proxy  Squid http proxy 4.13MAC Address: DC:A6:32:5E:2B:17 (Raspberry Pi)Device type: general purposeRunning: Linux 4.X|5.XOS CPE: cpe:\/o:linux:linux_kernel:4 cpe:\/o:linux:linux_kernel:5OS details: Linux 4.15 &#8212; 5.6Network Distance: 1 hopService Info: OS: Linux; CPE: cpe:\/o:linux:linux_kernelNmap done: 1 IP address (1 host up) scanned in 24.87 seconds\u0427\u0442\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e: \u043f\u0440\u043e\u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0432\u0441\u0435 65535 \u043f\u043e\u0440\u0442\u043e\u0432, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0441 \u0432\u0435\u0440\u0441\u0438\u044f\u043c\u0438 \u0438 \u041e\u0421.\u041f\u0440\u0438\u043c\u0435\u0440 3: \u041f\u043e\u0438\u0441\u043a \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0447\u0435\u0440\u0435\u0437 NSE-\u0441\u043a\u0440\u0438\u043f\u0442\u044bsudo nmap -sV &#8212;script vuln -p 80,443,8080 testphp.vulnweb.com\u0412\u044b\u0432\u043e\u0434:Starting Nmap 7.94Nmap scan report for testphp.vulnweb.com (44.228.249.3)Host is up (0.18s latency).PORT     STATE SERVICE VERSION80\/tcp   open  http    Apache httpd 2.4.7 ((Ubuntu))| http-sql-injection:|   Possible sqli for queries:|     http:\/\/testphp.vulnweb.com\/artists.php?artist=1%27%20OR%20sqlspider|_    http:\/\/testphp.vulnweb.com\/listproducts.php?cat=1%27%20OR%20sqlspider| http-csrf:|   Spidering limited to: maxdepth=3; maxpagecount=20; withinhost=testphp.vulnweb.com|     Found the following possible CSRF vulnerabilities:|       Path: http:\/\/testphp.vulnweb.com\/userinfo.php|       Form id: |_      Form action: userinfo.php| http-stored-xss:|_  Couldn&#8217;t find any stored XSS vulnerabilities.|_http-dombased-xss: Couldn&#8217;t find any DOM based XSS.\u0427\u0442\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e: NSE-\u0441\u043a\u0440\u0438\u043f\u0442 vuln \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b \u043d\u0430\u0431\u043e\u0440 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \u043d\u0430 \u0432\u0435\u0431-\u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438, \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0442\u043e\u0447\u043a\u0438 SQL-\u0438\u043d\u044a\u0435\u043a \u0446\u0438\u0438.\u041f\u0440\u0438\u043c\u0435\u0440 4: \u0421\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 + \u044d\u043a\u0441\u043f\u043e\u0440\u0442sudo nmap -p 445 &#8212;script smb-vuln-ms17-010 192.168.1.0\/24 -oN eternalblue_scan.txt\u0412\u044b\u0432\u043e\u0434:Nmap scan report for 192.168.1.200Host is up (0.00098s latency).PORT    STATE SERVICE445\/tcp open  microsoft-dsHost script results:| smb-vuln-ms17-010: |   VULNERABLE:|   Remote Code Execution vulnerability in Microsoft SMBv1 servers (MS17-010)|     State: VULNERABLE|     IDs:  CVE:CVE-2017-0143|     Risk factor: HIGH|       A critical remote code execution vulnerability exists in Microsoft SMBv1|       servers (named pipe functionality).|     References:|_      https:\/\/technet.microsoft.com\/en-us\/library\/security\/ms17-010.aspx\u0427\u0442\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e: \u0441\u043a\u0440\u0438\u043f\u0442 smb-vuln-ms17-010 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b \u043a\u0430\u0436\u0434\u044b\u0439 \u0445\u043e\u0441\u0442 \u0441\u0435\u0442\u0438 \u043d\u0430 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c EternalBlue (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0430\u0441\u044c WannaCry).\u0427\u0430\u0441\u0442\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438Note: Host seems down \u2192 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439 -Pn (\u0445\u043e\u0441\u0442 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442 ICMP, \u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d)You requested a scan type which requires root privileges \u2192 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0439 \u0441 sudo\u0421\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u0432\u0438\u0441\u043b\u043e \u043d\u0430 UDP \u2192 UDP \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0439 \u043f\u043e \u043f\u0440\u0438\u0440\u043e\u0434\u0435, \u0434\u043e\u0431\u0430\u0432\u044c &#8212;min-rate 1000 \u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u044c \u043f\u043e\u0440\u0442\u044b -p 53,67,68,69,123,161WARNING: RST from&#8230; \u0432 \u0431\u043e\u043b\u044c\u0448\u043e\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u2192 \u0444\u0430\u0439\u0440\u0432\u043e\u043b\/IDS \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442 \u043f\u0430\u043a\u0435\u0442\u044b, \u0441\u043d\u0438\u0437\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c -T2DNS \u0440\u0435\u0437\u043e\u043b\u0432\u0438\u043d\u0433 \u0437\u0430\u043c\u0435\u0434\u043b\u044f\u0435\u0442 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0435\u0442\u0438 \u2192 \u0434\u043e\u0431\u0430\u0432\u044c -n\u0417\u0430\u043c\u0435\u0442\u043a\u0438 OPSEC\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0448\u0443\u043c\u0430: \u0412\u042b\u0421\u041e\u041a\u0418\u0419 (\u043f\u0440\u0438 -A, -T4, &#8212;script vuln)SYN-\u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 (-sS) \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u0444\u0430\u0439\u0440\u0432\u043e\u043b\u0435 \u0438 IDS (Snort, Suricata)-A \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0434\u0435\u0441\u044f\u0442\u043a\u0438 \u0442\u044b\u0441\u044f\u0447 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u2014 \u043b\u0435\u0433\u043a\u043e \u0434\u0435\u0442\u0435\u043a\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f\u041b\u043e\u0433\u0438 \u043d\u0430 \u0446\u0435\u043b\u0438: \/var\/log\/auth.log (SSH), \u043b\u043e\u0433\u0438 Apache\/nginx \u043f\u0440\u0438 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0432\u0435\u0431\u0414\u043b\u044f \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u044f \u0437\u0430\u043c\u0435\u0442\u043d\u043e\u0441\u0442\u0438: -T1 -T2, &#8212;scan-delay 2000ms, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c &#8212;source-port 53 \u0434\u043b\u044f \u043e\u0431\u0445\u043e\u0434\u0430 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u043f\u0440\u0430\u0432\u0438\u043b\u0421\u0432\u044f\u0437\u043a\u0430 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438nmap (\u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0445\u043e\u0441\u0442\u043e\u0432 \u0438 \u043f\u043e\u0440\u0442\u043e\u0432) \u2192 nessus\/openvas (\u0433\u043b\u0443\u0431\u043e\u043a\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439) \u2192 metasploit (\u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u044f \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0445 CVE)nmap -sV (\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432) \u2192 searchsploit (\u043f\u043e\u0438\u0441\u043a \u044d\u043a\u0441\u043f\u043b\u043e\u0439\u0442\u043e\u0432 \u043f\u043e \u0432\u0435\u0440\u0441\u0438\u0438) \u2192 exploitdb (\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 PoC)\u0412\u0441\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u044b \u043d\u0430 Kali Linux 2024.x. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0446\u0435\u043b\u0438: scanme.nmap.org, 192.168.1.0\/24, testphp.vulnweb.com, hack.me.\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1042462\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-482000","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/482000","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=482000"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/482000\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=482000"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=482000"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=482000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}