Usefull tricks
Here, I provide different alternatives for accomplishing a task during a penetration test. This can be useful because sometimes certain commands are not available to some users, and in those cases, one needs to find alternative methods to accomplish their tasks.
compgen -c # will list all the commands you could run.
compgen -a # will list all the aliases you could run.
compgen -b # will list all the built-ins you could run.
compgen -k # will list all the keywords you could run.
compgen -ac | grep "command" # will show if a command is available.
Last updated