{"id":157207,"date":"2012-11-03T07:00:03","date_gmt":"2012-11-03T03:00:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=157207"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=157207","title":{"rendered":"<span class=\"post_title\">Ping-flooding \u0430\u0442\u0430\u043a\u0430 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c WinPcap<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/613\/8b2\/648\/6138b264876e76799c9471decb96c15f.png\"\/><br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h1>ICMP \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b<\/h1>\n<p>  \u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b ICMP \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0441\u0442\u0435\u043a\u0430 TCP\/IP (Transmission Control Protocol\/Internet Protocol \u2014 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0435\u0439\/\u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0441\u0435\u0442\u0438 Internet), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043a\u043e\u043c\u043f\u0435\u043d\u0441\u0438\u0440\u0443\u0435\u0442 \u043d\u0435\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 IP \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435. \u0412\u043c\u0435\u0441\u0442\u0435 \u0441 \u0442\u0435\u043c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b ICMP \u043d\u0435 \u0443\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442 \u043d\u0435\u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u043c IP. \u041e\u043d \u043b\u0438\u0448\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u044f\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u0440\u0438 \u0438\u0445 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b. <\/p>\n<p>  \u041d\u0430 \u0440\u0438\u0441\u0443\u043d\u043a\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043c\u0435\u0441\u0442\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 ICMP \u0432 \u043c\u043e\u0434\u0435\u043b\u0438 TCP\/IP.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/09a\/779\/ddd\/09a779ddddf31e1e100cc4e5d488083b.png\"\/><\/p>\n<p>  \u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b ICMP \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0430\u0445 \u0434\u043b\u044f \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 IP.<br \/>  \u0415\u0441\u043b\u0438 \u043f\u0440\u0438 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0435 \u0434\u0435\u0439\u0442\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043e\u0448\u0438\u0431\u043a\u0430, \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b ICMP \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442 \u043e\u0431 \u044d\u0442\u043e\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044e \u0434\u0435\u0439\u0442\u0430\u0433\u0440\u0430\u043c\u043c\u044b. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e PC1, \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0440\u0438\u0441\u0443\u043d\u043a\u0435, \u043f\u043e\u0441\u044b\u043b\u0430\u0435\u0442 \u0434\u0435\u0439\u0442\u0430\u0433\u0440\u0430\u043c\u043c\u0443 PC4. \u0415\u0441\u043b\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u0412order \u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u0438\u0437 \u0441\u0442\u0440\u043e\u044f, \u044d\u0442\u043e\u0442 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b ICMP \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 PC1 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0430 \u0434\u0435\u0439\u0442\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0439. \u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b ICMP \u043d\u0435 \u0443\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u0448\u0443\u044e \u0432 \u0441\u0435\u0442\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/5c0\/820\/820\/5c0820820dc1c518531f34d10a2e5157.png\"\/><\/p>\n<p>  \u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 ICMP \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 IP.<br \/>  ICMP-\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 \u0434\u0435\u0439\u0442\u0430\u0433\u0440\u0430\u043c\u043c\u044b, \u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0438 \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0435 \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 IP. \u0412 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0430 \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u044f\u0446\u0438\u044f ICMP-\u043f\u0430\u043a\u0435\u0442\u0430 \u0432 \u043f\u043e\u043b\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 IP-\u0434\u0435\u0439\u0442\u0430\u0433\u0440\u0430\u043c\u043c\u044b. \u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0444\u0440\u0435\u0439\u043c\u0430 \u043c\u043e\u0436\u0435\u0442 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438, \u0442\u0430\u043a\u043e\u043c\u0443, \u043a\u0430\u043a Ethernet, \u0438\u043b\u0438 \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u0441\u0435\u0442\u0438, \u0442\u0430\u043a\u043e\u043c\u0443, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0430\u043a HDLC.<\/p>\n<p>  <b>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0444\u0440\u0435\u0439\u043c\u0430<\/b> \u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a IP-\u0434\u0435\u0439\u0442\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 ICMP \u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 ICMP<br \/>  <b>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0444\u0440\u0435\u0439\u043c\u0430<\/b> \u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a IP-\u0434\u0435\u0439\u0442\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u041f\u043e\u043b\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 IP-\u0434\u0435\u0439\u0442\u0430\u0433\u0440\u0430\u043c\u043c\u044b<br \/>  <b>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0444\u0440\u0435\u0439\u043c\u0430<\/b> \u041f\u043e\u043b\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 IP-\u0434\u0435\u0439\u0442\u0430\u0433\u0440\u0430\u043c\u043c\u044b<br \/>  <b>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0444\u0440\u0435\u0439\u043c\u0430<\/b> \u041f\u043e\u043b\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0444\u0440\u0435\u0439\u043c\u0430<\/p>\n<p>  \u041a\u043e\u0433\u0434\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u044e\u0442 \u043d\u0430 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c, \u043e\u043d\u0438 \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 \u0434\u0435\u0439\u0442\u0430\u0433\u0440\u0430\u043c\u043c\u0443. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0434\u0435\u0439\u0442\u0430\u0433\u0440\u0430\u043c\u043c\u0430 \u0438 \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0432 \u043d\u0435\u0439 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432\u043d\u043e\u0432\u044c \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432\u043e \u0444\u0440\u0435\u0439\u043c \u043d\u0430 \u043a\u0430\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435. \u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 ICMP \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u0445 \u0441\u0432\u043e\u044e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e. \u041e\u0434\u043d\u0430\u043a\u043e \u044d\u0442\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 ICMP \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 \u0434\u0435\u0439\u0442\u0430\u0433\u0440\u0430\u043c\u043c\u0443 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0447\u0442\u043e \u0438 \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0430\u0445 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0434\u0432\u0435\u0440\u0436\u0435\u043d\u044b \u0440\u0438\u0441\u043a\u0443 \u0431\u044b\u0442\u044c \u0443\u0442\u0435\u0440\u044f\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0435. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043c\u043e\u0436\u0435\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0441\u0430\u043c\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0430\u0445 \u043c\u043e\u0433\u0443\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438, \u0447\u0442\u043e \u043b\u0438\u0448\u044c \u0443\u0441\u043b\u043e\u0436\u043d\u0438\u0442 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e \u0441 \u0437\u0430\u0442\u043e\u0440\u043e\u043c \u0432 \u0443\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0439 \u0441\u043e \u0441\u0431\u043e\u044f\u043c\u0438 \u0441\u0435\u0442\u0438. \u041f\u043e \u044d\u0442\u043e\u0439 \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u043e\u0448\u0438\u0431\u043a\u0438, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c\u0438 ICMP, \u043d\u0435 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u044e\u0442 \u0441\u0432\u043e\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 ICMP-\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f. \u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0432\u043e\u0437\u043c\u043e\u0436\u0435\u043d \u0441\u043b\u0443\u0447\u0430\u0439, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0435 \u0434\u0435\u0439\u0442\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043e\u0448\u0438\u0431\u043a\u0430, \u043d\u043e \u043e \u043d\u0435\u0439 \u043d\u0435 \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044e \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<h1>\u0411\u043e\u0434\u0430\u043d\u0438\u0435 \u0441 WinpCap \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 ping\u2019\u043e\u0432<\/h1>\n<p>  \u0412\u0441\u0435 \u0437\u043d\u0430\u044e\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 ping, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0430 \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u044d\u0445\u043e-\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u044d\u0445\u043e-\u043e\u0442\u0432\u0435\u0442\u0430. \u041c\u044b \u0436\u0435 \u0440\u0435\u0448\u0438\u043b\u0438, \u0447\u0442\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e ping\u2019a \u043d\u0430\u043c \u043c\u0430\u043b\u043e \u0438 \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0438\u0441\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 ping. <br \/>  \u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0431\u044b\u043b \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0421++ \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u0447\u043a\u0430 <a href=\"http:\/\/www.winpcap.org\">WinPcap<\/a>. WinPcap \u2014 \u041d\u0438\u0437\u043a\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430\u043c\u0438 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432.<br \/>  \u0418 \u0442\u0430\u043a \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0441\u0431\u043e\u0440\u043a\u0443 ICMP-\u043f\u0430\u043a\u0435\u0442\u0430.<br \/>  \u0424\u043e\u0440\u043c\u0430\u0442 ICMP-\u043f\u0430\u043a\u0435\u0442\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0431\u044b\u043b \u0432\u0437\u044f\u0442 \u0441 <a href=\"http:\/\/ru.wikipedia.org\/wiki\/ICMP\">Wiki<\/a>.<\/p>\n<table>\n<tbody>\n<tr>\n<th>\u041e\u043a\u0442\u0435\u0442<\/th>\n<th>0<\/th>\n<th>1<\/th>\n<th>2<\/th>\n<th>3<\/th>\n<th>4<\/th>\n<th>5<\/th>\n<th>6<\/th>\n<th>7<\/th>\n<th>8<\/th>\n<th>9<\/th>\n<th>10<\/th>\n<th>11<\/th>\n<th>12<\/th>\n<th>13<\/th>\n<th>14<\/th>\n<th>15<\/th>\n<th>16<\/th>\n<th>17<\/th>\n<th>18<\/th>\n<th>19<\/th>\n<th>20<\/th>\n<th>21<\/th>\n<th>22<\/th>\n<th>23<\/th>\n<th>24<\/th>\n<th>25<\/th>\n<th>26<\/th>\n<th>27<\/th>\n<th>28<\/th>\n<th>29<\/th>\n<th>30<\/th>\n<th>31<\/th>\n<\/tr>\n<tr>\n<td>0\u20143<\/td>\n<td colspan=\"8\">\u0422\u0438\u043f<\/td>\n<td colspan=\"8\">\u041a\u043e\u0434<\/td>\n<td colspan=\"16\"><a href=\"http:\/\/ru.wikipedia.org\/wiki\/%D0%9A%D0%BE%D0%BD%D1%82%D1%80%D0%BE%D0%BB%D1%8C%D0%BD%D0%B0%D1%8F_%D1%81%D1%83%D0%BC%D0%BC%D0%B0\" title=\"\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u0430\u044f \u0441\u0443\u043c\u043c\u0430\">\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u0430\u044f \u0441\u0443\u043c\u043c\u0430<\/a><\/td>\n<\/tr>\n<tr>\n<td>\u2026<\/td>\n<td colspan=\"32\">\u0414\u0430\u043d\u043d\u044b\u0435 (\u0444\u043e\u0440\u043c\u0430\u0442 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043f\u043e\u043b\u0435\u0439 \u00ab\u041a\u043e\u0434\u00bb \u0438 \u00ab\u0422\u0438\u043f\u00bb)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre><code>u_char packet[1514]; \/\/\u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0430\u0448 \u043f\u0430\u043a\u0435\u0442  \/\/MAC-\u0430\u0434\u0440\u0435\u0441 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f packet[0]=0x08; packet[1]=0x00;  packet[2]=0x27; packet[3]=0x4c; packet[4]=0x18; packet[5]=0xDA;          \/\/\/\/MAC-\u0430\u0434\u0440\u0435\u0441 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044f packet[6]=0x08; packet[7]=0x00;  packet[8]=0x27; packet[9]=0xca; packet[10]=0xb8; packet[11]=0x44;  \/\/\u0424\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 IP-\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 packet[12]=0x08;  packet[13]=0x00;  packet[14]=0x45;  packet[15]=0x00; \t\/\/\u0414\u043b\u0438\u043d\u043d\u0430 \u043f\u0430\u043a\u0435\u0442\u0430 *(WORD *)&packet[16] = htons(1500);   packet[18]=0x11; \/\/id packet[19]=0x22;   packet[20]=0; \/\/\u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c packet[21]=0;   packet[22]=0x80; \/\/ttl packet[23]=1;    \/\/icmp   packet[24]=0; \/\/\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u0430\u044f \u0441\u0443\u043c\u043c\u0430 packet[25]=0;      \t\/\/\u043a\u043e\u0433\u043e \u043f\u0438\u043d\u0433\u0443\u0435\u043c packet[26]=192;  packet[27]=168;     packet[28]=56;  packet[29]=101;      \/\/\u043a\u043e\u043c\u0443 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u043c packet[30]=192;  packet[31]=168;     packet[32]=56;  packet[33]=102;  chS=ComputeIPChecksum(&packet[14],20); \/\/\u0441\u0447\u0438\u0442\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u0443\u044e \u0441\u0443\u043c\u043c\u0443 printf(&quot;%x\\n&quot;, chS); \t  *(WORD *)&packet[24] = chS;   \t     \/\/**************************************************** packet[34]=8; \/\/icmp packet[35]=0;     \t packet[36]=0x29; \/\/csum packet[37]=0x31;        packet[38]=0x11; \/\/icmp packet[39]=0x11;      packet[40]=0x22; \/\/csum packet[41]=0x22; \t     chS=ComputeIPChecksum(&packet[34],8); printf(&quot;%x\\n&quot;, chS); \t \t \tfor(i=42; i&lt;1514; i++) \t{ \t\tpacket[i]= 'A'; \t} \/\/\u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c if (pcap_sendpacket(fp,\t\/\/ Adapter \t\tpacket,\t\t\t\t\/\/ buffer with the packet \t\t1514\t\t\t\t\t\/\/ size \t\t) != 0) \t{ \t\tfprintf(stderr,&quot;\\nError sending the packet: %s\\n&quot;, pcap_geterr(fp)); \t\treturn 3; \t}    <\/code><\/pre>\n<p>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0440\u0438\u0441\u0443\u043d\u043a\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/b49\/85c\/701\/b4985c7011fc47319fb93dde11c1c790.png\"\/><\/p>\n<p>  \u0412\u0438\u0434\u0438\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u0438 \u043e\u0442\u0432\u0435\u0442. \u0412\u0441\u0435 \u041e\u041a.<br \/>  <b>\u0410 \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043b\u0435\u0432\u044b\u0439 MAC-\u0430\u0434\u0440\u0435\u0441 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044f?<br \/>  \u0410 \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043b\u0435\u0432\u044b\u0439 IP-\u0430\u0434\u0440\u0435\u0441 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044f?<br \/>  \u0410 \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 MAC = FF-FF-FF-FF-FF-FF?<\/b><\/p>\n<p>  \u041c\u043e\u0436\u043d\u043e \u043f\u043e\u0439\u0442\u0438 \u043d\u0430 <a href=\"http:\/\/ru.wikipedia.org\/wiki\/ICMP\">Wiki<\/a> \u0438 \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<p>  <em>ICMP-\u043f\u0430\u043a\u0435\u0442\u044b \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 IP-\u043f\u0430\u043a\u0435\u0442\u044b \u0441 \u0448\u0438\u0440\u043e\u043a\u043e\u0432\u0435\u0449\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0438\u043b\u0438 \u0433\u0440\u0443\u043f\u043f\u043e\u0432\u044b\u043c \u0430\u0434\u0440\u0435\u0441\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043a\u0443 \u0432 \u0441\u0435\u0442\u0438 (\u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0439 \u00ab\u0448\u0438\u0440\u043e\u043a\u043e\u0432\u0435\u0449\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0448\u0442\u043e\u0440\u043c\u00bb).<\/em><\/p>\n<p>  \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043d\u0430\u0440\u0443\u0448\u0438\u0442\u044c \u044d\u0442\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u043e. \u0421 \u043c\u0430\u0448\u0438\u043d\u044b \u0441 IP 192.168.1.2 \u0431\u0443\u0434\u0435\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c ping \u043d\u0430 192.168.1.3, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c IP \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044f \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0432\u0435\u043d 192.168.1.1, \u0430 MAC \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044f FF-FF-FF-FF-FF-FF.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/d7e\/27e\/5a7\/d7e27e5a7868ad7fb8635f5e80792ea3.png\"\/><br \/>  \u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043c\u044b \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u043b\u0438 192.168.1.3 \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c 192.168.1.1, \u043f\u0440\u0438 \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0445\u043e\u0442\u0435\u043b. \u0421\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435, \u0442\u043e, \u0447\u0442\u043e \u044d\u0442\u043e \u0431\u044b\u043b \u0448\u0438\u0440\u043e\u043a\u043e\u0432\u0435\u0449\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 ping \u0438 \u043e\u043d \u043f\u0440\u043e\u0448\u0435\u043b!<\/p>\n<p>  \u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0447\u0442\u043e \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/ee9\/74b\/c7c\/ee974bc7c6ef1b094f7f9b018a6b7627.png\"\/><br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/638\/e69\/a24\/638e69a2464c69e8096cd25449162904.png\"\/><br \/>  \u041d\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u043c\u0430\u0448\u0438\u043d\u043a\u0430\u0445 \u043c\u044b \u043b\u043e\u0432\u0438\u043c \u0448\u0438\u0440\u043e\u043a\u043e\u0432\u0435\u0449\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b.<br \/>  \u0410 \u0440\u0430\u0437 \u0442\u0430\u043a, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u043e\u0432\u043e\u0434 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 while(1) \u0438 \u043d\u0430\u0441\u043b\u0430\u0436\u0434\u0430\u0442\u044c\u0441\u044f DOS-\u0430\u0442\u0430\u043a\u043e\u0439.<\/p>\n<p>  <b>\u0421\u043f\u0438\u0441\u043e\u043a \u043b\u0438\u0442\u0435\u0440\u0430\u0442\u0443\u0440\u044b:<\/b><\/p>\n<p>  \u041e\u0434\u043e\u043c \u0423. \u2014 CISCO \u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0435 \u043a \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u043c \u044d\u043a\u0437\u0430\u043c\u0435\u043d\u0430\u043c CCENTCCNA ICND1 \u2014 2010<br \/>  <a href=\"http:\/\/ru.wikipedia.org\">ru.wikipedia.org<\/a> \t\t\t \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/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=\"http:\/\/habrahabr.ru\/post\/157207\/\"> http:\/\/habrahabr.ru\/post\/157207\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/613\/8b2\/648\/6138b264876e76799c9471decb96c15f.png\"\/>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-157207","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/157207","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=157207"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/157207\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=157207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=157207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=157207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}