
{"id":7784,"date":"2012-10-17T17:19:43","date_gmt":"2012-10-17T17:19:43","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=7784"},"modified":"2012-10-17T17:19:43","modified_gmt":"2012-10-17T17:19:43","slug":"bash-r-restricted-shell","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2012\/10\/17\/bash-r-restricted-shell\/","title":{"rendered":"bash -r    restricted shell"},"content":{"rendered":"<pre>\n$ 4.2.36 8 508---&gt; bash -r\n$ 4.2.36 1 501---&gt; ls\nAlgorithms     bookmark  bugs-general  debian-howtos  firewall\tkernel\t  linux    README\nbeautifulwork  books\t config-files  Docs\t      https:\tlanguage  ovlfose\n$ 4.2.36 2 502---&gt; cd ..\nbash: cd: restricted\n$ 4.2.36 3 503---&gt; cd \/\nbash: cd: restricted\n$ 4.2.36 4 504---&gt; .\/firewall\/firewall.bw\nbash: .\/firewall\/firewall.bw: restricted: cannot specify `\/' in command names\n$ 4.2.36 5 505---&gt; cat config-files\/dot-muttrc &gt; check\nbash: check: restricted: cannot redirect output\n$ 4.2.36 6 506---&gt; enable\nenable .\nenable :\nenable [\nenable alias\nenable bg\nenable bind\nenable break\nenable builtin\nenable caller\nenable cd\nenable command\nenable compgen\nenable complete\nenable compopt\nenable continue\nenable declare\nenable dirs\nenable disown\nenable echo\nenable enable\nenable eval\nenable exec\nenable exit\nenable export\nenable false\nenable fc\nenable fg\nenable getopts\nenable hash\nenable help\nenable history\nenable jobs\nenable kill\nenable let\nenable local\nenable logout\nenable mapfile\nenable popd\nenable printf\nenable pushd\nenable pwd\nenable read\nenable readarray\nenable readonly\nenable return\nenable set\nenable shift\nenable shopt\nenable source\nenable suspend\nenable test\nenable times\nenable trap\nenable true\nenable type\nenable typeset\nenable ulimit\nenable umask\nenable unalias\nenable unset\nenable wait\n$ 4.2.36 7 507---&gt; enable\nenable .\nenable :\nenable [\nenable alias\nenable bg\nenable bind\nenable break\nenable builtin\nenable caller\nenable cd\nenable command\nenable compgen\nenable complete\nenable compopt\nenable continue\nenable declare\nenable dirs\nenable disown\nenable echo\nenable enable\nenable eval\nenable exec\nenable exit\nenable export\nenable false\nenable fc\nenable fg\nenable getopts\nenable hash\nenable help\nenable history\nenable jobs\nenable kill\nenable let\nenable local\nenable logout\nenable mapfile\nenable popd\nenable printf\nenable pushd\nenable pwd\nenable read\nenable readarray\nenable readonly\nenable return\nenable set\nenable shift\nenable shopt\nenable source\nenable suspend\nenable test\nenable times\nenable trap\nenable true\nenable type\nenable typeset\nenable ulimit\nenable umask\nenable unalias\nenable unset\nenable wait\n$ 4.2.36 8 508---&gt;\n$ 4.2.36 8 508---&gt; enable --help\nbash: enable: --: invalid option\nenable: usage: enable [-a] [-dnps] [-f filename] [name ...]\n$ 4.2.36 9 509---&gt; enable -d\nbash: enable: restricted\n$ 4.2.36 10 510---&gt;\n\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>$ 4.2.36 8 508&#8212;&gt; bash -r $ 4.2.36 1 501&#8212;&gt; ls Algorithms bookmark bugs-general debian-howtos firewall kernel linux README beautifulwork books config-files Docs https: language ovlfose $ 4.2.36 2 502&#8212;&gt; cd .. bash: cd: restricted $ 4.2.36 3 503&#8212;&gt; cd \/ bash: cd: restricted $ 4.2.36 4 504&#8212;&gt; .\/firewall\/firewall.bw bash: .\/firewall\/firewall.bw: restricted: cannot specify `\/&#8217; &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2012\/10\/17\/bash-r-restricted-shell\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;bash -r    restricted shell&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"page-templates\/full-width.php","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/7784"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=7784"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/7784\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=7784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=7784"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=7784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}