2020
09-28
09-28
python TCP包注入方式
我就废话不多说了,大家还是直接看代码吧!#!/usr/bin/envpythonimportsocketimportstructdefchecksum(data):s=0n=len(data)%2foriinrange(0,len(data)-n,2):s+=ord(data[i])+(ord(data[i+1])<<8)ifn:s+=ord(data[i+1])while(s>>16):s=(s&0xFFFF)+(s>>16)s=~s&0xffffreturnsclassip():def__init__(self,source,destination):self.version=4self.ihl=5#Inte...
继续阅读 >