-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate.sh
More file actions
executable file
·55 lines (40 loc) · 2.95 KB
/
update.sh
File metadata and controls
executable file
·55 lines (40 loc) · 2.95 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
49
50
51
52
53
54
55
#!/bin/bash
# Global variables
BLUE='\033[1;34m'
NC='\033[0m'
cd /opt/discover/
./update.sh
mv /opt/theHarvester/theHarvester/data/api-keys.yaml /opt/api-keys.yaml
mv /opt/spraycharles/list_elements.json /opt/
cd /opt/
for f in *; do
if [ "$f" == "koadic" ] || [ -f "$f" ] ; then
continue
elif [ "$f" == "UpdateScript" ] || [ -f "$f" ] ; then
continue
fi
cd /opt/$f ; echo -e "${BLUE}$f.${NC}" ; git pull; echo ; echo
done
mv /opt/api-keys.yaml /opt/theHarvester/theHarvester/data/
mv /opt/list_elements.json /opt/spraycharles/
checkrestart
cat << "EOF"
..
.:Kx
;k. :0O;
.O0l. .dk;
':x; '0Ko. 'dk;
.,ddOo'. .lK0k: cx,
. .ld;:0d. .'c:. .lO:0:O. ,'
.kl':. .l0. .lOc;dl ,kk'.;x0; ..
.lOOlc:. .0k. lOlx:'lo,:cOd;dd,. .c,
.ldOk. .o0..:O0;'xOxl. .:do,
'dc;oc. ':;;' ,0x. .dO: ,dc:;.
'oxd,. ;;. ',:x' 'xo;o0:.,0k. .ok:
'0x;. 'l'. .'kd;l'c0c,lkl,cdk:.' ,. 'lko.
.l0c. ...,:l0l.x00c' cOdoxxdc;,lOx:. cxkkkxl;.
'Ox. .:oxd,.'do.x0k,. ;oo,.... .. .....
.0O. 'lkk; ,xx;::xo:.
.OOc..;xl. .,,.
.clOc:.
EOF