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

Popular posts from this blog

javascript - How to process users in one specific order using map o each function? -

java - Two interface have same method name with different return type -

javascript - Linking from page A to a specific iframe on page B -