Bash
Last updated
Last updated
Writable files
List commands, current user can run as root
-> Run the command as a user other than the default target user (usually root).
-> Useful in scenarios like this:
Asks the system to start a new login session for the specified user. The system will require the password for the user "username" (even if its the same as the current user).
Get information about file
Count chars
Count lines
A 'readline wrapper', a small utility that uses the GNU readline library to allow the editing of keyboard input for any command.
Define permissions new files get on creation, opposite (mask) to chmod permissions
bind sockets to privileged ports (<1024) without being root
Encode base64 -w 0 <file> > <base64file>
Decode base64 -d <base64file> > <file>
Encode echo -n <string> | base64
Decode echo <base64string> | base64 -d
Encode certutil -encode <file> tmp.b64 && findstr /v /c:- tmp.b64 > <base64file>
Decode certutil -decode <base64file> <file>
Print x-lines Before match Print x-lines After match Ignore-case
Recursive
Run command every second
Trim whitespaces
Remove newlines
Split string by delimiter, extract field 2
Split file by colon
List user's crontab
Trace library calls of a given program.
Alternative
Use -m32
or -m64
to make the architecture explicit
Compile for old 32bit kernel (2.6.9)
Create archive
Extract archive
Extract
Tool for searching binary images for embedded files and executable code
Place scf file in windows share to gather hashes