{"id":18,"date":"2005-05-29T18:44:36","date_gmt":"2005-05-29T10:44:36","guid":{"rendered":"http:\/\/www.hmqq.net\/?p=18"},"modified":"2011-06-16T21:22:36","modified_gmt":"2011-06-16T13:22:36","slug":"overcovered-bin-bash","status":"publish","type":"post","link":"https:\/\/minqiao.me\/?p=18","title":{"rendered":"\u628abash\u8986\u76d6\u4e86,\u548b\u6574?"},"content":{"rendered":"<p>\u5728\u4e00\u4e2a\u8bba\u575b\u4e0a\u9762\u770b\u5230\u6709\u4eba\u8bf4\u4ed6\u628a\/bin\/bash\u8986\u76d6\u4e86\uff0c\u91cd\u542f\u4e0d\u80fd\u6b63\u5e38\u542f\u52a8\u3002hoho\uff0c\u542f\u52a8\u811a\u672c\u90fd\u662f\u9700\u8981bash\u7684\uff0c\u5f53\u7136\u4e0d\u80fd\u542f\u52a8\u5566-_-#\u3002\u7ed9\u4ed6\u56de\u4e86\u4e2a\u5e16\u5b50\uff0c\u6ca1\u6709\u770b\u5230\u4ed6\u8bf4\u6211\u7684\u65b9\u6cd5\u884c\u4e0d\u884c\u3002\u5509!\u65e9\u5c31\u6599\u5230\u662f\u8fd9\u6837\uff0c\u6240\u4ee5\u6211\u4e00\u822c\u90fd\u4e0dre\u8d34\u7684\u3002<br \/>\n\u6211\u5c1d\u8bd5\u7528<a href=\"http:\/\/www.trustix.org\/\">Trustix<\/a> 2.2\u91cd\u73b0\u4e00\u4e0b\u4ed6\u7684\u95ee\u9898\uff0c\u4f46\u662f\u53d1\u73b0Trustix\u8fd8\u662f\u80fd\u591f\u7528root\u767b\u5f55\u7684\u3002\u8fd9\u4e5f\u8bf4\u660e\u4e86Trustix\u7684\u5f00\u53d1\u8005\u8003\u8651\u5230\u4e86\u8fd9\u4e2a\u95ee\u9898\uff0croot\u7528\u6237\u7684shell\u662f\/sbin\/bash\uff0c\/bin\/bash\u6302\u4e86\uff0croot\u8fd8\u662f\u53ef\u4ee5\u767b\u5f55\u3002\u55ef&#8230;\u8fd8\u662f\u7528\u6211\u8d34\u7684\u90a3\u4e2a\u529e\u6cd5\u6765\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u5427\u3002<br \/>\n\u542f\u52a8\u673a\u5668\uff0c\u51fa\u73b0Grub\u83dc\u5355\u7684\u65f6\u5019\u5728\u83dc\u5355\u9879\u4e0a\u6309&#8217;e&#8217;\uff0c\u7136\u540e\u7528\u65b9\u5411\u952e\u9009\u4e0a&#8221;kernel &#8230;&#8221;\u90a3\u4e00\u884c\uff0c\u518d\u6309&#8217;e&#8217;\u3002\u5728\u540e\u9762\u52a0\u4e0a&#8221; init=\/bin\/ash&#8221;(ash\u8fd9\u4e2a\u5305\u4e00\u822c\u90fd\u662f\u5b89\u88c5\u4e86\u7684\uff0c\u4f30\u8ba1tcsh\u4e5f\u53ef\u4ee5\u5427\uff0c\u5982\u679c\u5b89\u88c5\u4e86\u7684\u8bdd)\uff0c\u56de\u8f66\uff0c\u6309&#8217;b&#8217;\u542f\u52a8\u3002\u4e00\u4f1a\u5c31\u53ef\u4ee5\u770b\u5230&#8217;#&#8217;\u63d0\u793a\u7b26\u5566\u3002<br \/>\n<code><br \/>\nmount \/proc<br \/>\nmount \/ -o remount,rw<br \/>\nrpm -e bash --nodeps<br \/>\nmount \/mnt\/cdrom<br \/>\nrpm -ivh \/mnt\/cdrom\/......\/bash-xx.rpm<br \/>\nmount \/ -o remount,ro<br \/>\n\/sbin\/halt -p<br \/>\n<\/code><br \/>\n\u6309&#8221;Power&#8221;\u952e\u5427\uff0c\u4e00\u5207\u6b63\u5e38;-)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u4e00\u4e2a\u8bba\u575b\u4e0a\u9762\u770b\u5230\u6709\u4eba\u8bf4\u4ed6\u628a\/bin\/bash\u8986\u76d6\u4e86\uff0c\u91cd\u542f\u4e0d\u80fd\u6b63\u5e38\u542f\u52a8\u3002hoho\uff0c\u542f\u52a8\u811a\u672c\u90fd\u662f\u9700\u8981bash\u7684\uff0c\u5f53\u7136\u4e0d\u80fd\u542f\u52a8\u5566-_-#\u3002\u7ed9\u4ed6\u56de\u4e86\u4e2a\u5e16\u5b50\uff0c\u6ca1\u6709\u770b\u5230\u4ed6\u8bf4\u6211\u7684\u65b9\u6cd5\u884c\u4e0d\u884c\u3002\u5509!\u65e9\u5c31\u6599\u5230\u662f\u8fd9\u6837\uff0c\u6240\u4ee5\u6211\u4e00\u822c\u90fd\u4e0dre\u8d34\u7684\u3002 \u6211\u5c1d\u8bd5\u7528Trustix 2.2\u91cd\u73b0\u4e00\u4e0b\u4ed6\u7684\u95ee\u9898\uff0c\u4f46\u662f\u53d1\u73b0Trustix\u8fd8\u662f\u80fd\u591f\u7528root\u767b\u5f55\u7684\u3002\u8fd9\u4e5f\u8bf4\u660e\u4e86Trustix\u7684\u5f00\u53d1\u8005\u8003\u8651\u5230\u4e86\u8fd9\u4e2a\u95ee\u9898\uff0croot\u7528\u6237\u7684shell\u662f\/sbin\/bash\uff0c\/bin\/bash\u6302\u4e86\uff0croot\u8fd8\u662f\u53ef\u4ee5\u767b\u5f55\u3002\u55ef&#8230;\u8fd8\u662f\u7528\u6211\u8d34\u7684\u90a3\u4e2a\u529e\u6cd5\u6765\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u5427\u3002 \u542f\u52a8\u673a\u5668\uff0c\u51fa\u73b0Grub\u83dc\u5355\u7684\u65f6\u5019\u5728\u83dc\u5355\u9879\u4e0a\u6309&#8217;e&#8217;\uff0c\u7136\u540e\u7528\u65b9\u5411\u952e\u9009\u4e0a&#8221;kernel &#8230;&#8221;\u90a3\u4e00\u884c\uff0c\u518d\u6309&#8217;e&#8217;\u3002\u5728\u540e\u9762\u52a0\u4e0a&#8221; init=\/bin\/ash&#8221;(ash\u8fd9\u4e2a\u5305\u4e00\u822c\u90fd\u662f\u5b89\u88c5\u4e86\u7684\uff0c\u4f30\u8ba1tcsh\u4e5f\u53ef\u4ee5\u5427\uff0c\u5982\u679c\u5b89\u88c5\u4e86\u7684\u8bdd)\uff0c\u56de\u8f66\uff0c\u6309&#8217;b&#8217;\u542f\u52a8\u3002\u4e00\u4f1a\u5c31\u53ef\u4ee5\u770b\u5230&#8217;#&#8217;\u63d0\u793a\u7b26\u5566\u3002 mount \/proc mount \/ -o remount,rw rpm -e bash &#8211;nodeps mount \/mnt\/cdrom rpm -ivh \/mnt\/cdrom\/&#8230;&#8230;\/bash-xx.rpm mount \/ -o remount,ro \/sbin\/halt -p \u6309&#8221;Power&#8221;\u952e\u5427\uff0c\u4e00\u5207\u6b63\u5e38;-)<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[20],"class_list":["post-18","post","type-post","status-publish","format-standard","hentry","category-tech","tag-linux"],"_links":{"self":[{"href":"https:\/\/minqiao.me\/index.php?rest_route=\/wp\/v2\/posts\/18","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/minqiao.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/minqiao.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/minqiao.me\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/minqiao.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18"}],"version-history":[{"count":2,"href":"https:\/\/minqiao.me\/index.php?rest_route=\/wp\/v2\/posts\/18\/revisions"}],"predecessor-version":[{"id":425,"href":"https:\/\/minqiao.me\/index.php?rest_route=\/wp\/v2\/posts\/18\/revisions\/425"}],"wp:attachment":[{"href":"https:\/\/minqiao.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/minqiao.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/minqiao.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}