This repository has been archived by the owner on Nov 29, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TakeScript.sh
87 lines (75 loc) · 2.33 KB
/
TakeScript.sh
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
#!/bin/bash
### Color ###
lightgreen='\e[1;32m'
white='\e[1;37m'
red='\e[1;31m'
blue='\e[0;34m'
reset='\e[0m'
### Requirements ###
if [ -f /data/data/com.termux/files/usr/bin/curl ];
then
sleep 1
echo -e $blue"[✔]:[ curl ]: $lightgreen Found !"
else
echo -e $blue"[x]:[ curl ]: $red Not Found ! "
echo ""
sleep 1
echo -e $white"installing curl..."
sleep 1
apt-get install --force-yes -y curl
fi
echo ""
if [ -f /data/data/com.termux/files/usr/bin/nano ];
then
sleep 1
echo -e $blue"[✔]:[ nano ]: $lightgreen Found !"
else
echo -e $blue"[x]:[ nano ]: $red Not Found ! "
echo ""
sleep 1
echo -e $white"installing nano..."
sleep 1
apt-get install --force-yes -y nano
fi
echo ""
sleep 1
echo "installation Finished"
echo ""
sleep 1
clear
### Check Internet ###
{
ping -c 1 google.com > /dev/null
if [[ "$?" != 0 ]]
then
echo "Checking For Internet: FAILED
This Script Needs An Active Internet Connection
Check Connection Your Internet"
echo "Good Bye 😊"
echo && sleep 2
exit
else
echo -e $lightgreen"-----------------------------------"
echo -e $white"Checking For Internet: $red CONNECTED"
echo -e $lightgreen"-----------------------------------"
fi
}
### User IP Public ###
ip=$(curl -s https://api.ipify.org)
### Function Banner ###
echo -e $blue"++++++++++++++++++++++++++++++++++"
echo -e $red"╔══╗╔══╗╔╦╗╔═╗╔══╗╔═╗╔═╗╔══╗╔═╗╔══╗"$blue"+"
echo -e $red"╚╗╔╝║╔╗║║╔╝║╦╝║══╣║╔╝║╬║╚║║╝║╬║╚╗╔╝"$blue"+"
echo -e $red"─║║─║╠╣║║╚╗║╩╗╠══║║╚╗║╗╣╔║║╗║╔╝─║║─"$blue"+"
echo -e $red"─╚╝─╚╝╚╝╚╩╝╚═╝╚══╝╚═╝╚╩╝╚══╝╚╝──╚╝─"$blue"+"
echo -e $blue"++++++++++++++++++++++++++++++++++"
echo -e $red"["$lightgreen"+"$red"]"$reset"Hay😜 : $ip"
### Function Tools ###
if [ -z "$1" ]; then
echo -e $red"["$lightgreen"+"$red"]"$white"Usage TakeScript Deface."
echo -e $red"["$lightgreen"+"$red"]"$reset"Use:" $red"$0" $white"<URL>"$reset
exit 0
fi
curl $1 -o index.html
echo -e $reset""
echo -e $red"["$lightgreen"+"$red"]"$reset "Success Downloads Files "$1"/index.html"