-
Notifications
You must be signed in to change notification settings - Fork 380
/
.IP-Tracer.php
87 lines (74 loc) · 2.55 KB
/
.IP-Tracer.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
<?php
include("modules/trm.php");
include("modules/help.php");
include("modules/trip.php");
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;
}
function About() {
logo();
echo <<<EOL
\033[01;33mTool Name \033[01;37m:- \033[01;36mIP-Tracer
\033[01;33mAuthor \033[01;37m:- \033[01;36mRajkumar Dusad
\033[01;33mPowered By \033[01;37m:- \033[01;36mAex Software's
\033[01;33mIP-Tracer\033[01;32m is use \033[01;36mip-api \033[01;32mto retrive any ip address information. Our system will automatically ban any IP addresses doing over 150 requests per minute.\033[00m
EOL;
$getact = readline(' IP-Tracer >> ');
menu();
}
function upd() {
logo();
echo "\n\033[01;32mUpdating IP-Tracer.........\033[01;37m\n\n";
sleep(1);
system("cd ~/ && git clone https://github.com/rajkumardusad/IP-Tracer.git");
system("cd ~/ && sudo git clone https://github.com/rajkumardusad/IP-Tracer.git");
system("cd ~/IP-Tracer && sh install");
logo();
echo "\n\033[01;32m IP-Tracer updated !!!\033[01;37m\n";
sleep(1);
menu();
}
function menu() {
logo();
echo " \033[01;32m[ \033[01;37m1 \033[01;32m] \033[01;33mTrack IP Address.\n";
echo " \033[01;32m[ \033[01;37m2 \033[01;32m] \033[01;33mTrack Your IP Address.\n";
echo " \033[01;32m[ \033[01;37m3 \033[01;32m] \033[01;33mAbout us.\n";
echo " \033[01;32m[ \033[01;37m4 \033[01;32m] \033[01;33mHelp.\n";
echo " \033[01;32m[ \033[01;37m5 \033[01;32m] \033[01;33mUpdate IP-Tracer.\n";
echo " \033[01;32m[ \033[01;37mx \033[01;32m] \033[01;33mExit \n\n\033[00m";
$inp = readline(' IP-Tracer >> ');
if ($inp=="x" || $inp=="exit") {
echo "\n\033[01;31m Exiting .......\033[00m\n";
sleep(1);
echo "\033[01;32m Bye ....... :)\n\n\033[00m";
exit();
} else if ($inp=="1") {
trac();
} else if ($inp=="2") {
tracm();
} else if ($inp=="3") {
About();
} else if ($inp=="4") {
help();
} else if ($inp=="5") {
upd();
} else {
echo "\n \033[01;31mErr : Invalid Command \033[01;32m'$inp'\033[00m";
sleep(1);
menu();
}
}
menu();
?>