<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Hacker's Corner</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> </head> <body> <h1>Please Don't Fear!</h1> <b>Sandbox:</b> Fuk the Fetch!<br /> <h2>In Soviet Russia the university fails you!</h2> <p> <?php error_reporting(E_ALL | E_STRICT); ini_set("display_errors", 1); echo "<a href=\"request.php?id=decap.jpg\">Fetch Decapped Injectors</a><br />\n"; echo "<a href=\"request.php?id=pc.jpg\">Fetch a PC</a><br />\n"; /* this one has spaces, hence we use url encoding, only needed for GET */ echo "<a href=\"request.php?id=" . urlencode("dave at garage.jpg") . "\">Dave</a><br />\n"; /* raw url would use %20 instead of a + for a space, raw is used in url too the left of ? * also, apache would insert %20 for us without using urlencode, but we should no rely on this */ echo "<a href=\"request.php?id=code.jpg\">" . htmlspecialchars("teh code & my <lab>") . "</a>\n"; ?> </p> <p> Raw URL<br /> <?php $raw_url = rawurlencode("omfg terabyte ram helluva low latency iz in my h4x0red pc"); echo $raw_url . "<br />\n"; ?> </p> </body> </html>