-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequirements.sh
49 lines (40 loc) · 1002 Bytes
/
requirements.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
#!/bin/bash
# Asegurarse de que el script está siendo ejecutado como root
if [ "$EUID" -ne 0 ]; then
echo "Por favor, ejecute este script como root"
exit 1
fi
# Instalación de las librerías necesarias para el script Python
echo "Instalando librerías necesarias..."
apt-get update
# Lista de paquetes necesarios
packages=(
"php"
"powershell"
"python3"
"python3-pip"
"ruby"
"socat"
"sqlite3"
"nodejs"
"npm"
"golang-go"
"vlang"
"gawk"
"lua5.1"
"dart"
"crystal"
)
# Instalar cada paquete
for package in "${packages[@]}"; do
apt-get install -y "$package"
done
# Instalar socat si no está disponible
if ! command -v socat &> /dev/null; then
apt-get install -y socat
fi
# Copiar el script Python a /usr/bin/ sin la extensión .py
echo "Copiando el script Python a /usr/bin/..."
cp ./revShell.py /usr/bin/revShell
chmod +x /usr/bin/revShell
echo "Instalación completada. Puedes ejecutar el script utilizando 'revShell' desde cualquier zona de la terminal."