Quick Commands

Compgen

While hacking systems, it will be critical post gaining access to list the commands that the user has permission to execute. Bash has this default command to list them all,

compgen -c

GTFOBins

Once you have the list of commands that you have access to various actions such as file uploads, downloads, breaking out of restrictive shells, etcetera can be done using those commands.

GFTOBins is an amazing website that has all the common commands and the exact parameters to be set to achieve those actions.

PWSH

Pwsh can be used for running powershell scripts in the Linux system. This comes handy when you have to run powershell scripts to extract information from files that are meant for Windows system. It can be installed using the following command,

sudo snap install powershell --classic

Last updated