Raw TCP/IP library for Windows 2000

Environment: Win2000/NT (Most functions), VC 6.0 (all samples comes with a complete source code)

This library enumarates the TCP/IP protocol, and allows the user to create custome TCP/IP headers, this allows IP spoofing and other kind of attacks.

This library also now used for a regular network communication (when you don't want to use MFC in your projects, this library is used within a commercial ATL product)

New features we have added to version 3, includes : sniffer, stealth TCP scanner, UDP scanner, major OOD redesign, better error control, better documentation.

The library has a root class : CSpoofBase, which hold every system services for the library starting with socket initialization and error control.

Two other major classes are : CSpoofSocket, which encapsulate socket2 API, modify some header options like: Source IP (good for spoofing), TTL, Service type.

and CAsyncSocket, which enable all system sockets to be used as a! ! sync sockets.

Blocked major classes are CTCPSocket,CUDPSocket and CICMPSocket which inherit from CSpoofSocket, and you can use them to send/receive UDP/TCP/ICMP packets.

There are also : CTCPSocketAsync,CUDPSocketAsync and CICMPSocketAsync which gives you the same socket support but in async mode.

Two helper classes are : CInterfaces (to help list our all available interfaces), and CSniffSocket (Which has sniffer abilities)

Samples that come with the library are: ping, traceroute, simple attacking demonstration, simple TCP server, simple UDP server, ipconfig, stealth TCP scanner (all comes will a full source code).


Download demo project - 671 Kb


  • Monitoring IP Message

    Posted by Legacy on 02/12/2004 12:00am

    Originally posted by: mohandoss

    How we can monitor our enitre packets moments from one end to another end. (java code is best to me)

  • Doubts in IP packets

    Posted by Legacy on 10/06/2003 12:00am

    Originally posted by: mamtha

    I want to access IP packets for my M.tech Project.
    What is the simple method using Linux programming?

    Thank U

  • Problems with spoofing

    Posted by Legacy on 12/18/2002 12:00am

    Originally posted by: r41nm4n

    I tryed to use "Attacker" project (included in the demo)that should be able to send raw packets with source ip spoofed, but it doesn't seem to work: that is, it sends packets but always with my real source ip. Then, if I try to check "IP options", system crashes immediately.
    My OS is win 2k pro sp3.
    Thanks for any advice.

  • Sniff and redirect http traffica to a proxy

    Posted by Legacy on 10/01/2002 12:00am

    Originally posted by: Alex

    I'can read incoming and outgoing packet, but it's possible redirect http traffics to another ip and port??


    Posted by Legacy on 05/08/2002 12:00am

    Originally posted by: Alan Mackay

    I'm trying to spoof a UDP packet (actually a DHCP request message) on my local lan. When I do the send call Windows 2000 dies almost instantly with a blue death screen indicating BAD POOL CALLER. My question is why is this happening and also is it possible to spoof DHCP leases ? I need to spoof DHCP leases as I want to simulate a number of IP devices through one NIC card on a single PC.

    Any advice appreciated :)

  • Spoofing under Win9x/ME

    Posted by Legacy on 10/25/2001 12:00am

    Originally posted by: Magnus

    Microsoft has not released full SOCK_RAW support under Win9x/ME, but they have released full raw sockets in 2000/XP.

  • How to setup socket in Promiscues (True Raw) mode

    Posted by Legacy on 09/10/2001 12:00am

    Originally posted by: Bankim Patel

    I have a problem in sniffer.
    It only shows the packets originated or destinated to my
    local host's IP address.

    Is there a way to setup the socket to capture all packets
    flowing on the LAN?

    I have changed the code in clientsocket.cpp file to
    bypass the check for local IP address, this shows all
    broadcast IP packets now. but it is not the full solution
    what i want.

    Any help is appreciated.


  • How i can make same function in windows 98?

    Posted by Legacy on 05/17/2001 12:00am

    Originally posted by: D,K,Kimm

    Greate Work!!
    But I want to get same function in windows 98!
    Above all, sniffer, i want to make sniffer in windows 98!
    please help me!

  • I got some problems in sniffer

    Posted by Legacy on 03/26/2001 12:00am

    Originally posted by: paul

    when I receive data,I can't get the source Ip address,It always display my own Ip

  • Great work! But...

    Posted by Legacy on 03/20/2001 12:00am

    Originally posted by: Polaris

    The code 'm_bInitialized = TRUE' in member function 'ShutDownSockets' of class CSpoofBase should be 'm_bInitialized = FALSE',isn't it?

    Would you modify the class CBinary with STL?

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Anthony Christie, the Chief Marketing Officer for Level Communications, is responsible for customer experience, worldwide marketing and product management. In this informative asset, he shares his insights into why a private network connection to cloud-bases applications is the right decision for your enterprise. Download now to find out more.

  • Moving from an on-premises environment to Office 365 does not remove the need to plan for disruptions or reduce the business risk requirements for protecting email services. If anything, some risks increase with a move to the cloud. Read how to ease the transition every business faces if considering or already migrating to cloud email. This white paper discusses: Setting expectations when migrating to Office 365 Understanding the implications of relying solely on Exchange Online security Necessary archiving …

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date