{"id":92784,"date":"2020-08-30T19:42:18","date_gmt":"2020-08-30T17:42:18","guid":{"rendered":"https:\/\/prohoster.info\/blog\/administrirovanie\/yadernyj-shell-poverh-icmp"},"modified":"2020-08-30T19:42:18","modified_gmt":"2020-08-30T17:42:18","slug":"yadernyj-shell-poverh-icmp","status":"publish","type":"post","link":"https:\/\/prohoster.info\/it\/blog\/administrirovanie\/yadernyj-shell-poverh-icmp","title":{"rendered":"Shell kernel sopra ICMP","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/ruvds\/blog\/516266\/\"><img decoding=\"async\" alt=\"\u042f\u0434\u0435\u0440\u043d\u044b\u0439 \u0448\u0435\u043b\u043b \u043f\u043e\u0432\u0435\u0440\u0445 ICMP\" src=\"\/wp-content\/uploads\/2020\/08\/dca8f53e1a380fd1b87a2492cdaff535.jpeg\" style=\"display:block;margin: 0 auto;\" \/><\/a><\/noindex><\/p>\n<p><b>TL;DR<\/b>: \u043f\u0438\u0448\u0443 \u043c\u043e\u0434\u0443\u043b\u044c \u044f\u0434\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438\u0437 \u043f\u0435\u0439\u043b\u043e\u0430\u0434\u0430 ICMP \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0438\u0445 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0434\u0430\u0436\u0435 \u0432 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0443\u043f\u0430\u043b SSH. \u0414\u043b\u044f \u0441\u0430\u043c\u044b\u0445 \u043d\u0435\u0442\u0435\u0440\u043f\u0435\u043b\u0438\u0432\u044b\u0445 \u0432\u0435\u0441\u044c \u043a\u043e\u0434 \u043d\u0430 <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/asz\/icmpshell\">github<\/a><\/noindex>.<\/p>\n<p><b>\u041e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u043e!<\/b> \u041e\u043f\u044b\u0442\u043d\u044b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u044b \u043d\u0430 C \u0440\u0438\u0441\u043a\u0443\u044e\u0442 \u0440\u0430\u0437\u0440\u044b\u0434\u0430\u0442\u044c\u0441\u044f \u043a\u0440\u043e\u0432\u0430\u0432\u044b\u043c\u0438 \u0441\u043b\u0435\u0437\u0430\u043c\u0438! \u042f \u043c\u043e\u0433\u0443 \u043e\u0448\u0438\u0431\u0430\u0442\u044c\u0441\u044f \u0434\u0430\u0436\u0435 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u043b\u043e\u0433\u0438\u0438, \u043d\u043e \u043b\u044e\u0431\u0430\u044f \u043a\u0440\u0438\u0442\u0438\u043a\u0430 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442\u0441\u044f. \u041f\u043e\u0441\u0442 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d \u043d\u0430 \u0442\u0435\u0445, \u043a\u0442\u043e \u0438\u043c\u0435\u0435\u0442 \u0441\u0430\u043c\u043e\u0435 \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043d\u0430 C \u0438 \u0445\u043e\u0447\u0435\u0442 \u0437\u0430\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u0432\u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u0438 Linux.<\/p>\n<p>\u0412 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u043a \u043c\u043e\u0435\u0439 \u043f\u0435\u0440\u0432\u043e\u0439 <noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/post\/515758\/\">\u0441\u0442\u0430\u0442\u044c\u0435<\/a><\/noindex> \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u043b\u0438 SoftEther VPN, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u043c\u0435\u0435\u0442 \u043c\u0438\u043c\u0438\u043a\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u00ab\u043e\u0431\u044b\u0447\u043d\u044b\u0435\u00bb \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u044b, \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438, HTTPS, ICMP \u0438 \u0434\u0430\u0436\u0435 DNS. \u042f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e \u0441\u0435\u0431\u0435 \u0440\u0430\u0431\u043e\u0442\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0438\u0437 \u043d\u0438\u0445, \u0442\u0430\u043a \u043a\u0430\u043a \u0445\u043e\u0440\u043e\u0448\u043e \u0437\u043d\u0430\u043a\u043e\u043c \u0441 HTTP(S), \u0430 \u0442\u0443\u043d\u043d\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0432\u0435\u0440\u0445 ICMP \u0438 DNS \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0438\u0437\u0443\u0447\u0430\u0442\u044c.<noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<p><img decoding=\"async\" alt=\"\u042f\u0434\u0435\u0440\u043d\u044b\u0439 \u0448\u0435\u043b\u043b \u043f\u043e\u0432\u0435\u0440\u0445 ICMP\" src=\"\/wp-content\/uploads\/2020\/08\/5728f23329c1c89410b3f78144cf2216.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\n\u0414\u0430, \u044f \u0432 2020 \u0433\u043e\u0434\u0443 \u0443\u0437\u043d\u0430\u043b, \u0447\u0442\u043e \u0432 ICMP-\u043f\u0430\u043a\u0435\u0442\u044b \u043c\u043e\u0436\u043d\u043e \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0439 \u043f\u0435\u0439\u043b\u043e\u0430\u0434. \u041d\u043e \u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u0437\u0434\u043d\u043e, \u0447\u0435\u043c \u043d\u0438\u043a\u043e\u0433\u0434\u0430! \u0418 \u0440\u0430\u0437 \u0443\u0436 \u0441 \u044d\u0442\u0438\u043c \u043c\u043e\u0436\u043d\u043e \u0447\u0442\u043e-\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0437\u043d\u0430\u0447\u0438\u0442 \u043d\u0443\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c. \u0422\u0430\u043a \u043a\u0430\u043a \u0432 \u0441\u0432\u043e\u0435\u0439 \u043f\u043e\u0432\u0441\u0435\u0434\u043d\u0435\u0432\u043d\u043e\u0441\u0442\u0438 \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u044f \u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0441\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0447\u0435\u0440\u0435\u0437 SSH, \u0438\u0434\u0435\u044f ICMP-\u0448\u0435\u043b\u043b\u0430 \u043f\u0440\u0438\u0448\u043b\u0430 \u043c\u043d\u0435 \u0432 \u0433\u043e\u043b\u043e\u0432\u0443 \u043f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c. \u0410 \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0435 \u0431\u0443\u043b\u043b\u0449\u0438\u0442-\u0431\u0438\u043d\u0433\u043e, \u0440\u0435\u0448\u0438\u043b \u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0432\u0438\u0434\u0435 \u043c\u043e\u0434\u0443\u043b\u044f Linux \u043d\u0430 \u044f\u0437\u044b\u043a\u0435, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u044f \u0438\u043c\u0435\u044e \u043b\u0438\u0448\u044c \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435. \u0422\u0430\u043a\u043e\u0439 \u0448\u0435\u043b\u043b \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0434\u0435\u043d \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432, \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u044f\u0434\u0440\u043e \u0438 \u043e\u043d \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043b\u0435\u0436\u0430\u0442\u044c \u043d\u0430 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435, \u0432\u044b \u043d\u0435 \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u043f\u0440\u043e\u0441\u043b\u0443\u0448\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u043f\u043e\u0440\u0442\u043e\u0432. \u041f\u043e \u0441\u0432\u043e\u0438\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c \u044d\u0442\u043e \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 \u0440\u0443\u0442\u043a\u0438\u0442, \u043d\u043e \u044f \u043d\u0430\u0434\u0435\u044e\u0441\u044c \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0448\u0435\u043b\u043b\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u043d\u0430\u0434\u0435\u0436\u0434\u044b, \u043a\u043e\u0433\u0434\u0430 Load Average \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0432\u044b\u0441\u043e\u043a\u0438\u0439 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0439\u0442\u0438 \u043f\u043e SSH \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0445\u043e\u0442\u044f \u0431\u044b <code>echo i &gt; \/proc\/sysrq-trigger<\/code>, \u0447\u0442\u043e\u0431\u044b \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438.<\/p>\n<p>\u0411\u0435\u0440\u0451\u043c \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440, \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u0441\u043a\u0438\u043b\u043b\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 Python \u0438 C, \u0433\u0443\u0433\u043b \u0438 <noindex><a rel=\"nofollow\" href=\"https:\/\/ruvds.com\/ru-rub\/pricing#order\">\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0443<\/a><\/noindex> \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0435 \u0436\u0430\u043b\u043a\u043e \u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u043e\u0434 \u043d\u043e\u0436 \u0435\u0441\u043b\u0438 \u0432\u0441\u0451 \u043f\u043e\u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f (\u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u2014 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 VirtualBox\/KVM\/etc) \u0438 \u043f\u043e\u0433\u043d\u0430\u043b\u0438!<\/p>\n<h2>\u041a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0430\u044f \u0447\u0430\u0441\u0442\u044c<\/h2>\n<p>\n\u041c\u043d\u0435 \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0434\u043b\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u0442\u0440\u043e\u043a \u044d\u0434\u0430\u043a \u043d\u0430 80, \u043d\u043e \u043d\u0430\u0448\u043b\u0438\u0441\u044c \u0434\u043e\u0431\u0440\u044b\u0435 \u043b\u044e\u0434\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0437\u0430 \u043c\u0435\u043d\u044f <noindex><a rel=\"nofollow\" href=\"https:\/\/scapy.net\/\">\u0432\u0441\u044e \u0440\u0430\u0431\u043e\u0442\u0443<\/a><\/noindex>. \u041a\u043e\u0434 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u044b\u043c, \u0443\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u0432 10 \u0437\u043d\u0430\u0447\u0430\u0449\u0438\u0445 \u0441\u0442\u0440\u043e\u043a:<\/p>\n<pre><code class=\"python\">import sys\nfrom scapy.all import sr1, IP, ICMP\n\nif len(sys.argv) &lt; 3:\n    print('Usage: {} IP &quot;command&quot;'.format(sys.argv[0]))\n    exit(0)\n\np = sr1(IP(dst=sys.argv[1])\/ICMP()\/&quot;run:{}&quot;.format(sys.argv[2]))\nif p:\n    p.show()<\/code><\/pre>\n<p>\n\u0421\u043a\u0440\u0438\u043f\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0434\u0432\u0430 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430, \u0430\u0434\u0440\u0435\u0441\u043e\u043c \u0438 \u043f\u0435\u0439\u043b\u043e\u0430\u0434. \u041f\u0435\u0440\u0435\u0434 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u043e\u0439 \u043f\u0435\u0439\u043b\u043e\u0430\u0434 \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u044f\u0435\u0442\u0441\u044f \u043a\u043b\u044e\u0447\u043e\u043c <code>run:<\/code>, \u043e\u043d \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442\u044b \u0441\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c \u043f\u0435\u0439\u043b\u043e\u0430\u0434\u043e\u043c.<\/p>\n<p>\u042f\u0434\u0440\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0439 \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043a\u0440\u0430\u0444\u0442\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442\u044b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 \u0441\u0443\u043f\u0435\u0440\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0434\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0430\u043c scapy. \u0412 Debian \u0435\u0441\u0442\u044c \u043f\u0430\u043a\u0435\u0442, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <code>python3-scapy<\/code>. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c, \u043a\u0430\u043a \u044d\u0442\u043e \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<p>                        <b class=\"spoiler_title\">\u0417\u0430\u043f\u0443\u0441\u043a \u0438 \u0432\u044b\u0432\u043e\u0434 \u043a\u043e\u043c\u0430\u043d\u0434\u044b<\/b><br \/>\n                        <code>morq@laptop:~\/icmpshell$ sudo .\/send.py 45.11.26.232 &quot;Hello, world!&quot;<br \/>\nBegin emission:<br \/>\n.Finished sending 1 packets.<br \/>\n*<br \/>\nReceived 2 packets, got 1 answers, remaining 0 packets<br \/>\n###[ IP ]### <br \/>\n version = 4<br \/>\n ihl = 5<br \/>\n tos = 0x0<br \/>\n len = 45<br \/>\n id = 17218<br \/>\n flags = <br \/>\n frag = 0<br \/>\n ttl = 58<br \/>\n proto = icmp<br \/>\n chksum = 0x3403<br \/>\n src = 45.11.26.232<br \/>\n dst = 192.168.0.240<br \/>\n options <br \/>\n###[ ICMP ]### <br \/>\n type = echo-reply<br \/>\n code = 0<br \/>\n chksum = 0xde03<br \/>\n id = 0x0<br \/>\n seq = 0x0<br \/>\n###[ Raw ]### <br \/>\n load = 'run:Hello, world!<\/code><\/p>\n<p>                        <b class=\"spoiler_title\">\u0422\u0430\u043a \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432 \u0441\u043d\u0438\u0444\u0444\u0435\u0440\u0435<\/b><br \/>\n                        <code>morq@laptop:~\/icmpshell$ sudo tshark -i wlp1s0 -O icmp -f &quot;icmp and host 45.11.26.232&quot;<br \/>\nRunning as user &quot;root&quot; and group &quot;root&quot;. This could be dangerous.<br \/>\nCapturing on 'wlp1s0'<br \/>\nFrame 1: 59 bytes on wire (472 bits), 59 bytes captured (472 bits) on interface wlp1s0, id 0<br \/>\nInternet Protocol Version 4, Src: 192.168.0.240, Dst: 45.11.26.232<br \/>\nInternet Control Message Protocol<br \/>\n Type: 8 (Echo (ping) request)<br \/>\n Code: 0<br \/>\n Checksum: 0xd603 [correct]<br \/>\n [Checksum Status: Good]<br \/>\n Identifier (BE): 0 (0x0000)<br \/>\n Identifier (LE): 0 (0x0000)<br \/>\n Sequence number (BE): 0 (0x0000)<br \/>\n Sequence number (LE): 0 (0x0000)<br \/>\n Data (17 bytes)<\/p>\n<p>0000 72 75 6e 3a 48 65 6c 6c 6f 2c 20 77 6f 72 6c 64 run:Hello, world<br \/>\n0010 21 !<br \/>\n Data: 72756e3a48656c6c6f2c20776f726c6421<br \/>\n [Length: 17]<\/p>\n<p>Frame 2: 59 bytes on wire (472 bits), 59 bytes captured (472 bits) on interface wlp1s0, id 0<br \/>\nInternet Protocol Version 4, Src: 45.11.26.232, Dst: 192.168.0.240<br \/>\nInternet Control Message Protocol<br \/>\n Type: 0 (Echo (ping) reply)<br \/>\n Code: 0<br \/>\n Checksum: 0xde03 [correct]<br \/>\n [Checksum Status: Good]<br \/>\n Identifier (BE): 0 (0x0000)<br \/>\n Identifier (LE): 0 (0x0000)<br \/>\n Sequence number (BE): 0 (0x0000)<br \/>\n Sequence number (LE): 0 (0x0000)<br \/>\n [Request frame: 1]<br \/>\n [Response time: 19.094 ms]<br \/>\n Data (17 bytes)<\/p>\n<p>0000 72 75 6e 3a 48 65 6c 6c 6f 2c 20 77 6f 72 6c 64 run:Hello, world<br \/>\n0010 21 !<br \/>\n Data: 72756e3a48656c6c6f2c20776f726c6421<br \/>\n [Length: 17]<\/p>\n<p>^C2 packets captured<br \/>\n<\/code><\/p>\n<p>\u041f\u0435\u0439\u043b\u043e\u0430\u0434 \u0432 \u043f\u0430\u043a\u0435\u0442\u0435 \u0441 \u043e\u0442\u0432\u0435\u0442\u043e\u043c \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f.<\/p>\n<h2>\u041c\u043e\u0434\u0443\u043b\u044c \u044f\u0434\u0440\u0430<\/h2>\n<p>\n\u0414\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u0432 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0435 \u0441 Debian \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c <code>make<\/code> \u0438 <code>linux-headers-amd64<\/code>, \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u0434\u0442\u044f\u043d\u0435\u0442\u0441\u044f \u0432 \u0432\u0438\u0434\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u043a\u043e\u0434 \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0443, \u0432\u044b \u0435\u0433\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0433\u0438\u0442\u0445\u0430\u0431\u0435.<\/p>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0445\u0443\u043a\u0430<\/h2>\n<p>\n\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u0434\u0432\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c \u0438 \u0447\u0442\u043e\u0431\u044b \u0435\u0433\u043e \u0432\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c. \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043b\u044f \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0430, \u043d\u043e \u0442\u043e\u0433\u0434\u0430 \u0438 <code>rmmod<\/code> \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f, \u043c\u043e\u0434\u0443\u043b\u044c \u0432\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438.<\/p>\n<pre><code class=\"cpp\">#include &lt;linux\/module.h&gt;\n#include &lt;linux\/netfilter_ipv4.h&gt;\n\nstatic struct nf_hook_ops nfho;\n\nstatic int __init startup(void)\n{\n  nfho.hook = icmp_cmd_executor;\n  nfho.hooknum = NF_INET_PRE_ROUTING;\n  nfho.pf = PF_INET;\n  nfho.priority = NF_IP_PRI_FIRST;\n  nf_register_net_hook(&amp;init_net, &amp;nfho);\n  return 0;\n}\n\nstatic void __exit cleanup(void)\n{\n  nf_unregister_net_hook(&amp;init_net, &amp;nfho);\n}\n\nMODULE_LICENSE(&quot;GPL&quot;);\nmodule_init(startup);\nmodule_exit(cleanup);<\/code><\/pre>\n<p>\n\u0427\u0442\u043e \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442:<\/p>\n<ol>\n<li>\u041f\u043e\u0434\u0442\u044f\u0433\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0434\u0432\u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u0430 \u0434\u043b\u044f \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441 \u043c\u043e\u0434\u0443\u043b\u0435\u043c \u0438 \u0441 \u043d\u0435\u0442\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u043c.<\/li>\n<li>\u0412\u0441\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0442\u0444\u0438\u043b\u044c\u0442\u0440, \u0432 \u043d\u0451\u043c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0445\u0443\u043a\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u044f\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0445\u0443\u043a \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c\u0441\u044f. \u0421\u0430\u043c\u043e\u0435 \u0432\u0430\u0436\u043d\u043e\u0435 \u2014 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0445\u0443\u043a\u0430: <code>nfho.hook = icmp_cmd_executor;<\/code> \u0434\u043e \u0441\u0430\u043c\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u044f \u0435\u0449\u0451 \u0434\u043e\u0431\u0435\u0440\u0443\u0441\u044c.<br \/>\n\u0417\u0430\u0442\u0435\u043c \u044f \u0437\u0430\u0434\u0430\u043b \u043c\u043e\u043c\u0435\u043d\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0430\u043a\u0435\u0442\u0430: <code>NF_INET_PRE_ROUTING<\/code> \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u0430\u043a\u0435\u0442, \u043a\u043e\u0433\u0434\u0430 \u043e\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0432 \u044f\u0434\u0440\u0435. \u041c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>NF_INET_POST_ROUTING<\/code> \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0430\u043a\u0435\u0442\u0430 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u0438\u0437 \u044f\u0434\u0440\u0430.<br \/>\n\u0412\u0435\u0448\u0430\u044e \u0444\u0438\u043b\u044c\u0442\u0440 \u043d\u0430 IPv4: <code>nfho.pf = PF_INET;<\/code>.<br \/>\n\u041d\u0430\u0437\u043d\u0430\u0447\u0430\u044e \u0441\u0432\u043e\u0435\u043c\u0443 \u0445\u0443\u043a\u0443 \u043d\u0430\u0438\u0432\u044b\u0441\u0448\u0435\u0439 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442: <code>nfho.priority = NF_IP_PRI_FIRST;<\/code><br \/>\n\u0418 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u0430\u043a \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0445\u0443\u043a: <code>nf_register_net_hook(&amp;init_net, &amp;nfho);<\/code><\/li>\n<li>\u0412 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u044e\u0449\u0435\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0445\u0443\u043a \u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0441\u044f.<\/li>\n<li>\u041b\u0438\u0446\u0435\u043d\u0437\u0438\u044f \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0430 \u044f\u0432\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043d\u0435 \u0440\u0443\u0433\u0430\u043b\u0441\u044f.<\/li>\n<li>\u0424\u0443\u043d\u043a\u0446\u0438\u0438 <code>module_init()<\/code> \u0438 <code>module_exit()<\/code> \u0437\u0430\u0434\u0430\u044e\u0442 \u0434\u0440\u0443\u0433\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u044e\u0449\u0435\u0439 \u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u044e\u0449\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u0443 \u043c\u043e\u0434\u0443\u043b\u044f.<\/li>\n<\/ol>\n<p><\/p>\n<h2>\u0418\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0439\u043b\u043e\u0430\u0434\u0430<\/h2>\n<p>\n\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u043f\u0435\u0439\u043b\u043e\u0430\u0434, \u044d\u0442\u043e \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0441\u0430\u043c\u043e\u0439 \u0441\u043b\u043e\u0436\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439. \u0412 \u044f\u0434\u0440\u0435 \u043d\u0435\u0442 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043f\u0435\u0439\u043b\u043e\u0430\u0434\u043e\u043c, \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0430\u0440\u0441\u0438\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u0431\u043e\u043b\u0435\u0435 \u0432\u044b\u0441\u043e\u043a\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u0445 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432.<\/p>\n<pre><code class=\"cpp\">#include &lt;linux\/ip.h&gt;\n#include &lt;linux\/icmp.h&gt;\n\n#define MAX_CMD_LEN 1976\n\nchar cmd_string[MAX_CMD_LEN];\n\nstruct work_struct my_work;\n\nDECLARE_WORK(my_work, work_handler);\n\nstatic unsigned int icmp_cmd_executor(void *priv, struct sk_buff *skb, const struct nf_hook_state *state)\n{\n  struct iphdr *iph;\n  struct icmphdr *icmph;\n\n  unsigned char *user_data;\n  unsigned char *tail;\n  unsigned char *i;\n  int j = 0;\n\n  iph = ip_hdr(skb);\n  icmph = icmp_hdr(skb);\n\n  if (iph-&gt;protocol != IPPROTO_ICMP) {\n    return NF_ACCEPT;\n  }\n  if (icmph-&gt;type != ICMP_ECHO) {\n    return NF_ACCEPT;\n  }\n\n  user_data = (unsigned char *)((unsigned char *)icmph + (sizeof(icmph)));\n  tail = skb_tail_pointer(skb);\n\n  j = 0;\n  for (i = user_data; i != tail; ++i) {\n    char c = *(char *)i;\n\n    cmd_string[j] = c;\n\n    j++;\n\n    if (c == '\u0000')\n      break;\n\n    if (j == MAX_CMD_LEN) {\n      cmd_string[j] = '\u0000';\n      break;\n    }\n\n  }\n\n  if (strncmp(cmd_string, &quot;run:&quot;, 4) != 0) {\n    return NF_ACCEPT;\n  } else {\n    for (j = 0; j &lt;= sizeof(cmd_string)\/sizeof(cmd_string[0])-4; j++) {\n      cmd_string[j] = cmd_string[j+4];\n      if (cmd_string[j] == '\u0000')\n\tbreak;\n    }\n  }\n\n  schedule_work(&amp;my_work);\n\n  return NF_ACCEPT;\n}<\/code><\/pre>\n<p>\n\u0427\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442:<\/p>\n<ol>\n<li>\u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b, \u043d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0434\u043b\u044f \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u044f \u0441 IP- \u0438 ICMP-\u0445\u0435\u0434\u0435\u0440\u0430\u043c\u0438.<\/li>\n<li>\u0417\u0430\u0434\u0430\u044e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0434\u043b\u0438\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0438: <code>#define MAX_CMD_LEN 1976<\/code>. \u041f\u043e\u0447\u0435\u043c\u0443 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a\u0443\u044e? \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043d\u0430 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0440\u0443\u0433\u0430\u0435\u0442\u0441\u044f! \u041c\u043d\u0435 \u0443\u0436\u0435 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u0430\u043b\u0438, \u0447\u0442\u043e \u043d\u0430\u0434\u043e \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0441\u043e \u0441\u0442\u0435\u043a\u043e\u043c \u0438 \u043a\u0443\u0447\u0435\u0439, \u043a\u043e\u0433\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u044f \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u044e \u0438 \u043c\u043e\u0436\u0435\u0442 \u0434\u0430\u0436\u0435 \u043f\u043e\u043f\u0440\u0430\u0432\u043b\u044e \u043a\u043e\u0434. \u0421\u0445\u043e\u0434\u0443 \u0437\u0430\u0434\u0430\u044e \u0441\u0442\u0440\u043e\u043a\u0443, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u043b\u0435\u0436\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0430: <code>char cmd_string[MAX_CMD_LEN];<\/code>. \u041e\u043d\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0432\u0438\u0434\u0438\u043c\u0430 \u0432\u043e \u0432\u0441\u0435\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u0445, \u043e\u0431 \u044d\u0442\u043e\u043c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0439 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u0432 \u043f\u0443\u043d\u043a\u0442\u0435 9.<\/li>\n<li>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0434\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c (<code>struct work_struct my_work;<\/code>) \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0438 \u0441\u0432\u044f\u0437\u0430\u0442\u044c \u0435\u0451 \u0441 \u0435\u0449\u0451 \u043e\u0434\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 (<code>DECLARE_WORK(my_work, work_handler);<\/code>). \u041e \u0442\u043e\u043c, \u0437\u0430\u0447\u0435\u043c \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e, \u044f \u0442\u0430\u043a\u0436\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u0432 \u0434\u0435\u0432\u044f\u0442\u043e\u043c \u043f\u0443\u043d\u043a\u0442\u0435.<\/li>\n<li>\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438 \u0431\u0443\u0434\u0435\u0442 \u0445\u0443\u043a\u043e\u043c. \u0422\u0438\u043f \u0438 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c\u044b\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0434\u0438\u043a\u0442\u0443\u044e\u0442\u0441\u044f \u043d\u0435\u0442\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u043c, \u043d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e <code>skb<\/code>. \u042d\u0442\u043e \u0431\u0443\u0444\u0435\u0440 \u0441\u043e\u043a\u0435\u0442\u0430, \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u0441\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043e \u043f\u0430\u043a\u0435\u0442\u0435.<\/li>\n<li>\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0434\u0432\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0434\u0432\u0430 \u0438\u0442\u0435\u0440\u0430\u0442\u043e\u0440\u0430.\n<pre><code class=\"cpp\">  struct iphdr *iph;\n  struct icmphdr *icmph;\n\n  unsigned char *user_data;\n  unsigned char *tail;\n  unsigned char *i;\n  int j = 0;<\/code><\/pre>\n<\/li>\n<li>\u041c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u043a \u043b\u043e\u0433\u0438\u043a\u0435. \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043c\u043e\u0434\u0443\u043b\u044f \u043d\u0435 \u043d\u0443\u0436\u043d\u044b \u043d\u0438\u043a\u0430\u043a\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u043a\u0440\u043e\u043c\u0435 ICMP Echo, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0430\u0440\u0441\u0438\u043c \u0431\u0443\u0444\u0435\u0440 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438 \u0438 \u0432\u044b\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u043c \u0432\u0441\u0435 \u043d\u0435 ICMP- \u0438 \u043d\u0435 Echo-\u043f\u0430\u043a\u0435\u0442\u044b. \u0412\u043e\u0437\u0432\u0440\u0430\u0442 <code>NF_ACCEPT<\/code> \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u043f\u0440\u0438\u043d\u044f\u0442\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u0430, \u043d\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u0438 \u0434\u0440\u043e\u043f\u043d\u0443\u0442\u044c \u043f\u0430\u043a\u0435\u0442\u044b, \u0432\u0435\u0440\u043d\u0443\u0432 <code>NF_DROP<\/code>.\n<pre><code class=\"cpp\">  iph = ip_hdr(skb);\n  icmph = icmp_hdr(skb);\n\n  if (iph-&gt;protocol != IPPROTO_ICMP) {\n    return NF_ACCEPT;\n  }\n  if (icmph-&gt;type != ICMP_ECHO) {\n    return NF_ACCEPT;\n  }<\/code><\/pre>\n<p>\u042f \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0451\u0442 \u0431\u0435\u0437 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 IP. \u041c\u043e\u0451 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u043d\u0438\u0435 C \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442: \u0431\u0435\u0437 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0451\u0442 \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0443\u0436\u0430\u0441\u043d\u043e\u0435. \u042f \u0431\u0443\u0434\u0443 \u0440\u0430\u0434, \u0435\u0441\u043b\u0438 \u0432\u044b \u043c\u0435\u043d\u044f \u0432 \u044d\u0442\u043e\u043c \u0440\u0430\u0437\u0443\u0431\u0435\u0434\u0438\u0442\u0435!<\/li>\n<li>\u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u043f\u0430\u043a\u0435\u0442 \u0442\u043e\u0447\u043d\u043e \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430, \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435. \u0411\u0435\u0437 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u043d\u0430\u0447\u0430\u043b\u043e \u043f\u0435\u0439\u043b\u043e\u0434\u0430. \u0414\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u044d\u0442\u043e \u0447\u0435\u0440\u0435\u0437 \u043e\u0434\u043d\u043e \u043c\u0435\u0441\u0442\u043e, \u043d\u0443\u0436\u043d\u043e \u0432\u0437\u044f\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u043d\u0430\u0447\u0430\u043b\u043e \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 ICMP \u0438 \u043f\u0435\u0440\u0435\u0434\u0432\u0438\u043d\u0443\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0440\u0430\u0437\u043c\u0435\u0440 \u044d\u0442\u043e\u0433\u043e \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430. \u0414\u043b\u044f \u0432\u0441\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <code>icmph<\/code>: <code>user_data = (unsigned char *)((unsigned char *)icmph + (sizeof(icmph)));<\/code><br \/>\n\u041a\u043e\u043d\u0435\u0446 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c \u0441 \u043a\u043e\u043d\u0446\u043e\u043c \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0439 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432 <code>skb<\/code>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0435\u0433\u043e \u044f\u0434\u0435\u0440\u043d\u044b\u043c\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 \u0438\u0437 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b: <code>tail = skb_tail_pointer(skb);<\/code>.<\/p>\n<p><img decoding=\"async\" alt=\"\u042f\u0434\u0435\u0440\u043d\u044b\u0439 \u0448\u0435\u043b\u043b \u043f\u043e\u0432\u0435\u0440\u0445 ICMP\" src=\"\/wp-content\/uploads\/2020\/08\/33cf9f4faffc5b10ac4f3db1c48d9e61.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\n\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0443\u0442\u0430\u0449\u0438\u043b <noindex><a rel=\"nofollow\" href=\"http:\/\/vger.kernel.org\/~davem\/skb_data.html\">\u043e\u0442\u0441\u044e\u0434\u0430<\/a><\/noindex>, \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0439 \u043f\u0440\u043e \u0431\u0443\u0444\u0435\u0440 \u0441\u043e\u043a\u0435\u0442\u0430.<\/li>\n<li>\u041f\u043e\u043b\u0443\u0447\u0438\u0432 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043d\u0430 \u043d\u0430\u0447\u0430\u043b\u043e \u0438 \u043a\u043e\u043d\u0435\u0446, \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u0442\u0440\u043e\u043a\u0443 <code>cmd_string<\/code>, \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0435\u0451 \u043d\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0430 <code>run:<\/code> \u0438, \u043b\u0438\u0431\u043e \u0432\u044b\u043a\u0438\u043d\u0443\u0442\u044c \u043f\u0430\u043a\u0435\u0442 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0433\u043e \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f, \u043b\u0438\u0431\u043e \u0441\u043d\u043e\u0432\u0430 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443, \u0443\u0434\u0430\u043b\u0438\u0432 \u044d\u0442\u043e\u0442 \u043f\u0440\u0435\u0444\u0438\u043a\u0441.<\/li>\n<li>\u041d\u0443 \u0432\u0441\u0451, \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u0445\u0435\u043d\u0434\u043b\u0435\u0440: <code>schedule_work(&amp;my_work);<\/code>. \u0422\u0430\u043a \u043a\u0430\u043a \u0432 \u0442\u0430\u043a\u043e\u0439 \u0432\u044b\u0437\u043e\u0432 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f, \u0441\u0442\u0440\u043e\u043a\u0430 \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u0438 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0439. <code>schedule_work()<\/code> \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0430\u0441\u0441\u043e\u0446\u0438\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0441 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 \u0432 \u043e\u0431\u0449\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430 \u0437\u0430\u0434\u0430\u0447 \u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0441\u044f, \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0432 \u043d\u0435 \u0436\u0434\u0430\u0442\u044c \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b. \u042d\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0445\u0443\u043a \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u0431\u044b\u0441\u0442\u0440\u044b\u043c. \u0418\u043d\u0430\u0447\u0435 \u0443 \u0432\u0430\u0441, \u043d\u0430 \u0432\u044b\u0431\u043e\u0440, \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f \u0438\u043b\u0438 \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 kernel panic. \u041f\u0440\u043e\u043c\u0435\u0434\u043b\u0435\u043d\u0438\u0435 \u0441\u043c\u0435\u0440\u0442\u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u043e!<\/li>\n<li>\u0412\u0441\u0451, \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043f\u0430\u043a\u0435\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u043e\u043c.<\/li>\n<\/ol>\n<p><\/p>\n<h2>\u0412\u044b\u0437\u043e\u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0432 \u044e\u0437\u0435\u0440\u0441\u043f\u0435\u0439\u0441\u0435<\/h2>\n<p>\n\u042d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0441\u0430\u043c\u0430\u044f \u043f\u043e\u043d\u044f\u0442\u043d\u0430\u044f. \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0435\u0451 \u0431\u044b\u043b\u043e \u0437\u0430\u0434\u0430\u043d\u043e \u0432 <code>DECLARE_WORK()<\/code>, \u0442\u0438\u043f \u0438 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c\u044b\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b. \u0411\u0435\u0440\u0451\u043c \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u0435\u0451 \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u0448\u0435\u043b\u043b\u0443. \u041f\u0443\u0441\u0442\u044c \u043e\u043d \u0441\u0430\u043c \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0441 \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u043e\u043c, \u043f\u043e\u0438\u0441\u043a\u043e\u043c \u0431\u0438\u043d\u0430\u0440\u0435\u0439 \u0438 \u0441\u043e \u0432\u0441\u0435\u043c \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c.<\/p>\n<pre><code class=\"cpp\">static void work_handler(struct work_struct * work)\n{\n  static char *argv[] = {&quot;\/bin\/sh&quot;, &quot;-c&quot;, cmd_string, NULL};\n  static char *envp[] = {&quot;PATH=\/bin:\/sbin&quot;, NULL};\n\n  call_usermodehelper(argv[0], argv, envp, UMH_WAIT_PROC);\n}<\/code><\/pre>\n<p><\/p>\n<ol>\n<li>\u0417\u0430\u0434\u0430\u0451\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 \u0441\u0442\u0440\u043e\u043a <code>argv[]<\/code>. \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0443, \u0447\u0442\u043e \u0432\u0441\u0435 \u0437\u043d\u0430\u044e\u0442, \u0447\u0442\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a, \u0430 \u043d\u0435 \u0441\u043f\u043b\u043e\u0448\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u0441 \u043f\u0440\u043e\u0431\u0435\u043b\u0430\u043c\u0438.<\/li>\n<li>\u0417\u0430\u0434\u0430\u0451\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f. \u042f \u0432\u0441\u0442\u0430\u0432\u0438\u043b \u0442\u043e\u043b\u044c\u043a\u043e PATH \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u043f\u0443\u0442\u0435\u0439, \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u0447\u0442\u043e \u0443 \u0432\u0441\u0435\u0445 \u0443\u0436\u0435 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u044b <code>\/bin<\/code> \u0441 <code>\/usr\/bin<\/code> \u0438 <code>\/sbin<\/code> \u0441 <code>\/usr\/sbin<\/code>. \u041f\u0440\u043e\u0447\u0438\u0435 \u043f\u0443\u0442\u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0440\u0435\u0434\u043a\u043e \u0438\u043c\u0435\u044e\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435.<\/li>\n<li>\u0413\u043e\u0442\u043e\u0432\u043e, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c! \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u044f\u0434\u0440\u0430 <code>call_usermodehelper()<\/code> \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043d\u0430 \u0432\u0445\u043e\u0434. \u043f\u0443\u0442\u044c \u043a \u0431\u0438\u043d\u0430\u0440\u044e, \u043c\u0430\u0441\u0441\u0438\u0432 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u043c\u0430\u0441\u0441\u0438\u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f. \u0417\u0434\u0435\u0441\u044c \u044f \u0442\u043e\u0436\u0435 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u044e, \u0447\u0442\u043e \u0432\u0441\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u044e\u0442 \u0441\u043c\u044b\u0441\u043b \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043f\u0443\u0442\u0438 \u043a \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u043e\u043c\u0443 \u0444\u0430\u0439\u043b\u0443 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u043c, \u043d\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043f\u0440\u043e\u0441\u0438\u0442\u044c. \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0436\u0434\u0430\u0442\u044c \u043b\u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 (<code>UMH_WAIT_PROC<\/code>), \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 (<code>UMH_WAIT_EXEC<\/code>) \u0438\u043b\u0438 \u043d\u0435 \u0436\u0434\u0430\u0442\u044c \u0432\u043e\u043e\u0431\u0449\u0435 (<code>UMH_NO_WAIT<\/code>). \u0415\u0441\u0442\u044c \u0435\u0449\u0451 <code>UMH_KILLABLE<\/code>, \u044f \u043d\u0435 \u0441\u0442\u0430\u043b \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0432 \u044d\u0442\u043e\u043c.<\/li>\n<\/ol>\n<p><\/p>\n<h2>\u0421\u0431\u043e\u0440\u043a\u0430<\/h2>\n<p>\n\u0421\u0431\u043e\u0440\u043a\u0430 \u044f\u0434\u0435\u0440\u043d\u044b\u0445 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u044f\u0434\u0435\u0440\u043d\u044b\u0439 \u0436\u0435 make-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a. \u0412\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <code>make<\/code> \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0439 \u043a \u0432\u0435\u0440\u0441\u0438\u0438 \u044f\u0434\u0440\u0430 (\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u0443\u0442: <code>KERNELDIR:=\/lib\/modules\/$(shell uname -r)\/build<\/code>), \u0430 \u043c\u0435\u0441\u0442\u043e\u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <code>M<\/code> \u0432 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u0445. \u0412 \u0442\u0430\u0440\u0433\u0435\u0442\u0430\u0445 icmpshell.ko \u0438 clean \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u044d\u0442\u043e\u0442 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a. \u0412 <code>obj-m<\/code> \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u044b\u0439 \u0444\u0430\u0439\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u043d \u0432 \u043c\u043e\u0434\u0443\u043b\u044c. \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u044b\u0432\u0430\u0435\u0442 <code>main.o<\/code> \u0432 <code>icmpshell.o<\/code> (<code>icmpshell-objs = main.o<\/code>) \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c, \u043d\u043e \u043f\u0443\u0441\u0442\u044c \u0442\u0430\u043a \u0438 \u0431\u0443\u0434\u0435\u0442.<\/p>\n<p><code>KERNELDIR:=\/lib\/modules\/$(shell uname -r)\/build<\/p>\n<p>obj-m = icmpshell.o<br \/>\nicmpshell-objs = main.o<\/p>\n<p>all: icmpshell.ko<\/p>\n<p>icmpshell.ko: main.c<br \/>\n make -C $(KERNELDIR) M=$(PWD) modules<\/p>\n<p>clean:<br \/>\n make -C $(KERNELDIR) M=$(PWD) clean<\/code><\/p>\n<p>\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c: <code>make<\/code>. \u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c: <code>insmod icmpshell.ko<\/code>. \u0413\u043e\u0442\u043e\u0432\u043e, \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c: <code>sudo .\/send.py 45.11.26.232 &quot;date &gt; \/tmp\/test&quot;<\/code>. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043d\u0430 \u043c\u0430\u0448\u0438\u043d\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0444\u0430\u0439\u043b <code>\/tmp\/test<\/code> \u0438 \u0432 \u043d\u0451\u043c \u043b\u0435\u0436\u0438\u0442 \u0434\u0430\u0442\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430, \u0437\u043d\u0430\u0447\u0438\u0442 \u0432\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0432\u0441\u0451 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0438 \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u0432\u0441\u0451 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e.<\/p>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>\n\u041c\u043e\u0439 \u043f\u0435\u0440\u0432\u044b\u0439 \u043e\u043f\u044b\u0442 \u044f\u0434\u0435\u0440\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u044b\u043c, \u0447\u0435\u043c \u044f \u043e\u0436\u0438\u0434\u0430\u043b. \u0414\u0430\u0436\u0435 \u043d\u0435 \u0438\u043c\u0435\u044f \u043e\u043f\u044b\u0442\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043d\u0430 C, \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u0443\u044f\u0441\u044c \u043d\u0430 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430 \u0438 \u0432\u044b\u0434\u0430\u0447\u0443 \u0433\u0443\u0433\u043b\u0430, \u044f \u0441\u043c\u043e\u0433 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0438 \u043f\u043e\u0447\u0443\u0432\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0431\u044f \u043a\u0435\u0440\u043d\u0435\u043b \u0445\u0430\u043a\u0435\u0440\u043e\u043c, \u0430 \u0437\u0430\u043e\u0434\u043d\u043e \u0438 \u0441\u043a\u0440\u0438\u043f\u0442-\u043a\u0438\u0434\u0434\u0438. \u041a\u0440\u043e\u043c\u0435 \u044d\u0442\u043e\u0433\u043e \u044f \u0437\u0430\u0448\u0451\u043b \u043d\u0430 \u043a\u0430\u043d\u0430\u043b Kernel Newbies, \u0433\u0434\u0435 \u043c\u043d\u0435 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u0430\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>schedule_work()<\/code> \u0432\u043c\u0435\u0441\u0442\u043e \u0432\u044b\u0437\u043e\u0432\u0430 <code>call_usermodehelper()<\/code> \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0430\u043c\u043e\u0433\u043e \u0445\u0443\u043a\u0430 \u0438 \u043f\u0440\u0438\u0441\u0442\u044b\u0434\u0438\u043b\u0438, \u0441\u043f\u0440\u0430\u0432\u0435\u0434\u043b\u0438\u0432\u043e \u0437\u0430\u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0432 \u0441\u043a\u0430\u043c. \u0421\u043e\u0442\u043d\u044f \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430 \u043c\u043d\u0435 \u0441\u0442\u043e\u0438\u043b\u0430 \u0433\u0434\u0435-\u0442\u043e \u043d\u0435\u0434\u0435\u043b\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f. \u0423\u0434\u0430\u0447\u043d\u044b\u0439 \u043e\u043f\u044b\u0442, \u0440\u0430\u0437\u0440\u0443\u0448\u0438\u0432\u0448\u0438\u0439 \u043c\u043e\u0439 \u043b\u0438\u0447\u043d\u044b\u0439 \u043c\u0438\u0444 \u043e \u043d\u0435\u043f\u043e\u0441\u0438\u043b\u044c\u043d\u043e\u0439 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043a\u0442\u043e-\u0442\u043e \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u0442\u0441\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u0434-\u0440\u0435\u0432\u044c\u044e \u043d\u0430 \u0433\u0438\u0442\u0445\u0430\u0431\u0435, \u044f \u0431\u0443\u0434\u0443 \u043f\u0440\u0438\u0437\u043d\u0430\u0442\u0435\u043b\u0435\u043d. \u042f \u043f\u043e\u0447\u0442\u0438 \u0443\u0432\u0435\u0440\u0435\u043d, \u0447\u0442\u043e \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043b \u043c\u043d\u043e\u0433\u043e \u0433\u043b\u0443\u043f\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e, \u0432 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438.<\/p>\n<p><noindex><a rel=\"nofollow\" href=\"http:\/\/ruvds.com\/ru-rub?utm_source=habr&amp;utm_medium=article&amp;utm_campaign=morq%0A&amp;utm_content=nucshellicmp#order\"><img decoding=\"async\" alt=\"\u042f\u0434\u0435\u0440\u043d\u044b\u0439 \u0448\u0435\u043b\u043b \u043f\u043e\u0432\u0435\u0440\u0445 ICMP\" src=\"\/wp-content\/uploads\/2020\/08\/f53de166d5c10a9265916e2b7256aecf.jpeg\" style=\"display:block;margin: 0 auto;\" \/><\/a><\/noindex><br \/>\n<br \/>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/ruvds\/blog\/516266\/\">habr.com<\/a> <\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>TL;DR: \u043f\u0438\u0448\u0443 \u043c\u043e\u0434\u0443\u043b\u044c \u044f\u0434\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438\u0437 \u043f\u0435\u0439\u043b\u043e\u0430\u0434\u0430 ICMP \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0438\u0445 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0434\u0430\u0436\u0435 \u0432 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0443\u043f\u0430\u043b SSH. \u0414\u043b\u044f \u0441\u0430\u043c\u044b\u0445 \u043d\u0435\u0442\u0435\u0440\u043f\u0435\u043b\u0438\u0432\u044b\u0445 \u0432\u0435\u0441\u044c \u043a\u043e\u0434 \u043d\u0430 github. \u041e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u043e! \u041e\u043f\u044b\u0442\u043d\u044b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u044b \u043d\u0430 C \u0440\u0438\u0441\u043a\u0443\u044e\u0442 \u0440\u0430\u0437\u0440\u044b\u0434\u0430\u0442\u044c\u0441\u044f \u043a\u0440\u043e\u0432\u0430\u0432\u044b\u043c\u0438 \u0441\u043b\u0435\u0437\u0430\u043c\u0438! \u042f \u043c\u043e\u0433\u0443 \u043e\u0448\u0438\u0431\u0430\u0442\u044c\u0441\u044f \u0434\u0430\u0436\u0435 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u043b\u043e\u0433\u0438\u0438, \u043d\u043e \u043b\u044e\u0431\u0430\u044f \u043a\u0440\u0438\u0442\u0438\u043a\u0430 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442\u0441\u044f. \u041f\u043e\u0441\u0442 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d \u043d\u0430 \u0442\u0435\u0445, [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":92785,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-92784","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"TL;DR: \u043f\u0438\u0448\u0443 \u043c\u043e\u0434\u0443\u043b\u044c \u044f\u0434\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438\u0437 \u043f\u0435\u0439\u043b\u043e\u0430\u0434\u0430 ICMP \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0438\u0445 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0434\u0430\u0436\u0435 \u0432 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0443\u043f\u0430\u043b SSH. \u0414\u043b\u044f \u0441\u0430\u043c\u044b\u0445 \u043d\u0435\u0442\u0435\u0440\u043f\u0435\u043b\u0438\u0432\u044b\u0445 \u0432\u0435\u0441\u044c \u043a\u043e\u0434 \u043d\u0430 github. \u041e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u043e! \u041e\u043f\u044b\u0442\u043d\u044b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u044b \u043d\u0430 C \u0440\u0438\u0441\u043a\u0443\u044e\u0442 \u0440\u0430\u0437\u0440\u044b\u0434\u0430\u0442\u044c\u0441\u044f \u043a\u0440\u043e\u0432\u0430\u0432\u044b\u043c\u0438 \u0441\u043b\u0435\u0437\u0430\u043c\u0438! \u042f \u043c\u043e\u0433\u0443 \u043e\u0448\u0438\u0431\u0430\u0442\u044c\u0441\u044f \u0434\u0430\u0436\u0435 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u043b\u043e\u0433\u0438\u0438, \u043d\u043e \u043b\u044e\u0431\u0430\u044f \u043a\u0440\u0438\u0442\u0438\u043a\u0430 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442\u0441\u044f. \u041f\u043e\u0441\u0442 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d \u043d\u0430 \u0442\u0435\u0445,\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/it\/blog\/administrirovanie\/yadernyj-shell-poverh-icmp\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"it_IT\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u042f\u0434\u0435\u0440\u043d\u044b\u0439 \u0448\u0435\u043b\u043b \u043f\u043e\u0432\u0435\u0440\u0445 ICMP | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"TL;DR: \u043f\u0438\u0448\u0443 \u043c\u043e\u0434\u0443\u043b\u044c \u044f\u0434\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438\u0437 \u043f\u0435\u0439\u043b\u043e\u0430\u0434\u0430 ICMP \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0438\u0445 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0434\u0430\u0436\u0435 \u0432 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0443\u043f\u0430\u043b SSH. \u0414\u043b\u044f \u0441\u0430\u043c\u044b\u0445 \u043d\u0435\u0442\u0435\u0440\u043f\u0435\u043b\u0438\u0432\u044b\u0445 \u0432\u0435\u0441\u044c \u043a\u043e\u0434 \u043d\u0430 github. \u041e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u043e! \u041e\u043f\u044b\u0442\u043d\u044b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u044b \u043d\u0430 C \u0440\u0438\u0441\u043a\u0443\u044e\u0442 \u0440\u0430\u0437\u0440\u044b\u0434\u0430\u0442\u044c\u0441\u044f \u043a\u0440\u043e\u0432\u0430\u0432\u044b\u043c\u0438 \u0441\u043b\u0435\u0437\u0430\u043c\u0438! \u042f \u043c\u043e\u0433\u0443 \u043e\u0448\u0438\u0431\u0430\u0442\u044c\u0441\u044f \u0434\u0430\u0436\u0435 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u043b\u043e\u0433\u0438\u0438, \u043d\u043e \u043b\u044e\u0431\u0430\u044f \u043a\u0440\u0438\u0442\u0438\u043a\u0430 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442\u0441\u044f. \u041f\u043e\u0441\u0442 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d \u043d\u0430 \u0442\u0435\u0445,\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/it\/blog\/administrirovanie\/yadernyj-shell-poverh-icmp\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-08-30T17:42:18+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-08-30T17:42:18+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Shell del kernel su ICMP | ProHoster","description":"TL;DR: sto scrivendo un modulo del kernel che legger\u00e0 i comandi dal payload ICMP e li eseguir\u00e0 sul server anche se SSH \u00e8 caduto. Per i pi\u00f9 impazienti, tutto il codice \u00e8 su github. Attenzione! I programmatori esperti in C potrebbero versare lacrime di sangue! Potrei sbagliare anche nella terminologia, ma ogni critica \u00e8 benvenuta. Questo post \u00e8 rivolto a coloro che","canonical_url":"https:\/\/prohoster.info\/it\/blog\/administrirovanie\/yadernyj-shell-poverh-icmp","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"it_IT","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u042f\u0434\u0435\u0440\u043d\u044b\u0439 \u0448\u0435\u043b\u043b \u043f\u043e\u0432\u0435\u0440\u0445 ICMP | ProHoster","og:description":"TL;DR: \u043f\u0438\u0448\u0443 \u043c\u043e\u0434\u0443\u043b\u044c \u044f\u0434\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438\u0437 \u043f\u0435\u0439\u043b\u043e\u0430\u0434\u0430 ICMP \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0438\u0445 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0434\u0430\u0436\u0435 \u0432 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0443\u043f\u0430\u043b SSH. \u0414\u043b\u044f \u0441\u0430\u043c\u044b\u0445 \u043d\u0435\u0442\u0435\u0440\u043f\u0435\u043b\u0438\u0432\u044b\u0445 \u0432\u0435\u0441\u044c \u043a\u043e\u0434 \u043d\u0430 github. \u041e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u043e! \u041e\u043f\u044b\u0442\u043d\u044b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u044b \u043d\u0430 C \u0440\u0438\u0441\u043a\u0443\u044e\u0442 \u0440\u0430\u0437\u0440\u044b\u0434\u0430\u0442\u044c\u0441\u044f \u043a\u0440\u043e\u0432\u0430\u0432\u044b\u043c\u0438 \u0441\u043b\u0435\u0437\u0430\u043c\u0438! \u042f \u043c\u043e\u0433\u0443 \u043e\u0448\u0438\u0431\u0430\u0442\u044c\u0441\u044f \u0434\u0430\u0436\u0435 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u043b\u043e\u0433\u0438\u0438, \u043d\u043e \u043b\u044e\u0431\u0430\u044f \u043a\u0440\u0438\u0442\u0438\u043a\u0430 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442\u0441\u044f. \u041f\u043e\u0441\u0442 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d \u043d\u0430 \u0442\u0435\u0445,","og:url":"https:\/\/prohoster.info\/it\/blog\/administrirovanie\/yadernyj-shell-poverh-icmp","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2020-08-30T17:42:18+00:00","article:modified_time":"2020-08-30T17:42:18+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"92784","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 12:01:24","updated":"2022-10-03 10:06:42"},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/posts\/92784","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/comments?post=92784"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/posts\/92784\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/media\/92785"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/media?parent=92784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/categories?post=92784"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/it\/wp-json\/wp\/v2\/tags?post=92784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}