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 ?
WinSock2 RAW socket : what's wrong with my code ?
answer :
http://tangentsoft.net/wskfaq/advanced.html#pktheader
End of story
http://tangentsoft.net/wskfaq/advanced.html#pktheader
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.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
End of story
- Registered PB user -
Using PB 4.00
Using PB 4.00
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...)
actually, win98, nt, 2k and xp all offer different levels of raw socket support
for all practical purposes: nothing
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...)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )

