Linux commands
apt
OpenSSL
Will generate a password hash for the /etc/passwd file
ldd
Check for libraries associated with a binary
Export variables
Check if your PATH
variable is exported running export
Sudo as another user
Unzip .tar.gz file
find
List all files from a directory
List all files by its name
mount
curl
--header
: to add an header to the request
-X
: to specify the method
-u
: authentication
--upload-file
or -T
: PUT method
--interface
to specify an interface
To POST data
To PUT data
Fetch google.com using wireless interface wlan0
grep
Print 5 lines before and 5 lines after the word password.
Perform case insensitive search
Perform search using regEx
Useful to list all IP address having a specific port open from a masscan output.
pip3
To uninstall a package with pip3.
sed
Add a string after each line. Useful to add an "at [domain_name]" after each line of a file containing username for example.
Replace carriage return character with commas.
To delete all lines in a file matching a specific pattern
On each line, delete everything after a certain matching pattern.
Replace white space by a dot (.)
Remove all empty lines from a file
To transforme amandine.gagnon@example.com to gagnona@example.com
wget
To download a release from a GitHub repo.
rm
Remove a non-empty directory.
PATH environment
Check for PATH environment variable
Add a directory to PATH environment variable
Adding the binary to the /usr/local/bin directory
This will make the executable available from any location on our host. Example of moving the kerbrute binary into the bin folder.
cat
Combine the content of two files.
Combine the content of multiple files
tr
Convert all the content of a file to lower case.
Last updated