Raw sockets and sendto in python

后端 未结 6 2059
余生分开走
余生分开走 2021-02-05 16:51

I am working on integrating scapy with twisted, but I ran into this very weird bug on OSX that I can\'t seem to figure out.

Basically I am unable to send a valid TCP pac

6条回答
  •  甜味超标
    2021-02-05 17:32

    Another related issue. Python impacket module has ping.py script to ping hosts. On Mac OS X Lion I got an error while using this script:

    Traceback (most recent call last):
      File "/private/var/www/env/bin/ping.py", line 73, in 
        s.sendto(ip.get_packet(), (dst, 0))
    socket.error: [Errno 22] Invalid argument
    

    But on Ubuntu everything works fine and I am getting replies from hosts.

提交回复
热议问题