Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Article Writing
  4. Network Sniffer Code

Network Sniffer Code

Scheduled Pinned Locked Moved Article Writing
sysadmintutorialworkspace
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    It would be very useful to see some code for how to put an Ethernet card into promiscusous mode in a Windows environment since M$ figures if you don't buy a Server OS, you don't need to see your local packet traffic. I know this is possible, I just don't have even an idea of how it is accomplished.

    L T 2 Replies Last reply
    0
    • L Lost User

      It would be very useful to see some code for how to put an Ethernet card into promiscusous mode in a Windows environment since M$ figures if you don't buy a Server OS, you don't need to see your local packet traffic. I know this is possible, I just don't have even an idea of how it is accomplished.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You want WinPcap - see the offical website: http://netgroup-serv.polito.it/winpcap/ From the website: "WinPcap is an architecture for packet capture and network analysis for the Win32 platforms. It includes a kernel-level packet filter, a low-level dynamic link library (packet.dll), and a high-level and system-independent library (wpcap.dll, based on libpcap version 0.5). The packet filter is a device driver that adds to Windows 95, Windows 98, Windows ME, Windows NT and Windows 2000 the ability to capture and send raw data from a network card, with the possibility to filter and store in a buffer the captured packets. Packet.dll is an API that can be used to access directly the functions of the packet driver, offering a programming interface independent from the Microsoft OS. Wpcap.dll exports a set of high level capture primitives that are compatible with libpcap, the famous UNIX capture library. These functions allow to capture packets in a way independent from the underlying network hardware and operating system. WinPcap is released under a BSD-style licence."

      1 Reply Last reply
      0
      • L Lost User

        It would be very useful to see some code for how to put an Ethernet card into promiscusous mode in a Windows environment since M$ figures if you don't buy a Server OS, you don't need to see your local packet traffic. I know this is possible, I just don't have even an idea of how it is accomplished.

        T Offline
        T Offline
        TomKat
        wrote on last edited by
        #3

        i`ve just posted the ultimate winsock sniffer ! that`s all you ever wanted ! //rate me or hate me I am the mighty keeper of the book on knowledge . Contact me to get your copy .

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups