Giter VIP home page Giter VIP logo

Comments (17)

corefx avatar corefx commented on August 21, 2024 1

Thanks for fixing this!

from reptile.

corefx avatar corefx commented on August 21, 2024

Hi,
There are also some (old) comments:

crashes kernel due to thread safety issues.
doesn't check that all kernel buffers are successfully allocated before use, leading to a crash under certain conditions.

Link: https://www.reddit.com/r/netsec/comments/7a4ehh/reptile_a_lkm_rootkit_for_evil_purposes/

from reptile.

f0rb1dd3n avatar f0rb1dd3n commented on August 21, 2024

Hi @corefx,

thank you for your reporting. I didnt do many tests before publishing, so I would appreciate any help to testing this. I will take a look at this bug, and I will look all this points mentioned at this (old) comments.

About detection, I thought in writing some obfuscations, but since this rootkit is public, this always will be detected. So I prefer keep the better techniques in priv8 to avoid detections.

do you know this guy that mentioned he is working on a pull request to do some fixings?

from reptile.

corefx avatar corefx commented on August 21, 2024

Hi,

do you know this guy that mentioned he is working on a pull request to do some fixings?

I don't know him.

from reptile.

f0rb1dd3n avatar f0rb1dd3n commented on August 21, 2024

I am trying to get this crash, to see what is going on, but I havent got this crash.

What conditions do you having this? Can you help me to understand that?

from reptile.

corefx avatar corefx commented on August 21, 2024

Hi,
sometimes the remote backdoor works just fine but sometimes I get this crash. I have only tested Reptile on the Virtualbox not on the real hardware. I noticed that the reboot command always triggers the crash at least on the Ubuntu 18.04 server.

from reptile.

S4NE avatar S4NE commented on August 21, 2024

hey guys,

got the same error on a kali linux vmware.
But it also crashes in real world :(

https://pastebin.com/4ZkvkWuQ

from reptile.

S4NE avatar S4NE commented on August 21, 2024

from reptile.

pbr3s avatar pbr3s commented on August 21, 2024

if you are facing this error you can check if /reptile/reptile_shell exists.

but i think that the problem that i've described below is serious too.

to reproduce the error rename your /module/module_shell to something else.

in the decode_n_spawn()
strsep(buf) modifies buf..
so, you can't kfree(buf)
i've tried to make a copy of buf before using it in strsep but then my ip in the shell_execer() is messed up.. it looks like \xffffffff0\xffffffffff8\168.1.13(just an exemple).
i am not a C coder so i can't figure it out.

from reptile.

f0rb1dd3n avatar f0rb1dd3n commented on August 21, 2024

Hello guys, sorry my delay, I am very busy lately.

So I have written a standalone module to just run the backdoor, and It works fine without crashing. I did a fast verification, and the backdoor in some way was conflicting with l33t_getdents function, and crashing there.

I got another crash too, with l33t_read function. So, I have to do more tests.

@pbr3s, about decode_n_spawn error, you got the point at kfree(buf), but I did a lot of tests with buffer, and the IP is being decoded right. If you are having problems, I need to know more about.

About reptile_shell exists, I saw your pull request, and I will comment it there.

Thanks

from reptile.

f0rb1dd3n avatar f0rb1dd3n commented on August 21, 2024

Guys, I just commit some things, and I didnt get l33t_getdents crash anymore. I update if(kdir) kfree(kdir); at the end of this function.

But I am still having l33t_read crash, and vfs_read is unexported in kernel 4.14+, then I will think another way to do that feature.

Thanks

from reptile.

pbr3s avatar pbr3s commented on August 21, 2024

Don't worry about the buffer thing.. it only ocorred when i tried to copy the buffer and use the copy in the strsed.. with your code it decodes fine.
I only tried to modify that because i wanted to properly free the buffer.

from reptile.

f0rb1dd3n avatar f0rb1dd3n commented on August 21, 2024

Hello guys,

can someone test if Reptile is crashing now? After my last commits I didnt get any crash yet.

thanks

from reptile.

pbr3s avatar pbr3s commented on August 21, 2024

No crashes here. Fedora Server 26 4.11.8-300.fc26.x86_64

from reptile.

corefx avatar corefx commented on August 21, 2024

No crashes. Tested on:
Ubuntu 18.04 (4.15.0-20-generic)
Ubuntu 16.04.4 (4.4.0-125-generic)
Ubuntu 13.04 (3.8.0-35-generic)
(all 64 bit)

from reptile.

f0rb1dd3n avatar f0rb1dd3n commented on August 21, 2024

That's nice guys.

I am glad this crashes was solved!

Thank you helping this!

from reptile.

f0rb1dd3n avatar f0rb1dd3n commented on August 21, 2024

@corefx, can you close this issue if it is really have solved?

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.