Answer the question
In order to leave comments, you need to log in
An interesting task in PHP
I liked one of the tasks from one of the latest CTFs for its simplicity, I suggest breaking your head a little.
There is an executable script:
<?php
$key = "KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK";
$pass = "KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK";
if ( strcasecmp( $_GET['pass'], $pass ) == 0 ) {
echo($key);
}
?>
Answer the question
In order to leave comments, you need to log in
Oh may may, what a cant in PHP, I immediately remember another confusion in the return values in strpos () when it can return 0 or false
Here's another question for you then. If you do this:
switch( $_GET['pass'] )
{
// ...
}
do you need to check $_GET['pass']?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question