Build spoofed IP packets

B

billie

Hi all. I'd need to build spoofed IP packets. Do you know something about a
python implementation?
For low level packet building I already used Impacket module but if I
specify a spoofed src address during IP packet creation, module returns an
error.
Suggestions?

Regards.
 
S

Sybren Stuvel

billie enlightened us with:
For low level packet building I already used Impacket module but if
I specify a spoofed src address during IP packet creation, module
returns an error. Suggestions?

Yes, give us the error. And know that you can't build raw IP packets
unless you're root.

Sybren
 
B

billie

Yes, give us the error. And know that you can't build raw IP packets
unless you're root.

Sybren

Sorry. I forgot to paste the error:

Traceback (most recent call last):
File "C:\test\client.py", line 156, in ?
send_pkt()
File "C:\test\client.py", line 96, in send_pkt
s.sendto(ip.get_packet(), (dst, 0)) # send packet to server
socket.error: (10004, 'Interrupted system call')

Note: this only happens on Windows XP prof SP2. On Linux I got no problems.
I run the program as Administrator.
 
E

Eric Nieuwland

billie said:
Traceback (most recent call last):
File "C:\test\client.py", line 156, in ?
send_pkt()
File "C:\test\client.py", line 96, in send_pkt
s.sendto(ip.get_packet(), (dst, 0)) # send packet to server
socket.error: (10004, 'Interrupted system call')

Note: this only happens on Windows XP prof SP2. On Linux I got no
problems.
I run the program as Administrator.

It's SP2. Microsoft decided allowing raw socket access is a security
threat and disabled it in SP2.

--eric
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top