我这里内网病毒很厉害,是不是因为震荡波什么的? 我在防火墙上做了设置,不过好象不管用,因为字节和包都是0,好象没拦截到
我是这样设置的:
ip-firewall-filter rules
+ general
Src.address空 not 0.0.0.0/0
src port 空 not 勾 134-139
in.interface 空 not all
dst. address 空 not 0.0.0.0/0
dstport 空 not 勾 134-139
out.interface 空 not all
protocol 空 not tcp
icmp(选不了)
tcp options any
connectionstateany
action
actiondrop
import zlib
def compress(infile, dst, level=9):
infile = open(infile, 'rb')
dst = open(dst, 'wb')
compress = zlib.compressobj(level)
data = infile.read(1024)
while data:
dst.write(compress.compress(data))
data = infile.read(1024)
dst.write(compress.flush())
def decompress(infile, dst):
infile = open(infile, 'rb')
dst = open(dst, 'wb')
decompress = zlib.decompressobj()
data = infile.read(1024)
while data:
dst.write(decompress.decompress(data))
data = infile.read(1024)
dst.write(decompress.flush())
decompress("noname", "fafsfsd")
页:
[1]