IP作弊器

需求

Wang SH. <[email protected]>
reply-to        [email protected]
to      [email protected]
date    Thu, Dec 25, 2008 at 11:04
subject [CPyUG:74764] 请问投票网站如何IP作弊

最近有个朋友需要网络投票来拉选票。 网站的限制就是IP。如果一个IP已经投过了,则就会不能进行二次投票,而且是永久不能。

我找到了两个办法:

  • 1.使用ADSL断线点方法。这种有效果,但是操作起来太慢,而且比较消耗人力和时间。
  • 2.使用在线代理或者代理服务器的方法。这种也是行的通,但是,很多代理服务器都是链接不上,而且更费人力。

因此,特地来此向诸位请教。看有没有好的点子和方法。能进行IP 欺骗。

代码

王鑫-WangXin <[email protected]>
reply-to        [email protected]
to      [email protected]
date    Thu, Dec 25, 2008 at 11:35
subject [CPyUG:74772] 答复: [CPyUG:74768] Re: 请问投票网站如何IP作弊

   1 def delcoolie(url,CookiesPath):
   2     l =glob.glob(CookiesPath+"\*@"+re.findall("\w*",url,0)[6]+"*.txt")
   3     if len(l)!=0:
   4         for j in l: os.remove(j)
   5 
   6 def DoJob():
   7     os.system("rasdial lns /DISCONNECT")
   8     os.system("rasdial lns thudme PassWord")
   9     os.system("CLS")
  10     fl = open("WangZhi.txt","r")
  11 
  12     import _winreg
  13     key = _winreg.OpenKey(_winreg.HKEY_CURRENT_USER,"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders",0,_winreg.KEY_READ)
  14     CookiesPath = str(_winreg.QueryValueEx(key,"Cookies")[0])
  15     _winreg.CloseKey(key)
  16 
  17 #-----------------------

调用方式:

For……:
    delcoolie(line,CookiesPath)
    Dojob()
    time.sleep(random.randint(0,2)*0.1)

X-Forwarded-For 头伪装

DIrk <[email protected]>
reply-to        [email protected]
to      python-cn`CPyUG`华蟒用户组 <[email protected]>
date    Thu, Dec 25, 2008 at 13:46
subject [CPyUG:74813] Re: 请问投票网站如何IP作弊

如果服务器不限制来自同一个代理IP地址的多个本地地址提交,可以试试直接修改 X-Forwarded-For 头信息,相当于将本地机器模拟成代理

服务器:

# 一个随机轮换的agent清单,以防有些网站检查agent重复
u_agents = ['Mozilla/4.0 (compatible; MSIE 4.01; Windows CE;
Smartphone; 240x320; Dopod586W)',
       'Mozilla/4.0 (compatible; MSIE 5.0; Series90/1.1 Nokia7710/
c4.58.0 Profile/MIDP-2.0 Configuration/CLDC-1.0)',
       'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET
CLR 2.0.50727)',
       'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
1.1.4322; .NET CLR 2.0.50727)',
       'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0;
Maxthon; .NET CLR 1.1.4322)',
       'Mozilla/5.0 (Windows; U; Windows NT 5.0; zh-CN; rv:1.8.1.9)
Gecko/20071025 Firefox/2.0.0.9',
       'Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.8.1.11)
Gecko/20071127 Firefox/2.0.0.11',
       'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET
CLR 2.0.50727)',
       'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; zh-cn)
Opera 8.54',
       'Mozilla/5.0 (compatible; Konqueror/3.0-rc3; i686 Linux;
20021113)',
       'Opera/9.24 (Windows NT 5.2; U; zh-cn)',
       'Mozilla/4.0 (compatible; MSIE 6.0; Symbian OS; Nokia
N70/5.0635.2.5.3; 9404) Opera 8.65 [zh-CN]']
u_agent  = random.choice(u_agents)

# 随机生成一个假冒IP
myipaddr = '%s.%s.%s.%s' % (random.randint(1, 254), random.randint(1,
254), random.randint(1, 254), random.randint(1, 254))

# Cookie支持
cj = cookielib.CookieJar()
cj.clear()
cj.clear_session_cookies()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
opener.addheaders = [('Referer', 'http://referer.abc.com/'),
                ('User-agent', u_agent),
                ('Accept', 'image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword, application/x-shockwave-flash, */*'),
                ('Accept-Language', 'zh-cn'),
                ('Accept-Charset', 'utf-8'),
                ('Via', '1.1 pc0.zz.ha.cn:3128 (squid/2.5.STABLE7)'),
                ('Cache-Control', 'max-age=259200'),
                ('X-Forwarded-For', myipaddr)]


反馈

创建 by -- ZoomQuiet [2008-12-25 03:46:38]

Name Password4deL ;) :( X-( B-)

PageCommentData