如何利用python盗qq_一个团队为了让我帮他提高流量,竟然盗我QQ,没办法,我只好帮他用python刷了刷流量!…[通俗易懂]

如何利用python盗qq_一个团队为了让我帮他提高流量,竟然盗我QQ,没办法,我只好帮他用python刷了刷流量!…[通俗易懂][Python]纯文本查看复制代码importthreading#导入多线程库importrequests#导入requests库模拟访问importtime#导入时间库fromlxmlimportetreedefpnw(num=1):#定义一个循环的函数while0

大家好,又见面了,我是你们的朋友全栈君。

[Python] 纯文本查看 复制代码import threading #导入多线程库

import requests #导入requests库模拟访问

import time #导入时间库

from lxml import etree

def pnw(num=1): #定义一个循环的函数

while 0 < int(num): # 当0

# 设置请求头

headers = {‘User-Agent’: “Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.163 Safari/535.1”}

# 依次遍历生成2-99

for i in range(2, 100):

url = “https://www.kuaidaili.com/free/inha/” + str(i) + “/” # 爬取的免费ip

response = requests.get(url, headers=headers).text # 获得网页文本数据

response_xpath = etree.HTML(response) # 转换为xpath可用结构

ips = response_xpath.xpath(‘//*[@id=”list”]/table/tbody/tr/td[1]/text()’) # ip的信息

dks = response_xpath.xpath(‘//*[@id=”list”]/table/tbody/tr/td[2]/text()’) # 端口的信息

https = response_xpath.xpath(‘//*[@id=”list”]/table/tbody/tr[2]/td[4]/text()’) # http信息

for ip, dk, http in zip(ips, dks, https):

proxy = “http://” + ip + “:” + dk # 拼接ip

print(proxy)

proxies = {“http”: proxy}

url = “http://url.cn/5z0Sqsw” #发给我的注册链接

res = requests.get(url,proxies=proxies) #用requests的get()函数来访问 设置ip

print(res) #打印查看状态 Response [200]代表成功

url = “https://asd8654.com/api_fusion/Notice/getMarqueeNotice” #随便找了个post网址,没找到注册的post

res = requests.post(url,proxies=proxies) #用requests的post()函数访问 设置ip

print(res) #打印查看状态 Response [200]代表成功

time.sleep(5) #休息5s

if __name__ == ‘__main__’:

t1 = threading.Thread(target=pnw, args=(“1”)) #第一个线程

t2 = threading.Thread(target=pnw, args=(“2”)) #第二个线程

t3 = threading.Thread(target=pnw, args=(“3”)) #以此类推

t4 = threading.Thread(target=pnw, args=(“4”))

t5 = threading.Thread(target=pnw, args=(“5”))

t6 = threading.Thread(target=pnw, args=(“6”))

t7 = threading.Thread(target=pnw, args=(“7”))

t8 = threading.Thread(target=pnw, args=(“8”))

t9 = threading.Thread(target=pnw, args=(“9”))

t1.start() #启动第一个线程

t2.start() #以此类推

t3.start()

t4.start()

t5.start()

t6.start()

t7.start()

t8.start()

t9.start()

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/162212.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • spring security3.2配置—权限管理

    spring security3.2配置—权限管理

    2021年11月28日
    40
  • Python基础知识点梳理

    Python基础知识点梳理python常见知识点梳理摘要:本文主要介绍一些平时经常会用到的python基础知识点,用于加深印象。python的详细语法介绍可以查看官方编程手册,也有一些在线网站对python语法进行了比较全面的介绍,比如菜鸟教程:python3教程|菜鸟教程本文主要是介绍基础语法,操作实例在另一篇博客中单独介绍:python语言介绍python是一门解释型语言,python的设计目标:一门…

    2022年6月24日
    26
  • 关于group by的用法 原理

    关于group by的用法 原理写在前面的话:用了好久groupby,今天早上一觉醒来,突然感觉groupby好陌生,总有个筋别不过来,为什么不能够select*fromTablegroupbyid,为什么一定不能是*,而是某一个列或者某个列的聚合函数,groupby多个字段可以怎么去很好的理解呢?不过最后还是转过来了,简单写写吧,大牛们直接略过吧。=========正文开始===========  …

    2022年5月9日
    68
  • c语言解析xml文件「建议收藏」

    c语言解析xml文件「建议收藏」#include”stdafx.h”#include#include”Mytext.h”#include#include#include#include#include#include#include#include#include#includeusingnamespacestd;#pragmacomment(lib,”Oleac

    2022年7月14日
    67
  • yii2的加密解密那些事儿

    yii2的加密解密那些事儿

    2022年4月3日
    38
  • lvm扩容磁盘空间[通俗易懂]

    lvm扩容磁盘空间[通俗易懂]1lvm的基本概念物理卷pv:指磁盘分区或从逻辑上与磁盘分区具有同样功能的设备(如RAID),是LVM的基本存储逻辑块,但和基本的物理存储介质(如分区、磁盘等)比较,却包含有与LVM相关的管理参数卷组vg:类似于非LVM系统中的物理磁盘,其由一个或多个物理卷PV组成。可以在卷组上创建一个或多个LV(逻辑卷)逻辑卷lv:类似于非LVM系统中的磁盘分区,逻辑卷建立在卷组VG之上。在逻辑卷LV之上可以建立文件系统(比如/home或者/usr等2LVM能作什么?答:linux的系统..

    2022年6月20日
    45

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号