# Jailed Shell Escape

**Resources:**

{% embed url="<http://netsec.ws/?p=337>" %}

{% embed url="<https://speakerdeck.com/knaps/escape-from-shellcatraz-breaking-out-of-restricted-unix-shells>" %}

{% embed url="<http://airnesstheman.blogspot.ca/2011/05/breaking-out-of-jail-restricted-shell.html>" %}

{% embed url="<http://securebean.blogspot.ca/2014/05/escaping-restricted-shell_3.html>" %}

{% embed url="<https://pen-testing.sans.org/blog/2012/06/06/escaping-restricted-linux-shells>" %}

**Escape a restricted shell with echo command:**&#x20;

echo os.system('/bin/bash')

&#x20;

ssh \<username>@\<ip> -t "bash --noprofile"
