There are several ways to escape from restricted shell based on different vulnerability.
i have solved this and explained step by step here
http://ud64.com/blog/how-to-escape-root-privilege-in-linux-and-root/