|
发表于 2004-6-11 13:44:29
|
显示全部楼层
内网总是断,但断几秒又可以联上了,那位大侠知道是什么原因造成的吗?
我这里内网病毒很厉害,是不是因为震荡波什么的? 我在防火墙上做了设置,不过好象不管用,因为字节和包都是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
dst port 空 not 勾 134-139
out.interface 空 not all
protocol 空 not tcp
icmp (选不了)
tcp options any
connection state any
action
action drop
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") |
|