samridh3215 / Gosniff

My first project written in GO, that aims to sniff packets from selected interface and display it on a webpage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GOSniff

  • This project sniffs all packets on selected interface and displays the packets information such as source and destination addresses
  • It also shows application payload in bytes (not on webpage, but on terminal)
  • Uses gopacket package to read packets and their data
  • Uses websocket connection to provide live feed to webpage

Setup

  • Run go build main.go sniff.go packet.go live.go, this will create a binary 'main'
  • Start serving the html file on any port you desire
  • Run sudo ./main this will start the server on port 8080, then select the interface you want to sniff from
  • The webpage will show all the packets

About

My first project written in GO, that aims to sniff packets from selected interface and display it on a webpage


Languages

Language:Go 55.1%Language:HTML 44.9%