|
-
July 25th, 2005, 04:40 PM
#1
Junior Member
Raw sockets in Python
I would like to create a raw TCP packet.
The socket is created like this:
socket = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_TCP)
But then? I can't seem to figure out how to send my packet to a host.
When I use IPPROTO_RAW I can send the packet with socket.sendto(...), but I don't want to create the whole IP-header. Its an option which I wouldn't want to use.
Does anyone know of a tutorial on this subject (not in C).
Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|