forked from S12cybersecurity/GhostShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathghostshell.sh
More file actions
38 lines (31 loc) · 716 Bytes
/
ghostshell.sh
File metadata and controls
38 lines (31 loc) · 716 Bytes
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
#!/bin/bash
RED="\e[31m"
GREEN="\e[32m"
YELLOW="\e[33m"
BLUE="\e[34m"
ENDCOLOR="\e[0m"
hostname=$(hostname)
echo -e "\n"
toilet -f smbraille --gay 'GhostShell'
echo -e "\n"
echo -e "${YELLOW}[+] Starting Shell...${ENDCOLOR}\n"
if [ -d "/run/systemd/system" ]; then
systemctl status tor | grep " active" >/dev/null
else
/etc/init.d/tor status | grep " active" >/dev/null
fi
e=$(echo $?)
if [ $e == 0 ]; then
echo -e "${GREEN}[+] Tor Active${ENDCOLOR}"
else
echo -e "${RED}[-] Tor Inactive${ENDCOLOR}\n"
exit
fi
while true
do
echo -e "${BLUE}"
read -p "ghost@$hostname~# " command
echo -e "${ENDCOLOR}"
[[ $command != "exit" && -n "$command" ]] &&\
proxychains4 -q $command || exit
done