__init__.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:RSPET 作者: panagiks 项目源码 文件源码
def __init__(self, source, destination, payload='', proto=socket.IPPROTO_TCP):
        self.version = 4
        self.ihl = 5 # Internet Header Length
        self.tos = 0 # Type of Service
        self.tl = 20+len(payload)
        self.id = 0#random.randint(0, 65535)
        self.flags = 0 # Don't fragment
        self.offset = 0
        self.ttl = 255
        self.protocol = proto
        self.checksum = 2 # will be filled by kernel
        self.source = socket.inet_aton(source)
        self.destination = socket.inet_aton(destination)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号