Raw sockets and sendto in python

后端 未结 6 1914
余生分开走
余生分开走 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:42

    I ended up deciding that Raw Sockets are just to bugged to be usable. Especially since this software needs to be cross platform, quirks for OSX may not be applicable to other OSs.

    For the time being I simply wrapped the "sockets" that are provided by scapy. In the future I will write something that only depends on libdnet (as that is what scapy does to write raw frames).

    You can find this implemented here:

    https://github.com/hellais/txscapy

提交回复
热议问题