📝
Basic Penetration Testing
  • About Knowledge
  • Server Enumeration
    • Scanning
    • Common Services
      • FTP - 21
      • SMTP - 25
      • SMB - 139, 445
  • Web Application
    • Enumeration
    • Exploitation
    • Execute Commands
    • Databases
      • MySQL
      • SQLite
      • MSSQL
      • PostgreSQL
  • Remote Code Execution
  • File Transfer
    • HTTP Server
    • SMB Protocol
    • FTP Server on Kali Linux
  • Hash Cracking
  • Privilege Escalation
    • Windows Privilege Escalation
    • Linux Privilege Escalation
  • Buffer Overflow
  • About LeeCyberSec
Powered by GitBook
On this page
  • Automation Scan
  • All Port Scan
  • Service Scan
  • Script Scan

Was this helpful?

  1. Server Enumeration

Scanning

PreviousServer EnumerationNextCommon Services

Last updated 4 years ago

Was this helpful?

Automation Scan

All Port Scan

TCP

nmap -p- -T3 $ip -o all_tcp.nmap

Scan

sudo nmap -sU -p- $ip -o all_udp.nmap

Create ports

ports=$(cat all_tcp.nmap | grep ^[0-9] | cut -d '/' -f1 | tr '\n' ',' | sed s/,$//); echo $ports

Service Scan

nmap -sC -sV -p$ports $ip

Script Scan

nmap --script smb-vul* -p 139,445 $ip
nmap -p 1433 --script ms-sql-brute --script-args userdb=customuser.txt,passdb=custompass.txt <host>
AutoRecon
onetwopunch