-
Notifications
You must be signed in to change notification settings - Fork 113
/
INSTALL
64 lines (62 loc) · 1.91 KB
/
INSTALL
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
#!/usr/bin/env php
<?php
$op_system = php_uname();
if(@preg_match("/Linux/",$op_system)){
$oP = 0;
}else{
$oP = 1;
}
########################################
#//||||||||||| check root |||||||||||\\#
########################################
if($oP == 0){
$root = @shell_exec("id");
if (!preg_match("/root/",$root)){
@system("clear");
$red = "\e[91m";
echo $red."\n[~] please run script as root "."\n\n";
exit;
}
}
/// End
$uname = php_uname();
if(!preg_match("/Linux/",$uname)){
echo " [-] you don't need install it , you'r Windows user just run the script without install . \n\n";
exit();
}
if(file_exists("/bin/badmodF")){
system("clear");
echo "\n [+] You've already installed it \n";
echo " [+] You can run the tool by this command \n ";
echo " [ sudo badmod ] \n ";
exit();
}
$TooL = base64_decode("I2luY2x1ZGU8aW9zdHJlYW0+CiNpbmNsdWRlPHN0cmluZz4KI2luY2x1ZGU8c3RkbGliLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmludCBtYWluKCl7CnN5c3RlbSgiY2xlYXIiKTsKc3lzdGVtKCIvYmluL2JhZG1vZEYvQmFkTW9kLnBocCIpOwp9Cg==");
@mkdir("/bin/badmodF",0755);
@mkdir("/bin/badmodF/result",0755);
@mkdir("/bin/badmodF/BackDoor",0755);
@mkdir("/bin/badmodF/ScreenShots",0755);
@mkdir("/bin/badmodF/SingleScan",0755);
@mkdir("/bin/badmodF/wordlist",0755);
@shell_exec("cp *.* /bin/badmodF");
@shell_exec("cp BackDoor/*.* /bin/badmodF/BackDoor");
@shell_exec("cp ScreenShots/*.* /bin/badmodF/ScreenShots");
@shell_exec("cp wordlist/*.* /bin/badmodF/wordlist");
$tOOl = fopen("/bin/badmod.cpp","w+");
fwrite($tOOl,$TooL);
fclose($tOOl);
@shell_exec("g++ /bin/badmod.cpp -o /bin/badmod");
@shell_exec("cp /bin/badmod /bin/BadMod");
@shell_exec("sudo chmod +x /bin/badmod");
@shell_exec("sudo chmod +x /bin/BadMod");
@shell_exec("rm -rf /bin/badmod.cpp");
system("clear");
sleep(2);
echo " [!] Installing \n ";
sleep(2);
echo " [+] Tool has been installed successfully \n ";
sleep(1);
echo " [+] You can run the tool by this command \n ";
echo " [ sudo badmod ] \n ";
exit();
?>