• Quick TCP Scan

nmap -sC -sV -vv -oN quick
  • Quick TCP Scan

nmap -sU -sV -vv -oN quick_udp
  • Full TCP Scan

nmap -sC -cV -p- -vv -oN full
  • Netcat Banner Grab

nc -v <port>
  • Telnet Banner Grab

telnet <port>


  • Nmap Vulnerability Scan

nmap -p 139,445 -vv --script=smb-vuln*
  • Nmap User and Share Scan

nmap -p 139,445 -vv --script=smb-enum-shares.nse,smb-enum-users.nse
  • Enum4linux

enum4linux -a
  • smbmap

smbmap -H
  • Null Connection Test

rpcclient -U ""
  • Connecting to a client

smbclient //MOUNT/share
  • Getting the version of Samba:

# Originally from: https://0xdf.gitlab.io/2018/12/02/pwk-notes-smb-enumeration-checklist-update1.html#enum4linux
#Author: rewardone
# Requires root or enough permissions to use tcpdump
# Will listen for the first 7 packets of a null login
# and grab the SMB Version
# Will sometimes not capture or will print multiple
# lines. May need to run a second time for success.
if [ -z $1 ]; then echo "Usage: ./smbver.sh RHOST {RPORT}" && exit; else rhost=$1; fi
if [ ! -z $2 ]; then rport=$2; else rport=139; fi
tcpdump -s0 -n -i tap0 src $rhost and port $rport -A -c 7 2>/dev/null | grep -i "samba\|s.a.m" | tr -d '.' | grep -oP 'UnixSamba.*[0-9a-z]' | tr -d '\n' & echo -n "$rhost: " &
echo "exit" | smbclient -L $rhost 1>/dev/null 2>/dev/null
sleep 0.5 && echo ""


  • snmp-check


Web Scanning

  • quick directory busting scan with gobuster

gobuster -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -u<port> -s 200,204,301,302,307,403,500 -e -k -t 50 -np -o gobuster_quick_scan.txt
  • targeting specific extensions with gobuster

gobuster -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -u<port> -s 200,204,301,302,307,403,500 -e -k -t 50 -np -o gobuster_quick_scan.txt -x .txt,.php
  • Nikto

nikto -h<port>
  • WordPress Scan

wpscan -u port

Oracle Databases

  • Oscanner

oscanner -s -p 1521

Last updated