🍩
HackBook.io
  • Pentesting Pocket Book for hackers and developers.
  • Reconnaissance
    • Internal Recon Basics
    • OSINT
      • Infrastructure
      • Recon-ng
      • Users
      • Google Dorks
    • Active Scanning
      • NMAP
        • NSE
          • reconnoitre
        • NMap Evasion
      • NC Scan
      • Finger Printing
    • Web Server OSINT
      • WhatWeb
      • Subdomains
      • Directory & File Enumeration
        • Enumeration
          • GoCutty
          • gobuster
          • Dirb
          • nikto
        • Fuzzing
        • Crawling
  • Web Application Hacking
    • Web 101
      • Clients
      • Servers
      • Encodings
    • Web Hacking Techniques
      • SOP
      • Open Redirect
      • File & Resource Attacks
        • Directory Traversal
          • Dir Traversal Fuzzer
        • LFI
        • RFI
        • Unrestricted File Uploads
      • XSS
        • DOM
        • Stored
        • Reflected
        • Blind
        • Self XSS
      • XXE
        • XXE Payloads
      • XPath
      • SSRF
      • CSRF
      • SQLi
        • SQL Basics
        • Securing SQL
        • Hacking SQL
          • sqlmap
          • In-Band
          • Error Based
          • Blind
      • Authorization
      • Session Hijacking
      • Command Injection
      • Insecure Deserialization
      • File Uploads
        • File Upload Mitigations
      • HPP
      • Click Jacking
        • Adobe SWF Investigator
      • HTTP Response Splitting
      • Flash 101
        • Flash Hacking
      • HTML5
        • WebSockets
        • CORS
          • iframe
          • Headers
    • Web Hacking Procedures
      • Captcha
      • Username Generation
      • Username Enumeration
      • Inhouse WebApps
      • SSL Cert Generation
      • CMS
        • WordPress
        • Joomla
      • Popular Exploits
        • Bludit CMS
        • ShellShock
        • WebDav
  • Weaponization
    • Buffer Overflows (BOF)
      • DSBOFG
        • Scripts
  • Initial Access
    • 😈Services
      • Finger
      • SNMP
      • LDAP
      • SMTP
      • NFS
      • RPC
        • RPCBind
      • RDP
      • SQL
        • NoSQL
      • POP3
      • Samba
      • SMB
      • SSH
      • Telnet
      • NetBios
      • VOIP/SIP
      • DNS
        • DNS Lookups
        • Zone Transfer
        • SubDomain Enums
        • dnsdumpster
    • 😈Shells
      • Powercat
      • Odd Shells
      • Troubleshoot
      • TTY/PTTY
  • Persistence
    • File Transfers
      • Py->Exe->Txt
      • Cross compile example
    • Backdoors
  • Privilege Escalation
    • Universal Escalation
    • Windows Escalation
      • Automated
      • Popular Exploits
        • ActiveXObject to Wscript RCE
        • Macros
        • Object Linking
    • Linux Escalation
      • Automated
    • Passwords
      • John
      • Medusa
      • Cewl
      • ncrack
      • Crunch
      • Hydra
      • MITM
      • Responder
        • SAM
          • pwdump and fgdump
          • Pass-the-hash
      • Crack the hash
      • NTLM
  • Network Discovery
    • Network Traffic
      • tcpdump
    • Internal Discovery
  • Collection and Staging
    • Collection
      • File types
  • Hacking Objectives
    • Non Kinetic War (Quick Guide)
  • Procedures
    • Bash Guide
    • Active Directory
    • Crypto 101
    • Forensics
  • Glossary
  • Hacking Frameworks
    • Metasploit
      • msfvenom
    • Dsnif
  • ThreatModeling
    • Threat Modeling Overview
  • Certifications
    • VMDR
      • Qualys Asset Management
      • Qualys Vulnerability Management
      • Qualys Threat Prioritization
      • Qualys Response (Patch Deployment)
    • OSCP Cheat Sheet
  • RF - Radio Frequency
    • Ham Technician
Powered by GitBook
On this page
  • Live Host Scanning
  • ARP Discovery Scan
  • Classic Ping Sweep Scripts
  • Then start looking for low hanging fruit:

Was this helpful?

  1. Reconnaissance

Active Scanning

Live Host Scanning

Commonly done with ICMP sweeps (typically disallowed by firewalls and secure and windows 10+). We listen for echo replies and know the host is alive if it responds(fping, hping, nmap, nc):

  • fping -a -g //-a alive scan, -g generate list

  • nmap -sn //-sn "ping sweep" but its actually an arp sweep

  • nmap -sn --disable-arp-ping //makes it a real ping sweep

ARP Discovery Scan

ARP Discovery scan for live hosts. Just finds the hosts, not a port scan! netdiscover: netdiscover -i tap0 -r 10.10.10.0/24 or netdiscover -i tap0 -S -L -f -r 10.10.10.0/24 arp-scan: arp-scan -I tap0 10.10.10.0/24

hping: This tool lets us craft our packets to run the scans we want without extra noise. hping3 -S <ip> -p 80 -c 2 -p No port will default to port 0, not all ports. -S sets a syn only flag and will syn scan the port/ip. What we should see here is 2 syn packets being sent and, if live, we will see a syn-ack and a rst flag being set as the target responds to say the port is open then closes our stateful connection. -c says to only send 2 syn attempts The first is a rst-ack (closed). The second is a syn-ack (open)

Classic Ping Sweep Scripts

#!/bin/bash
for ip in $(seq 0 254); do
ping -c 1 192.168.31.$ip | grep "bytes from" |cut -d " " -f4 |cut -d ":" -f1 &
done
for i {1..254} do ping -c 1 10.0.1.$i | fgrep ttl & done 2>/dev/null | sed -e 's/^.*from //' -e 's/:.*$//' | sort -n -t. -k4
for /l %i in (1,1,254) do @ping -n 1 -w 100 10.185.11.%i

Then start looking for low hanging fruit:

  • Misconfigured servers

  • Missing or bad ACLs

  • Default or weak pass

  • Open shares or null sessions allowed

  • Broadcast requests

  • Vulnerable to public exploits

PreviousGoogle DorksNextNMAP

Last updated 2 years ago

Was this helpful?

Once you have your hosts. Do some port scans against them with and . Then hop on over to to start exploiting them with your Recon.

NMAP
NSE
Services
Page cover image