Linux Basics

Useful Find command reference

When capturing flags use the following for searching of specific files:

find / -type f -iname "file.txt" 2>/dev/null 

Base64 Encode & Decode

# Encode File
cat <file> |base64 -w 0;echo

# Decode File
echo -n <file> |base64 -d 

wget

wget <url> -O file.sh

curl

curl <url> -o file.sh

Fileless Downloads

curl <url> -o file.sh |bash 

SSH

scp <user>@<ip>:/<file> . 

Practical example using multiple options to filter the search:

find / -type f -name *.conf -user root -size +20k -newermt 2020-03-03 -exec ls -al {} \; 2>/dev/null

Last updated