Network
Scan for hosts
nmap -sn $iprange -oG - | grep Up | cut -d' ' -f2 > network.txtPort scanning
wget https://raw.githubusercontent.com/rowbot1/portscanner/main/portscanner.shAll TCP Ports:
nmap -Pn -sC -sV -oA all -vv -p- $ipUDP Top 100:
nmap -Pn -sU --top-ports 100 -oA udp -vv $ipUtilize nmap's scripts
Find script related to a service your interested in, example here is ftp
locate .nse | grep ftpWhat does a script do?
Uniscan
Good nmap command
unicornscan + nmap = onetwopunch
Vulnerability scanning
Search services vulnerabilities
DNS
fierce
Zone transfer request
SMB and SAMBA
SMB uses the following TCP and UDP ports:
Checklist
Scanning for the NetBIOS Service
Null Session Enumeration
Vulnerable versions:

Download all
smbclient
smbenum.sh
Samba version checker
smbver.sh
find SAMBA version number using the SMB OS discovery script:

Brute force login
RID
Null Session
Null session and extract information.
Version
Show all nmap SMB scripts
Eternal Blue
Vulnerable versions
NFS
Mysql
Nmap scan
Vuln scanning:
Enumerate MSSQL Servers on the network
Bruteforce MsSql
Gain shell using gathered credentials
Log in to a MsSql server:
SQLSMTP
Things to remember:
Bruteforces
Metasploit user enumeration
Testing for open relay
RPC (135)
Enumerate, shows if any NFS mount exposed:
FTP enumeration
Enumerate:
Bruteforce
Bruteforce with metasploit
Vuln scan
TFTP
SSH
User enumeration
Bruteforce
With list of users:
SSL
Open a connection
Basic SSL ciphers check
SNMP
Enumeration
v1
snmpwalk
POP3
Test authentication:
Finger
port 79
Find Logged in users on target.
Check User is existed or not.
Using Metasploit fo Brute-force target
RDP
Bruteforce
Kerberos
Redis
Shell
Upload SSH key
LDAP
Enumeration:
Email addresses enumeration
nmap has many vulnerability scanning NSE scripts in /usr/share/nmap/scripts/
Well known exploits
Shellshock
HeartBleed
Internet explorer 6
Tunneling your traffic through another host
Port forwarding
Local port forwarding
Remote port forwarding
Dynamic Port Forwarding
Pivoting
Double-pivoting
CVEs
Word Lists
Proxy
Last updated
