Пример #1
0
                $chall->onChallengeSolved(GWF_Session::getUserID());
            } else {
                $have = GWF_Session::getOrDefault('BLIGHT2_CONSECUTIVE', '1');
                $need = BLIGHT2_CONSEC - $have;
                echo GWF_HTML::message(GWF_PAGE_TITLE, $chall->lang('msg_consec_success', array($need)));
            }
            blightReset(false);
        }
    } else {
        echo GWF_HTML::error(GWF_PAGE_TITLE, $chall->lang('err_wrong', array($attemp)));
    }
} elseif (isset($_POST['inject'])) {
    blightInit();
    $password = Common::getPostString('injection');
    $success = blightVuln($password);
    $attemp = blightAttemp() + 1;
    if ($success) {
        echo GWF_HTML::message(GWF_PAGE_TITLE, $chall->lang('msg_logged_in', array($attemp)));
    } else {
        echo GWF_HTML::error(GWF_PAGE_TITLE, $chall->lang('err_login', array($attemp)));
    }
    blightSetAttempt($attemp);
}
$url1 = 'index.php?show=source';
$url2 = 'index.php?highlight=christmas';
$url3 = 'index.php?reset=me';
$egg = 'On the run to the great gig.';
$egg = '<span style="color: #eee;">' . $egg . '</span>';
if (false !== ($dloser = GWF_User::getByName('dloser'))) {
    $dloser = $dloser->displayProfileLink();
} else {
Пример #2
0
/**
 * Init the challenge.
 * @return void
 */
function blightInit()
{
    $attemp = blightAttemp();
    if ($attemp < 0) {
        blightReset(false);
    }
}