Comments (15)
Hi,
make sure that the following packages are installed:
yum install gcc make elfutils-devel.x86_64 kernel-devel-2.6.32-431.el6.x86_64
from reptile.
Those dependent packages have been installed.
OK, I noticed another branch about "didn't work on Centos 6"
from reptile.
I testing on Centos 6.6,that's OK
uname -a Linux Centos 2.6.32-696.1.1.el6.x86_64 #1 SMP Tue Apr 11 17:13:24 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
but didn't work on Centos 6.5
uname -a Linux Centos 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
from reptile.
Edit the lines 185 and 186 on the installer.sh
make all && \
make clean && \
This way the installer will return more info about whats going on in the compiler section
from reptile.
put this into config.h
in sbin
folder:
#ifndef _CONFIG_H
#define _CONFIG_H
#define MAGIC_ID 25220
#define TOKEN "hax0r"
#define PASS "s3cr3t"
#define SHELL "/reptile/reptile_shell"
#define START "/reptile/reptile_start.sh"
#define HIDE "reptile"
#define HIDETAGIN "#<reptile>"
#define HIDETAGOUT "#</reptile>"
#define WORKQUEUE "/reptile_shell"
#define SRCPORT 666
#define TCPPORT 80
#define UDPPORT 53
#define HOMEDIR "/reptile"
#define RCFILE "/reptile/reptile_rc"
#define ERROR -1
#define GET_FILE 1
#define PUT_FILE 2
#define RUNSHELL 3
#endif
Then, run make
and put here the output please. Could you do that?
@corefx and @pbr3s, thanks your helping and contribution. I appreciate that! ;)
403
from reptile.
@f0rb1dd3n That'is OK follow the above configuration.
[root@biu sbin]# make
gcc -O -W -Wall -o client pel.c aes.c sha1.c client.c
gcc -O -W -Wall -o shell pel.c aes.c sha1.c shell.c -lutil -DLINUX
gcc -Wall r00t.c -o r00t
strip client shell r00t
cp client shell r00t ../bin
[root@biu sbin]# ll ../bin
total 128
-rwxr-xr-x 1 root root 64584 May 25 05:58 client
-rwxr-xr-x 1 root root 4912 May 25 05:58 r00t
-rwxr-xr-x 1 root root 56160 May 25 05:58 shell
from reptile.
@pbr3s in install.sh partial content about lines
183 make all > /dev/null 2>&1 &&
184 make clean > /dev/null 2>&1 && \
from reptile.
man, put put config.h
but do make
in main folder. Cause rep_mod.c
uses that config file too.
from reptile.
[root@biu Reptile-master]# make
mkdir -p bin
cd sbin && make all
make[1]: Entering directory /root/Reptile-master/sbin' gcc -O -W -Wall -o client pel.c aes.c sha1.c client.c gcc -O -W -Wall -o shell pel.c aes.c sha1.c shell.c -lutil -DLINUX gcc -Wall r00t.c -o r00t strip client shell r00t cp client shell r00t ../bin make[1]: Leaving directory
/root/Reptile-master/sbin'
make EXTRA_CFLAGS="-Dx86_64" -C /lib/modules/2.6.32-431.el6.x86_64/build M=/root/Reptile-master modules
make: *** /lib/modules/2.6.32-431.el6.x86_64/build: No such file or directory. Stop.
make: *** [all] Error 2
[root@biu Reptile-master]# ll
total 52
drwxr-xr-x 2 root root 4096 May 25 05:58 bin
-rw-r--r-- 1 root root 533 May 25 06:22 config.h
-rwxr-xr-x 1 root root 7557 May 24 00:23 installer.sh
-rw-r--r-- 1 root root 309 May 24 00:23 Makefile
-rw-r--r-- 1 root root 2115 May 24 00:23 README.md
-rw-r--r-- 1 root root 17245 May 24 00:23 rep_mod.c
drwxr-xr-x 2 root root 4096 May 25 06:22 sbin
drwxr-xr-x 2 root root 4096 May 24 00:23 scripts
[root@biu Reptile-master]# ll /lib/modules/2.6.32-431.el6.x86_64/build
lrwxrwxrwx. 1 root root 46 Dec 27 11:00 /lib/modules/2.6.32-431.el6.x86_64/build -> ../../../usr/src/kernels/2.6.32-431.el6.x86_64
from reptile.
pelase run yum install kernel-devel -y && reboot
and try to make
again.
from reptile.
After the above operation,keeps making the same mistake....
from reptile.
It seems you don't have kernel headers... I don't know why. Try to run yum update
and reinstall headers. I will think how we can figure it out...
from reptile.
Maybe you are right,my system lost kernel Symbol file. I will rebuild this kernel.
I have a suggestion,whether can detect available kernel Symbol files when before compiling the source code?
from reptile.
did you solve this issue?
from reptile.
yes,It was just like you said.
Thanks
from reptile.
Related Issues (20)
- is there gonna be kernel 5.X support? HOT 7
- make error: implicit declaration of function 'memzero_explicit' [-Werror=implicit-function-declaration] HOT 2
- tty hangs while rmmod HOT 2
- Error on running make
- Personal doubts
- Error during "make install" HOT 1
- Error with "kallsyms_on_each_symbol" at make HOT 1
- error on redhat 7
- How to prevent detection
- copy_from_user cause system crash on centos7.8 HOT 1
- Installing Error on Parrot OS HOT 1
- 12312
- linux kernel 5.0+ Compatibility HOT 1
- update for Ubunut22 and other higher version kernel
- Hide processs faile HOT 1
- help
- About memory leaks(关于内存泄漏)
- Reptile-master/kernel/include/config.h:26:25: error: expected ‘)’ before ‘HIDE’ HOT 1
- Can't open reptile_module.ko for reading HOT 4
- AMZN Connection Hide
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reptile.