security - LAMPSecurity CTF8 -
i trying use code provided me penetration test exercise. according author created enter code , users hashes machine trying compromise. when enter code not return database. ":" on screen. not seem right code can please help. job not fix code query information database hashes users. going based on instructions of lampsecurity ctf8 pdf provided me.
<?php $res = db_query('select name,pass users'); while ($rec = db_fetch_object($res)) { print $rec→name . ":" . $rec→pass . "<br/>"; } ?>
somewhere during parsing of pdf, characters ->
have been turned utf8 equivalent of →
.
however, →
not valid operator in php.
replace →
->
, try again.
also, code doesn't connect db anywhere, may cause further issues.
Comments
Post a Comment