Blasting -2

Here to tell us flag is not variable

Means that the flag just a string, and

Point to open the php code is also relatively simple

Code is more simple than the first question, meaning that quoted flag.php , A is equal to the Hello , print out var_dump ( $ A ), the last line do not control

But the solution to this question seems to be more complicated than that, here's flag can not use variable references GLOBALS , because the flag may be just one line and then hide flag.php code, so here use the File () function: file () function to the whole file is read into an array. Each element in the array is a file in one row, including line breaks, including

So here only need to use ? Hello = file ( 'flag.php' )

Get flag

 

 

Guess you like

Origin www.cnblogs.com/wosun/p/11240950.html