eJPT notes

Routing

ip route add ROUTETO via ROUTEFROM

Enumeration

whois

whois site.com

Ping sweep

fping -a -g 10.10.10.0/24 2>/dev/null nmap -sn 10.10.10.0/24

Nmap

# OS Detection, no ping
nmap -Pn -O 10.10.10.10

# def scripts, version check
nmap -sC -sV 10.10.10.10

# above + All ports
nmap -sC -sV -p- 10.10.10.10

# UDP version check
nmap -sU -sV 10.10.10.10

SMB/SAMBA

nbtscan

net view

net use

enum

nmblookup

smbclient

Web Pentesting

OpenSSL for HTTPS services

Httprint

httprint -P0 -h 10.10.10.10 -s /path/to/signaturefile.txt

HTTP Verbs

GET, POST, HEAD, PUT, DELETE, OPTIONS

PUT shells

Directory and File Scanning

Google-fu

SQLMap

Exploitation

Unshadow

This prepares a file for use with John the Ripper unshadow passwd shadow > unshadow

John The Ripper

john -wordlist /path/to/wordlist -users=users.txt hashfile

Hydra

SMB / SAMBA

ARP spoofing (Dsniff)

Metasploit

Meterpreter

Meterpreter - persistence backdoor

Last updated

Was this helpful?