Python

Simple projects I have worked on:

Simple socket programming with Python

Create a TCP client:

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

Brute-force with threading:

import socket 

... PENDING COMPLETION

Last updated