{"id":452691,"date":"2025-03-21T21:05:43","date_gmt":"2025-03-21T21:05:43","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=452691"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=452691","title":{"rendered":"<span>\u0421\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u043c \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438 \u0431\u0435\u0437 \u0440\u0443\u0442\u0438\u043d\u044b: \u00ab\u0421\u043a\u0430\u043d\u0435\u0440-\u0412\u0421 6\u00bb, API \u0438 Telegram-\u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f<\/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\/mk\/gp\/cw\/mkgpcwu61rvfegb6abs4hj_ckwu.png\" data-src=\"https:\/\/habrastorage.org\/webt\/mk\/gp\/cw\/mkgpcwu61rvfegb6abs4hj_ckwu.png\"\/><\/div>\n<p> \u0420\u0443\u0447\u043d\u043e\u0435 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u2014 \u044d\u0442\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e, \u043a\u043e\u0433\u0434\u0430 \u0443 \u0432\u0430\u0441 \u0434\u0435\u0441\u044f\u0442\u043e\u043a \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0438 \u043c\u043e\u0440\u0435 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u041d\u043e \u0435\u0441\u043b\u0438 \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0441\u043e\u0442\u043d\u0438, \u0430 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u043d\u0443\u0436\u043d\u043e \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e, \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u0440\u0443\u0442\u0438\u043d\u0443. \u0417\u0430\u0431\u044b\u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u043a\u0430\u043d? \u041f\u043e\u0442\u0435\u0440\u044f\u043b\u0438 \u0447\u0430\u0441\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432? \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0435\u0441\u0442\u044c, \u043d\u043e \u043d\u0438\u043a\u0442\u043e \u043e \u043d\u0438\u0445 \u043d\u0435 \u0443\u0437\u043d\u0430\u043b? \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u2014 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f.<\/p>\n<p> \u041c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0410\u043d\u0442\u043e\u043d, \u044f \u0438\u043d\u0436\u0435\u043d\u0435\u0440 <a href=\"https:\/\/selectel.ru\/services\/is\/?utm_source=habr.com&amp;utm_medium=referral&amp;utm_campaign=cloud_article_scan_210525_content\">\u043f\u043e \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 \u0432 Selectel<\/a>. \u0412 \u0442\u0435\u043a\u0441\u0442\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0447\u0435\u0440\u0435\u0437 API \u00ab\u0421\u043a\u0430\u043d\u0435\u0440-\u0412\u0421 6\u00bb \u0432\u043e\u0437\u044c\u043c\u0435\u0442 \u0432\u0441\u0435 \u043f\u043e\u0434 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c: \u0441\u0430\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u043e\u0442\u0447\u0435\u0442\u044b \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u0432 Telegram. \u0412\u0441\u0435 \u043f\u043e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u0447\u0435\u0440\u0435\u0437 cron, \u0431\u0435\u0437 \u0440\u0443\u0447\u043d\u044b\u0445 \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u0432.<a name=\"habracut\"><\/a><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ja\/rg\/q5\/jargq5pdefecou6_ouzhfadcrr8.gif\" width=\"80\" align=\"left\" data-src=\"https:\/\/habrastorage.org\/webt\/ja\/rg\/q5\/jargq5pdefecou6_ouzhfadcrr8.gif\"\/><b>\u041c\u044b \u0432 Selectel \u0433\u043e\u0442\u043e\u0432\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441.<\/b> \u0415\u0441\u043b\u0438 \u0430\u0440\u0435\u043d\u0434\u0443\u0435\u0442\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u044b \u0432 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u0438\u043b\u0438 \u043b\u0438\u0447\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445, \u043d\u0430\u043c \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0432\u0430\u0448 \u043e\u043f\u044b\u0442 \u2014 <a href=\"https:\/\/forms.selectel.ru\/s\/cm7efvbtv01xksm01fsatv38d?utm_source=habr.com&amp;utm_medium=referral&amp;utm_campaign=dedicated_article_scan_210325_banner_073_01_ord\">\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c<\/a> \u043d\u0430 \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u043e\u043d\u043b\u0430\u0439\u043d-\u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e. \u0417\u0430 \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u043f\u043e\u0434\u0430\u0440\u0438\u043c \u043f\u043b\u044e\u0448\u0435\u0432\u043e\u0433\u043e \u0422\u0438\u0440\u0435\u043a\u0441\u0430 \u0438 \u0431\u043e\u043d\u0443\u0441\u044b \u043d\u0430 \u0443\u0441\u043b\u0443\u0433\u0438 Selectel.  <\/p>\n<p> <b>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044e, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0445\u043e\u0442\u0438\u0442\u0435 \u0447\u0438\u0442\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e:<\/b><br \/> \u2192 <a href=\"#1\">\u0417\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c<\/a><br \/> \u2192 <a href=\"#2\">\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/a><br \/> \u2192 <a href=\"#3\">\u0420\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u0441\u043a\u0430\u043d\u0435\u0440\u0430<\/a><br \/> \u2192 <a href=\"#4\">\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0439<\/a><br \/> \u2192 <a href=\"#5\">\u0428\u0430\u0433 0. \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0432 \u0441\u043a\u0430\u043d\u0435\u0440\u0435<\/a><br \/> \u2192 <a href=\"#6\">\u0428\u0430\u0433 1. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0430\u0437 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439<\/a><br \/> \u2192 <a href=\"#7\">\u0428\u0430\u0433 2. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447 \u043d\u0430 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0435\u0442\u0438<\/a><br \/> \u2192 <a href=\"#8\">\u0428\u0430\u0433 3. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 Assets<\/a><br \/> \u2192 <a href=\"#9\">\u0428\u0430\u0433 4. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447 \u043d\u0430 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439<\/a><br \/> \u2192 <a href=\"#10\">\u0428\u0430\u0433 5. \u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u043e \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438<\/a><br \/> \u2192 <a href=\"#11\">\u0428\u0430\u0433 6. \u041e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 Telegram-\u0431\u043e\u0442\u0430<\/a><br \/> \u2192 <a href=\"#12\">\u0417\u0430\u0432\u0435\u0440\u0448\u0430\u044e\u0449\u0438\u0439 \u0448\u0430\u0433<\/a><\/p>\n<p> <a name=\"1\"><\/a><font color=\"#EB4247\"><\/p>\n<h2>\u0417\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c<\/h2>\n<p><\/font><br \/> \u0414\u043b\u044f \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u00ab<a href=\"https:\/\/scaner-vs.ru\/\">\u0421\u043a\u0430\u043d\u0435\u0440-\u0412\u0421 6<\/a>\u00bb \u2013 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0448\u0438\u0440\u043e\u043a\u043e\u0433\u043e \u0441\u043f\u0435\u043a\u0442\u0440\u0430 \u0437\u0430\u0434\u0430\u0447 \u043f\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0443 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0437\u0430\u0449\u0438\u0442\u044b \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0441\u043a\u0430\u043d\u0435\u0440\u0430. <\/p>\n<ul>\n<li>\u0410\u043d\u0430\u043b\u0438\u0437 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u041e\u0421: \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438. <\/li>\n<li>\u0423\u0434\u043e\u0431\u043d\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u043c\u0438 \u0430\u043a\u0442\u0438\u0432\u0430\u043c\u0438: \u0441\u0435\u0442\u0435\u0432\u043e\u0435 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0445\u043e\u0441\u0442\u043e\u0432, \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u043a\u0430\u0440\u0442 \u0441\u0435\u0442\u0438, \u0438\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u041f\u041e.<\/li>\n<li>\u0412\u044b\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u043f\u043e \u0432\u0435\u0440\u0441\u0438\u044f\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u041f\u041e, \u0435\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c\u0430\u044f \u0431\u0430\u0437\u0430 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439, \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0430\u044f \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0411\u0414\u0423 \u0424\u0421\u0422\u042d\u041a \u0420\u043e\u0441\u0441\u0438\u0438, NIST NVD, \u0438 \u0434\u0440.<\/li>\n<li>\u041f\u043e\u0434\u0431\u043e\u0440 \u043f\u0430\u0440\u043e\u043b\u0435\u0439 \u043a \u0441\u0435\u0442\u0435\u0432\u044b\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c: \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 ftp, imap, imaps, mssql, mysql, pop3, pop3s, postgres, rdp, redis, \u0438 \u0434\u0440.<\/li>\n<li>\u0418\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f \u0441 \u0432\u043d\u0435\u0448\u043d\u0438\u043c\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c\u0438: \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0432 SIEM-\u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 API.<\/li>\n<\/ul>\n<p> <a href=\"https:\/\/selectel.ru\/blog\/security-center\/?utm_source=habr.com&amp;utm_medium=referral&amp;utm_campaign=security_article_scan_210525_banner_065_01_ord\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/qx\/zz\/_k\/qxzz_kcgu4uy7jehko8woulyxig.png\" data-src=\"https:\/\/habrastorage.org\/webt\/qx\/zz\/_k\/qxzz_kcgu4uy7jehko8woulyxig.png\"\/><\/div>\n<p><\/a><\/p>\n<p> <a name=\"2\"><\/a><font color=\"#EB4247\"><\/p>\n<h2>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/h2>\n<p><\/font><br \/> \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e \u0441\u043a\u0430\u043d\u0435\u0440\u043e\u043c \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440 \u0441 \u041e\u0421 Astra Linux.<\/p>\n<p> 1. <a href=\"https:\/\/my.selectel.ru?utm_source=habr.com&amp;utm_medium=referral&amp;utm_campaign=myselectel_article_scan_210325_content\">\u0412 \u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f Selectel<\/a> \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u0432 \u0440\u0430\u0437\u0434\u0435\u043b <b>\u041f\u0440\u043e\u0434\u0443\u043a\u0442\u044b \u2192 \u041e\u0431\u043b\u0430\u0447\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u044b<\/b>.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/813\/0cc\/375\/8130cc375c351e1067d6949f562a9cfd.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/813\/0cc\/375\/8130cc375c351e1067d6949f562a9cfd.png\"\/><\/div>\n<p> 3. \u0412\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 <b>\u0421\u0435\u0440\u0432\u0435\u0440\u044b<\/b> \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 <b>\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440<\/b>.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/1ab\/cfe\/6ac\/1abcfe6acac3cca3db714f8bc9ae4e83.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/1ab\/cfe\/6ac\/1abcfe6acac3cca3db714f8bc9ae4e83.png\"\/><\/div>\n<p> 4. \u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u043e \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u043c \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u00ab\u0421\u043a\u0430\u043d\u0435\u0440-\u0412\u0421 6\u00bb.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/602\/97c\/118\/60297c1182f62bdf9eb5bc1125b832ac.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/602\/97c\/118\/60297c1182f62bdf9eb5bc1125b832ac.png\"\/><\/div>\n<p> \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c Astra Linux \u041e\u0440\u0435\u043b 1.7. \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0442\u0430\u0431\u043b\u0438\u0446\u0435\u0439 \u0432\u044b\u0448\u0435.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/958\/2f5\/d8e\/9582f5d8e3e6594dfb01509d77cc68a9.png\" width=\"65%\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/958\/2f5\/d8e\/9582f5d8e3e6594dfb01509d77cc68a9.png\"\/><\/div>\n<p> <i>\u0412\u044b\u0431\u043e\u0440 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f.<\/i><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/294\/bbf\/3ce\/294bbf3ce76b1c398ac084343202589d.png\" width=\"65%\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/294\/bbf\/3ce\/294bbf3ce76b1c398ac084343202589d.png\"\/><\/div>\n<p> <i>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/i><\/p>\n<p> 5. \u0412 \u043f\u043e\u043b\u0435 <b>\u0421\u0435\u0442\u044c<\/b> \u0432\u044b\u0431\u0435\u0440\u0435\u043c <b>\u041f\u0443\u0431\u043b\u0438\u0447\u043d\u0430\u044f \u043f\u043e\u0434\u0441\u0435\u0442\u044c<\/b> \u0438 \u0440\u0430\u0437\u043c\u0435\u0440 \u043f\u043e\u0434\u0441\u0435\u0442\u0438<b> \/29 (5 \u0430\u0434\u0440\u0435\u0441\u043e\u0432 IPv4)<\/b>. \u041e\u043d\u0438 \u043d\u0430\u043c \u043f\u0440\u0438\u0433\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432,, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0435\u043c \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/b6b\/e51\/aa5\/b6be51aa59e687127fddc979416827a2.png\" width=\"60%\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/b6b\/e51\/aa5\/b6be51aa59e687127fddc979416827a2.png\"\/><\/div>\n<p> 6. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c SSH-\u043a\u043b\u044e\u0447 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 <b>\u0414\u043e\u0441\u0442\u0443\u043f<\/b>. \u0421\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u0443 SSH-\u043a\u043b\u044e\u0447\u0435\u0439 \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b ssh-keygen -t ed25519 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u2014 <a href=\"https:\/\/docs.selectel.ru\/cloud\/servers\/manage\/create-and-place-ssh-key\/?pk_vid=c855bdb5cc084c871741349548cadebb\">\u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438<\/a>.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/ef8\/d26\/c4b\/ef8d26c4bb523c7a74afc138da514180.png\" width=\"65%\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/ef8\/d26\/c4b\/ef8d26c4bb523c7a74afc138da514180.png\"\/><\/div>\n<p> 7. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0438 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c, \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c <b>\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440<\/b>.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/b8f\/35a\/496\/b8f35a496102edc7142705ad994a6304.png\" width=\"50%\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/b8f\/35a\/496\/b8f35a496102edc7142705ad994a6304.png\"\/><\/div>\n<p> <a name=\"3\"><\/a><font color=\"#EB4247\"><\/p>\n<h2>\u0420\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u0441\u043a\u0430\u043d\u0435\u0440\u0430<\/h2>\n<p><\/font><br \/> 1. <a href=\"https:\/\/scaner-vs.ru\/download_demo_scvs6\/\">\u0421 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430<\/a> \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0434\u0435\u043c\u043e\u0432\u0435\u0440\u0441\u0438\u044e \u0441 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0435\u0439 \u043d\u0430 16 IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432 (\u0430\u043a\u0442\u0438\u0432\u043e\u0432).<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/a10\/722\/ccc\/a10722ccc92bd72676f8ffe4213d6446.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/a10\/722\/ccc\/a10722ccc92bd72676f8ffe4213d6446.png\"\/><\/div>\n<p> <i>\u0421\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430, \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0435\u043c\u043e\u0432\u0435\u0440\u0441\u0438\u0438.<\/i><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/e63\/fd8\/cef\/e63fd8cef6f33f2508026b1b550848cf.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/e63\/fd8\/cef\/e63fd8cef6f33f2508026b1b550848cf.png\"\/><\/div>\n<p> <i>\u0421\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430, \u0432\u044b\u0431\u043e\u0440 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0444\u0430\u0439\u043b\u0430.<\/i><\/p>\n<p> 2. \u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b\u044b \u0441\u043e \u0441\u0432\u043e\u0435\u0439 \u043c\u0430\u0448\u0438\u043d\u044b \u043d\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440:<\/p>\n<pre><code class=\"plaintext\">#scp -i C:\\Users\\user\\.ssh\\ssh.txt C:\\Users\\user\\Downloads\\license.lic C:\\Users\\user\\.ssh\\ssh.txt C:\\Users\\user\\Downloads\\scanner-signed.run astra@ip_addr:\/home\/astra <\/code><\/pre>\n<p> \u041f\u043e \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u043e\u043c\u0443 \u043a\u043b\u044e\u0447\u0443 \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440:<\/p>\n<pre><code class=\"plaintext\"># ssh -i [\u043f\u0443\u0442\u044c \u043a \u0444\u0430\u0439\u043b\u0443 \u0441 \u043a\u043b\u044e\u0447\u043e\u043c] astra@[\u0432\u0430\u0448 \u0430\u0434\u0440\u0435\u0441] <\/code><\/pre>\n<p> 3. \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u0440\u0435\u0436\u0438\u043c \u0441\u0443\u043f\u0435\u0440\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f:<\/p>\n<pre><code class=\"plaintext\">#astra@taliyah:~$ sudo su #Password: #root@taliyah:\/home\/astra# <\/code><\/pre>\n<p> 4. \u0420\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0430\u0440\u0445\u0438\u0432:<\/p>\n<pre><code class=\"plaintext\">#root@taliyah:\/home\/astra# sh scanner-signed.run <\/code><\/pre>\n<p> 5. \u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b \u0441 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0435\u0439 \u0432 \u043f\u0430\u043f\u043a\u0443:<\/p>\n<pre><code class=\"plaintext\">#cp license.lic pkg <\/code><\/pre>\n<p> 6. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0447\u0442\u043e \u0432\u0441\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u0432 \u043d\u0430\u043b\u0438\u0447\u0438\u0438:<\/p>\n<pre><code class=\"bash\">\/home\/astra\/pkg# ls <\/code><\/pre>\n<p> <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/0e8\/04b\/bab\/0e804bbab7d5d7e327f8c61fe80d39b6.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/0e8\/04b\/bab\/0e804bbab7d5d7e327f8c61fe80d39b6.png\"\/><\/div>\n<p> 7. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u0435\u0440:<\/p>\n<pre><code class=\"plaintext\">#root@taliyah:\/home\/astra\/pkg# .\/installer install <\/code><\/pre>\n<p> 7.1. \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u043a\u0430\u043d\u0435\u0440 \u0441 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u043c\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/4c3\/a69\/2b8\/4c3a692b83abb6705b76b2d0725bdc92.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/4c3\/a69\/2b8\/4c3a692b83abb6705b76b2d0725bdc92.png\"\/><\/div>\n<p> <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/45d\/cbd\/e6d\/45dcbde6ddf3bf2504ec8917022f5adb.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/45d\/cbd\/e6d\/45dcbde6ddf3bf2504ec8917022f5adb.png\"\/><\/div>\n<p> 7.3. \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u043c \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u0432\u0435\u0431 \u0432\u0435\u0440\u0441\u0438\u0438 \u0441\u043a\u0430\u043d\u0435\u0440\u0430.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/5a0\/465\/3b9\/5a04653b943db8824ae83624693a051a.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/5a0\/465\/3b9\/5a04653b943db8824ae83624693a051a.png\"\/><\/div>\n<p> 8. \u0421\u043a\u0430\u043d\u0435\u0440 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043d\u0430 \u041e\u0421.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/0cd\/57e\/fd6\/0cd57efd6899c1a39a91c083aa992d89.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/0cd\/57e\/fd6\/0cd57efd6899c1a39a91c083aa992d89.png\"\/><\/div>\n<p> 9. \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u0432\u0435\u0431-\u0432\u0435\u0440\u0441\u0438\u044e \u0441\u043a\u0430\u043d\u0435\u0440\u0430 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <code>https:\/\/ip_addr<\/code> \u0438 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0443\u0435\u043c\u0441\u044f \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 admin\/admin. \u0421\u043e\u0432\u0435\u0442\u0443\u0435\u043c \u0441\u0440\u0430\u0437\u0443 \u0441\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/a05\/ebb\/587\/a05ebb587c382ba0f4d5fced81eb2fad.png\" width=\"65%\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/a05\/ebb\/587\/a05ebb587c382ba0f4d5fced81eb2fad.png\"\/><\/div>\n<p> <i>\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438.<\/i><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/8ef\/1cc\/e88\/8ef1cce88de014162dc7962a6290a1f4.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/8ef\/1cc\/e88\/8ef1cce88de014162dc7962a6290a1f4.png\"\/><\/div>\n<p> <i>\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430. <\/i><\/p>\n<p> 10. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 <b>\u041e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435<\/b>.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/b9c\/340\/221\/b9c3402212b9b4c3c9f68d3d9808ca4a.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/b9c\/340\/221\/b9c3402212b9b4c3c9f68d3d9808ca4a.png\"\/><\/div>\n<p> \u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442, \u0442\u0435\u043f\u0435\u0440\u044c \u0443 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041e\u0434\u043d\u0430\u043a\u043e \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441.<\/p>\n<p> <a name=\"4\"><\/a><font color=\"#EB4247\"><\/p>\n<h2>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0439<\/h2>\n<p><\/font> <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/ed5\/0a7\/edb\/ed50a7edb2f736deca279405187f4e6a.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/ed5\/0a7\/edb\/ed50a7edb2f736deca279405187f4e6a.png\"\/><\/div>\n<p> \u041f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u044d\u0442\u0430\u043f\u0430\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/e93\/711\/539\/e937115391461a88a08de8da13f9b410.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/e93\/711\/539\/e937115391461a88a08de8da13f9b410.png\"\/><\/div>\n<p> <\/p>\n<blockquote><p>\u0412 \u0442\u0435\u043a\u0441\u0442\u0435 \u043f\u043e\u043a\u0430\u0436\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u0434\u0430 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u044d\u0442\u0430\u043f\u043e\u0432 \u2014 \u043d\u0435 \u0446\u0435\u043b\u0438\u043a\u043e\u043c, \u0430 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430\u043c\u0438. \u0422\u0430\u043a \u0432\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0449\u0435 \u043f\u043e\u043d\u044f\u0442\u044c \u043b\u043e\u0433\u0438\u043a\u0443 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 API, \u043d\u043e \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u043c\u0435\u0441\u0442\u043e \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043e\u043a.<\/p><\/blockquote>\n<p> <a name=\"5\"><\/a><font color=\"#EB4247\"><\/p>\n<h2>\u0428\u0430\u0433 0. \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0432 \u0441\u043a\u0430\u043d\u0435\u0440\u0435<\/h2>\n<p><\/font><br \/> \u041f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u043a \u0441\u043a\u0430\u043d\u0435\u0440\u0443 \u043f\u043e API \u043d\u0443\u0436\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c\u0441\u044f. \u041e\u0434\u043d\u0430\u043a\u043e \u0434\u043b\u044f \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0441\u0435\u0441\u0441\u0438\u043e\u043d\u043d\u044b\u0435 cookies, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438 \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u043e \u0432\u0441\u0435\u0445 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u0445. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c curl-\u0444\u0430\u0439\u043b:<\/p>\n<pre><code class=\"bash\">#nano curl #!\/bin\/bash curl  --insecure -X \"POST\" -d '{\"Login\":\"admin\",\"Password\":\"password\"}' -c .\/cookie.txt 'https:\/\/[ip_addr]\/login' <\/code><\/pre>\n<p> \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u044d\u0442\u0430\u043f\u044b, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u043a\u0440\u0438\u043f\u0442. <\/p>\n<ul>\n<li>\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 HTTP-\u0437\u0430\u043f\u0440\u043e\u0441 \u043c\u0435\u0442\u043e\u0434\u043e\u043c POST \u043d\u0430 URL <code>https:\/\/ip_addr\/login<\/code>. \u0412 \u0442\u0435\u043b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u2014 JSON-\u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u043b\u043e\u0433\u0438\u043d\u043e\u043c (admin) \u0438 \u043f\u0430\u0440\u043e\u043b\u0435\u043c (password).<\/li>\n<li>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u043e\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 cookies \u0432 \u0444\u0430\u0439\u043b <code>cookie.txt<\/code>.<\/li>\n<li>\u0418\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 SSL-\u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 (<code>--insecure<\/code>), \u0447\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u0441\u0440\u0435\u0434\u044b.<\/li>\n<\/ul>\n<p> \u041a curl-\u0444\u0430\u0439\u043b\u0443 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0443\u0441\u0442\u043e\u0439 <code>cookie.txt<\/code>, \u043a\u0443\u0434\u0430 \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c\u0441\u044f \u0441\u0435\u0441\u0441\u0438\u043e\u043d\u043d\u044b\u0435 cookies:<\/p>\n<pre><code class=\"plaintext\">#touch cookie.txt <\/code><\/pre>\n<p> \u0427\u0430\u0441\u0442\u044c \u043a\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e:<\/p>\n<pre><code class=\"bash\"># \u041f\u0443\u0442\u044c \u043a \u0444\u0430\u0439\u043b\u0443 \u0441 curl-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c curl_file = \"\/\u0432\u0430\u0448\/\u043f\u0443\u0442\u044c\/\u0434\u043e\/\u0444\u0430\u0439\u043b\u0430\/curl\" def authorization():     # \u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c POST-\u0437\u0430\u043f\u0440\u043e\u0441 \u0441 \u043b\u043e\u0433\u0438\u043d\u043e\u043c \u0438 \u043f\u0430\u0440\u043e\u043b\u0435\u043c     os.system('bash ' + curl_file)     # \u0427\u0438\u0442\u0430\u0435\u043c cookies \u0438\u0437 \u0444\u0430\u0439\u043b\u0430     with open(cookie_file, 'r') as file:         content = file.read()     # \u0418\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u043c \u0442\u043e\u043a\u0435\u043d \u0441\u0435\u0441\u0441\u0438\u0438 \u0438\u0437 cookies     return 'SessionToken=' + re.findall(uuid_pattern, content)[0] <\/code><\/pre>\n<p> <a name=\"6\"><\/a><font color=\"#EB4247\"><\/p>\n<h2>\u0428\u0430\u0433 1. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0430\u0437 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439<\/h2>\n<p><\/font><br \/> 1. \u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0430\u0437\u044b \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u0441\u044f \u043a \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c\u0443 \u0440\u0430\u0437\u0434\u0435\u043b\u0443 \u0432 Swagger-\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u2014 <b>update-control<\/b>.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/5d0\/27c\/581\/5d027c58102fef7387f4e859baf9b79b.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/5d0\/27c\/581\/5d027c58102fef7387f4e859baf9b79b.png\"\/><\/div>\n<p> 2. \u041d\u0430\u0439\u0434\u0435\u043c Get-\u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043d\u043e\u0432\u044b\u0445 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u0435\u0433\u043e.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/2cd\/7f4\/46c\/2cd7f446cddb7f0665d121acfe2f8564.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/2cd\/7f4\/46c\/2cd7f446cddb7f0665d121acfe2f8564.png\"\/><\/div>\n<p> \u0418\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043d\u0438\u0436\u0435 \u0432\u0438\u0434\u0438\u043c, \u043f\u043e \u043a\u0430\u043a\u043e\u043c\u0443 \u0430\u0434\u0440\u0435\u0441\u0443 \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c Get-\u0437\u0430\u043f\u0440\u043e\u0441: <code>https:\/\/ip_addr\/api\/v1\/update\/auto<\/code>.<\/p>\n<pre><code class=\"bash\">curl -X 'GET' \\   'https:\/\/ip_addr\/api\/v1\/update\/auto' \\   -H 'accept: application\/json' <\/code><\/pre>\n<p> \u0421\u043e\u0431\u0435\u0440\u0435\u043c \u0433\u043e\u0442\u043e\u0432\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e:<\/p>\n<pre><code class=\"python\">def base_update(auth_cookies):     if not auth_cookies:         print(\"\u041d\u0435\u0442 cookies, \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e!\")         return     headers = {'Cookie': auth_cookies}     response = session.get(update_url, headers=headers)     if response.status_code == 200:         print(\"\u0411\u0430\u0437\u044b \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u044b\")     else:         print(f\"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u0431\u0430\u0437. \u041a\u043e\u0434: {response.status_code}, \u0422\u0435\u043a\u0441\u0442: {response.text}\")<\/code><\/pre>\n<p> <b>\u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044f<\/b><\/p>\n<ol>\n<li>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u044b \u043b\u0438 cookies. \u0415\u0441\u043b\u0438 \u043d\u0435\u0442 \u2014 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435 \u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435.<\/li>\n<li>\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 GET-\u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 URL, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f cookies \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438.<\/li>\n<li>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0441\u0442\u0430\u0442\u0443\u0441-\u043a\u043e\u0434 \u043e\u0442\u0432\u0435\u0442\u0430. \u0415\u0441\u043b\u0438 \u0441\u0442\u0430\u0442\u0443\u0441 200, \u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0431 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u0431\u0430\u0437, \u0438\u043d\u0430\u0447\u0435 \u2014 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435 \u0441 \u043a\u043e\u0434\u043e\u043c \u0438 \u0442\u0435\u043a\u0441\u0442\u043e\u043c \u043e\u0442\u0432\u0435\u0442\u0430.<\/li>\n<\/ol>\n<p> <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/78d\/6a8\/8a5\/78d6a88a53140bfaad6a8f026e82e359.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/78d\/6a8\/8a5\/78d6a88a53140bfaad6a8f026e82e359.png\"\/><\/div>\n<p> <i>\u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0432\u043e\u0434\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/i><\/p>\n<p> \u0412\u0441\u0435 URL \u0438 \u043c\u0435\u0441\u0442\u043e\u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043a\u043e\u0434\u0430. \u041f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430:<\/p>\n<pre><code class=\"bash\">url = 'https:\/\/ip_addr\/' login_url = url + 'app\/' update_url = url + 'api\/v1\/update\/auto' curl_file = '\/\u0432\u0430\u0448\/\u043f\u0443\u0442\u044c\/\u0434\u043e\/\u0444\u0430\u0439\u043b\u0430\/curl\u2019' cookie_file = '\/\u0432\u0430\u0448\/\u043f\u0443\u0442\u044c\/\u0434\u043e\/\u0444\u0430\u0439\u043b\u0430\/cookie.txt' <\/code><\/pre>\n<p> <a name=\"7\"><\/a><font color=\"#EB4247\"><\/p>\n<h2>\u0428\u0430\u0433 2. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447 \u043d\u0430 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0435\u0442\u0438<\/h2>\n<p><\/font><br \/> \u041f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0430\u0437 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043a \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u0441\u0435\u0442\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432.<\/p>\n<p> 1. \u0414\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f IP \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0444\u0430\u0439\u043b iplist.json:<\/p>\n<pre><code class=\"bash\">#nano iplist.json <\/code><\/pre>\n<p> 2. \u0417\u0430\u043f\u043e\u043b\u043d\u0438\u043c \u0444\u0430\u0439\u043b \u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438:<\/p>\n<pre><code class=\"plaintext\">[     {\"id\": \"1\", \"name\": \"\u0438\u043c\u044f \u0445\u043e\u0441\u0442\u0430\", \"ip\": \"\u0430\u0434\u0440\u0435\u0441 \u0445\u043e\u0441\u0442\u0430\"}, ] <\/code><\/pre>\n<p> 3. \u0414\u043b\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u0438 \u0447\u0442\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e:<\/p>\n<pre><code class=\"python\">def load_ip_list(file_path):     try:         with open(file_path, 'r', encoding='utf-8') as file:             return json.load(file)     except FileNotFoundError:         print(f\"\u0424\u0430\u0439\u043b {file_path} \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d.\")         return []     except json.JSONDecodeError:         print(f\"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0447\u0442\u0435\u043d\u0438\u0438 JSON \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 {file_path}. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043f\u0443\u0441\u0442\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a.\")         return [] <\/code><\/pre>\n<p> <b>\u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044f<\/b> <\/p>\n<ul>\n<li>\u041f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043f\u0443\u0442\u044c \u043a \u0444\u0430\u0439\u043b\u0443, \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0435\u0433\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0438 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u0430\u043a JSON.<\/li>\n<li>\u0415\u0441\u043b\u0438 \u0444\u0430\u0439\u043b \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d \u2014 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0432\u0438\u0434\u0435 \u0441\u043f\u0438\u0441\u043a\u0430.<\/li>\n<li>\u0415\u0441\u043b\u0438 \u0444\u0430\u0439\u043b \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d \u0438\u043b\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 JSON, \u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u0443\u0441\u0442\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a.<\/li>\n<\/ul>\n<p> <a name=\"8\"><\/a><font color=\"#EB4247\"><\/p>\n<h2>\u0428\u0430\u0433 3. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 Assets<\/h2>\n<p><\/font><br \/> \u041f\u043e IP-\u0430\u0434\u0440\u0435\u0441\u0430\u043c \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f assets \u2013 \u0430\u043a\u0442\u0438\u0432\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u044b \u0434\u043b\u044f \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p> 1. \u0412\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 <b>Asset Control<\/b> \u0432 Swagger \u0438\u0449\u0435\u043c post-\u0437\u0430\u043f\u0440\u043e\u0441, \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0433\u043e \u0432 Python.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/cd7\/c7d\/174\/cd7c7d174e27d7f326e20cfda92f48bd.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/cd7\/c7d\/174\/cd7c7d174e27d7f326e20cfda92f48bd.png\"\/><\/div>\n<p> 2. \u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043d\u0438\u043f\u043f\u0435\u0442:<\/p>\n<pre><code class=\"bash\">curl -X 'POST' \\   'https:\/\/ip_addr\/api\/v1\/asset' \\   -H 'accept: application\/json' \\   -H 'Content-Type: application\/json' \\   -d '{   \"assetInfo\": {     \"name\": \"\u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 asset\",  # \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0430\u043a\u0442\u0438\u0432\u0430     \"importanceType\": \"IMPORTANCE_TYPE_UNSPECIFIED\"  # \u041e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439   },   \"network\": {     \"ipv4\": \"string\"  # \u041e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e IPv4, \u0443\u0431\u0438\u0440\u0430\u0435\u043c fqdn \u0438 ipv6   },   \"os\": {     \"type\": \"OPERATING_SYSTEM_TYPE_UNSPECIFIED\"  # \u041e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439   },   \"device\": {     \"type\": \"DEVICE_TYPE_UNSPECIFIED\"  # \u041e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439   },   \"tags\": [     0   ] }' <\/code><\/pre>\n<p> 3. \u041e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u043f\u043e\u043b\u044f \u0441 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c\u0438 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0432\u0438\u0434:<\/p>\n<pre><code class=\"python\">data = {         \"assetInfo\": {             \"name\": f\"Asset for {ip_ip}\",             \"importanceType\": \"IMPORTANCE_TYPE_UNSPECIFIED\"         },         \"network\": {             \"ipv4\": ip_ip         }     } <\/code><\/pre>\n<p> 4. \u041f\u043e\u0441\u043b\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 POST-\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0435\u0433\u043e \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0441\u0442\u044c:<\/p>\n<pre><code class=\"python\"> try:             asset_data = response.json()             if \"id\" in asset_data:                 asset_id = asset_data[\"id\"]                 print(f\"Asset \u0441\u043e\u0437\u0434\u0430\u043d \u0434\u043b\u044f IP: {ip_ip}, ID Asset: {asset_id}\")                 return asset_id             else:                 print(f\"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0440\u0430\u0437\u0431\u043e\u0440\u0435 \u043e\u0442\u0432\u0435\u0442\u0430 API \u0434\u043b\u044f asset IP: {ip_ip}. \u041f\u043e\u043b\u0435 'id' \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e.\")                 print(f\"\u041e\u0442\u0432\u0435\u0442 API: {asset_data}\") <\/code><\/pre>\n<p> 5. \u0421\u043e\u0431\u0435\u0440\u0435\u043c \u0432\u0441\u0435 \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e:<\/p>\n<pre><code class=\"python\">def create_asset(auth_cookies, ip_ip):     if not auth_cookies:         print(\"\u041d\u0435\u0442 cookies, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 asset \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e!\")         return None     headers = {         'accept': 'application\/json',         'Content-Type': 'application\/json',         'Cookie': auth_cookies     }     data = {         \"assetInfo\": {             \"name\": f\"Asset for {ip_ip}\",             \"importanceType\": \"IMPORTANCE_TYPE_UNSPECIFIED\"         },         \"network\": {             \"ipv4\": ip_ip         }     }     response = session.post(asset_url, headers=headers, json=data, verify=False)     if response.status_code in [200, 201]:         try:             asset_data = response.json()             if \"id\" in asset_data:                 asset_id = asset_data[\"id\"]                 print(f\"Asset \u0441\u043e\u0437\u0434\u0430\u043d \u0434\u043b\u044f IP: {ip_ip}, ID Asset: {asset_id}\")                 return asset_id             else:                 print(f\"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0440\u0430\u0437\u0431\u043e\u0440\u0435 \u043e\u0442\u0432\u0435\u0442\u0430 API \u0434\u043b\u044f asset IP: {ip_ip}. \u041f\u043e\u043b\u0435 'id' \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e.\")                 print(f\"\u041e\u0442\u0432\u0435\u0442 API: {asset_data}\")         except (KeyError, ValueError) as e:             print(f\"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0440\u0430\u0437\u0431\u043e\u0440\u0435 \u043e\u0442\u0432\u0435\u0442\u0430 API \u0434\u043b\u044f asset IP: {ip_ip}: {e}\")     else:         print(f\"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 asset \u0434\u043b\u044f IP: {ip_ip}. \u041a\u043e\u0434: {response.status_code}, \u0422\u0435\u043a\u0441\u0442: {response.text}\")     return None <\/code><\/pre>\n<p> \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u044b \u043b\u0438 cookies. \u0414\u0430\u043b\u0435\u0435 \u2014 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f POST-\u0437\u0430\u043f\u0440\u043e\u0441\u0430, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0435\u0433\u043e \u043d\u0430 asset_url \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f asset \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0441\u0442\u0430\u0442\u0443\u0441-\u043a\u043e\u0434 \u043e\u0442\u0432\u0435\u0442\u0430: <\/p>\n<ul>\n<li>\u0415\u0441\u043b\u0438 \u0441\u0442\u0430\u0442\u0443\u0441-\u043a\u043e\u0434 200 \u0438\u043b\u0438 201 \u2014 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0438\u0437\u0432\u043b\u0435\u0447\u044c id \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e asset \u0438\u0437 \u043e\u0442\u0432\u0435\u0442\u0430;<\/li>\n<li>\u0415\u0441\u043b\u0438 \u0441\u0442\u0430\u0442\u0443\u0441-\u043a\u043e\u0434 \u0438\u043d\u043e\u0439 \u2014 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 id \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e asset \u0438\u043b\u0438 None.<\/li>\n<\/ul>\n<p> <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/dc0\/291\/5a7\/dc02915a799c97e20b691a3a5dbb5968.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/dc0\/291\/5a7\/dc02915a799c97e20b691a3a5dbb5968.png\"\/><\/div>\n<p> <i>\u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0432\u043e\u0434\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.<\/i><\/p>\n<p> 6. \u0411\u0443\u0434\u0435\u043c \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c id asset \u0432 \u043d\u0430\u0448 \u0444\u0430\u0439\u043b \u0441 \u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e:<\/p>\n<pre><code class=\"python\">def save_ip_list(file_path, ips):     try:         for ip in ips:             if \"id_asset\" in ip and isinstance(ip[\"id_asset\"], int):                 ip[\"id_asset\"] = str(ip[\"id_asset\"])         with open(file_path, 'w', encoding='utf-8') as file:             json.dump(ips, file, indent=4, ensure_ascii=False)         print(f\"\u0421\u043f\u0438\u0441\u043e\u043a \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d \u0432 \u0444\u0430\u0439\u043b: {file_path}\")     except Exception as e:         print(f\"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u0441\u043f\u0438\u0441\u043a\u0430 \u0430\u0434\u0440\u0435\u0441\u043e\u0432: {e}\") <\/code><\/pre>\n<p> \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0441 \u043d\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439 id_asset \u0432 iplists.json:<\/p>\n<pre><code class=\"plaintext\">[     {\"id\": \"1\", \"name\": \"\u0438\u043c\u044f \u0445\u043e\u0441\u0442\u0430\", \"ip\": \"\u0430\u0434\u0440\u0435\u0441 \u0445\u043e\u0441\u0442\u0430\", \u201cid_asset\u201d:\u201d100\u201d}, ] <\/code><\/pre>\n<p> <a name=\"9\"><\/a><font color=\"#EB4247\"><\/p>\n<h2>\u0428\u0430\u0433 4. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447 \u043d\u0430 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439<\/h2>\n<p><\/font><br \/> \u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c \u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0437\u0430\u0434\u0430\u0447 \u043d\u0430 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0437\u0430\u043f\u0440\u043e\u0441 \u0432 Swagger.<\/p>\n<p> 1. \u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0435\u0433\u043e \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043d\u0438\u043f\u0435\u0442.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/175\/da1\/e59\/175da1e59fc43db7355f39a9b9b1cf4b.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/175\/da1\/e59\/175da1e59fc43db7355f39a9b9b1cf4b.png\"\/><\/div>\n<p> 2. \u0421\u043d\u0438\u043f\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043e\u0431\u0448\u0438\u0440\u043d\u044b\u0439, c \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0437\u0430\u0434\u0430\u0447\u0430\u043c\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u044b\u0431\u0435\u0440\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u0436\u043d\u044b \u0434\u043b\u044f <code>netscanOptions<\/code>:<\/p>\n<pre><code class=\"bash\">\"netscanOptions\": {     \"ping\": True,  # \u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u0438\u043d\u0433\u0430 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0445\u043e\u0441\u0442\u043e\u0432     \"traceRoute\": True,  # \u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0442\u0440\u0430\u0441\u0441\u0438\u0440\u043e\u0432\u043a\u0438 \u0434\u043b\u044f \u0442\u043e\u043f\u043e\u043b\u043e\u0433\u0438\u0438     \"osDetection\": True,  # \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0445\u043e\u0441\u0442\u043e\u0432     \"aggressive\": False,  # \u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0430\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f     \"targets\": {         \"targets\": ip_ips,  # \u0426\u0435\u043b\u0435\u0432\u044b\u0435 IP-\u0430\u0434\u0440\u0435\u0441\u0430 \u0434\u043b\u044f \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f         \"exclusionTargets\": []  # \u0418\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f (\u0435\u0441\u043b\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e)     },     \"port\": {         \"enable\": True,  # \u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u0440\u0442\u043e\u0432         \"tcpPorts\": all_ports,  # \u0421\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e TCP-\u043f\u043e\u0440\u0442\u044b         \"udpPorts\": [],  # UDP-\u043f\u043e\u0440\u0442\u044b \u043d\u0435 \u0441\u043a\u0430\u043d\u0438\u0440\u0443\u044e\u0442\u0441\u044f         \"exclusionPorts\": [],  # \u0418\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043f\u043e\u0440\u0442\u043e\u0432 (\u0435\u0441\u043b\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e)         \"mostCommonPortsNumber\": 0  # \u0411\u0435\u0437 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043f\u043e\u0440\u0442\u043e\u0432     },     \"service\": {         \"enable\": True,  # \u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432         \"intensity\": 7  # \u0418\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e 7     },     \"network\": {         \"enable\": False,  # \u041d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0435\u0442\u0438  \u2014 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435         \"proxies\": [],  # \u041f\u0440\u043e\u043a\u0441\u0438-\u0441\u0435\u0440\u0432\u0435\u0440\u044b, \u0435\u0441\u043b\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e         \"sourcePort\": 1,  # \u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043f\u043e\u0440\u0442 \u0434\u043b\u044f \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439         \"interface\": \"\"  # \u0421\u0435\u0442\u0435\u0432\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 (\u0435\u0441\u043b\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e)     },     \"scanPolicy\": {         \"enable\": False,  # \u041f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u2014 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435         \"minHostgroup\": 0,  # \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0445\u043e\u0441\u0442\u043e\u0432 \u0432 \u0433\u0440\u0443\u043f\u043f\u0435         \"maxHostgroup\": 0,  # \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0445\u043e\u0441\u0442\u043e\u0432 \u0432 \u0433\u0440\u0443\u043f\u043f\u0435         \"minRate\": 1,  # \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f         \"maxRate\": 100  # \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f     } } <\/code><\/pre>\n<p> \u0422\u0435\u043f\u0435\u0440\u044c \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e:<\/p>\n<pre><code class=\"python\">def add_netscan_task(auth_cookies, ip_name, ip_ips):     if not auth_cookies:         print(\"\u041d\u0435\u0442 cookies, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e!\")         return     headers = {         'Content-Type': 'application\/json',         'Cookie': auth_cookies     }     all_ports = list(range(1, 65536))     data = {         \"name\": f\"Netscan for {ip_name}\",         \"type\": \"TYPE_NETSCAN\",         \"netscanOptions\": {             \"ping\": True,             \"traceRoute\": True,             \"osDetection\": True,             \"aggressive\": False,             \"targets\": {                 \"targets\": ip_ips,                 \"exclusionTargets\": []             },             \"port\": {                 \"enable\": True,                 \"tcpPorts\": all_ports,                 \"udpPorts\": [],                 \"exclusionPorts\": [],                 \"mostCommonPortsNumber\": 0             },             \"service\": {                 \"enable\": True,                 \"intensity\": 7             },             \"network\": {                 \"enable\": False,                 \"proxies\": [],                 \"sourcePort\": 1,                 \"interface\": \"\"             },             \"scanPolicy\": {                 \"enable\": False,                 \"minHostgroup\": 0,                 \"maxHostgroup\": 0,                 \"minRate\": 1,                 \"maxRate\": 100             }         }     }     response = session.post(task_url, json=data, headers=headers, verify=False)     if response.status_code in [200, 201]:         try:             task_data = response.json().get(\"task\", {})             task_id = task_data.get(\"id\")             if task_id:                 print(f\"\u0417\u0430\u0434\u0430\u0447\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0430 \u0434\u043b\u044f: {ip_name}, ID Task: {task_id}\")                 return task_id             else:                 print(f\"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0437\u0430\u0434\u0430\u0447\u0438 \u0434\u043b\u044f {ip_name}. Task ID \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d.\")         except (KeyError, ValueError) as e:             print(f\"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0440\u0430\u0437\u0431\u043e\u0440\u0435 \u043e\u0442\u0432\u0435\u0442\u0430 API \u0434\u043b\u044f {ip_name}: {e}\")     else:         print(f\"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0437\u0430\u0434\u0430\u0447\u0438 \u0434\u043b\u044f  {ip_name}. \u041a\u043e\u0434: {response.status_code}, \u0422\u0435\u043a\u0441\u0442: {response.text}\")     return None <\/code><\/pre>\n<p> <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/d5f\/097\/283\/d5f097283e491320a436febcd988e4fa.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/d5f\/097\/283\/d5f097283e491320a436febcd988e4fa.png\"\/><\/div>\n<p> <i>\u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0432\u043e\u0434\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.<\/i><\/p>\n<p> \u0417\u0430\u0442\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c:<\/p>\n<pre><code class=\"python\">def run_task(auth_cookies, task_id):     if not auth_cookies:         print(\"\u041d\u0435\u0442 cookies, \u0437\u0430\u043f\u0443\u0441\u043a \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u0435\u043d!\")         return     headers = {'Cookie': auth_cookies}     run_task_url = f\"{task_url}\/{task_id}:run\"     response = session.put(run_task_url, headers=headers, verify=False)     if response.status_code == 200:         print(f\"\u0417\u0430\u0434\u0430\u0447\u0430 \u0441 ID {task_id} \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0430.\")     else:         print(f\"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0437\u0430\u0434\u0430\u0447\u0438. \u041a\u043e\u0434: {response.status_code}, \u0422\u0435\u043a\u0441\u0442: {response.text}\")  &lt;img src=\"https:\/\/849719.selcdn.ru\/mcloud.media\/article\/scan_2025-03-21\/image25.png\" align=\"center\"\/&gt; &lt;i&gt;\u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0432\u043e\u0434\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.&lt;\/i&gt; \u0422\u0435\u043f\u0435\u0440\u044c iplist.json \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:  &lt;source&gt; [     {\"id\": \"1\", \"name\": \"\u0438\u043c\u044f \u0445\u043e\u0441\u0442\u0430\", \"ip\": \"\u0430\u0434\u0440\u0435\u0441 \u0445\u043e\u0441\u0442\u0430\", \u201cid_asset\u201d:\u201d100\u201d,\u201did_netscan\u201d:\u201d123\u201d}, ]<\/code><\/pre>\n<p> \u041f\u043e\u043c\u0438\u043c\u043e \u043f\u0440\u043e\u0447\u0435\u0433\u043e, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c, \u0447\u0442\u043e \u0437\u0430 \u0441\u0442\u0430\u0442\u0443\u0441 \u0443 \u043d\u0430\u0448\u0438\u0445 \u0437\u0430\u0434\u0430\u0447. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 Swagger \u0438\u0449\u0435\u043c GET-\u0437\u0430\u043f\u0440\u043e\u0441, \u0432\u0432\u043e\u0434\u0438\u043c id \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/40f\/d03\/546\/40fd0354641a4401549701f26d58e4a3.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/40f\/d03\/546\/40fd0354641a4401549701f26d58e4a3.png\"\/><\/div>\n<p> \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043d\u0438\u043f\u0435\u0442:<\/p>\n<pre><code class=\"plaintext\">curl -X 'GET' \\   'https:\/\/ip_addr\/api\/v1\/tasks\/ip_task' \\   -H 'accept: application\/json' <\/code><\/pre>\n<p> \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u0435\u0433\u043e \u043f\u0438\u0448\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e:<\/p>\n<pre><code class=\"python\">def get_task_status(auth_cookies, task_id):     if not auth_cookies:         print(\"\u041d\u0435\u0442 cookies, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e!\")         return None     headers = {'Cookie': auth_cookies}     task_status_url = f\"{task_url}\/{task_id}\"     response = session.get(task_status_url, headers=headers, verify=False)     if response.status_code == 200:         try:             task_data = response.json().get(\"task\", {})             task_state = task_data.get(\"state\")             print(f\"\u0421\u0442\u0430\u0442\u0443\u0441 \u0437\u0430\u0434\u0430\u0447\u0438 ID={task_id}: {task_state}\")             return task_state         except (KeyError, ValueError) as e:             print(f\"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0440\u0430\u0437\u0431\u043e\u0440\u0435 \u043e\u0442\u0432\u0435\u0442\u0430 API \u0434\u043b\u044f \u0437\u0430\u0434\u0430\u0447\u0438 ID={task_id}: {e}\")     else:         print(f\"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u0437\u0430\u0434\u0430\u0447\u0438 ID={task_id}. \u041a\u043e\u0434: {response.status_code}, \u0422\u0435\u043a\u0441\u0442: {response.text}\")     return None <\/code><\/pre>\n<p> \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 URL \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u0437\u0430\u0434\u0430\u0447\u0438 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 GET-\u0437\u0430\u043f\u0440\u043e\u0441 \u0441 id \u043d\u0443\u0436\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438. \u0415\u0441\u043b\u0438 \u0441\u0442\u0430\u0442\u0443\u0441-\u043a\u043e\u0434 200 \u2013 \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u043c \u0441\u0442\u0430\u0442\u0443\u0441 \u0437\u0430\u0434\u0430\u0447\u0438 \u0438\u0437 \u043e\u0442\u0432\u0435\u0442\u0430, \u0438\u043d\u0430\u0447\u0435 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u043e\u0448\u0438\u0431\u043a\u0443.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/e88\/9e0\/ac1\/e889e0ac119efc0d75a0d860909143f6.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/e88\/9e0\/ac1\/e889e0ac119efc0d75a0d860909143f6.png\"\/><\/div>\n<p> <i>\u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0432\u043e\u0434\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.<\/i><\/p>\n<p> \u0421\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0435\u0442\u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u043e.<\/p>\n<h3>\u041f\u043e\u0438\u0441\u043a \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u043d\u0430 \u0445\u043e\u0441\u0442\u0430\u0445 \u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u043f\u043e\u0440\u0442\u0430\u0445<\/h3>\n<p> \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c<b> task-control<\/b> \u0432 Swagger. \u0412\u0438\u0434\u0438\u043c \u0431\u043e\u043b\u044c\u0448\u043e\u0439 POST-\u0437\u0430\u043f\u0440\u043e\u0441 \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0437\u0430\u0434\u0430\u0447\u0430\u043c\u0438, \u043d\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u0438\u043c\u0435\u043d\u043d\u043e <code>vulnscanOptions<\/code>:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/175\/da1\/e59\/175da1e59fc43db7355f39a9b9b1cf4b.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/175\/da1\/e59\/175da1e59fc43db7355f39a9b9b1cf4b.png\"\/><\/div>\n<p> <\/p>\n<pre><code class=\"plaintext\">        \"vulnscanOptions\": {             \"assetIDs\": asset_ids,             \"forceNist\": True,             \"ignoreNistIfVendorResultsPresent\": True,             \"ignoreNistUncertainVersion\": True,             \"ignoreEmptyVulns\": True,             \"filterWinOnlyForInstalledUpdates\": False         } <\/code><\/pre>\n<p> <\/p>\n<blockquote><p>\u0412\u0430\u0436\u043d\u043e: \u0437\u0434\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f assetID, \u0430 \u043d\u0435 IP-\u0430\u0434\u0440\u0435\u0441\u0430, \u043a\u0430\u043a \u0432 netscan. \u0418\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u0448\u0430\u0433\u0435 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0438 asset \u0438\u0437 IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432.<\/p><\/blockquote>\n<p> \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u043d\u0430 \u0445\u043e\u0441\u0442\u0430\u0445:<\/p>\n<pre><code class=\"python\">def add_vulnscan_task(auth_cookies, ip_name, asset_ids):     if not auth_cookies:         print(\"\u041d\u0435\u0442 cookies, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e!\")         return     headers = {         'Content-Type': 'application\/json',         'Cookie': auth_cookies     }     data = {         \"name\": f\"Vulnscan for {ip_name}\",         \"type\": \"TYPE_VULNSCAN\",         \"vulnscanOptions\": {             \"assetIDs\": asset_ids,             \"forceNist\": True,             \"ignoreNistIfVendorResultsPresent\": True,             \"ignoreNistUncertainVersion\": True,             \"ignoreEmptyVulns\": True,             \"filterWinOnlyForInstalledUpdates\": False         }     }     response = session.post(task_url, json=data, headers=headers, verify=False)     if response.status_code in [200, 201]:         try:             task_data = response.json().get(\"task\", {})             task_id = task_data.get(\"id\")             if task_id:                 print(f\"\u0417\u0430\u0434\u0430\u0447\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0430 \u0434\u043b\u044f {ip_name}, ID Task: {task_id}\")                 return task_id             else:                 print(f\"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0437\u0430\u0434\u0430\u0447\u0438 \u0434\u043b\u044f {ip_name}. Task ID \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d.\")         except (KeyError, ValueError) as e:             print(f\"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0440\u0430\u0437\u0431\u043e\u0440\u0435 \u043e\u0442\u0432\u0435\u0442\u0430 API \u0434\u043b\u044f {ip_name}: {e}\")     else:         print(f\"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0437\u0430\u0434\u0430\u0447\u0438 \u0434\u043b\u044f {ip_name}. \u041a\u043e\u0434: {response.status_code}, \u0422\u0435\u043a\u0441\u0442: {response.text}\")     return None <\/code><\/pre>\n<p> \u041a\u0430\u043a \u0438 \u0432 netscan, \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 POST-\u0437\u0430\u043f\u0440\u043e\u0441, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0435\u0433\u043e \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0441\u0442\u0430\u0442\u0443\u0441-\u043a\u043e\u0434 \u043e\u0442\u0432\u0435\u0442\u0430. \u0415\u0441\u043b\u0438 \u043a\u043e\u0434 200 \u0438\u043b\u0438 201, \u0442\u043e \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u043c id \u0437\u0430\u0434\u0430\u0447\u0438 \u0438\u0437 \u043e\u0442\u0432\u0435\u0442\u0430 \u0438 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 iplist.json \u0432 \u0432\u0438\u0434\u0435 \u201cid_vulnscan\u201d:\u201d667\u201d.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/bfa\/07e\/9b9\/bfa07e9b95cc3a8abcafd4c5a724b0f0.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/bfa\/07e\/9b9\/bfa07e9b95cc3a8abcafd4c5a724b0f0.png\"\/><\/div>\n<p> <i>\u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0432\u043e\u0434\u0430 \u0447\u0430\u0441\u0442\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.<\/i><\/p>\n<p> \u0421\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044b, \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u0447\u0435\u0442 \u0434\u043b\u044f \u043d\u0430\u0448\u0438\u0445 \u0430\u0434\u0440\u0435\u0441\u043e\u0432.<\/p>\n<p> <a name=\"10\"><\/a><font color=\"#EB4247\"><\/p>\n<h2>\u0428\u0430\u0433 5. \u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u043e \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438<\/h2>\n<p><\/font><br \/> 1. \u0414\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 <b>report-control <\/b>\u0432 Swagger, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/21b\/1a7\/7fb\/21b1a77fb2f25175be78fda14af64ec5.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/21b\/1a7\/7fb\/21b1a77fb2f25175be78fda14af64ec5.png\"\/><\/div>\n<p> 2. \u0412 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u043c \u0441\u043d\u0438\u043f\u043f\u0435\u0442\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0443\u0436\u043d\u044b\u0439 \u043d\u0430\u043c \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442:<\/p>\n<pre><code class=\"plaintext\">curl -X 'POST' \\   'https:\/\/ip_addr\/api\/v1\/reports' \\   -H 'accept: application\/json' \\   -H 'Content-Type: application\/json' \\   -d '{   \"name\": \"string\",   \"assetIDs\": [     0   ],   \"maskPassword\": true,   \"selectSeverity\": [     0   ] }' <\/code><\/pre>\n<p> 3. \u041f\u0438\u0448\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u0434\u043b\u044f POST-\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0435\u0433\u043e \u043d\u0430 URL \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043e\u0442\u0447\u0435\u0442\u0430. \u0415\u0441\u043b\u0438 \u0441\u0442\u0430\u0442\u0443\u0441-\u043a\u043e\u0434 200 \u0438\u043b\u0438 201 \u2014 \u043e\u043f\u043e\u0432\u0435\u0449\u0430\u0435\u0442 \u043e\u0431 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043e\u0442\u0447\u0435\u0442\u0430.<\/p>\n<pre><code class=\"python\">def add_report(auth_cookies, ip_name, asset_ids):     if not auth_cookies:         print(\"\u041d\u0435\u0442 cookies, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043e\u0442\u0447\u0451\u0442\u0430 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e!\")         return     headers = {         'Content-Type': 'application\/json',         'Cookie': auth_cookies     }     data = {         \"name\": f\"Report for {ip_name}\",         \"assetIDs\": asset_ids,         \"maskPassword\": True,         \"selectSeverity\": [0, 1, 2, 3, 4]     }     response = session.post(report_url, json=data, headers=headers, verify=False)     if response.status_code in [200, 201]:         try:             report_data = response.json().get(\"report\", {})             if report_data is not None or \"report\" in response.json():                 print(f\"\u041e\u0442\u0447\u0451\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043d \u0434\u043b\u044f: {ip_name}\")                 return True             else:                 print(f\"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043e\u0442\u0447\u0451\u0442\u0430 \u0434\u043b\u044f {ip_name}. \u041e\u0442\u0432\u0435\u0442 API: {response.text}\")         except (KeyError, ValueError) as e:             print(f\"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0440\u0430\u0437\u0431\u043e\u0440\u0435 \u043e\u0442\u0432\u0435\u0442\u0430 API \u0434\u043b\u044f  {ip_name}: {e}\")     else:         print(f\"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043e\u0442\u0447\u0451\u0442\u0430 \u0434\u043b\u044f {ip_name}. \u041a\u043e\u0434: {response.status_code}, \u0422\u0435\u043a\u0441\u0442: {response.text}\")     return None <\/code><\/pre>\n<p> <a name=\"11\"><\/a><font color=\"#EB4247\"><\/p>\n<h2>\u0428\u0430\u0433 6. \u041e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 Telegram-\u0431\u043e\u0442\u0430<\/h2>\n<p><\/font><br \/> \u041a\u043e\u0433\u0434\u0430 \u043e\u0442\u0447\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d, \u043d\u0443\u0436\u043d\u043e \u043e\u043f\u043e\u0432\u0435\u0441\u0442\u0438\u0442\u044c \u043e\u0431 \u044d\u0442\u043e\u043c \u0447\u0435\u0440\u0435\u0437 \u0431\u043e\u0442\u0430. \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0435\u0433\u043e \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u2014 \u0442\u043e\u043a\u0435\u043d. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0434\u0438\u0430\u043b\u043e\u0433 \u0441 <a href=\"https:\/\/habr.com\/ru\/users\/botfather\/\" class=\"user_link\">BotFather<\/a> \u0432 Telegram, \u0432\u0432\u043e\u0434\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \/newbot \u0438 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0431\u043e\u0442\u0430. \u0414\u0430\u043b\u0435\u0435 \u2014 \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u0442\u043e\u043a\u0435\u043d\u043e\u043c. \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u0438 ID \u0447\u0430\u0442\u0430:<\/p>\n<pre><code class=\"plaintext\">telegram_bot_token = '' chat_id = '' <\/code><\/pre>\n<p> \u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f:<\/p>\n<pre><code class=\"python\">def send_telegram_message(message):     try:         bot.send_message(chat_id, message)         print(f\"\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043e \u0432 Telegram: {message}\")     except Exception as e:         print(f\"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0432 Telegram: {e}\") <\/code><\/pre>\n<p> \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0442\u0435\u043a\u0441\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u2014 \u00ab\u0412\u0441\u0435 \u043e\u0442\u0447\u0435\u0442\u044b \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u044b\u00bb \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0435\u0433\u043e \u0447\u0435\u0440\u0435\u0437 \u043e\u0431\u044a\u0435\u043a\u0442 bot. \u0415\u0441\u043b\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u0430 \u2014 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432\u044b\u0432\u043e\u0434 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0438 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u0432 Telegram.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/65d\/515\/95b\/65d51595b7767153d9bd5eba30ecd028.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/65d\/515\/95b\/65d51595b7767153d9bd5eba30ecd028.png\"\/><\/div>\n<p> <a name=\"12\"><\/a><font color=\"#EB4247\"><\/p>\n<h2>\u0417\u0430\u0432\u0435\u0440\u0448\u0430\u044e\u0449\u0438\u0439 \u0448\u0430\u0433<\/h2>\n<p><\/font> <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/145\/ef3\/8d6\/145ef38d6dc1647995671e49c4333dca.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/\/post_images\/145\/ef3\/8d6\/145ef38d6dc1647995671e49c4333dca.png\"\/><\/div>\n<p> \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043d\u0430\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0431\u0435\u0440\u0435\u0442 \u043d\u0430 \u0441\u0435\u0431\u044f \u0432\u0441\u044e \u0440\u0443\u0442\u0438\u043d\u0443: \u043e\u0442 \u0441\u0431\u043e\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043e \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u0442\u0447\u0435\u0442\u0430. \u0412\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0435 \u0441\u043a\u0440\u0438\u043f\u0442 (\u0430 \u043b\u0443\u0447\u0448\u0435 \u2014 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0435 cron), \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u0430\u043c\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0432\u0441\u0435 \u0448\u0430\u0433\u0438. \u0412 \u0438\u0442\u043e\u0433\u0435 \u2014 \u043c\u0435\u043d\u044c\u0448\u0435 \u043e\u0434\u043d\u043e\u0442\u0438\u043f\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439, \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u0432\u0430\u0436\u043d\u044b\u0435 \u0438 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u043d\u044b\u0435 \u0437\u0430\u0434\u0430\u0447\u0438.<\/p>\n<p> \u0415\u0441\u043b\u0438 \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a \u043c\u0435\u0441\u044f\u0446\u0430 \u0441 \u0447\u0430\u0441\u0430 \u043d\u043e\u0447\u0438 \u0438 \u043a\u0430\u0436\u0434\u044b\u0435 \u0447\u0435\u0442\u044b\u0440\u0435 \u0447\u0430\u0441\u0430, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0432 cron \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre><code class=\"plaintext\"># \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0447\u0442\u043e \u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a \u2014 \u043f\u0435\u0440\u0432\u044b\u0439 \u0434\u0435\u043d\u044c \u043d\u0435\u0434\u0435\u043b\u0438 date +%u   # \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c crontab \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f crontab -e   # \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0437\u0430\u0434\u0430\u0447\u0443 (\u043c\u043e\u0441\u043a\u043e\u0432\u0441\u043a\u043e\u0435 \u0432\u0440\u0435\u043c\u044f) TZ=Europe\/Moscow   0 0,4,8,12,16,20 1-7 * 1 [ \"$(date +\\%u)\" -eq 1 ] &amp;&amp; \/\u043f\u0443\u0442\u044c\/\u043a\/\u043d\u0430\u0448\u0435\u043c\u0443\/\u0441\u043a\u0440\u0438\u043f\u0442\u0443   <\/code><\/pre>\n<p> \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u0432\u043c\u0435\u0448\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u2014 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432 \u043d\u0443\u0436\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f. \u0427\u0442\u043e\u0431\u044b \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u043e\u0441\u044c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <code>crontab -l<\/code>.<\/p>\n<p> \u0412\u0430\u0436\u043d\u043e \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c, \u0447\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0445\u043e\u0441\u0442\u043e\u0432 \u0438 \u043f\u043e\u0434\u0441\u0435\u0442\u0435\u0439. \u0427\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u2014 \u0442\u0435\u043c \u0434\u043e\u043b\u044c\u0448\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043a\u0440\u0443\u043f\u043d\u0430\u044f \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430, \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043a\u0438 \u043c\u0435\u0436\u0434\u0443 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043c\u0438, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u0439 \u0438 \u0438\u0437\u043b\u0438\u0448\u043d\u0435\u0439 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438.<\/p>\n<blockquote><p>\u0412 \u0442\u0435\u043a\u0441\u0442\u0435 \u043f\u0440\u0438\u0432\u0435\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b \u043a\u043e\u0434\u0430, \u0430 \u043d\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043a \u0437\u0430\u043f\u0443\u0441\u043a\u0443 \u0441\u043a\u0440\u0438\u043f\u0442. \u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u0442\u043e \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435, \u0447\u0442\u043e \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u0432\u0430\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u2014 \u0437\u0430\u0439\u0442\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0438 \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u043c\u0435\u0440\u044b \u043f\u043e \u0443\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u044e \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439. \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u0438 \u0431\u0443\u0434\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u043f\u0440\u043e\u0449\u0435 \u0438 \u043d\u0430\u0434\u0435\u0436\u043d\u0435\u0435.<\/p><\/blockquote>\n<\/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\/892802\/\"> https:\/\/habr.com\/ru\/articles\/892802\/<\/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\/mk\/gp\/cw\/mkgpcwu61rvfegb6abs4hj_ckwu.png\" data-src=\"https:\/\/habrastorage.org\/webt\/mk\/gp\/cw\/mkgpcwu61rvfegb6abs4hj_ckwu.png\"\/><\/div>\n<p> \u0420\u0443\u0447\u043d\u043e\u0435 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u2014 \u044d\u0442\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e, \u043a\u043e\u0433\u0434\u0430 \u0443 \u0432\u0430\u0441 \u0434\u0435\u0441\u044f\u0442\u043e\u043a \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0438 \u043c\u043e\u0440\u0435 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u041d\u043e \u0435\u0441\u043b\u0438 \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0441\u043e\u0442\u043d\u0438, \u0430 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u043d\u0443\u0436\u043d\u043e \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e, \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u0440\u0443\u0442\u0438\u043d\u0443. \u0417\u0430\u0431\u044b\u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u043a\u0430\u043d? \u041f\u043e\u0442\u0435\u0440\u044f\u043b\u0438 \u0447\u0430\u0441\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432? \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0435\u0441\u0442\u044c, \u043d\u043e \u043d\u0438\u043a\u0442\u043e \u043e \u043d\u0438\u0445 \u043d\u0435 \u0443\u0437\u043d\u0430\u043b? \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u2014 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f.<\/p>\n<p> \u041c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0410\u043d\u0442\u043e\u043d, \u044f \u0438\u043d\u0436\u0435\u043d\u0435\u0440 <a href=\"https:\/\/selectel.ru\/services\/is\/?utm_source=habr.com&amp;utm_medium=referral&amp;utm_campaign=cloud_article_scan_210525_content\">\u043f\u043e \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 \u0432 Selectel<\/a>. \u0412 \u0442\u0435\u043a\u0441\u0442\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0447\u0435\u0440\u0435\u0437 API \u00ab\u0421\u043a\u0430\u043d\u0435\u0440-\u0412\u0421 6\u00bb \u0432\u043e\u0437\u044c\u043c\u0435\u0442 \u0432\u0441\u0435 \u043f\u043e\u0434 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c: \u0441\u0430\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u043e\u0442\u0447\u0435\u0442\u044b \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u0432 Telegram. \u0412\u0441\u0435 \u043f\u043e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u0447\u0435\u0440\u0435\u0437 cron, \u0431\u0435\u0437 \u0440\u0443\u0447\u043d\u044b\u0445 \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u0432.<\/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-452691","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/452691","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=452691"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/452691\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=452691"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=452691"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=452691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}