{"id":3026,"date":"2024-03-23T03:09:45","date_gmt":"2024-03-22T19:09:45","guid":{"rendered":"http:\/\/www.ccwifi.cc\/blogs\/?p=3026"},"modified":"2024-03-23T03:09:45","modified_gmt":"2024-03-22T19:09:45","slug":"five86-1%e9%9d%b6%e6%9c%ba%e6%b8%97%e9%80%8f%e5%ae%9e%e6%88%985415","status":"publish","type":"post","link":"https:\/\/www.ccwifi.cc\/blogs\/2024\/03\/23\/five86-1%e9%9d%b6%e6%9c%ba%e6%b8%97%e9%80%8f%e5%ae%9e%e6%88%985415\/","title":{"rendered":"Five86-1\u9776\u673a\u6e17\u900f\u5b9e\u6218"},"content":{"rendered":"<div>\n<p>\u5728\u7ebfwifi\u8dd1\u5305 \u91d1\u521a\u5305\u8dd1\u5305 cap\u8dd1\u5305 hccapx ewsa\u5728\u7ebf \u5c31\u6765 <strong><a href=\"https:\/\/ccwifi.cc\" target=\"_blank\" rel=\"noopener\">\u63e1\u624b\u5305\u8dd1\u5305<\/a><\/strong><\/p>\n<p>\u5404\u4f4d\u597d \u53c8\u89c1\u9762\u4e86 \u6211\u662f\u66f9\u64cd \u4eca\u5929\u7ed9\u5927\u5bb6\u5e26\u6765\u4e00\u7bc7\u65b0\u7684\u6559\u7a0b<\/p>\n<p>\u5e0c\u671b\u5404\u4f4d\u7ec6\u5fc3\u5b66\u4e60 \u4f4e\u8c03\u7528\u7f51<\/p>\n<\/div>\n<p><img decoding=\"async\" src=\"http:\/\/www.ccwifi.cc\/blogs\/wp-content\/uploads\/2024\/03\/1711134572186_0.jpg\" alt=\"hashcat\u4f7f\u7528\u547d\u4ee4\"><\/p>\n<p>\u672c\u6587\u6700\u521d\u53d1\u5e03\u4e8e\u201c\u5408\u5929\u7f51\u5b89\u5b9e\u9a8c\u5ba4\u201d\uff0c\u9776\u673a\u5730\u5740\u4e3avulnhub.com\/entry\/five86-1,417\/\u3002\u76f8\u5173\u5b9e\u9a8c\u5305\u62ec\uff08Node 1.0\u662f\u4e00\u4e2a\u4e2d\u7b49\u96be\u5ea6\u7684Boot2root\/CTF\u6311\u6218\uff0c\u9776\u573a\u73af\u5883\u6700\u521d\u7531HackTheBox\u521b\u5efa\uff0c\u5b9e\u9a8c\u76ee\u6807\u662f\u83b7\u53d6\u4e24\u4e2aflag\uff09\u3002<\/p>\n<p>\u6280\u672f\u70b9\u76ee\u6807\u53d1\u73b0<br \/>\n\u4f7f\u7528nmap -sP\u53c2\u6570\u8fdb\u884c\u5c40\u57df\u7f51\u4e3b\u673a\u7684ping\u626b\u63cf\uff0c\u76ee\u6807\u5730\u5740\u4e3a192.168.56.5\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.ccwifi.cc\/blogs\/wp-content\/uploads\/2024\/03\/1711134572186_1.jpg\" alt=\"hashcat\u4f7f\u7528\u547d\u4ee4\"><img decoding=\"async\" src=\"http:\/\/www.ccwifi.cc\/blogs\/wp-content\/uploads\/2024\/03\/1711134572186_2.jpg\" alt=\"hashcat\u4f7f\u7528\u547d\u4ee4\"><\/p>\n<p>\u4f7f\u7528nmap -sS -A -v 192.168.56.5\u8fdb\u884c\u8be6\u7ec6\u626b\u63cf\u3002-sS\u8868\u793a\u534a\u5f00\u653e\u626b\u63cf\uff0c-A\u8868\u793a\u8fdb\u884c\u64cd\u4f5c\u7cfb\u7edf\u6307\u7eb9\u548c\u7248\u672c\u68c0\u6d4b\uff0c-v\u8868\u793a\u8f93\u51fa\u8be6\u7ec6\u4fe1\u606f\u3002\u626b\u63cf\u7ed3\u679c\u663e\u793a\u5f00\u653e\u4e8622\u300180\u548c10000\u4e09\u4e2a\u7aef\u53e3\uff0c\u5e76\u4e1480\u7aef\u53e3\u5b58\u5728robots.txt\u548c\u8def\u5f84\/ona\u3002<\/p>\n<p>\u6f0f\u6d1e\u53d1\u73b0\u4e0e\u5229\u7528<br \/>\n\u8bbf\u95ee192.168.56.5\u65f6\u663e\u793a\u7a7a\u767d\u9875\u9762\uff0c\u7136\u540e\u8bbf\u95ee\/ona\uff0c\u53d1\u73b0\u662fopennetadmin\u7684\u7ba1\u7406\u9875\u9762\uff0c\u7248\u672c\u4e3a18.1.1\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.ccwifi.cc\/blogs\/wp-content\/uploads\/2024\/03\/1711134572186_3.jpg\" alt=\"hashcat\u4f7f\u7528\u547d\u4ee4\"><img decoding=\"async\" src=\"http:\/\/www.ccwifi.cc\/blogs\/wp-content\/uploads\/2024\/03\/1711134572186_4.jpg\" alt=\"hashcat\u4f7f\u7528\u547d\u4ee4\"><img decoding=\"async\" src=\"http:\/\/www.ccwifi.cc\/blogs\/wp-content\/uploads\/2024\/03\/1711134572186_5.jpg\" alt=\"hashcat\u4f7f\u7528\u547d\u4ee4\"><\/p>\n<p>opennetadmin\u7684v18.1.1\u5b58\u5728RCE\u6f0f\u6d1e\uff0c\u5728GitHub\u4e0a\u627e\u5230\u4e86\u4e00\u4e2aexp\uff0c\u53ef\u4ee5\u4f7f\u7528GitHub.com\/amriunix\/ona-rce\u8fdb\u884c\u5229\u7528\u3002\u6216\u8005\u4f7f\u7528searchsploit\uff0c\u4f46\u9700\u8981\u6ce8\u610f\u5c06bash\u811a\u672c\u8f6c\u6362\u683c\u5f0f\uff0c\u4f7f\u7528dos2unix 47691.sh\u547d\u4ee4\uff0c\u540c\u65f6\u8fd9\u91cc\u7684shell\u4e0d\u80fd\u8f6c\u6362\u4e3aTTY\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.ccwifi.cc\/blogs\/wp-content\/uploads\/2024\/03\/1711134572186_6.jpg\" alt=\"hashcat\u4f7f\u7528\u547d\u4ee4\"><img decoding=\"async\" src=\"http:\/\/www.ccwifi.cc\/blogs\/wp-content\/uploads\/2024\/03\/1711134572186_7.jpg\" alt=\"hashcat\u4f7f\u7528\u547d\u4ee4\"><img decoding=\"async\" src=\"http:\/\/www.ccwifi.cc\/blogs\/wp-content\/uploads\/2024\/03\/1711134572186_8.jpg\" alt=\"hashcat\u4f7f\u7528\u547d\u4ee4\"><img decoding=\"async\" src=\"http:\/\/www.ccwifi.cc\/blogs\/wp-content\/uploads\/2024\/03\/1711134572186_9.jpg\" alt=\"hashcat\u4f7f\u7528\u547d\u4ee4\"><\/p>\n<p>\u63a5\u4e0b\u6765\u7684\u95ee\u9898\u662f\u5982\u4f55\u63d0\u5347\u6743\u9650\u3002\u7ecf\u8fc7\u6d4b\u8bd5\u53d1\u73b0\uff0c\u65e0\u6cd5\u6267\u884c\u7684\u547d\u4ee4\u6ca1\u6709\u56de\u663e\uff0c\u5e76\u4e14\u65e0\u6cd5\u6267\u884ccd\u547d\u4ee4\uff0c\u4f46\u53ef\u4ee5\u4f7f\u7528ls\u548ccat\u547d\u4ee4\u3002\u8fd9\u91cc\u80af\u5b9a\u5b58\u5728\u6743\u9650\u63a7\u5236\uff0c\u53ef\u4ee5\u4f7f\u7528find \/ -type f -user www-data\u547d\u4ee4\u67e5\u770b\u8be5\u7528\u6237\u53ef\u4ee5\u8bfb\u53d6\u7684\u6587\u4ef6\uff0c\u9664\u4e86\/proc\uff0c\u8fd8\u6709\/var\/www\/html\/reports\/.htaccess\u548c\/var\/log\/ona.log\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.ccwifi.cc\/blogs\/wp-content\/uploads\/2024\/03\/1711134572186_10.jpg\" alt=\"hashcat\u4f7f\u7528\u547d\u4ee4\"><img decoding=\"async\" src=\"http:\/\/www.ccwifi.cc\/blogs\/wp-content\/uploads\/2024\/03\/1711134572186_11.jpg\" alt=\"hashcat\u4f7f\u7528\u547d\u4ee4\"><\/p>\n<p>\u8bfb\u53d6var\/www\/html\/reports\/.htaccess\u53ef\u4ee5\u627e\u5230AuthUserFile\u7684\u8def\u5f84\/var\/www\/.htpasswd\u3002\u8bfb\u53d6\u8be5\u6587\u4ef6\uff0c\u53ef\u4ee5\u5f97\u5230\u7528\u6237\u540ddouglas\u548cHASH\u5bc6\u7801$apr1$9fgG\/hiM$BtsL9qpNHUlylaLxk81qY1\uff0c\u63d0\u793a\u662f\u53ea\u5305\u542baefhrt\u7684\u5341\u4e2a\u5b57\u7b26\u3002<\/p>\n<pre><code class=\"language-text\">douglas:$apr1$9fgG\/hiM$BtsL9qpNHUlylaLxk81qY1\n# To make things slightly less painful (a standard dictionary will likely fail),\n# use the following character set for this 10 character password: aefhrt<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/www.ccwifi.cc\/blogs\/wp-content\/uploads\/2024\/03\/1711134572186_12.jpg\" alt=\"hashcat\u4f7f\u7528\u547d\u4ee4\"><img decoding=\"async\" src=\"http:\/\/www.ccwifi.cc\/blogs\/wp-content\/uploads\/2024\/03\/1711134572186_13.jpg\" alt=\"hashcat\u4f7f\u7528\u547d\u4ee4\"><\/p>\n<p>\u4f7f\u7528hash-identifier\u67e5\u770bHASH\u7c7b\u578b\uff0c\u7ed3\u679c\u4e3aMD5(APR)\u3002\u7136\u540e\u4f7f\u7528crunch\u751f\u6210\u76f8\u5e94\u7684\u5b57\u5178\uff0c\u547d\u4ee4\u683c\u5f0f\u4e3acrunch [charset string] [options]\u3002\u8fd9\u91cc\u751f\u6210\u53ea\u5305\u542baefhrt\u768410\u4e2a\u5b57\u7b26\u7684\u5b57\u5178\uff0c\u4f7f\u7528\u547d\u4ee4crunch 10 10 aefhrt -o pass.txt\u3002\u66f4\u591a\u4fe1\u606f\u53ef\u4ee5\u53c2\u8003Linux\u4e0b\u7684\u5b57\u5178\u751f\u6210\u5de5\u5177Crunch\u548ccrunch\u547d\u4ee4\u8be6\u89e3\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.ccwifi.cc\/blogs\/wp-content\/uploads\/2024\/03\/1711134572186_14.jpg\" alt=\"hashcat\u4f7f\u7528\u547d\u4ee4\"><\/p>\n<p>\u6700\u540e\u4f7f\u7528hashcat\u7834\u89e3\u8be5HASH\uff0c\u547d\u4ee4\u683c\u5f0f\u4e3ahashcat [options]\u2026 hash|hashfile|hccapxfile [dictionary|mask|directory]\u2026\u3002\u8fd9\u91cc\u4f7f\u7528\u7684\u547d\u4ee4\u662fhashcat -m 1600 -a 0 -o res hash.txt pass.txt\u3002-m\u8868\u793aHASH\u7c7b\u578b\uff0c-a\u8868\u793a\u653b\u51fb\u65b9\u5f0f\uff0c-o\u8868\u793a\u8f93\u51fa\u7ed3\u679c\u3002\u66f4\u591a\u53c2\u6570\u53ef\u4ee5\u53c2\u8003Hashcat\u5bc6\u7801\u7834\u89e3\u653b\u7565\u3002\u5728Kali\u4e2d\u8fd0\u884c\u4e00\u76f4\u62a5\u9519\uff0c\u6240\u4ee5\u8f6c\u79fb\u5230WSL2\u4e2d\u8fd0\u884c\uff0c\u547d\u4ee4\u4e3ahashcat -m 1600 -a 0 -o res hash.txt pass.txt &#8211;force\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.ccwifi.cc\/blogs\/wp-content\/uploads\/2024\/03\/1711134572186_16.jpg\" alt=\"hashcat\u4f7f\u7528\u547d\u4ee4\"><img decoding=\"async\" src=\"http:\/\/www.ccwifi.cc\/blogs\/wp-content\/uploads\/2024\/03\/1711134572186_17.jpg\" alt=\"hashcat\u4f7f\u7528\u547d\u4ee4\"><\/p>\n<p>\u6700\u7ec8\u5bc6\u7801\u4e3afatherrrrr\u3002\u6216\u8005\u4e5f\u53ef\u4ee5\u4f7f\u7528john\u8fdb\u884c\u7834\u89e3\uff0c\u547d\u4ee4\u4e3ajohn &#8211;wordlist=pass.txt hash.txt\uff0c\u4f46\u901f\u5ea6\u53ef\u80fd\u4f1a\u6709\u95ee\u9898\u3002\u4f7f\u7528ssh\u8fde\u63a5ssh douglas@192.168.56.5\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.ccwifi.cc\/blogs\/wp-content\/uploads\/2024\/03\/1711134572186_18.jpg\" alt=\"hashcat\u4f7f\u7528\u547d\u4ee4\"><\/p>\n<pre><code class=\"language-text\">cp .ssh\/id_rsa.pub \/tmp\/authorized_keys\nchmod 777 \/tmp\/authorized_keys \nsudo -u jen \/bin\/cp \/tmp\/authorized_keys \/home\/jen\/.ssh\/<\/code><\/pre>\n<p>\u8fd9\u91cc\u662f\u4e00\u4e2aTTY\uff0c\u4f46\u4ecd\u7136\u5b58\u5728\u6743\u9650\u63a7\u5236\uff0c\u4f7f\u7528sudo -l\u67e5\u770b\u53ef\u4ee5\u4f7f\u7528\u7684\u547d\u4ee4\uff0c\u7ed3\u679c\u662f(jen) NOPASSWD: \/bin\/cp\u3002\u8fd9\u91cc\u6709\u70b9\u5947\u602a\uff0cdouglas\u53ef\u4ee5\u4f7f\u7528jen\u7684\u8eab\u4efd\u8fd0\u884ccp\u547d\u4ee4\u3002\u5148\u8bbf\u95ee\u4e00\u4e0bhome\u76ee\u5f55\uff0c\u53d1\u73b0douglas\u548cjen\u8fd9\u4e24\u4e2a\u7528\u6237\uff0c\u4f46\u53ea\u80fd\u4f7f\u7528jen\u7684cp\u547d\u4ee4\uff0c\u4e14\u6ca1\u6709jen\u7684\u5bc6\u7801\u3002\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0c\u5982\u679cjen\u7528\u6237\u7684\/home\/jen\/.ssh\/authorized<em>keys\u5305\u542bdouglas\u7684\u516c\u94a5\uff0c\u90a3\u4e48\u5c31\u53ef\u4ee5\u4f7f\u7528douglas\u7684id<\/em>rsa\u6587\u4ef6\u767b\u5f55jen\u7684ssh\uff0c\u5b9e\u73b0\u514d\u5bc6\u767b\u5f55jen\u7684ssh\u3002\u8fd9\u91cc\u5c06\u6587\u4ef6\u590d\u5236\u5230\/tmp\u76ee\u5f55\u4e0b\u662f\u56e0\u4e3ajen\u6ca1\u6709\u6743\u9650\u8bbf\u95eedouglas\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.ccwifi.cc\/blogs\/wp-content\/uploads\/2024\/03\/1711134572186_20.jpg\" alt=\"hashcat\u4f7f\u7528\u547d\u4ee4\"><img decoding=\"async\" src=\"http:\/\/www.ccwifi.cc\/blogs\/wp-content\/uploads\/2024\/03\/1711134572186_21.jpg\" alt=\"hashcat\u4f7f\u7528\u547d\u4ee4\"><img decoding=\"async\" src=\"http:\/\/www.ccwifi.cc\/blogs\/wp-content\/uploads\/2024\/03\/1711134572186_24.jpg\" alt=\"hashcat\u4f7f\u7528\u547d\u4ee4\"><\/p>\n<p>\u7136\u540e\u4f7f\u7528ssh\u8fde\u63a5ssh -i id_rsa jen@127.0.0.1\uff0c\u6210\u529f\u767b\u5f55jen\u3002\u770b\u5230\u63d0\u793amail\uff0c\u5148\u6267\u884cecho $(find \/ -type f -user jen) &gt; 1.txt\u67e5\u770b\uff0c\u53d1\u73b0\u4e00\u4e2a\/var\/mail\/jen\u7684\u6587\u4ef6\u53ef\u4ee5\u8bfb\u53d6\u3002\u6216\u8005\u76f4\u63a5\u8f93\u5165mail\u547d\u4ee4\u4e5f\u53ef\u4ee5\u67e5\u770b\u3002\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9\u5982\u4e0b\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.ccwifi.cc\/blogs\/wp-content\/uploads\/2024\/03\/1711134572186_25.jpg\" alt=\"hashcat\u4f7f\u7528\u547d\u4ee4\"><img decoding=\"async\" src=\"http:\/\/www.ccwifi.cc\/blogs\/wp-content\/uploads\/2024\/03\/1711134572186_26.jpg\" alt=\"hashcat\u4f7f\u7528\u547d\u4ee4\"><\/p>\n<p>\u5173\u952e\u8bcd\uff1achange Moss&#8217;s password\u3001his password is now Fire!Fire!\u3002\u63a5\u7740ssh\u8fde\u63a5moss\u7528\u6237ssh moss@127.0.0.1\u3002\u5728\u5f53\u524d\u76ee\u5f55\u53d1\u73b0\u4e86\u4e00\u4e2a\u9690\u85cf\u76ee\u5f55.games\uff0c\u8bbf\u95ee\u540e\u53d1\u73b0\u4e00\u4e2aroot\u6743\u9650\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6upyourgame\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.ccwifi.cc\/blogs\/wp-content\/uploads\/2024\/03\/1711134572186_27.jpg\" alt=\"hashcat\u4f7f\u7528\u547d\u4ee4\"><img decoding=\"async\" src=\"http:\/\/www.ccwifi.cc\/blogs\/wp-content\/uploads\/2024\/03\/1711134572186_29.jpg\" alt=\"hashcat\u4f7f\u7528\u547d\u4ee4\"><\/p>\n<p>\u8fd0\u884c\u540e\u53d1\u73b0\u81ea\u5df1\u795e\u5947\u5730\u53d8\u6210\u4e86root\u7528\u6237\u3002\u6700\u540e\uff0cflag\u5728\/root\u76ee\u5f55\u4e2d\uff0c\u4e3a8f3b38dd95eccf600593da4522251746\u3002<\/p>\n<p><!-- \u6587\u7ae0\u6765\u6e90:https:\/\/zhuanlan.zhihu.com\/p\/344529060 --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>hashcat\u4f7f\u7528\u547d\u4ee4Five86-1\u9776\u673a\u6e17\u900f\u5b9e\u6218\u672c\u6587\u9996\u53d1\u4e8e\u201c\u5408\u5929\u7f51\u5b89\u5b9e\u9a8c\u5ba4\u201d\u9776\u673a\u5730\u5740\uff1avulnhub.com\/entry\/five86-1,417\/\u76f8\u5173\u5b9e\u9a8c\uff1a\uff08Node 1.0 \u662f\u4e00\u4e2a\u96be\u5ea6\u4e3a\u4e2d\u7b49\u7684Boot2root\/CTF\u6311\u6218<\/p>\n","protected":false},"author":1,"featured_media":3027,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"class_list":["post-3026","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/www.ccwifi.cc\/blogs\/wp-json\/wp\/v2\/posts\/3026","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ccwifi.cc\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ccwifi.cc\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ccwifi.cc\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ccwifi.cc\/blogs\/wp-json\/wp\/v2\/comments?post=3026"}],"version-history":[{"count":0,"href":"https:\/\/www.ccwifi.cc\/blogs\/wp-json\/wp\/v2\/posts\/3026\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ccwifi.cc\/blogs\/wp-json\/wp\/v2\/media\/3027"}],"wp:attachment":[{"href":"https:\/\/www.ccwifi.cc\/blogs\/wp-json\/wp\/v2\/media?parent=3026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ccwifi.cc\/blogs\/wp-json\/wp\/v2\/categories?post=3026"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ccwifi.cc\/blogs\/wp-json\/wp\/v2\/tags?post=3026"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.ccwifi.cc\/blogs\/wp-json\/wp\/v2\/topic?post=3026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}