search

Home  >  Q&A  >  body text

php - ctf question @md5 What does it mean?

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";}
?>
某草草某草草2712 days ago853

reply all(3)I'll reply

  • 世界只因有你

    世界只因有你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.

    reply
    0
  • 迷茫

    迷茫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.

    reply
    0
  • 代言

    代言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

    reply
    0
  • Cancelreply