Page 2 of 2

Posted: Sat Dec 27, 2003 12:46 am
by newbie
I done it in C++ (simple win32 console application) and i have the same error at the same API call "sendto".

What does this mean ? 2 languages, same error ?

A friend has suggested to me that it could mean that i badly build the packet, what do you think about it ?

Posted: Tue Dec 30, 2003 6:43 pm
by newbie
answer :

http://tangentsoft.net/wskfaq/advanced.html#pktheader
4.3 - How can I change the IP or TCP header of a packet?

Windows 2000 can do this with raw sockets; no other Microsoft stack can do this
you can do a raw ICMP packet, but you can't modify the IP or TCP header other than a few field like TTL for instance.

End of story :cry:

Posted: Tue Dec 30, 2003 8:15 pm
by blueznl
euh, there's more to it than that...

actually, win98, nt, 2k and xp all offer different levels of raw socket support

for all practical purposes: nothing :-) under win98 and nt
2k does some limited stuff

it is, however, possible to do it under xp, HOWEVER 1. not completely, and 2. not all XP's are created equal

go for linux, there it'll work (thanks heaven, imagine that raw sockets would be easy under xp, even more script kiddies would flood the world with reflected dos attacks... brrr...)