- 博客(6)
- 收藏
- 关注
转载 php伪协议
php://filter/convert.base64-encode/resource=index.php在allow_url_fopen,allow_url_include都关闭的情况下可以正常使用主要用于读取源代码并进行base64编码输出。php://inputallow_url_include影响php://input的使用,若不打开则无法使用。php://input(访...
2019-05-25 21:11:40 383
原创 python 中文出现乱码
爬虫时,中文可能会出现乱码,可以使用decode()转汉字html=requests.post(url,data=data).contenthtml=html.decode()print(html)
2019-05-15 20:45:24 128
转载 python socket学习
做个笔记,若有错误,望指出转载自:https://www.runoob.com/python3/python3-socket.html参考资料: https://www.cnblogs.com/jassin-du/p/7904497.htmlsocket.socket([family[, type[, proto]]])参数:family: 套接字家族可以使AF_UNIX或者AF_INE...
2019-05-04 12:06:52 86
转载 python threading库的使用
做个学习笔记,若有错误,望指出转载自:https://www.runoob.com/python3/python3-multithreading.html转载自:http://www.cnblogs.com/429512065qhq/p/8779100.html'''在python里面线程的创建有两种方式,其一使用Thread类创建# 创建一个线程,function_name需要线程去执...
2019-05-03 17:43:32 1232
转载 简单端口扫描器--多线程加队列版本
做个学习笔记,若有错误,望指出转载自:https://www.jb51.net/article/86615.htm#多线程加队列版本,加个queue,变成生产者-消费者模式,开固定线程import socket import threading import queueq = queue.Queue()def scan(port): s = socket.socket() ...
2019-05-03 17:18:14 276
转载 简单端口扫描器
做个学习笔记,若有错误,望指出转载自:https://www.jb51.net/article/86615.htmimport socket import threading def scan(port): s = socket.socket() s.settimeout(0.1) #print(port) if s.connect_ex(('localhost', ...
2019-05-03 17:13:23 110
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人