
python
<xss_0001234
https://github.com/thatqier
展开
-
python获取http网页标题
def get_title(url): s = requests.session() response = request.urlopen(url) html = response.read() charset = chardet.detect(html)['encoding'] # 对该html进行编码的获取 result = s.get(url...原创 2019-10-31 14:56:15 · 4508 阅读 · 0 评论 -
xray 扫描器发送结果到钉钉
from flask import Flask, requestimport requestsimport datetimeimport loggingimport jsonapp = Flask(__name__)@app.route('/webhook', methods=['POST'])def xray_webhook(): vuln = request.jso...原创 2019-10-31 14:52:47 · 1022 阅读 · 0 评论 -
python学习笔记-使用re模板在字符串中查找所有单词
re模块的内容 re模块中一些重要的函数:Python 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] on win32Type "copyright", "credits" or "license()" for more information.>>> import re>原创 2016-12-07 10:30:55 · 5917 阅读 · 0 评论 -
python中BeautifulSoup获取input标签中value的值
def ceshi():url = "http://11111.com"s = requests.Session()response_gw = s.get(url)soup = BeautifulSoup(response_gw.text, "html.parser")VIEWSTATE = soup.find('input', id='__VIEWSTATE')["value...原创 2018-10-22 11:18:47 · 16621 阅读 · 0 评论 -
python 上传图片到阿里云oss子目录
只需要img_key前面加子目录地址即可原创 2018-11-06 01:50:14 · 2345 阅读 · 0 评论 -
python3 无法安装PIL
python3中使用Pillow进行替换了,安装Pillow即可原创 2019-08-09 13:52:15 · 268 阅读 · 0 评论 -
xray扫描器扫描结果整理
github地址:点击前往xray扫描器生成的json文件进行处理,另存为csv,并进行初步误报筛选#!/usr/bin/python# -*- coding: utf-8 -*-"""@version: 0.1@author: thatqier@site: 1@file: xray.py@time: 2019/8/15 11:54 PM"""import jso...原创 2019-08-16 10:37:33 · 7285 阅读 · 1 评论