{"id":342484,"date":"2022-12-12T21:00:27","date_gmt":"2022-12-12T21:00:27","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=342484"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=342484","title":{"rendered":"<span>Hack The Box. \u041f\u0440\u043e\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 Shoppy. NoSQL \u0438\u043d\u044a\u0435\u043a\u0446\u0438\u044f \u0438 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c \u0432 docker<\/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-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/159\/966\/b9f\/159966b9fdab6262881a01fd1efb7144.png\" width=\"781\" height=\"558\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/159\/966\/b9f\/159966b9fdab6262881a01fd1efb7144.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0418\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 nmap -sV -sC \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e:<\/p>\n<p><strong>port 22: OpenSSH<\/strong><\/p>\n<p><strong>port 80: ngingx <\/strong>1.23.1: redirects to <strong>http:\/\/shoppy.htb<\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/740\/6d6\/d3a\/7406d6d3acdb2d8230bbe655d3f73dff.png\" width=\"836\" height=\"609\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/740\/6d6\/d3a\/7406d6d3acdb2d8230bbe655d3f73dff.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u043e\u043f\u0438\u0448\u0435\u043c ip \u0430\u0434\u0440\u0435\u0441 \u043c\u0430\u0448\u0438\u043d\u043a\u0438 \u0438 shoppy.htb, \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f, \u0432 \/etc\/hosts.<\/p>\n<p><strong>Vhost \u0447\u0435\u0440\u0435\u0437 gobuster:<\/strong><\/p>\n<p>\u041f\u043e\u043a\u0430 \u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u043c nmap, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c gobuster, \u0447\u0442\u043e\u0431 \u043d\u0430\u0439\u0442\u0438 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d\u044b \u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f.<\/p>\n<pre><code>gobuster vhost -w \/home\/hell59\/SecLists\/Discovery\/DNS\/bitquark-subdomains-top100000.txt -t 50 -u shoppy.htb<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b38\/18b\/5f8\/b3818b5f8e8fcac00c46e2674b183195.png\" width=\"836\" height=\"499\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b38\/18b\/5f8\/b3818b5f8e8fcac00c46e2674b183195.png\"\/><figcaption><\/figcaption><\/figure>\n<p><strong>\u0412\u0440\u0443\u0447\u043d\u0443\u044e \u0438\u0441\u0441\u043b\u0435\u0434\u0443\u0435\u043c \u0432\u0435\u0431 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435:<\/strong><\/p>\n<p>\u0418\u0441\u0441\u043b\u0435\u0434\u0443\u0435\u043c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/141\/2f3\/9d5\/1412f39d5a10e7f88a4244a52aa2cf88.png\" width=\"823\" height=\"572\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/141\/2f3\/9d5\/1412f39d5a10e7f88a4244a52aa2cf88.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0438\u0447\u0435\u0433\u043e, \u043a\u0440\u043e\u043c\u0435 \u0442\u0430\u0439\u043c\u0435\u0440\u0430.<\/p>\n<h2>\u041f\u043e\u0438\u0441\u043a \u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0439:<\/h2>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0438\u0449\u0435\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0438 \u0444\u0430\u0439\u043b\u044b, \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0439\u0434\u0451\u043c \u0447\u0442\u043e-\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435.<\/p>\n<pre><code>wfuzz -c -z file,\/hell59\/SecLists\/Discovery\/Web-Content\/raft-large-directories.txt --hc 404 \"http:\/\/shoppy.htb\/FUZZ\/\"<\/code><\/pre>\n<p>\u0412\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \/admin \u043f\u0440\u0435\u0444\u0438\u043a\u0441, \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u043c \u043d\u0430 \/login:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/484\/743\/274\/4847432740ce3cb1304472882a9041ce.png\" width=\"1056\" height=\"367\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/484\/743\/274\/4847432740ce3cb1304472882a9041ce.png\"\/><figcaption><\/figcaption><\/figure>\n<h2>MongoDB NoSQL:<\/h2>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u043d\u0430 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u043c, \u0447\u0442\u043e \u0442\u0443\u0442 MongoDB NoSQL \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/481\/ef6\/4a9\/481ef64a932fc36bff015a2f700ce9ce.png\" width=\"1440\" height=\"873\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/481\/ef6\/4a9\/481ef64a932fc36bff015a2f700ce9ce.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041c\u043e\u0436\u0435\u043c \u0432\u043e\u0439\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043b\u043e\u0433\u0438\u043a\u0443 NoSQL \u0438\u043d\u044a\u0435\u043a\u0446\u0438\u0438:<\/p>\n<pre><code>login: admin'||'1==1 password: admin<\/code><\/pre>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c!<\/p>\n<p>\u041f\u0440\u043e NoSQL \u0438\u043d\u044a\u0435\u043a\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0442\u0443\u0442: <a href=\"https:\/\/book.hacktricks.xyz\/pentesting-web\/nosql-injection\" rel=\"noopener noreferrer nofollow\">https:\/\/book.hacktricks.xyz\/pentesting-web\/nosql-injection<\/a> .<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/fe4\/846\/b2e\/fe4846b2e95a41ae62fe8e40ad664a3a.png\" width=\"1347\" height=\"388\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/fe4\/846\/b2e\/fe4846b2e95a41ae62fe8e40ad664a3a.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412\u0432\u0435\u0434\u0451\u043c <code>admin'||'1==1 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438 \u0445\u044d\u0448.<\/code><\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e9e\/901\/306\/e9e90130675a868bbb08cd298f7df59d.png\" width=\"503\" height=\"265\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e9e\/901\/306\/e9e90130675a868bbb08cd298f7df59d.png\"\/><figcaption><\/figcaption><\/figure>\n<h3>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c hashcat, \u0447\u0442\u043e\u0431 \u0432\u0437\u043b\u043e\u043c\u0430\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 md5 hash:<\/h3>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c hashcat, \u0441\u043e \u0441\u043b\u043e\u0432\u0430\u0440\u0451\u043c rockyou.txt \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/6f4\/ef7\/584\/6f4ef7584c10a580c8675816d978f6aa.png\" width=\"1146\" height=\"675\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6f4\/ef7\/584\/6f4ef7584c10a580c8675816d978f6aa.png\"\/><figcaption><\/figcaption><\/figure>\n<p><strong>\u041b\u043e\u0433\u0438\u043d\u0438\u043c\u0441\u044f \u0432 \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d.<\/strong><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d <strong>mattermost<\/strong>, \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0435\u0433\u043e \u0432 \/etc\/hosts ,  <\/p>\n<p><a href=\"http:\/\/www.mattermost.shoppy.htb\/\" rel=\"noopener noreferrer nofollow\">http:\/\/www.mattermost.shoppy.htb<\/a> \u0441 \u0434\u043e\u0431\u044b\u0442\u044b\u043c \u043f\u0430\u0440\u043e\u043b\u0435\u043c.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/577\/b73\/89b\/577b7389b76bb078d0b55b13d1925cd5.png\" width=\"1156\" height=\"396\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/577\/b73\/89b\/577b7389b76bb078d0b55b13d1925cd5.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0443\u0442 \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u0447\u0430\u0442\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0438 \u043c\u044b \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043c \u0432\u0430\u0436\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e machine deploy:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/6f8\/4b5\/e83\/6f84b5e832fb488153a4974272cf6a67.png\" width=\"988\" height=\"292\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6f8\/4b5\/e83\/6f84b5e832fb488153a4974272cf6a67.png\"\/><figcaption><\/figcaption><\/figure>\n<h3> \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u044e\u0437\u0435\u0440 \u0444\u043b\u0430\u0433:<\/h3>\n<p>\u0421 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043b\u043e\u0433\u0438\u043d\u0438\u043c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 SSH, \u043d\u0430\u0445\u043e\u0434\u0438\u043c user.txt flag, \u0434\u0435\u043b\u0430\u0435\u043c cat user.txt.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/031\/4fa\/b19\/0314fab199847e7bf19190d97601e45e.png\" width=\"836\" height=\"609\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/031\/4fa\/b19\/0314fab199847e7bf19190d97601e45e.png\"\/><figcaption><\/figcaption><\/figure>\n<p>Sudo -l<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/854\/cdd\/602\/854cdd602392a5deb46fbe926b6e0919.png\" width=\"916\" height=\"345\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/854\/cdd\/602\/854cdd602392a5deb46fbe926b6e0919.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0415\u0441\u043b\u0438 \u043f\u043e\u043a\u043e\u043f\u0430\u0442\u044c\u0441\u044f \u0432 \u043e\u043a\u0440\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u044f\u0445 \u0438 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b \u0432 password-manager, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0443\u0434\u0438\u0442\u044c \u0438 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c Sample.<\/p>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 username \u0438 password:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f0b\/3cf\/dbe\/f0b3cfdbe02145489105b0f90823c9da.png\" width=\"1036\" height=\"257\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f0b\/3cf\/dbe\/f0b3cfdbe02145489105b0f90823c9da.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041b\u043e\u0433\u0438\u043d\u0438\u043c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 SSH \u043a\u0430\u043a <strong>deploy<\/strong> \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c.<\/p>\n<h3>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c root flag:<\/h3>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c docker \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u0443\u044e \u0442\u0443\u0442: <a href=\"https:\/\/gtfobins.github.io\/gtfobins\/docker\/\" rel=\"noopener noreferrer nofollow\">https:\/\/gtfobins.github.io\/gtfobins\/docker\/<\/a> .<\/p>\n<pre><code>docker run -v \/:\/mnt --rm -it alpine chroot \/mnt sh<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/064\/988\/02f\/06498802ffca5a3544e3b95b130dc977.png\" width=\"888\" height=\"455\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/064\/988\/02f\/06498802ffca5a3544e3b95b130dc977.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0423\u0440\u0430, \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 root!<\/p>\n<\/p>\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\/post\/705056\/\"> https:\/\/habr.com\/ru\/post\/705056\/<\/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-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0418\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 nmap -sV -sC \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e:<\/p>\n<p><strong>port 22: OpenSSH<\/strong><\/p>\n<p><strong>port 80: ngingx <\/strong>1.23.1: redirects to <strong>http:\/\/shoppy.htb<\/strong><\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u043e\u043f\u0438\u0448\u0435\u043c ip \u0430\u0434\u0440\u0435\u0441 \u043c\u0430\u0448\u0438\u043d\u043a\u0438 \u0438 shoppy.htb, \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f, \u0432 \/etc\/hosts.<\/p>\n<p><strong>Vhost \u0447\u0435\u0440\u0435\u0437 gobuster:<\/strong><\/p>\n<p>\u041f\u043e\u043a\u0430 \u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u043c nmap, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c gobuster, \u0447\u0442\u043e\u0431 \u043d\u0430\u0439\u0442\u0438 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d\u044b \u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f.<\/p>\n<pre><code>gobuster vhost -w \/home\/hell59\/SecLists\/Discovery\/DNS\/bitquark-subdomains-top100000.txt -t 50 -u shoppy.htb<\/code><\/pre>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p><strong>\u0412\u0440\u0443\u0447\u043d\u0443\u044e \u0438\u0441\u0441\u043b\u0435\u0434\u0443\u0435\u043c \u0432\u0435\u0431 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435:<\/strong><\/p>\n<p>\u0418\u0441\u0441\u043b\u0435\u0434\u0443\u0435\u043c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0438\u0447\u0435\u0433\u043e, \u043a\u0440\u043e\u043c\u0435 \u0442\u0430\u0439\u043c\u0435\u0440\u0430.<\/p>\n<h2>\u041f\u043e\u0438\u0441\u043a \u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0439:<\/h2>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0438\u0449\u0435\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0438 \u0444\u0430\u0439\u043b\u044b, \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0439\u0434\u0451\u043c \u0447\u0442\u043e-\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435.<\/p>\n<pre><code>wfuzz -c -z file,\/hell59\/SecLists\/Discovery\/Web-Content\/raft-large-directories.txt --hc 404 \"http:\/\/shoppy.htb\/FUZZ\/\"<\/code><\/pre>\n<p>\u0412\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \/admin \u043f\u0440\u0435\u0444\u0438\u043a\u0441, \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u043c \u043d\u0430 \/login:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h2>MongoDB NoSQL:<\/h2>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u043d\u0430 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u043c, \u0447\u0442\u043e \u0442\u0443\u0442 MongoDB NoSQL \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041c\u043e\u0436\u0435\u043c \u0432\u043e\u0439\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043b\u043e\u0433\u0438\u043a\u0443 NoSQL \u0438\u043d\u044a\u0435\u043a\u0446\u0438\u0438:<\/p>\n<pre><code>login: admin'||'1==1 password: admin<\/code><\/pre>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c!<\/p>\n<p>\u041f\u0440\u043e NoSQL \u0438\u043d\u044a\u0435\u043a\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0442\u0443\u0442: <a href=\"https:\/\/book.hacktricks.xyz\/pentesting-web\/nosql-injection\" rel=\"noopener noreferrer nofollow\">https:\/\/book.hacktricks.xyz\/pentesting-web\/nosql-injection<\/a> .<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412\u0432\u0435\u0434\u0451\u043c <code>admin'||'1==1 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438 \u0445\u044d\u0448.<\/code><\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<h3>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c hashcat, \u0447\u0442\u043e\u0431 \u0432\u0437\u043b\u043e\u043c\u0430\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 md5 hash:<\/h3>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c hashcat, \u0441\u043e \u0441\u043b\u043e\u0432\u0430\u0440\u0451\u043c rockyou.txt \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p><strong>\u041b\u043e\u0433\u0438\u043d\u0438\u043c\u0441\u044f \u0432 \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d.<\/strong><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d <strong>mattermost<\/strong>, \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0435\u0433\u043e \u0432 \/etc\/hosts ,  <\/p>\n<p><a href=\"http:\/\/www.mattermost.shoppy.htb\/\" rel=\"noopener noreferrer nofollow\">http:\/\/www.mattermost.shoppy.htb<\/a> \u0441 \u0434\u043e\u0431\u044b\u0442\u044b\u043c \u043f\u0430\u0440\u043e\u043b\u0435\u043c.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0443\u0442 \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u0447\u0430\u0442\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0438 \u043c\u044b \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043c \u0432\u0430\u0436\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e machine deploy:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h3> \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u044e\u0437\u0435\u0440 \u0444\u043b\u0430\u0433:<\/h3>\n<p>\u0421 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043b\u043e\u0433\u0438\u043d\u0438\u043c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 SSH, \u043d\u0430\u0445\u043e\u0434\u0438\u043c user.txt flag, \u0434\u0435\u043b\u0430\u0435\u043c cat user.txt.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>Sudo -l<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0415\u0441\u043b\u0438 \u043f\u043e\u043a\u043e\u043f\u0430\u0442\u044c\u0441\u044f \u0432 \u043e\u043a\u0440\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u044f\u0445 \u0438 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b \u0432 password-manager, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0443\u0434\u0438\u0442\u044c \u0438 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c Sample.<\/p>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 username \u0438 password:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041b\u043e\u0433\u0438\u043d\u0438\u043c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 SSH \u043a\u0430\u043a <strong>deploy<\/strong> \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c.<\/p>\n<h3>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c root flag:<\/h3>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c docker \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u0443\u044e \u0442\u0443\u0442: <a href=\"https:\/\/gtfobins.github.io\/gtfobins\/docker\/\" rel=\"noopener noreferrer nofollow\">https:\/\/gtfobins.github.io\/gtfobins\/docker\/<\/a> .<\/p>\n<pre><code>docker run -v \/:\/mnt --rm -it alpine chroot \/mnt sh<\/code><\/pre>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0423\u0440\u0430, \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 root!<\/p>\n<\/p>\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\/post\/705056\/\"> https:\/\/habr.com\/ru\/post\/705056\/<\/a><br \/><\/br><\/br><\/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-342484","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/342484","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=342484"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/342484\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=342484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=342484"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=342484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}