Skip to content

Latest commit

Β 

History

History
21 lines (14 loc) Β· 545 Bytes

File metadata and controls

21 lines (14 loc) Β· 545 Bytes

πŸ”Œ sockets.c

A tiny C program that talks directly to Google's servers via raw sockets to fetch HTTP headers like a real hacker. πŸ§‘β€πŸ’»

🧠 What it does

This little beast:

  • Opens a TCP socket 🧡
  • Connects to www.google.com via IP πŸ“‘
  • Sends a HEAD / HTTP request πŸ“
  • Prints the raw HTTP headers returned by the server πŸ“¬

βš™οΈ Compile & Run

gcc sockets.c -o sockets
./sockets

Let me know if you'd like a version with syntax-highlighted C code snippet, badges, or a longer description!