summaryrefslogtreecommitdiffstats
path: root/fetch.php
blob: e7afc2c179827e2005c346b3374e9e60feaacc36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!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>