đ One-Liners
Quick fast and speedy
Linux
Command | Purpose |
| Create an environment var, then export var to be available to other programs |
| adds a folder to PATH while retaining it |
| Takes |
| Using the |
| Count lines/bytes/words in a file or from |
| Print characters 1 and 4 (not zero indexed) from |
| print the 2nd to last column |
| print the length of each line and the contents |
| Takes the lines from a file/ |
| read in lines from |
| Password spraying using a |
| Loops from 1 to 5 and echos for each value of |
| Creates a list of all values from |
| Create a temporary directory (i.e. |
| bash will return the amount of characters in the |
| Replace |
| Delete a line of text for all files in a directory |
| Print the hex of |
| Interpret raw hex from |
| Takes hex input, removes newlines, and places into a file |
| Find all files owned by |
| Find any file which begins with |
| grep with regex to match any valid IP address (yes it's ugly) |
| Send parameters with |
| convert an epoch timestamp to |
| Create netcat backdoor without |
| Creates a |
| Prints all IPs in a specific subnet |
| assign an IP from terminal |
| change MAC for interface |
| request DHCP address |
| make a bit-by-bit copy of a file or system |
| create a symbolic link for python to run python3 |
| mount/unmount a filesystem |
` | Add another default route with a higher metric to choose a different interface to access the Internet |
| Request a new DHCP lease on interface |
encrypt a file with a password at the commandline | |
decrypt a file using a password at the commandline |
Windows
Command | Purpose |
| See all files in current dir |
| search through all files in C:\ for the string |
| Counting loop for ping sweep |
| Downloads a file to the |
| download a ps1 file and execute it in MEMORY only |
| Hash a file |
| Encode a file as hex |
| Encode and decode a file as base64 |
| Dirty looping command to gather a list of users and passwords to bruteforce a server on SMB |
| Sends the file to a server, catch the file on the other end |
| Download a file from another machine |
| Powershell - monitors the clipboard and prints to the screen as items are placed on it (passwords!!) |
| Use built-in |
Last updated