-
Notifications
You must be signed in to change notification settings - Fork 5
/
autorun.sh
71 lines (67 loc) · 1.63 KB
/
autorun.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
70
71
#!/bin/bash
# +-----===== [[ Kagari Shell Finder
# +----===== [[ Codename : Penikung
# +---===== [[ Version : 1.8
# +--===== [[ Author : shutdown57 a.k.a alinko
# +-===== [[ linuxcode.org - github.com/alintamvanz
#
KAGARI_WORK_DIR="/opt/kagari"
case $1 in
"-h" )
cat $KAGARI_WORK_DIR/help.txt > /dev/null 2>&1
if [[ "$?" -eq "0" ]]; then
more $KAGARI_WORK_DIR/help.txt
else
echo "[!] File $KAGARI_WORK_DIR/help.txt Was missing.."
fi
;;
"--help" )
cat $KAGARI_WORK_DIR/help.txt > /dev/null 2>&1
if [[ "$?" -eq "0" ]]; then
more $KAGARI_WORK_DIR/help.txt
else
echo "[!] File $KAGARI_WORK_DIR/help.txt Was missing.."
fi
;;
"run-pl" )
perl $KAGARI_WORK_DIR/perl/kagari.pl
;;
"run-perl" )
perl $KAGARI_WORK_DIR/perl/kagari.pl
;;
"run-php" )
php $KAGARI_WORK_DIR/php/kagari.php
;;
"run-py" )
python $KAGARI_WORK_DIR/python/kagari.py
;;
"run-python" )
python $KAGARI_WORK_DIR/python/kagari.py
;;
"start" )
perl $KAGARI_WORK_DIR/kagari2.pl
;;
"--uninstall" )
if [[ `whoami` == "root" ]]; then
which kagari > /dev/null 2>&1
if [[ "$?" -eq "0" ]]; then
echo "[-] UNINSTALL : Removing $KAGARI_WORK_DIR/kagari.pl ..."
rm $KAGARI_WORK_DIR/kagari.pl
sleep 1
echo "[-] UNINSTALL : Removing /usr/bin/kagari ..."
rm /usr/bin/kagari
sleep 1
echo "[-] UNINSTALL : Removing $KAGARI_WORK_DIR/*"
rm $KAGARI_WORK_DIR/*
rmdir $KAGARI_WORK_DIR
echo "[-] UNINSTALLED.."
else
echo "[!] Kagari not installed."
fi
else
echo "[+] You must be root to run this command."
fi
;;
*)
more $KAGARI_WORK_DIR/help.txt
esac