ctf question @md5 What does it mean
<?php
$md51 = md5('QNKCDZO');
$a = @$_GET['a'];
$md52 = @md5($a);
if(isset($a)){
if ($a != 'QNKCDZO' && $md51 == $md52) {
echo "nctf{*****************}";
} else {
echo "false!!!";
}}
else{echo "please input a";}
?>
世界只因有你2017-06-23 09:13:18
In php, @ is the symbol to ignore errors. If you have an error in the line with the @ symbol, the error will not be displayed on the web page. MD5 is an encryption function in php.
迷茫2017-06-23 09:13:18
@In PHP, it means to ignore warning level errors thrown by the statements following it in the current line.
代言2017-06-23 09:13:18
md5
is a PHP function, see PHP documentation-md5() for details. @
means ignoring errors in subsequent expressions. For details, see PHP documentation - Error Control Operator