博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
关键字拦截查询
阅读量:5013 次
发布时间:2019-06-12

本文共 2313 字,大约阅读时间需要 7 分钟。

#!/usr/bin/env python#coding:utf-8# Author:  closed --<># Purpose: Check which keys have been blocked# Created: 2018/05/17# version: Python3.6#from requests_html import HTMLSessionkeyword = ''keylist = ['ADD','ALL','ALTER','AND','ANY','AS','ASC','AUTHORIZATION','AVG','BACKUP',           'BEGIN','BETWEEN','BREAK','BROWSE','BULK','BY','CASCADE','CASE',           'CHECKPOINT','CLOSE','CLUSTERED','COALESCE','COLUMN','COMMIT',           'COMMITTED','COMPUTE','CONSTRAINT','CONTAINS','CONTAINSTABLE',           'CONTINUE','CONVERT','COUNT','CREATE','CROSS','CURRENTZ_DATE',           'CURRENT_TIME','CURRENT_TIMESTAMP','CURRENT_USER','CURSOR','DATABASE',           'DBCC','DEALLOCATE','DECLARE','DEFAULT','DELETE','DENY','DESC','DISK',           'DISTINCT','DISTRIBUTED','DOUBLE','DROP','DUMP','ELSE','END','ESCAPE',           'EXEC','EXISTS','EXIT','FETCH','FILE','FILLFACTOR','FLOPPY','FOR','FOREIGN',           'FREETEXT','FREETEXTTABLE','FROM','FULL','GOTO','GRANT','GROUP','HAVING',           'HOLDLOCK','IDENTITY','IDENTITY_INSERT','IDENTITYCOL','IF','IN','INDEX',           'INNER','INSERT','INTERSECT','INTO','IS','ISOLATION','JOIN','KEY','KILL',           'LEFT','LEVEL','LIKE','LOAD','MAX','NATIONAL','NOCHECK','NOT','NONCLUSTERED',           'NULL','SELECT','NULLIF','OF','OFF','OFFSETS','ON','ONLY DECLARE','OPEN',           'OPEN QUERY','OPENROWSET','OPTION','OR','ORDER','OUTER','PERCENT','PIPE',           'PLAN','PREPARE','PRIMARY','PRINT','PRIVILEGES','PROC','PUBLIC','RAISERROR',           'READ','READTEXT','RECONFIGURE','REFERENCES','REPEATABLE','REPLICATION',           'RESTORE','RETURN','RIGHT','ROLLBACK','ROWCOUNT','ROWGUIDCOL','RULE','SAVE',           'SCHEMA','SERIALIZABLE','SESSION_USE','SET','SET USER','SHUTDOWN','SOME',           'STATISTICS','SUM','SYSTEM_USER','TABLE','TAPE','THEN','TO','TOP','TRAN',           'TRIGGER','TRUNCATE','UNCOMMITTED','UNION','UNIQUE','UPDATE','UPDATETEXT',           'USE','VALUES','VARYING','VIEW','WAITFOR','WHEN','WHERE','WHILE','WITH',           'WORK','WRITETEXT'                      ]baseurl = "xxx"session = HTMLSession()for i in keylist:    fullurl = "xxx{0}".format(i)    r = session.get(fullurl)        if("404" in str(r.html.text)):        print(i)    #print (r.html.text)

  

转载于:https://www.cnblogs.com/xiaobaichuangtianxia/p/9122543.html

你可能感兴趣的文章
[Linux] 在 Linux CLI 使用 ssh-keygen 生成 RSA 密钥
查看>>
14款下载有用脚本的超酷网站
查看>>
LXC-Linux Containers介绍
查看>>
7.31实习培训日志-docker sql
查看>>
c#中使用servicestackredis操作redis
查看>>
ios app 真机crash报告分析
查看>>
CRC标准以及简记式
查看>>
SEO搜索引擎
查看>>
关于本地使用tomcat部署web应用,浏览器自动跳转为https的问题
查看>>
一、Text To Speech
查看>>
Java读取并下载网络文件
查看>>
github上构建自己的个人网站
查看>>
在word中粘贴的图片为什么显示不完整
查看>>
SQL Server 数据库的鼠标操作
查看>>
net软件工程师求职简历
查看>>
总线置顶[置顶] Linux bus总线
查看>>
nullnullHandling the Results 处理结果
查看>>
SQL SERVER BOOK
查看>>
JS基础回顾,小练习(判断数组,以及函数)
查看>>
多任务——进程
查看>>