🍩
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
  • Net User
  • IPTables

Was this helpful?

  1. Network Discovery

Internal Discovery

Net User

C:>net user

Administrator eLS Guest HelpAssistant jessica kirk mrjohn netadmin SUPPORT_388945a0

C:>Net Accounts Force user logoff how long after time expires?: Never Minimum password age (days): 3 Maximum password age (days): 32 Minimum password length: 4 Length of password history maintained: None Lockout threshold: 3 Lockout duration (minutes): 11 Lockout observation window (minutes): 8 Computer role: WORKSTATION The command completed successfully.

IPTables

#iptables -vn -L //verbose, numeric output, list the tables #iptables -A OUTPUT -d 10.10.10.14 -j DROP //Append to output table, the outbound traffic towards 10.10.10.14 should be dropped

Set up an iptable link to track bytes from a scan.

iptables -I INPUT 1 -s <ip> -j ACCEPT

iptables -I OUTPUT 1 -d <ip> -j ACCEPT

iptables -Z

Then Scan

nmap -sT <ip> syn scan for top 1000 ports makes 72KB of traffic

Then check the bytes size #iptables -vn -L We can clear the logging for another scan

iptables -Z //zero packet counter

We then do a full range port scan

nmap -sT -p 1-65535 <ip> scan makes 4.5MB of traffic but may produce more ports also

//So a full port scan of a /24 network will result in 1000MB of traffic

//launch the script then launch something like an nmap scan to see how much traffic it generated #! /bin/bash

//reset all counters and iptable rules

iptables -Z && iptables -F

//measure incoming traffic to ip

iptables -I INPUT 1 -S -j ACCEPT

//measure outgoing traffic to ip

iptables -I OUTPUT 1 -d -j ACCEPT

//chmod 755 it //

PrevioustcpdumpNextCollection

Last updated 2 years ago

Was this helpful?

Page cover image