This repository has been archived by the owner on Jan 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathFunctions.php
200 lines (190 loc) · 4.3 KB
/
Functions.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
188
189
190
191
192
193
194
195
196
197
198
199
200
<?php
function exe($name){
$red = "\e[1;31m";
$green = "\e[1;32m";
$yellow = "\e[1;33m";
$blue = "\e[1;34m";
$cyan = "\e[1;36m";
$white = "\e[1;37m";
$risk=0;
echo $white."\nFile $red$name ".$white."Found Please Wait..\n\n";
echo $cyan."File Type (exe) ..\n\n";
sleep(1);
$str=shell_exec("strings $name");
//888 rat
if(preg_match("/6595b64144ccf1df/",$str)&&preg_match("/PSAPI.DLL/",$str)&&preg_match("/WNetGetConnectionW/",$str)
{
echo $red."[+] Found 888 rat \n";
$risk = $risk + 10;
}
echo $green."[-] Clear no 888 rat \n";
}
//DarkTrack Rat 4.1
if(preg_match("/2005 Pierre le Riche/",$str)&&preg_match("/4.1 Alien+/",$str))
{
echo $red."[+] Found DarkTrack Rat 4.1 \n";
$risk = $risk + 10;
}
else
{
echo $green."[-] Clear no DarkTrack Rat 4.1 \n";
}
//njrat
if(preg_match("/j.exe/",$str)&&preg_match("/NtSetInformationProcess/",$str))
{
echo $red."[+] Found njRat \n";
$risk = $risk + 10;
}
else
{
echo $green."[-] Clear no njRat \n";
}
//XtermeRat
if(preg_match("/7kOIsWow64/",$str)&&preg_match('/Snapsho$H/',$str))
{
echo $red."[+] Found XtermeRat \n";
$risk = $risk + 10;
}
else
{
echo $green."[-] Clear no XtermeRat \n";
}
//CyberGate Rat
if(preg_match("/gUnitServerUtils/",$str)&&preg_match("/wcrypt2/",$str)&&preg_match("/KuURLHistory/",$str))
{
echo $red."[+] Found CyberGate Rat \n";
$risk = $risk + 10;
}
else{
echo $green."[-] Clear no CyberGate Rat \n";
}
//Quasar Rat 1.3.0.0
if(preg_match("/xClient.Core.Packets.ServerPackets/",$str)&&preg_match("/<RemotePort>k__BackingField/",$str))
{
echo $red."[+] Found Quasar Rat 1.3.0.0\n";
$risk = $risk + 10;
}
else
{
echo $green."[-] Clear no Quasar Rat 1.3.0.0 \n";
}
//VanTomRat
if(preg_match("/Stub.VanToMRAT.resources/",$str))
{
echo $red."[+] Found VanTomRat 1.4 \n";
$risk = $risk + 10;
}
else
{
echo $green."[-] Clear no VanTomRat 1.4 \n";
}
//Beast Trojan Horse
if(preg_match("/2003 Avenger b/",$str)&&preg_match("/42CE4021-DE0/",$str))
{
echo $red."[+] Found Beast Trojan Horse 2.6 \n";
$risk = $risk + 10;
}
else
{
echo $green."[-] Clear no Beast Trojan Horse 2.6 \n";
}
if($risk > 1)
{
echo $red."\n\nThis application may be harmful to your computer .\n";
}
else
{
echo $green."\n\n[+] Clear no thing found\n";
}
if (!file_exists("output"))
{
shell_exec("mkdir output && cd output && mkdir $name && cd ..");
}
else
{
if (!file_exists("output/$name"))
{
shell_exec("cd output && mkdir $name && cd ..");
}
else
{
shell_exec("xxd -g4 $name > output/$name/hexDOcode.txt");
shell_exec("objdump -S $name > output/$name/source.txt");
shell_exec("strings $name > output/$name/strings.txt");
}
}
shell_exec("xxd -g4 $name > output/$name/hexDOcode.txt");
shell_exec("objdump -S $name > output/$name/source.txt");
shell_exec("strings $name > output/$name/strings.txt");
echo $white."\nApp info output/$name\n";
done();
}
function done()
{
$white = "\e[1;37m";
$red = "\e[1;31m";
$blue = "\e[1;34m";
$date = date("d-m-Y h:i:s");
$user = shell_exec('whoami');
echo $white."\nScan finished in $blue$date$white by user : $red$user$white\n~ Bye Bye \n";
}
function apk($name){
$red = "\e[1;31m";
$green = "\e[1;32m";
$yellow = "\e[1;33m";
$blue = "\e[1;34m";
$cyan = "\e[1;36m";
$white = "\e[1;37m";
$risk=0;
echo $red."\n$name ".$white."Found Please Wait..\n\n";
echo $cyan."File Type (apk) ..\n\n";
$str=shell_exec("strings $name");
//SpyNote 5.0
if(preg_match("/abc_textfield_search_default_mtrl_alpha.9.pngPK/",$str)&&preg_match("/##Widget.AppCompat.PopupMenu.Overflow/",$str))
{
echo $red."[+] Found SpyNote ! \n";
$risk = $risk + 10;
}
else
{
echo $green."[-] Clear no SpyNote \n";
}
//DroidJack
if(preg_match("/zP_1cXD/",$str)&&preg_match("/surface_camera/",$str)&&preg_match("/cameraview.xml/",$str))
{
echo $red."[+] Found DroidJack \n";
$risk = $risk + 10;
}
else
{
echo $green."[-] Clear no DroidJack \n";
}
if($risk > 1)
{
echo $red."\n\nThis application may be harmful to your phone .\n";
}
else
{
echo $green."\n\n[+] Clear no thing found\n";
}
if (!file_exists("output"))
{
shell_exec("mkdir output && cd output && mkdir $name && cd ..");
}
else
{
if (!file_exists("output/$name"))
{
shell_exec("cd output && mkdir $name && cd ..");
}
else
{
shell_exec("xxd -g4 $name > output/$name/hexDOcode.txt");
shell_exec("strings $name > output/$name/strings.txt");
}
}
shell_exec("xxd -g4 $name > output/$name/hexDOcode.txt");
shell_exec("strings $name > output/$name/strings.txt");
echo $white."\nApp info output/$name\n";
done();
}