Skip to content

Instantly share code, notes, and snippets.

Notes

Sockets

  1. User Space Sockets
  • Stream Sockets = TCP
  • Datagram Socket = UDP
  1. kernel Space Socket
  • Raw socket = Direct sent packet without protocol-specific formation.

Python

  • Python3 Libraries and References

Notes

Active

  • Interacting with network to gather information

Passive

  • Gathering information without directly interacting with there network

Internal

  • methods that you can use if you have access the network

External

  • methods that you deploy outside the target network.

Notes

File transfer protocols

Trivial File Transfer protocol

  • udp
  • port 69
  • no terminal communication
  • insecure
  • used for BOOTP & PXE

File Transfer Protocol

  • TCP

Notes

Fingerprinting

  • identification of a remote system

POF

  • a command line tool with will identify the type of system and browser.

Traffic Baselining

  • Snapshot of network traffic over a given amount of time.

Network data types

Notes

  • Blocking types of data within a network

Block-lists

  • White-list
    explicitly specify the "good" traffic
    Blocks the rest
  • Black-lists
    Explicity specify the "bad" traffic
    Rest allowed

Intrusion Systems

Notes

phase 1: Mission Definition

  • Define mission goals and targets
  • Define the Rules of engagement

phase 2: Recon

  • Gather publicy availble inforamtion.

Notes

  • Hyper-Text Transfer Protocol
    HTTP methods
    Response Codes
    HTTP Fields
wget -r -l2 -P /tmp ftp://ftpserver/
wget --save-cookies cookies.txt --keep-session-cookies --post-data 'user=1&password=2' https://website
wget --load-cookies cookies.txt -p https://website/interesting/article.php