{"id":1259,"date":"2019-09-12T00:08:31","date_gmt":"2019-09-11T16:08:31","guid":{"rendered":"http:\/\/van-yzt.com\/?p=1259"},"modified":"2019-09-12T00:08:31","modified_gmt":"2019-09-11T16:08:31","slug":"bandit-level-29-%e2%86%92-level-30","status":"publish","type":"post","link":"https:\/\/huzi-baozi.com\/?p=1259","title":{"rendered":"Bandit Level 29 \u2192 Level 30"},"content":{"rendered":"<p>There is a git repository at ssh:\/\/bandit29-git@localhost\/home\/bandit29-git\/repo. The password for the user bandit29-git is the same as for the user bandit29.<\/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\">bandit29@bandit:~$ mktemp -d\n\/tmp\/tmp.5vEfTyPY8r\nbandit29@bandit:~$ cd \/tmp\/tmp.5vEfTyPY8r\nbandit29@bandit:\/tmp\/tmp.5vEfTyPY8r$ git clone ssh:\/\/bandit29-git@localhost\/home\/bandit29-git\/repo\nCloning into 'repo'...\nCould not create directory '\/home\/bandit29\/.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\/bandit29\/.ssh\/known_hosts).\nThis is a OverTheWire game server. More information on http:\/\/www.overthewire.org\/wargames\n\nbandit29-git@localhost's password:\nremote: Counting objects: 16, done.\nremote: Compressing objects: 100% (11\/11), done.\nremote: Total 16 (delta 2), reused 0 (delta 0)\nReceiving objects: 100% (16\/16), done.\nResolving deltas: 100% (2\/2), done.\nbandit29@bandit:\/tmp\/tmp.5vEfTyPY8r$ cd repo\/\nbandit29@bandit:\/tmp\/tmp.5vEfTyPY8r\/repo$ git log\ncommit 84abedc104bbc0c65cb9eb74eb1d3057753e70f8\nAuthor: Ben Dover &lt;noone@overthewire.org&gt;\nDate:   Tue Oct 16 14:00:41 2018 +0200\n\n    fix username\n\ncommit 9b19e7d8c1aadf4edcc5b15ba8107329ad6c5650\nAuthor: Ben Dover &lt;noone@overthewire.org&gt;\nDate:   Tue Oct 16 14:00:41 2018 +0200\n\n    initial commit of README.md\nbandit29@bandit:\/tmp\/tmp.5vEfTyPY8r\/repo$ git tag\nbandit29@bandit:\/tmp\/tmp.5vEfTyPY8r\/repo$ git branch\n* master\nbandit29@bandit:\/tmp\/tmp.5vEfTyPY8r\/repo$ git branch -r\n  origin\/HEAD -&gt; origin\/master\n  origin\/dev\n  origin\/master\n  origin\/sploits-dev\nbandit29@bandit:\/tmp\/tmp.5vEfTyPY8r\/repo$ git checkout dev\nBranch dev set up to track remote branch dev from origin.\nSwitched to a new branch 'dev'\nbandit29@bandit:\/tmp\/tmp.5vEfTyPY8r\/repo$ git log\ncommit 33ce2e95d9c5d6fb0a40e5ee9a2926903646b4e3\nAuthor: Morla Porla &lt;morla@overthewire.org&gt;\nDate:   Tue Oct 16 14:00:41 2018 +0200\n\n    add data needed for development\n\ncommit a8af722fccd4206fc3780bd3ede35b2c03886d9b\nAuthor: Ben Dover &lt;noone@overthewire.org&gt;\nDate:   Tue Oct 16 14:00:41 2018 +0200\n\n    add gif2ascii\n\ncommit 84abedc104bbc0c65cb9eb74eb1d3057753e70f8\nAuthor: Ben Dover &lt;noone@overthewire.org&gt;\nDate:   Tue Oct 16 14:00:41 2018 +0200\n\n    fix username\n\ncommit 9b19e7d8c1aadf4edcc5b15ba8107329ad6c5650\nAuthor: Ben Dover &lt;noone@overthewire.org&gt;\nDate:   Tue Oct 16 14:00:41 2018 +0200\n\n    initial commit of README.md\nbandit29@bandit:\/tmp\/tmp.5vEfTyPY8r\/repo$ ls\ncode  README.md\nbandit29@bandit:\/tmp\/tmp.5vEfTyPY8r\/repo$ cat code\/gif2ascii.py\n\nbandit29@bandit:\/tmp\/tmp.5vEfTyPY8r\/repo$ cat README.md\n# Bandit Notes\nSome notes for bandit30 of bandit.\n\n## credentials\n\n- username: bandit30\n- password: 5b90576bedb2cc04c86a9e924ce42faf\n<\/code><\/pre>\n<h2>\n\u77e5\u8bc6\u70b9<\/h2>\n<ol>\n<li>\n<code>git<\/code>\u547d\u4ee4\u5b58\u5728\u591a\u4e2a\u5206\u652f<code>branch<\/code>\uff0c\u5206\u652f\u53ea\u662f\u5386\u53f2\u6811\u4e0a\u7684\u4e00\u4e2a\u6e38\u6807\uff1b<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>There is a git repository at ssh:\/\/bandit29-git@localhost\/home\/bandit29-git\/repo. The password for the user bandit29-git is the same as for the user bandit29. Clone the repository and find the password for the next level. \u89e3\u5bc6 bandit29@bandit:~$ mktemp -d \/tmp\/tmp.5vEfTyPY8r bandit29@bandit:~$ cd \/tmp\/tmp.5vEfTyPY8r bandit29@bandit:\/tmp\/tmp.5vEfTyPY8r$ git clone ssh:\/\/bandit29-git@localhost\/home\/bandit29-git\/repo Cloning into &#8216;repo&#8217;&#8230; Could not create directory &#8216;\/home\/bandit29\/.ssh&#8217;. The authenticity of &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/huzi-baozi.com\/?p=1259\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Bandit Level 29 \u2192 Level 30&#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-1259","post","type-post","status-publish","format-standard","hentry","category-bandit"],"_links":{"self":[{"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=\/wp\/v2\/posts\/1259","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=1259"}],"version-history":[{"count":1,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=\/wp\/v2\/posts\/1259\/revisions"}],"predecessor-version":[{"id":1260,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=\/wp\/v2\/posts\/1259\/revisions\/1260"}],"wp:attachment":[{"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}