{"id":1235,"date":"2019-09-09T13:32:02","date_gmt":"2019-09-09T05:32:02","guid":{"rendered":"http:\/\/van-yzt.com\/?p=1235"},"modified":"2019-09-09T13:32:02","modified_gmt":"2019-09-09T05:32:02","slug":"bandit-level-18-%e2%86%92-level-19","status":"publish","type":"post","link":"https:\/\/huzi-baozi.com\/?p=1235","title":{"rendered":"Bandit Level 18 \u2192 Level 19"},"content":{"rendered":"<p>The password for the next level is stored in a file readme in the homedirectory. Unfortunately, someone has modified .bashrc to log you out when you log in with SSH.<\/p>\n<h2>\n\u89e3\u5bc6<\/h2>\n<pre><code class=\"language-shell\">\u279c  \/tmp ssh -p 2220 bandit18@bandit.labs.overthewire.org cat readme\nThis is a OverTheWire game server. More information on http:\/\/www.overthewire.org\/wargames\n\nbandit18@bandit.labs.overthewire.org's password:\nIueksS7Ubh8G3DCwVzrTd8rAVOwq3M5x\n<\/code><\/pre>\n<h2>\n\u77e5\u8bc6\u70b9<\/h2>\n<ol>\n<li>\n<code>ssh<\/code>\u53ef\u4ee5\u540e\u9762\u8ddf\u968f\u6267\u884c\u547d\u4ee4\uff0c\u5728<code>.bashrc<\/code>\u811a\u672c\u6267\u884c\u4e4b\u524d\u8bfb\u53d6\u5bc6\u7801\uff1b<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>The password for the next level is stored in a file readme in the homedirectory. Unfortunately, someone has modified .bashrc to log you out when you log in with SSH. \u89e3\u5bc6 \u279c \/tmp ssh -p 2220 bandit18@bandit.labs.overthewire.org cat readme This is a OverTheWire game server. More information on http:\/\/www.overthewire.org\/wargames bandit18@bandit.labs.overthewire.org&#8217;s password: IueksS7Ubh8G3DCwVzrTd8rAVOwq3M5x \u77e5\u8bc6\u70b9 ssh\u53ef\u4ee5\u540e\u9762\u8ddf\u968f\u6267\u884c\u547d\u4ee4\uff0c\u5728.bashrc\u811a\u672c\u6267\u884c\u4e4b\u524d\u8bfb\u53d6\u5bc6\u7801\uff1b<\/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-1235","post","type-post","status-publish","format-standard","hentry","category-bandit"],"_links":{"self":[{"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=\/wp\/v2\/posts\/1235","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=1235"}],"version-history":[{"count":1,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=\/wp\/v2\/posts\/1235\/revisions"}],"predecessor-version":[{"id":1236,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=\/wp\/v2\/posts\/1235\/revisions\/1236"}],"wp:attachment":[{"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/huzi-baozi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}