-
Notifications
You must be signed in to change notification settings - Fork 6
/
install.sh
executable file
·50 lines (37 loc) · 1.66 KB
/
install.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
#!/bin/bash
#Tool Name = Home-baked-hash-cracker
#Author = ASHWINI SAHU (GitHub : ASHWIN990)
#Date = 19/05/2020
if [ $(id -u) -ne 0 ]; then
echo -e "\e[1;91mTHE INSTALLATION SCRIPT MUST BE RAN AS ROOT\e[0m"
exit 1
fi
banner(){
cat << "EOF"
__/\\\________/\\\__/\\\\\\\\\\\\\____/\\\________/\\\________/\\\\\\\\\_
_\/\\\_______\/\\\_\/\\\/////////\\\_\/\\\_______\/\\\_____/\\\////////__
_\/\\\_______\/\\\_\/\\\_______\/\\\_\/\\\_______\/\\\___/\\\/___________
_\/\\\\\\\\\\\\\\\_\/\\\\\\\\\\\\\\__\/\\\\\\\\\\\\\\\__/\\\_____________
_\/\\\/////////\\\_\/\\\/////////\\\_\/\\\/////////\\\_\/\\\_____________
_\/\\\_______\/\\\_\/\\\_______\/\\\_\/\\\_______\/\\\_\//\\\____________
_\/\\\_______\/\\\_\/\\\_______\/\\\_\/\\\_______\/\\\__\///\\\__________
_\/\\\_______\/\\\_\/\\\\\\\\\\\\\/__\/\\\_______\/\\\____\////\\\\\\\\\_
_\///________\///__\/////////////____\///________\///________\/////////__
EOF
echo -e " \e[7;91mHOME BAKED HASH CRACKER\e[0m \e[\e[7;92;1mBY : \e[93;1mASHWINI SAHU\e[0m"
}
##### Creating the install function #####
install(){
chmod +x md5* | echo -e "\e[93;1mCHANGING THE FILE PERMISSIONS"
chmod +x sha*
mv -f sha* /usr/bin/ | echo -e "MOVING THE PYTHON SCRIPTS IN /usr/bin"
mv -f md5* /usr/bin/
mv -f hbhc /usr/bin/
mv -f .man/hbhc.1.gz /usr/local/share/man/man1/hbhc.1.gz
mandb -q | echo -e "\e[93;1mUPDATING AND INSTALLING THE MANDB"
cd .. && rm -rf HBHC/ | echo -e "DELETING THE GIT CLONED DIRECTORY"
}
echo -e "INSTALLATION COMPLETED"
##### Calling the install function #####
banner
install