πŸ”—
Networking concepts
search
⌘Ctrlk
πŸ”—
Networking concepts
  • Introduction
  • globe-pointerDNS
    • Introduction
    • DNS query
    • Reverse DNS
  • rectangle-terminalSSH
    • Introduction
    • Basics
    • SSH tunneling
    • SSH public key authentication
    • Port forwarding with virtual interface
    • sshd
    • scp
  • πŸ”«Networking tools
    • sliders-upconfiguration & information
    • monitor-waveformmonitoring & troubleshooting
    • globedomain information
    • magnifying-glass-chartcapture & analysis
    • block-brick-firefirewall & security
    • rectangle-codeservices
    • toolboxmiscellaneous
    • archwayproxy & tunneling
    • binaryProgramming/scripting
      • Python
      • C
  • 🀩Interesting concepts
    • Simple tips & tricks
    • Network hole punching
    • SSH Over HTTPS
    • TUN & TAP interfaces
    • Network bridge
  • serverNetwork ports & services cheat sheet
    • 20/21/tcp ~ ftp
    • 22/tcp ~ ssh
    • 23/tcp ~ telnet
    • 53/udp ~ dns
    • 80/443/tcp ~ http(s)
    • 3389/tcp ~ rdp
    • ...
  • briefcaseFor-fun projects
    • Raspberry pi + Windows machine experiments
gitbookPowered by GitBook
block-quoteOn this pagechevron-down
  1. πŸ”«Networking toolschevron-right
  2. binaryProgramming/scripting

Python

hashtag
Simple projects I have worked on:

LogoGitHub - Jarrettgohxz/network-offensive-security-experimentations: Repository to store my projects and experimentation for network offensive securityGitHubchevron-right

hashtag
Simple socket programming with Python

Create a TCP client:

Brute-force with threading:

LogoAn Intro to Threading in Python – Real Pythonrealpythonchevron-right
PreviousProgramming/scriptingchevron-leftNextCchevron-right

Last updated 1 year ago

  • Simple projects I have worked on:
  • Simple socket programming with Python
import socket

HOST=<HOST>
PORT=<PORT>

with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
    s.connect((HOST, PORT)) # connect to a socket at HOST:PORT
    s.sendall(b"Hello friend") # send data to the socket
    data = s.recv(1024) # receive data from the socket
import socket 

... PENDING COMPLETION