-
Notifications
You must be signed in to change notification settings - Fork 54
/
converto.sh
69 lines (63 loc) · 3.03 KB
/
converto.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
#!/bin/bash
function main(){
RED='\033[1;31m'
WHITE='\033[1;37m'
ORANGE='\033[01;38;5;166m'
GREEN='\033[01;38;5;118m'
printf "${RED}"
echo -e " ██████╗ ██████╗ ███╗ ██╗██╗ ██╗███████╗██████╗ ████████╗ ██████╗ "
echo -e " ██╔════╝██╔═══██╗████╗ ██║██║ ██║██╔════╝██╔══██╗╚══██╔══╝██╔═══██╗"
echo -e " ${WHITE}██║ ██║ ██║██╔██╗ ██║██║ ██║█████╗ ██████╔╝ ██║ ██║ ██║"
echo -e " ██║ ██║ ██║██║╚██╗██║╚██╗ ██╔╝██╔══╝ ██╔══██╗ ██║ ██║ ██║"
echo -e " ╚██████╗╚██████╔╝██║ ╚████║ ╚████╔╝ ███████╗██║ ██║ ██║ ╚██████╔╝"
echo -e " ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═══╝ ╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ "
echo -e " ${RED} (Version - 2.O) "
printf "${WHITE}"
echo -e "----------------Contributers :- Kunal dawar && Ayush Sahay---------------------"
echo -e "------------------------------${ORANGE}Indian${WHITE} Cyber${GREEN} Heros${WHITE}-------------------------------"
echo -e " Kindly Read Note First by typing note "
echo -e "_______________________________________________________________________________"
echo -e " Installing Kali/Parrot linux on Server"
echo -e " 1. Yes"
echo -e ""
echo -e " 2. No"
COUNTER=0
while [ $COUNTER -lt 4 ]; do
read -p 'Input Your Choice: ' i
if (($i == 1)); then
echo "Select Appropriate Option :-"
echo "1. Kali linux"
echo "2. Parrot"
read -p 'Input Your Choice: ' i
if (($i == 1)); then
chmod +x ./files/kali
./files/kali
break
elif (($i == 2)); then
chmod +x ./files/parrot
./files/parrot
break
else
echo -e "\nInvalid Choice! Try again."
break
fi
elif (($i == 2)); then
echo "Bye Bye!!! You have selected NO"
break
elif (($i == note)); then
echo -e "\n*****************************************************************"
echo "1. Kali Linux is working on Both Ubuntu and debian Server System"
echo "2. Parrot OS is only Working on Ubuntu Server System"
echo "3. There is Only Option of RDP in Ubuntu Server System"
echo "*******************************************************************"
else
echo -e "\n\nInvalid Seletion!!! $((3-$COUNTER)) chances left.."
fi
let COUNTER=COUNTER+1
done
}
if [ `whoami` == "root" ]; then
main
else
echo "This script needs to be run as root!!!"
fi