Git Product home page Git Product logo

notmyfather-php-rootkit's Introduction

NotMyFather PHP Rootkit

NotMyFather is just a PHP extension as a rootkit proof of concept.

In this PoC I just hooked the hash() and md5() PHP's original methods which will print into STDOUT some debug messages, but you can play with the code implementing whatever functionality you want.

You can read more about the whole history in the entry that I published on my blog: You Are Not My Father: PHP Rootkit

Usage

In this same repository you have a Docker container ready to run and test.

You can use the Makefile that is provided here as well.

A simple way to see it running is just typing: make which will build a new image
for the container and will prepare and start the instance of apache with php,
compiling the rootkit and doing all for you.

The instance has a small PHP application which just calls the hooked methods in order to see how the rootkit works (take a look at php code in /www/index.php)

Once the container will be up you can visit `http://localhost:8080` with the browser.

The debug messages will be shown thru the same console from where you run the container.

Folders and files

  • /src contains the rootkit source code
  • /www there is the php application code
  • Dockerfile definition of the docker container (here is defined the module compilation)
  • Makefile builds and start an instance of the container with all ready to check

notmyfather-php-rootkit's People

Contributors

jaimelopez avatar

Watchers

taibaiyifeng avatar

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.