-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.setup.php
108 lines (94 loc) · 3.85 KB
/
.setup.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
<?php
include("modules/system.php");
class set {
public function Setup() {
global $system;
// removing old files
if ($system=="termux") {
system("rm -rf /data/data/com.termux/files/usr/share/Dox-ip");
system("rm -rf /data/data/com.termux/files/usr/bin/Dox-ip");
system("rm -rf /data/data/com.termux/files/usr/bin/trace");
} elseif ($system=="ubuntu") {
system("sudo rm -rf /usr/bin/Dox-ip");
system("sudo rm -rf /usr/bin/trace");
system("sudo rm -rf /usr/share/Dox-ip");
} else {
system("rm -rf /usr/bin/Dox-ip");
system("rm -rf /usr/bin/trace");
system("rm -rf /usr/share/Dox-ip");
}
// adding bin file
if ($system=="termux") {
system("mv -v modules/Dox-ip /data/data/com.termux/files/usr/bin/");
system("mv -v modules/trace /data/data/com.termux/files/usr/bin/");
system("chmod +x /data/data/com.termux/files/usr/bin/Dox-ip trace");
system("chmod +x /data/data/com.termux/files/usr/bin/trace");
} elseif ($system=="ubuntu") {
system("sudo mv -v modules/Dox-ip /usr/bin/");
system("sudo mv -v modules/trace /usr/bin/");
system("sudo chmod +x /usr/bin/Dox-ip");
system("sudo chmod +x /usr/bin/trace");
} else {
system("mv -v modules/Dox-ip /usr/bin/");
system("mv -v modules/trace /usr/bin/");
system("chmod +x /usr/bin/Dox-ip");
system("chmod +x /usr/bin/trace");
}
// copy files from Dox-ip to .Dox-ip directory.
if ($system=="termux") {
system("mkdir /data/data/com.termux/files/usr/share/Dox-ip");
system("chmod +x * *.* .*.*");
system("mv -v * *.* .*.* /data/data/com.termux/files/usr/share/Dox-ip/");
} elseif ($system=="ubuntu") {
system("sudo mkdir /usr/share/Dox-ip/");
system("sudo chmod +x * *.* .*.*");
system("sudo mv -v * *.* .*.* /usr/share/Dox-ip/");
} else {
system("mkdir /usr/share/Dox-ip");
system("chmod +x * *.* .*.*");
system("mv -v * *.* .*.* /usr/share/Dox-ip/");
}
// removing Dox-ip directory
if ($system=="termux") {
system("cd .. && rm -rf Dox-ip");
} elseif ($system=="ubuntu") {
system("cd .. && sudo rm -rf Dox-ip");
} else {
system("cd .. && rm -rf Dox-ip");
}
}
function logo() {
system("clear");
echo <<<EOL
\033[01;33m
\033[01;31m _\033[01;33m ____ _
\033[01;31m(_)\033[01;33m _ \ | |_ _ __ __ _ ___ ___ _ __
| | |_) | | __| '__/ _` |/ __/ _ \ '__|
| | __/ | |_| | | (_| | (_| __/ |
|_|_| \__|_| \__,_|\___\___|_|
\033[01;37m}\033[01;31m--------------------------------------\033[01;37m{
}\033[01;31m------------- \033[01;32mTrack IPLocation\033[01;31m -------------\033[01;37m{
}\033[01;31m--------------------------------------\033[01;37m{
\033[00m
EOL;
if (file_exists("/usr/bin/Dox-ip") || file_exists("/data/data/com.termux/files/usr/bin/Dox-ip")) {
echo "\033[01;32m Dox-ip installed Successfully !!!\033[00m\n";
echo <<<EOL
\033[01;37m ----------------------------------------------
| \033[01;36mcommand\033[01;37m | \033[01;36mUse\033[01;37m |
----------------------------------------------
| \033[01;32mtrace -m\033[01;37m | \033[01;33mTrack your IP\033[01;37m |
| \033[01;32mtrace -t <traget-ip>\033[01;37m | \033[01;33mTrack IP\033[01;37m |
| \033[01;32mtracer --help\033[01;37m | \033[01;33mFor more information\033[01;37m |
----------------------------------------------
\033[01;31mNote :- ip-api will automatically ban any IP addresses doing over 150 requests per minute.\033[00m
EOL;
} else {
echo "\n\n\033[01;31m Sorry Dox-ip is not installed !!!\033[00m";
}
}
}
$a=new set;
$a->Setup();
$a->logo();
?>