{"id":368465,"date":"2024-05-21T03:43:16","date_gmt":"2024-05-21T03:43:16","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=368465"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=368465","title":{"rendered":"<span>\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u0432\u0437\u043b\u043e\u043c\u0430\u0442\u044c \u0445\u0430\u043a\u0435\u0440\u0430? \u0420\u0430\u0441\u043f\u0443\u0442\u044b\u0432\u0430\u0435\u043c \u043a\u0438\u0431\u0435\u0440\u0430\u0442\u0430\u043a\u0438 \u0441 CTF-\u0442\u0443\u0440\u043d\u0438\u0440\u0430<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/h7\/p0\/4s\/h7p04s9rt1_vz6dj_dmknpzofsw.png\" data-src=\"https:\/\/habrastorage.org\/webt\/h7\/p0\/4s\/h7p04s9rt1_vz6dj_dmknpzofsw.png\"\/><\/div>\n<p>  \u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440! \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u043f\u0443\u0442\u0435\u0448\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043f\u043e CTF-\u0442\u0443\u0440\u043d\u0438\u0440\u0430\u043c. \u0418\u0437 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u2014 0xL4ugh CTF 24 \u043e\u0442 \u043e\u0434\u043d\u043e\u0438\u043c\u0435\u043d\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438\u0437 \u0415\u0433\u0438\u043f\u0442\u0430. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u044f \u0440\u0435\u0448\u0438\u043b \u0437\u0430\u0434\u0430\u0447\u0438 \u0438\u0437 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 DFIR (Digital Forensics and Incident Response) \u0438 web. \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0439\u0442\u0435 \u0432 \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0438: \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u043a\u0430\u043a \u043e\u043f\u044b\u0442\u043d\u044b\u043c, \u0442\u0430\u043a \u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u043c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u0430\u043c \u043f\u043e <a href=\"https:\/\/selectel.ru\/services\/is\/dswes\/?utm_source=habr.com&amp;utm_medium=referral&amp;utm_campaign=dswes_article_tourney_290224_content\">\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438<\/a>.<\/p>\n<p>  <b>\u0414\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440:<\/b> \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043d\u0435 \u043e\u0431\u0443\u0447\u0430\u0435\u0442 \u0445\u0430\u043a\u0438\u043d\u0433\u0443 \u0438 \u043d\u0435 \u043f\u0440\u0438\u0437\u044b\u0432\u0430\u0435\u0442 \u043a \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0437\u0430\u043a\u043e\u043d\u043d\u044b\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c. \u0412\u0441\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0435 \u043d\u0438\u0436\u0435 \u043b\u0438\u0448\u044c \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442, \u043a\u0430\u043a\u0438\u0435 \u043f\u0440\u043e\u0431\u0435\u043b\u044b \u0432 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442\u0441\u044f \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445. \u0418 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0430\u0435\u0442, \u043d\u0430 \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f.<br \/>  <a name=\"habracut\"><\/a><br \/>  <b>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044e, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u0439 \u0431\u043b\u043e\u043a:<\/b><\/p>\n<p>  \u2192 <a href=\"#1\">\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e \u0442\u0443\u0440\u043d\u0438\u0440\u0435<\/a><br \/>  \u2192 <a href=\"#2\">\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f DFIR<\/a><br \/>  \u2192 <a href=\"#3\">\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f web<\/a><br \/>  \u2192 <a href=\"#4\">\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 <\/a><\/p>\n<p>  <a name=\"1\"><\/a><font color=\"#EB4247\"><\/p>\n<h2>\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e \u0442\u0443\u0440\u043d\u0438\u0440\u0435<\/h2>\n<p><\/font><br \/>  \u0412 \u044d\u0442\u043e\u043c \u0433\u043e\u0434\u0443 <a href=\"https:\/\/0xl4ugh.com\/Team\/\">\u043a\u043e\u043c\u0430\u043d\u0434\u0430 0xL4ugh<\/a> \u0430\u043d\u043e\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043b\u0430 \u0442\u0443\u0440\u043d\u0438\u0440 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<blockquote><p>\u00ab\u041c\u044b \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u043b\u0438\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c <a href=\"https:\/\/ctf24.0xl4ugh.com\/\">0xL4ugh CTF 24<\/a> (\u0442\u0440\u0435\u0442\u044c\u044e \u0432\u0435\u0440\u0441\u0438\u044e) \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u044b\u043c, \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c \u0438 \u0437\u0430\u0431\u0430\u0432\u043d\u044b\u043c. \u0411\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0437\u0430\u0434\u0430\u0447 \u0432 \u044d\u0442\u043e\u043c \u0433\u043e\u0434\u0443 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u044b \u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0438 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f\u0445. \u041e\u0441\u0442\u0430\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430 \u0441\u0432\u044f\u0437\u0438\u00bb.<\/p><\/blockquote>\n<p>  \u0412 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u0441\u0443\u0442\u043e\u043a \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0440\u0435\u0448\u0438\u0442\u044c 36 \u0437\u0430\u0434\u0430\u043d\u0438\u0439 \u0438\u0437 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 web, DFIR, reverse, crypto, pwn, misc \u0438 osint. \u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043c\u0435\u0440\u043e\u043f\u0440\u0438\u044f\u0442\u0438\u0438, \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e, \u0431\u044b\u043b\u0430 \u043d\u0430 <a href=\"https:\/\/ctftime.org\/event\/2216\">CTFtime<\/a>. \u0421\u043e\u0432\u0435\u0442\u0443\u044e \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u0430\u043d\u043e\u043d\u0441\u044b \u043c\u0435\u0440\u043e\u043f\u0440\u0438\u044f\u0442\u0438\u044f \u0442\u0430\u043c, \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u0431\u044b\u0442\u044c \u0432 \u043a\u0443\u0440\u0441\u0435 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 CTF-\u0442\u0443\u0440\u043d\u0438\u0440\u043e\u0432.<\/p>\n<p>  <a name=\"2\"><\/a><font color=\"#EB4247\"><\/p>\n<h2>\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f DFIR<\/h2>\n<p><\/font>  <\/p>\n<h3>\u0417\u0430\u0434\u0430\u0447\u0430: WordPress 1<\/h3>\n<p>  <b>\u0423\u0441\u043b\u043e\u0432\u0438\u0435<\/b><\/p>\n<p>  \u041d\u0430 \u0441\u0430\u0439\u0442\u0435 WordPress \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u0435\u043b \u0441\u0431\u043e\u0439 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438, \u0438 \u0442\u043e\u0447\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0432\u0437\u043b\u043e\u043c\u0430 \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d. \u041d\u0430\u043c \u043d\u0443\u0436\u043d\u0430 \u0432\u0430\u0448\u0430 \u043f\u043e\u043c\u043e\u0449\u044c, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u044f\u0441\u043d\u0438\u0442\u044c, \u0447\u0442\u043e \u0436\u0435 \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435.<\/p>\n<ol>\n<li>\u0414\u0432\u0430 \u0437\u043b\u043e\u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u0438\u043a\u0430 \u043f\u044b\u0442\u0430\u043b\u0438\u0441\u044c \u0441\u043a\u043e\u043c\u043f\u0440\u043e\u043c\u0435\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0448\u0443 \u0441\u0440\u0435\u0434\u0443. \u041a\u0430\u043a\u0438\u0435 IP-\u0430\u0434\u0440\u0435\u0441\u0430 \u0431\u044b\u043b\u0438 \u0443 \u0436\u0435\u0440\u0442\u0432\u044b \u0438 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0437\u043b\u043e\u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u0438\u043a\u0430? <\/li>\n<li>\u041a\u0430\u043a\u0438\u0435 \u0431\u044b\u043b\u0438 \u0432\u0435\u0440\u0441\u0438\u0438 \u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 Apache \u0438 PHP, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u0432 \u043d\u0430\u0448\u0435\u0439 \u0441\u0440\u0435\u0434\u0435?<\/li>\n<\/ol>\n<p>  <b>\u0414\u0430\u043d\u043e <\/b>  <\/p>\n<ul>\n<li>Flag Format 0xL4ugh{A1_A2}<br \/>  Example: 0xL4ugh{IP1_IP2_apache1.2.3_php1.2.3}(no spaces),<\/li>\n<li><a href=\"https:\/\/disk.yandex.ru\/d\/MZo7lxybJfeO8A\">\u0444\u0430\u0439\u043b<\/a>.<\/li>\n<\/ul>\n<p>  <b>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/b><\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0444\u043b\u0430\u0433 \u0432 \u044d\u0442\u043e\u043c \u0442\u0430\u0441\u043a\u0435, \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c \u043d\u0430 \u0434\u0432\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u0430. \u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c!<\/p>\n<h4>\u0428\u0430\u0433 1<\/h4>\n<p>  \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u044e \u0432 Wireshark \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u043a \u0437\u0430\u0434\u0430\u043d\u0438\u044e \u0444\u0430\u0439\u043b. \u041f\u043e \u043b\u043e\u0433\u0438\u043a\u0435 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u0434\u0435\u0442 \u0440\u0430\u0437\u0432\u0435\u0434\u043a\u0430 (\u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435), \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u044e, \u0447\u0442\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u0430\u0442\u0430\u043a\u0443\u044e\u0449\u0438\u0439 \u2014 \u044d\u0442\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u0442\u043e\u0440 \u0441\u043a\u0430\u043d\u043e\u0432.<\/p>\n<p>  \u041f\u0435\u0440\u0435\u0445\u043e\u0436\u0443 \u0438\u0437 <b>\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438<\/b> \u0432 <b>HTTP<\/b>, \u0437\u0430\u0442\u0435\u043c \u2014 \u0432 <b>\u041f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432<\/b>.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/5j\/u0\/br\/5ju0braq8w8vmtl7_pocta2jjpk.png\" data-src=\"https:\/\/habrastorage.org\/webt\/5j\/u0\/br\/5ju0braq8w8vmtl7_pocta2jjpk.png\"\/><\/div>\n<p>  \u0412\u0438\u0436\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043a 192.168.204.128. \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u044f\u0432\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u0442\u0430\u043c \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f WordPress.<\/p>\n<h4>\u0428\u0430\u0433 2<\/h4>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0445\u043e\u0436\u0443 \u0432 \u043e\u0431\u0449\u0438\u0439 \u0444\u0430\u0439\u043b \u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u044e \u0435\u0433\u043e \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c:<\/p>\n<pre><code class=\"bash\">ip.dst == 192.168.204.128 and http contains \"GET\" <\/code><\/pre>\n<p>  \u0422\u0440\u0430\u0444\u0438\u043a\u0438 \u043e\u0442 192.168.204.1 \u0438 192.168.204.132 \u043f\u043e\u0445\u043e\u0436\u0438 \u043d\u0430 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440 \u0441\u043a\u0430\u043d\u0430. \u0421\u043c\u043e\u0442\u0440\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0443 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e IP-\u0430\u0434\u0440\u0435\u0441\u0430 \u0438 \u0432\u0438\u0436\u0443, \u0447\u0442\u043e User-Agent \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 WPScan v3.8.25 \u0438 sqlmap 1.7.12#stable%:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/gv\/sj\/q-\/gvsjq-edxdevixdx-ayz_hyb_ay.png\" data-src=\"https:\/\/habrastorage.org\/webt\/gv\/sj\/q-\/gvsjq-edxdevixdx-ayz_hyb_ay.png\"\/><\/div>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/wj\/si\/h3\/wjsih3nznxcx8qqhus_9ecrkes8.png\" data-src=\"https:\/\/habrastorage.org\/webt\/wj\/si\/h3\/wjsih3nznxcx8qqhus_9ecrkes8.png\"\/><\/div>\n<p>  \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, IP-\u0430\u0434\u0440\u0435\u0441 192.168.204.132 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043b \u0436\u0435\u0440\u0442\u0432\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u044d\u0442\u0438\u0445 \u0443\u0442\u0438\u043b\u0438\u0442.<\/p>\n<h4>\u0428\u0430\u0433 3<\/h4>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043c\u0435\u043d\u044f\u044e \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0444\u0438\u043b\u044c\u0442\u0440 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0430\u0434\u0440\u0435\u0441:<\/p>\n<pre><code class=\"bash\">ip.src == 192.168.204.128 and ip.dst == 192.168.204.132 <\/code><\/pre>\n<p>  \u0412 \u043e\u0442\u0432\u0435\u0442\u0435 \u0432\u0438\u0436\u0443 php_8.2.12 \u0438 Apache_2.4.58.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/sd\/ze\/nu\/sdzenuwx7e7gb94en8uctsfcdsq.png\" data-src=\"https:\/\/habrastorage.org\/webt\/sd\/ze\/nu\/sdzenuwx7e7gb94en8uctsfcdsq.png\"\/><\/div>\n<p>  \u0413\u043e\u0442\u043e\u0432\u043e \u2014 \u0441\u043e\u0431\u0438\u0440\u0430\u044e \u0444\u043b\u0430\u0433:<\/p>\n<pre><code class=\"bash\">0xL4ugh{192.168.204.128_192.168.204.132_apache2.4.58_php8.2.12} <\/code><\/pre>\n<p>  <a href=\"https:\/\/selectel.ru\/services\/dedicated\/?utm_source=habr.com&amp;utm_medium=referral&amp;utm_campaign=dedicated_article_tourney_290224_banner_008_ord\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/nm\/bz\/_e\/nmbz_eygyu_olpkjgx9ri73qrmw.png\" data-src=\"https:\/\/habrastorage.org\/webt\/nm\/bz\/_e\/nmbz_eygyu_olpkjgx9ri73qrmw.png\"\/><\/div>\n<p><\/a><br \/>  <a name=\"3\"><\/a><font color=\"#EB4247\"><\/p>\n<h2>\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f web<\/h2>\n<p><\/font>  <\/p>\n<h3>\u0417\u0430\u0434\u0430\u0447\u0430: Micro<\/h3>\n<p>  <b>\u0417\u0430\u0434\u0430\u043d\u0438\u0435:<\/b><\/p>\n<p>  \u041f\u043e\u043c\u043d\u0438\u0442\u0435 Bruh 1,2? \u042d\u0442\u043e bruh 3 \ud83d\ude00<\/p>\n<p>  \u0412\u043e\u0439\u0434\u0438\u0442\u0435 \u043f\u043e\u0434 \u043b\u043e\u0433\u0438\u043d\u043e\u043c admin:admin, \u0438 \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0444\u043b\u0430\u0433 :*<\/p>\n<p>  <b>\u0414\u0430\u043d\u043e <\/b>  <\/p>\n<ul>\n<li><a href=\"http:\/\/20.115.83.90:1338\/\">http:\/\/20.115.83.90:1338\/<\/a>,<\/li>\n<li><a href=\"https:\/\/disk.yandex.ru\/d\/79XT9mxSsHDNxg\">\u0430\u0440\u0445\u0438\u0432<\/a>.<\/li>\n<\/ul>\n<p>  <b>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/b><\/p>\n<h4>\u0428\u0430\u0433 1<\/h4>\n<p>  \u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0441 \u0444\u043e\u0440\u043c\u043e\u0439 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/qh\/d_\/gd\/qhd_gddwy-oxkj1wsoh0z72qwl4.png\" data-src=\"https:\/\/habrastorage.org\/webt\/qh\/d_\/gd\/qhd_gddwy-oxkj1wsoh0z72qwl4.png\"\/><\/div>\n<p>  \u041f\u0435\u0440\u0435\u0445\u043e\u0436\u0443 \u043a \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430\u043c. \u041c\u0435\u043d\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0442 \u0442\u0440\u0438 \u0444\u0430\u0439\u043b\u0430 \u0438\u0437 \u0430\u0440\u0445\u0438\u0432\u0430: init.db, index.php \u0438 app.py. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435.<\/p>\n<p>  <b>\u0424\u0430\u0439\u043b init.db. <\/b>\u0412 \u043d\u0435\u043c \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0431\u043b\u043e\u043a \u043a\u043e\u0434\u0430:<\/p>\n<pre><code class=\"sql\">CREATE TABLE IF NOT EXISTS `users` (   `id` varchar(50) NOT NULL,   `username` varchar(20) NOT NULL,   `password` varchar(50) NOT NULL ) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=66 ; <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0441 \u0442\u0440\u0435\u043c\u044f \u0441\u0442\u043e\u043b\u0431\u0446\u0430\u043c\u0438: ID, username \u0438 password. \u0417\u0430\u0442\u0435\u043c:<\/p>\n<pre><code class=\"sql\">insert into users(id,username,password) values('1','admin','21232f297a57a5a743894a0e4a801fc3');  <\/code><\/pre>\n<p>  \u0412 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044c, \u0430 \u0432 \u0441\u0442\u043e\u043b\u0431\u0435\u0446 password \u2014 md5-hash \u0441 admin.<\/p>\n<h4>\u0428\u0430\u0433 2 <\/h4>\n<p>  <b>\u0424\u0430\u0439\u043b index.php.<\/b> \u0421\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435 POST-\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c.<\/p>\n<pre><code class=\"php\">if(isset($_POST['login-submit'])) { if(!empty($_POST['username'])&amp;&amp;!empty($_POST['password'])) { $username=$_POST['username']; $password=md5($_POST['password']);        if(Check_Admin($username) &amp;&amp; $_SERVER['REMOTE_ADDR']!==\"127.0.0.1\")         {             die(\"Admin Login allowed from localhost only : )\");        }         else         {             send_to_api(file_get_contents(\"php:\/\/input\"));         }     } else { echo \"&lt;script>alert('Please Fill All Fields')&lt;\/script>\"; } } <\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0435 username \u0438 password \u043d\u0435 \u0431\u044b\u043b\u0438 \u043f\u0443\u0441\u0442\u044b\u043c\u0438. \u041f\u043e\u0441\u043b\u0435 \u2014 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u0430 username \u043e\u0442\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e Check_Admin:<\/p>\n<pre><code class=\"php\">function Check_Admin($input) {         $input=iconv('UTF-8', 'US-ASCII\/\/TRANSLIT', $input);   \/\/ Just to Normalize the string to UTF-8         if(preg_match(\"\/admin\/i\",$input))         {                      return true;         }         else         {                 return false;         } } <\/code><\/pre>\n<p>  Check_Admin \u043e\u0442\u0432\u0435\u0442\u0438\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c true, \u0435\u0441\u043b\u0438 \u0432 \u043f\u043e\u043b\u0435 username \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f admin. \u0412 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u2014 \u0432\u0435\u0440\u043d\u0435\u0442 false.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f Check_Admin \u043e\u0442\u0432\u0435\u0442\u0438\u0442 true \u0438 $_SERVER[&#8216;REMOTE_ADDR&#8217;] \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0432\u0435\u043d 127.0.0.1, \u0442\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432\u0435\u0440\u043d\u0435\u0442 Admin Login allowed from localhost only: ). \u0412 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u043f\u043e\u0440\u0442 5000, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f API \u0434\u043b\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0447\u0435\u0440\u0435\u0437 \u0441\u043a\u0440\u0438\u043f\u0442 app.py.<\/p>\n<h4>\u0428\u0430\u0433 3<\/h4>\n<p>  <b>\u0424\u0430\u0439\u043b app.py. <\/b>\u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 username, \u043d\u043e \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u0445\u044d\u0448 \u0438\u0437 password:<\/p>\n<pre><code class=\"javascript\">password = hashlib.md5(request.form.get('password').encode()).hexdigest() <\/code><\/pre>\n<p>  \u0414\u0430\u043d\u043d\u044b\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e authenticate_user():<\/p>\n<pre><code class=\"javascript\">def authenticate_user(username, password):     try:         conn = mysql.connector.connect(             host=mysql_host,             user=mysql_user,             password=mysql_password,             database=mysql_db         )          cursor = conn.cursor()          query = \"SELECT * FROM users WHERE username = %s AND password = %s\"         cursor.execute(query, (username, password))          result = cursor.fetchone()          cursor.close()         conn.close()          return result       except mysql.connector.Error as error:         print(\"Error while connecting to MySQL\", error)         return None <\/code><\/pre>\n<p>  \u0418\u0442\u043e\u0433\u043e, \u043f\u043e \u043b\u043e\u0433\u0438\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0432\u043e\u0434, \u0447\u0442\u043e \u0435\u0441\u043b\u0438, \u043a\u0430\u043a \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u0432 \u0437\u0430\u0434\u0430\u043d\u0438\u0438, \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0443 username=admin \u0438 password=admin, \u0442\u043e \u0444\u0438\u043b\u044c\u0442 preg_match \u0432 index.php \u0432\u0435\u0440\u043d\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 true. \u0417\u0430\u043f\u0440\u043e\u0441\u0430 \u043a \u0411\u0414 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442, \u0438 \u044f \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0443 \u0444\u043b\u0430\u0433.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043a $_SERVER[&#8216;REMOTE_ADDR&#8217;] \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0432\u0435\u043d 127.0.0.1. PHP \u0432\u044b\u0442\u0430\u0449\u0438\u0442 \u044d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u0441\u0442\u0435\u043a\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 HTTP \u2018REMOTE_ADDR: 127.0.0.1 \u043d\u0435 \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442.<\/p>\n<p>  \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0443\u0441\u043b\u043e\u0432\u0438\u0435 if(Check_Admin($username) &amp;&amp; $_SERVER[&#8216;REMOTE_ADDR&#8217;]!==\u00ab127.0.0.1\u00bb) \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043e\u0439\u0442\u0438, \u0435\u0441\u043b\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f Check_Admin \u043e\u0442\u0432\u0435\u0442\u0438\u0442 false. \u0422\u043e\u0433\u0434\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u0443\u0439\u0434\u0443\u0442 \u043d\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0432 app.py.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043d\u0435 \u0432\u0432\u0435\u0441\u0442\u0438 admin \u0432 username, \u0442\u043e \u0437\u0430\u043f\u0440\u043e\u0441 \u043a \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435 \u0432\u044b\u0434\u0430\u0441\u0442 \u043e\u0442\u0442\u0443\u0434\u0430 \u0437\u0430\u043f\u0438\u0441\u044c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u043e\u0434\u043d\u0438\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c username \u0441 \u0434\u0432\u0443\u043c\u044f \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438:<\/p>\n<ul>\n<li><b>Username \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c admin<\/b>, \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u043e\u0439\u0442\u0438 \u0444\u0438\u043b\u044c\u0442\u0440 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 preg_match php.<\/li>\n<li><b>Username \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c admin<\/b>, \u0447\u0442\u043e\u0431\u044b python \u0437\u0430\u0431\u0440\u0430\u043b \u0435\u0433\u043e \u0432 SQL-\u0437\u0430\u043f\u0440\u043e\u0441.<\/li>\n<\/ul>\n<p>  \u0417\u0430\u0434\u0430\u0447\u0430 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0440\u0435\u0447\u0438\u0432\u043e\u0439, \u043d\u043e \u043e\u0442\u0432\u0435\u0442 \u2014 \u0432 \u0442\u043e\u043c, \u043a\u0430\u043a PHP \u0438 Python \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 POST-\u0437\u0430\u043f\u0440\u043e\u0441\u0430. \u0415\u0441\u043b\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0432 \u0442\u0435\u043b\u0435 HTTP, \u0442\u043e Python \u0432\u043e\u0437\u044c\u043c\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430, \u0430 PHP \u2014 \u0438\u0437 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e.<\/p>\n<h4>\u0428\u0430\u0433 4 <\/h4>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044e \u043a index.php \u0432\u044b\u0432\u043e\u0434 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 username \u0432 POST-\u0437\u0430\u043f\u0440\u043e\u0441\u0430\u0445, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435.<\/p>\n<pre><code class=\"bash\">if(isset($_POST['login-submit'])) { if(!empty($_POST['username'])&amp;&amp;!empty($_POST['password'])) { $username=$_POST['username']; $password=md5($_POST['password']);  echo \"&lt;script>alert($username)&lt;\/script>\";  if(Check_Admin($username))   { send_to_api(file_get_contents(\"php:\/\/input\")); }     } else { echo \"&lt;script>alert('Please Fill All Fields')&lt;\/script>\"; } } <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u044e \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e \u043d\u043e\u0432\u044b\u0439 Docker image:<\/p>\n<pre><code class=\"bash\">sudo docker build Micro_togive --tag \"micro_test\" sudo docker run micro_test <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0434\u0430\u044e \u0432 \u0444\u043e\u0440\u043c\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043d\u0438\u0436\u0435 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u044e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/7_\/ws\/a3\/7_wsa3kchyh2mcszle2pepa7zza.png\" data-src=\"https:\/\/habrastorage.org\/webt\/7_\/ws\/a3\/7_wsa3kchyh2mcszle2pepa7zza.png\"\/><\/div>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/eo\/nl\/xy\/eonlxyudutfju17dnfw25fgswxw.png\" data-src=\"https:\/\/habrastorage.org\/webt\/eo\/nl\/xy\/eonlxyudutfju17dnfw25fgswxw.png\"\/><\/div>\n<p>  \u041f\u043e \u0442\u0430\u043a\u043e\u043c\u0443 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443 \u0432 POST-\u0437\u0430\u043f\u0440\u043e\u0441 \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u0434\u0430\u0442\u044c \u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/-y\/b-\/uo\/-yb-uotloq3ads9oaxuzkxpkgms.png\" data-src=\"https:\/\/habrastorage.org\/webt\/-y\/b-\/uo\/-yb-uotloq3ads9oaxuzkxpkgms.png\"\/><\/div>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043e\u0431\u043e\u0439\u0442\u0438 \u0444\u0438\u043b\u044c\u0442\u0440 preg_match php, \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 username \u043e\u0442\u0434\u0430\u044e \u0441\u0442\u0440\u043e\u043a\u0443, \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0443\u044e admin. \u0410 \u0447\u0442\u043e\u0431\u044b \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0438\u0442\u044c SQL-\u0437\u0430\u043f\u0440\u043e\u0441 \u0432 app.py, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e \u043f\u0435\u0440\u0432\u044b\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c \u0438\u043c\u0435\u043d\u043d\u043e admin. \u0414\u0430\u043b\u0435\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u044e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0435 \u0432 Docker.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/ta\/9r\/pv\/ta9rpv_nmx2gcsqtgi3t_jou_mm.png\" data-src=\"https:\/\/habrastorage.org\/webt\/ta\/9r\/pv\/ta9rpv_nmx2gcsqtgi3t_jou_mm.png\"\/><\/div>\n<p>  <\/p>\n<h4>\u0428\u0430\u0433 5<\/h4>\n<p>  \u042f \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u043b\u0430\u0433, \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u0431\u043e\u0435\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.<\/p>\n<pre><code class=\"sql\">username=admin&amp;username=anydata1&amp;username=anydata2&amp;password=admin&amp;login-submit= <\/code><\/pre>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/7j\/dm\/c3\/7jdmc3q8r9sc61hixz8fe3am8nw.png\" data-src=\"https:\/\/habrastorage.org\/webt\/7j\/dm\/c3\/7jdmc3q8r9sc61hixz8fe3am8nw.png\"\/><\/div>\n<p>  \u0417\u0430\u0434\u0430\u0447\u0430 \u0440\u0435\u0448\u0435\u043d\u0430 \u2014 \u0444\u043b\u0430\u0433 \u0443 \u043c\u0435\u043d\u044f! <\/p>\n<h3>\u0417\u0430\u0434\u0430\u0447\u0430: Simple WAF<\/h3>\n<p>  <b>\u0417\u0430\u0434\u0430\u043d\u0438\u0435<\/b><\/p>\n<p>  \u042f \u0432\u043d\u0435\u0441 \u0432 \u0431\u0435\u043b\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u0445\u043e\u0434\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0442\u0430\u043a \u0447\u0442\u043e, \u0434\u0443\u043c\u0430\u044e, \u044f \u0432 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438: P<\/p>\n<p>  \u0410\u0432\u0442\u043e\u0440: abdoghazy<\/p>\n<p>  <b>\u0414\u0430\u043d\u043e<\/b>  <\/p>\n<ul>\n<li><a href=\"http:\/\/20.115.83.90:1339\/\">http:\/\/20.115.83.90:1339\/<\/a>,<\/li>\n<li><a href=\"https:\/\/disk.yandex.ru\/d\/4uiyTxyIAa01lw\">\u0430\u0440\u0445\u0438\u0432<\/a>.<\/li>\n<\/ul>\n<p>  <b>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/b><\/p>\n<h4>\u0428\u0430\u0433 1<\/h4>\n<p>  \u041f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u2014 \u0444\u043e\u0440\u043c\u0430 \u0438\u0437 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u044f:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/34\/8i\/gg\/348iggjfmnbxvjk8r1c3gntrtay.png\" data-src=\"https:\/\/habrastorage.org\/webt\/34\/8i\/gg\/348iggjfmnbxvjk8r1c3gntrtay.png\"\/><\/div>\n<p>  \u041f\u0435\u0440\u0435\u0445\u043e\u0436\u0443 \u043a \u0444\u0430\u0439\u043b\u0430\u043c \u0438\u0437 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u0430\u0440\u0445\u0438\u0432\u0430. <\/p>\n<p>  \u0412 init.db \u043d\u0430\u043c \u0441\u043d\u043e\u0432\u0430 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0441 \u0442\u0440\u0435\u043c\u044f \u0441\u0442\u043e\u043b\u0431\u0446\u0430\u043c\u0438. <\/p>\n<pre><code class=\"sql\">CREATE TABLE IF NOT EXISTS `users` (   `id` varchar(50) NOT NULL,   `username` varchar(20) NOT NULL,   `password` varchar(50) NOT NULL ) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=66 ; <\/code><\/pre>\n<p>  \u0418 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c \u043e\u0431 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0435:<\/p>\n<pre><code class=\"sql\">insert into users(id,username,password) values('1','admin','c0b12ccad044e2e525cf818077413c4c'); <\/code><\/pre>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u043f\u0430\u0440\u043e\u043b\u044c \u2014 \u043d\u0435 admin. \u0425\u0435\u0448 md5 \u043a \u043d\u0435\u043c\u0443 \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442.<\/p>\n<h4>\u0428\u0430\u0433 2<\/h4>\n<p>  \u0412 \u044d\u0442\u043e\u043c index.php \u0435\u0441\u0442\u044c \u0440\u044f\u0434 \u0443\u0441\u043b\u043e\u0432\u0438\u0439:<\/p>\n<pre><code class=\"php\">if(isset($_POST['login-submit'])) {         if(!empty($_POST['username'])&amp;&amp;!empty($_POST['password']))       {                 $username=$_POST['username'];                 $password=md5($_POST['password']);                 if(waf($username))                 {                         die(\"WAF Block\");                 }                 else                 {                         $res = $conn->query(\"select * from users where username='$username' and password='$password'\");                         if($res->num_rows ===1)                         {                                 echo \"0xL4ugh{Fake_Flag}\";                         }                         else                         {                                 echo \"&lt;script>alert('Wrong Creds')&lt;\/script>\";                         }                 }       }         else       {             echo \"&lt;script>alert('Please Fill All Fields')&lt;\/script>\";       } } <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 username \u0438 password \u0432 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u043c POST-\u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u043d\u0435 \u043f\u0443\u0441\u0442\u044b\u0435, \u0442\u043e \u0438\u0434\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 waf:<\/p>\n<pre><code class=\"php\">function waf($input) {         if(preg_match(\"\/([^a-z])+\/s\",$input))         {                 return true;         }         else         {                 return false;         } } <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0430\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0432 waf \u043f\u0440\u043e\u0448\u043b\u0430 \u043d\u0435\u0443\u0441\u043f\u0435\u0448\u043d\u043e. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043e\u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441 \u043a \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445:<\/p>\n<pre><code class=\"sql\">select * from users where username='$username' and password='$password' <\/code><\/pre>\n<p>  <\/p>\n<h4>\u0428\u0430\u0433 3 <\/h4>\n<p>  \u0415\u0441\u043b\u0438 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043a \u0411\u0414 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0440\u043e\u043a \u0440\u0430\u0432\u043d\u044f\u044e\u0442\u0441\u044f \u0435\u0434\u0438\u043d\u0438\u0446\u0435, \u0442\u043e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0444\u043b\u0430\u0433. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0434\u0432\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u044f.<\/p>\n<ol>\n<li>\u0414\u0430\u043d\u043d\u044b\u0435 \u0432 username \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043f\u0430\u0434\u0430\u0442\u044c \u043f\u043e\u0434 \u0448\u0430\u0431\u043b\u043e\u043d:<\/li>\n<\/ol>\n<p>  <\/p>\n<pre><code class=\"php\">preg_match(\"\/([^a-z])+\/s\",$input) <\/code><\/pre>\n<p>  <\/p>\n<ol>\n<li>\u0417\u0430\u043f\u0440\u043e\u0441 \u043a \u0411\u0414 \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0443:<\/li>\n<\/ol>\n<p>  <\/p>\n<pre><code class=\"php\">if($res->num_rows ===1) { echo \"0xL4ugh{Fake_Flag}\"; } <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043e\u0434\u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0430, \u0442\u043e \u043e\u0431\u0445\u043e\u0434 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 username, password. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u044e \u0443\u0441\u043b\u043e\u0432\u0438\u0435, \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u043e\u0439\u0442\u0438 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e:<\/p>\n<pre><code class=\"bash\">\u2018 or 1=1;# \u2018 or 1=1;-- - \u2018 or true;# \u2018 or true;-- - <\/code><\/pre>\n<p>  \u0414\u0430\u043d\u043d\u044b\u0435 \u0432 username \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043f\u0430\u0434\u0430\u0442\u044c \u043f\u043e\u0434 \u0448\u0430\u0431\u043b\u043e\u043d preg_match(&#171;\/([^a-z])+\/s&#187;,$input). \u0412 \u043d\u0435\u043c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u044f \u0431\u0443\u043a\u0432: \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u0435\u0441\u0442\u044c, \u0442\u043e \u0437\u0430\u043f\u0440\u043e\u0441 \u043a \u0411\u0414 \u043d\u0435 \u0434\u043e\u0445\u043e\u0434\u0438\u0442. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0442\u043e\u0438\u0442 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440 preg_match php, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0431\u0443\u043a\u0432 \u0432 username.<\/p>\n<p>  \u041f\u0440\u0438\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e <a href=\"https:\/\/github.com\/swisskyrepo\/PayloadsAllTheThings\/tree\/master\/SQL%2520Injection%23authentication-bypass\">\u043f\u0440\u0438\u043c\u0435\u0440 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u043e\u0431\u0445\u043e\u0434\u0430 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0431\u0443\u043a\u0432:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/8n\/65\/6b\/8n656b8bcpyx0cs4wz9s-iixh1m.png\" data-src=\"https:\/\/habrastorage.org\/webt\/8n\/65\/6b\/8n656b8bcpyx0cs4wz9s-iixh1m.png\"\/><\/div>\n<p>  \u0412 \u0438\u0442\u043e\u0433\u043e\u0432\u043e\u0439 SQL-\u0438\u043d\u044a\u0435\u043a\u0446\u0438\u0438 \u043c\u0435\u043d\u044f\u044e or 1=1&#8212; \u2014 \u043d\u0430 || 1=1&#8212; -.<\/p>\n<h4>\u0428\u0430\u0433 4<\/h4>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0435\u0448\u0438\u0442\u044c, \u043a\u0430\u043a \u043e\u0431\u043e\u0439\u0442\u0438 preg_match(). \u041f\u043e <a href=\"https:\/\/www.php.net\/manual\/ru\/function.preg-match.php\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a> \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u0435\u0435 \u043e\u0448\u0438\u0431\u043a\u0430\u0445. \u0414\u0435\u043b\u0430\u044e \u0432\u044b\u0432\u043e\u0434, \u0447\u0442\u043e preg_match, \u044f\u0432\u043b\u044f\u044f\u0441\u044c <a href=\"https:\/\/www.php.net\/manual\/ru\/ref.pcre.php\">PCRE-<\/a><a href=\"https:\/\/www.php.net\/manual\/ru\/ref.pcre.php\">\u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439<\/a>, \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0443 \u0438 \u0438\u043c\u0435\u0435\u0442 \u043f\u0440\u0435\u0434\u0435\u043b \u0432\u0445\u043e\u0434\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043b\u0438\u043c\u0438\u0442\u0430\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043d\u0430\u0448\u0435\u043b \u0432 <a href=\"https:\/\/www.php.net\/manual\/ru\/pcre.configuration.php\">\u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0435 \u043f\u043e PHP<\/a>. \u041f\u0440\u0438 \u043f\u0440\u0435\u0432\u044b\u0448\u0435\u043d\u0438\u0438 \u044d\u0442\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f waf \u0432\u0435\u0440\u043d\u0435\u0442 false, \u0447\u0442\u043e \u043d\u0430\u043c \u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f.<\/p>\n<p>  \u0421\u043e\u0431\u0438\u0440\u0430\u044e POST-\u0437\u0430\u043f\u0440\u043e\u0441 \u0432 Python \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u044e \u0435\u0433\u043e \u0432 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0435 \u0432 Docker. \u0421\u043e\u0431\u0438\u0440\u0430\u044e Docker image \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440:<\/p>\n<pre><code class=\"bash\">$ sudo docker build simple_waf_togive --tag \"waf\" <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">$ sudo docker run waf <\/code><\/pre>\n<p>  \u041f\u0438\u0448\u0443 \u0441\u043a\u0440\u0438\u043f\u0442 test_waf.py. <\/p>\n<blockquote><p>\u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435 \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0435: \u043f\u0440\u0438 10\u2019001 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 false. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0435\u0449\u0435 \u043d\u0438\u0436\u0435, \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c pcre.recursion_limit \u0432 php.ini.  <\/p><\/blockquote>\n<p>  <\/p>\n<pre><code class=\"javascript\">import requests  address = 'http:\/\/172.17.0.2\/' username = '1'*10001 + \"' || 1=1-- -\" password = 'any'  data = {'username':username, 'password':password, 'login-submit':''}  print(requests.post(address,data).text) <\/code><\/pre>\n<p>  \u0412 \u043e\u0442\u0432\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0441 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u043c \u0444\u043b\u0430\u0433\u043e\u043c:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/gv\/bc\/zj\/gvbczjy9m3djc-mgpiqjt9rvnmc.png\" data-src=\"https:\/\/habrastorage.org\/webt\/gv\/bc\/zj\/gvbczjy9m3djc-mgpiqjt9rvnmc.png\"\/><\/div>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u044d\u0442\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043a \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0444\u043b\u0430\u0433:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/zn\/l5\/sz\/znl5szuarflhf0bhmlj57swccco.png\" data-src=\"https:\/\/habrastorage.org\/webt\/zn\/l5\/sz\/znl5szuarflhf0bhmlj57swccco.png\"\/><\/div>\n<p>  \u0413\u043e\u0442\u043e\u0432\u043e!<\/p>\n<p>  <a name=\"4\"><\/a><font color=\"#EB4247\"><\/p>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 <\/h2>\n<p><\/font><br \/>  \u041c\u043d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c \u0442\u0443\u0440\u043d\u0438\u0440 \u043e\u0442 \u043a\u0440\u0443\u0442\u043e\u0439 \u0435\u0433\u0438\u043f\u0435\u0442\u0441\u043a\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b. \u0417\u0430\u0434\u0430\u0447\u043a\u0438 \u043f\u043e Web \u0438 DFIR \u0431\u044b\u043b\u0438 \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c\u0438: \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043d\u0430\u0439\u0442\u0438 \u0445\u0430\u043a\u0435\u0440\u0430, \u0430 \u0437\u0430\u0442\u0435\u043c \u0441\u0430\u043c\u0438\u043c \u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0435\u0433\u043e \u043c\u0435\u0441\u0442\u0435. \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0433\u043e\u0434\u0443 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u0437\u0430\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u044e\u0449\u0435\u0435!<\/p>\n<p>  <b>\u0417\u0430\u0434\u0430\u0447\u0438 \u0441 \u043a\u0430\u043a\u0438\u0445 CTF-\u0442\u0443\u0440\u043d\u0438\u0440\u043e\u0432 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u0432\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c\u0438? \u0414\u0435\u043b\u0438\u0442\u0435\u0441\u044c \u0441\u0432\u043e\u0438\u043c\u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430\u043c\u0438 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445! <\/b><\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/794400\/\"> https:\/\/habr.com\/ru\/articles\/794400\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/h7\/p0\/4s\/h7p04s9rt1_vz6dj_dmknpzofsw.png\" data-src=\"https:\/\/habrastorage.org\/webt\/h7\/p0\/4s\/h7p04s9rt1_vz6dj_dmknpzofsw.png\"\/><\/div>\n<p>  \u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440! \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u043f\u0443\u0442\u0435\u0448\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043f\u043e CTF-\u0442\u0443\u0440\u043d\u0438\u0440\u0430\u043c. \u0418\u0437 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u2014 0xL4ugh CTF 24 \u043e\u0442 \u043e\u0434\u043d\u043e\u0438\u043c\u0435\u043d\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438\u0437 \u0415\u0433\u0438\u043f\u0442\u0430. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u044f \u0440\u0435\u0448\u0438\u043b \u0437\u0430\u0434\u0430\u0447\u0438 \u0438\u0437 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 DFIR (Digital Forensics and Incident Response) \u0438 web. \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0439\u0442\u0435 \u0432 \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0438: \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u043a\u0430\u043a \u043e\u043f\u044b\u0442\u043d\u044b\u043c, \u0442\u0430\u043a \u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u043c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u0430\u043c \u043f\u043e <a href=\"https:\/\/selectel.ru\/services\/is\/dswes\/?utm_source=habr.com&amp;utm_medium=referral&amp;utm_campaign=dswes_article_tourney_290224_content\">\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438<\/a>.<\/p>\n<p>  <b>\u0414\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440:<\/b> \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043d\u0435 \u043e\u0431\u0443\u0447\u0430\u0435\u0442 \u0445\u0430\u043a\u0438\u043d\u0433\u0443 \u0438 \u043d\u0435 \u043f\u0440\u0438\u0437\u044b\u0432\u0430\u0435\u0442 \u043a \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0437\u0430\u043a\u043e\u043d\u043d\u044b\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c. \u0412\u0441\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0435 \u043d\u0438\u0436\u0435 \u043b\u0438\u0448\u044c \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442, \u043a\u0430\u043a\u0438\u0435 \u043f\u0440\u043e\u0431\u0435\u043b\u044b \u0432 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442\u0441\u044f \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445. \u0418 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0430\u0435\u0442, \u043d\u0430 \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f.  <\/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-368465","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/368465","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=368465"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/368465\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=368465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=368465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=368465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}