-
Notifications
You must be signed in to change notification settings - Fork 6
/
install.sh
executable file
·84 lines (70 loc) · 1.56 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/usr/bin/env bash
# --n3x7--
# -----------
# Color Vars:
# ----------
red=`tput setaf 1`
green=`tput setaf 2`
normal=`tput sgr0`
cat <<EOF
_____
_ ____ ___ __ |___ / _ __
| '_ \ \ /\ / / '_ \ |_ \| '__|
| |_) \ V V /| | | |___) | |
| .__/ \_/\_/ |_| |_|____/|_|
|_| reverse shell creator
codename: Dande ☈ - The god of thunder ⛈
EOF
sleep 2
#Request root access/sudo
function check() {
#$EUID = 0
if [[ "$EUID" -ne 0 ]]; then
echo "${red}[✘]Error!!! Not enough priviledge${normal}"
sleep 3
echo "${red}[✘]Requesting root${normal}"
#Running the installer with sudo
sudo ./install.sh
# Prevent script from continue running
exit 1
fi
}
#-----------
#Check root:
#-----------
check
function wine() {
# -----------------------------
# Install Wine and Pyinstaller:
# -----------------------------
apt-get install wine
wine msiexec /i python-2.7.10.msi /L*v log.txt
cd ~/.wine/drive_c/Python27
wine python.exe Scripts/pip.exe install pyinstaller
}
function access() {
# -----------
#Send to bin:
# -----------
echo "#!/bin/bash" > /usr/bin/pwn3r
echo "cd /usr/share/pwn3r" >> /usr/bin/pwn3r
echo "exec python2 pwn3r.py $@" >> /usr/bin/pwn3r
chmod +x /usr/bin/pwn3r
}
# --------------------------
# Check Internet connection:
# --------------------------
wget -q --spider http://google.com
if [ $? -eq 0 ]; then
echo "Installing Wine"; wine &
PID=$!
i=1
sp="/-\|"
echo -n ' '
while [ -d /proc/$PID ]
do
printf "\b${sp:i++%${#sp}:1}"
done
fi
access
echo "N⬠∫∫⎔"