Good day. I wrote my sniffer, working in "promiscuous" mode (Promiscuous mode), from which I wanted to make an HTTP protocol analyzer, but the problem is that it only displays packets received via UDP. I cannot find errors in my code. I tried to download the finished sniffer - the problem is the same. What could be the reason and how to make the program display information about any HTTP request?

  • one
    Does HTTP request go to your machine? Maybe you can see not all UDP, but only broadcast? Nowadays, there are no more stupid hubs through which all traffic passed. All existing switches are smart enough to send only those packets to a specific port that are intended for them and promiscous on your network card, of course, they are absolutely not interested in - Mike
  • With what you wrote sniffer? And for what? - Alex78191
  • I ran a sniffer on a normal OS, and on my own virtual server with a raised HTTP. Moreover, I tried to launch sites on it not only through the browser, but also through utilities such as putty and netcat. Nothing changes, as before, only UDP requests pass. - Mahins
  • Sniffer wrote in C ++ as part of a term paper. To be precise, my goal is to develop the NTTT protocol analyzer on the basis of a sniffer, and then use it to programmatically compile various statistics. - Mahins

0