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).

Downloads

Download demo project - 671 Kb


Comments

  • 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)

    Reply
  • 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

    Reply
  • 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.

    Reply
  • 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??

    Reply
  • BAD POOL CALLER

    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 :)

    Reply
  • 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.

    Reply
  • 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.
    Thanks.

    Bankim

    Reply
  • 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!

    Reply
  • 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

    Reply
  • 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?

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

Top White Papers and Webcasts

  • Live Event Date: October 29, 2014 @ 11:00 a.m. ET / 8:00 a.m. PT Are you interested in building a cognitive application using the power of IBM Watson? Need a platform that provides speed and ease for rapidly deploying this application? Join Chris Madison, Watson Solution Architect, as he walks through the process of building a Watson powered application on IBM Bluemix. Chris will talk about the new Watson Services just released on IBM bluemix, but more importantly he will do a step by step cognitive …

  • QA teams don't have time to test everything yet they can't afford to ship buggy code. Learn how Coverity can help organizations shrink their testing cycles and reduce regression risk by focusing their manual and automated testing based on the impact of change.

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds