{"id":1261,"date":"2019-09-12T00:10:50","date_gmt":"2019-09-11T16:10:50","guid":{"rendered":"http:\/\/van-yzt.com\/?p=1261"},"modified":"2019-09-12T00:10:50","modified_gmt":"2019-09-11T16:10:50","slug":"bandit-level-30-%e2%86%92-level-31","status":"publish","type":"post","link":"https:\/\/huzi-baozi.com\/?p=1261","title":{"rendered":"Bandit Level 30 \u2192 Level 31"},"content":{"rendered":"<p>There is a git repository at ssh:\/\/bandit30-git@localhost\/home\/bandit30-git\/repo. The password for the user bandit30-git is the same as for the user bandit30.<\/p>\n<p>Clone the repository and find the password for the next level.<\/p>\n<h2>\n\u89e3\u5bc6<\/h2>\n<pre><code class=\"language-shell\">bandit30@bandit:~$ mktemp -d\n\/tmp\/tmp.UkNUXze0ar\nbandit30@bandit:~$ cd \/tmp\/tmp.UkNUXze0ar\nbandit30@bandit:\/tmp\/tmp.UkNUXze0ar$ git clone ssh:\/\/bandit30-git@localhost\/home\/bandit30-git\/repo\nCloning into 'repo'...\nCould not create directory '\/home\/bandit30\/.ssh'.\nThe authenticity of host 'localhost (127.0.0.1)' can't be established.\nECDSA key fingerprint is SHA256:98UL0ZWr85496EtCRkKlo20X3OPnyPSB5tB5RPbhczc.\nAre you sure you want to continue connecting (yes\/no)? yes\nFailed to add the host to the list of known hosts (\/home\/bandit30\/.ssh\/known_hosts).\nThis is a OverTheWire game server. More information on http:\/\/www.overthewire.org\/wargames\n\nbandit30-git@localhost's password:\nremote: Counting objects: 4, done.\nremote: Total 4 (delta 0), reused 0 (delta 0)\nReceiving objects: 100% (4\/4), done.\nbandit30@bandit:\/tmp\/tmp.UkNUXze0ar$ cd repo\/\nbandit30@bandit:\/tmp\/tmp.UkNUXze0ar\/repo$ ls\nREADME.md\nbandit30@bandit:\/tmp\/tmp.UkNUXze0ar\/repo$ git tag\nsecret\nbandit30@bandit:\/tmp\/tmp.UkNUXze0ar\/repo$ git show secret\n47e603bb428404d265f59c42920d81e5\n<\/code><\/pre>\n<h2>\n\u77e5\u8bc6\u70b9<\/h2>\n<ol>\n<li>\n<code>git<\/code> tag<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>There is a git repository at ssh:\/\/bandit30-git@localhost\/home\/bandit30-git\/repo. The password for the user bandit30-git is the same as for the user bandit30. Clone the repository and find the password for the next level. \u89e3\u5bc6 bandit30@bandit:~$ mktemp -d \/tmp\/tmp.UkNUXze0ar bandit30@bandit:~$ cd \/tmp\/tmp.UkNUXze0ar bandit30@bandit:\/tmp\/tmp.UkNUXze0ar$ git clone ssh:\/\/bandit30-git@localhost\/home\/bandit30-git\/repo Cloning into &#8216;repo&#8217;&#8230; Could not create directory &#8216;\/home\/bandit30\/.ssh&#8217;. The authenticity of &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/huzi-baozi.com\/?p=1261\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Bandit Level 30 \u2192 Level 31&#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-1261","post","type-post","status-publish","format-standard","hentry","category-bandit"],"_links":{"self":[{"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=\/wp\/v2\/posts\/1261","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=1261"}],"version-history":[{"count":1,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=\/wp\/v2\/posts\/1261\/revisions"}],"predecessor-version":[{"id":1262,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=\/wp\/v2\/posts\/1261\/revisions\/1262"}],"wp:attachment":[{"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}