[Full-disclosure] TCP/IP Stack Vulnerability

Diego Casati diego.casati at gmail.com
Mon Apr 18 00:25:49 BST 2005


Try this 
 root at ip_fix:~/vortex# gcc -DLINUX storm.c -lpcap -o storm 



On 4/17/05, H. S. <security at revolutionsp.com> wrote:
> Hey,
> 
> I am having two errors compiling this code. I want to test it on my LAN,
> as I have a windows box and several linux ones.
> 

> gcc -lpcap tcp-ack.c -o storm
> tcp-ack.c: In function `DeletePacket':
> tcp-ack.c:350: error: syntax error before "CurrentPacket"
> tcp-ack.c: In function `FindPacket':
> tcp-ack.c:366: error: invalid lvalue in assignment
> tcp-ack.c: In function `PCapHandler':
> tcp-ack.c:453: warning: initialization from incompatible pointer type
> 
> I'm trying to compile on a FreeBSD 5.2.1-RELEASE system.
> 
> line 350 reads:
>                        CurrentPacket->NextPacket
> CurrentPacket->NextPacket->NextPacket;
> 
> line 366 reads:
>            if (Source == Packet->Source && Destination
> =Packet->Destination && SourcePort == Packet->SourcePort &&
> DestinationPort == Packet->DestinationPort)
> 
> What could be the problem?
> 
> Kind Regards
> 
>



Full-Disclosure is hosted and sponsored by Secunia.