yacine204/snffff ? reverse-engineered prompt

Reverse engineered prompt

Build me a tiny Go command line tool that acts like a minimal packet sniffer on Unix. I want it to listen on a raw AF_PACKET socket, capture Ethernet frames, and print out the packet details in a simple readable way in the terminal.

It should parse the Ethernet header and the IPv4 header from the packet bytes, then show fields like version, IHL, TOS, total length, identification, flags, fragment offset, TTL, protocol, checksum, source and destination addresses, plus the MAC addresses and EtherType. If it helps, format the output like a network debug dump, with hex values and a small data preview.

Keep it lightweight and focused, no fancy UI, just the basic sniffer behavior. It should work from the command line on Unix and be ready to run with root permissions. If you need to check current Go or Unix socket details, look up the latest docs online first.

Are you gonna build this?

make sure you review the code using arcumet

Try freeSponsored — opens Arcumet in a new tab