{"id":1233,"date":"2019-09-09T13:27:05","date_gmt":"2019-09-09T05:27:05","guid":{"rendered":"http:\/\/van-yzt.com\/?p=1233"},"modified":"2019-09-09T13:27:05","modified_gmt":"2019-09-09T05:27:05","slug":"bandit-level-17-%e2%86%92-level-18","status":"publish","type":"post","link":"https:\/\/huzi-baozi.com\/?p=1233","title":{"rendered":"Bandit Level 17 \u2192 Level 18"},"content":{"rendered":"<p>There are 2 files in the homedirectory: passwords.old and passwords.new. The password for the next level is in passwords.new and is the only line that has been changed between passwords.old and passwords.new<\/p>\n<p>NOTE: if you have solved this level and see \u2018Byebye!\u2019 when trying to log into bandit18, this is related to the next level, bandit19<\/p>\n<h2>\n\u89e3\u5bc6<\/h2>\n<h3>\n\u767b\u9646<\/h3>\n<pre><code class=\"language-shell\">bandit16@bandit:~$ mktemp\n\/tmp\/tmp.wBXU8p03gb\nbandit16@bandit:~$ echo '-----BEGIN RSA PRIVATE KEY-----\n&gt; MIIEogIBAAKCAQEAvmOkuifmMg6HL2YPIOjon6iWfbp7c3jx34YkYWqUH57SUdyJ\n&gt; imZzeyGC0gtZPGujUSxiJSWI\/oTqexh+cAMTSMlOJf7+BrJObArnxd9Y7YT2bRPQ\n&gt; Ja6Lzb558YW3FZl87ORiO+rW4LCDCNd2lUvLE\/GL2GWyuKN0K5iCd5TbtJzEkQTu\n&gt; DSt2mcNn4rhAL+JFr56o4T6z8WWAW18BR6yGrMq7Q\/kALHYW3OekePQAzL0VUYbW\n&gt; JGTi65CxbCnzc\/w4+mqQyvmzpWtMAzJTzAzQxNbkR2MBGySxDLrjg0LWN6sK7wNX\n&gt; x0YVztz\/zbIkPjfkU1jHS+9EbVNj+D1XFOJuaQIDAQABAoIBABagpxpM1aoLWfvD\n&gt; KHcj10nqcoBc4oE11aFYQwik7xfW+24pRNuDE6SFthOar69jp5RlLwD1NhPx3iBl\n&gt; J9nOM8OJ0VToum43UOS8YxF8WwhXriYGnc1sskbwpXOUDc9uX4+UESzH22P29ovd\n&gt;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Bl1O4f7HVm6EpTscdDxU+bCXWkfjuRb7Dy9GOtt9JPsX8MBTakzh3\n&gt; vBgsyi\/sN3RqRBcGU40fOoZyfAMT8s1m\/uYv52O6IgeuZ\/ujbjY=\n&gt; -----END RSA PRIVATE KEY-----\n&gt; ' &gt; \/tmp\/tmp.wBXU8p03gb\nbandit16@bandit:~$ ssh -i \/tmp\/tmp.wBXU8p03gb bandit17@localhost\n<\/code><\/pre>\n<h3>\n\u627e\u5bc6\u7801<\/h3>\n<pre><code class=\"language-shell\">bandit17@bandit:~$ diff passwords.old passwords.new\n42c42\n&lt; hlbSBPAWJmL6WFDb06gpTx1pPButblOA\n---\n&gt; kfBf3eYk5BPBRzwjqutbbfE887SVc5Yd\n<\/code><\/pre>\n<h2>\n\u77e5\u8bc6\u70b9<\/h2>\n<ol>\n<li>\n<code>diff<\/code>\u547d\u4ee4\u53ef\u4ee5\u5bf9\u6bd4\u6587\u4ef6\u5185\u5bb9\u5dee\u5f02\uff1b<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>There are 2 files in the homedirectory: passwords.old and passwords.new. The password for the next level is in passwords.new and is the only line that has been changed between passwords.old and passwords.new NOTE: if you have solved this level and see \u2018Byebye!\u2019 when trying to log into bandit18, this is related to the next level, &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/huzi-baozi.com\/?p=1233\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Bandit Level 17 \u2192 Level 18&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1233","post","type-post","status-publish","format-standard","hentry","category-bandit"],"_links":{"self":[{"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=\/wp\/v2\/posts\/1233","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1233"}],"version-history":[{"count":1,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=\/wp\/v2\/posts\/1233\/revisions"}],"predecessor-version":[{"id":1234,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=\/wp\/v2\/posts\/1233\/revisions\/1234"}],"wp:attachment":[{"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}