Rootkit
Linux rootkit and detection examples
Install / Use
/learn @geekben/RootkitREADME
#Sample Rootkit for Linux ##About This is sample rootkit implementation for Linux. It is able to hide processes, files and grants root privileges. It also have stealth mode (enabled by default) that prevents it from detecting.
This work is based on Arkadiusz's work 3 years ago: https://github.com/ivyl/rootkit
##New features supports 3.11 kernel
DKOM on process hiding
##Usage
Just compile module (included Makefile does this against current kernel) and load it. There will be hidden file in /proc called rtkit. It's not visible when listing content of proc directory.
Just cat /proc/rtkit to see available commands. You can use attached program to give orders or use echo -n (don't forget -n, there should be no tailing new line).
Examples:
echo -n thf >> /proc/rtkit
./rtcmd.py hp1337
To gain root you should give "My Pen Is Long" command (popculture reference, without spaces, small letters) and then fork some shell from writing process. rtcmd.py does that for you if second parameter is specified.
tools/rtcmd.py mypenislong /bin/bash
##Notes
This code should run on Linux version 2.6.29 and higher, since before that lookup_address symbol wasn't exported. Were tested against 3.1.0, 3.1.5 and 3.1.6 and is fully working (both x86 and x86_64).
Paper describing details of implementation (in polish) is available. ##License Dual licensed under BSD and GPL.
##Resources http://stackoverflow.com/questions/2103315/linux-kernel-system-call-hooking-example
http://linux.die.net/lkmpg/
http://lwn.net/Kernel/LDD3/
##Authors Ivyl and t3hknr and geekben.
Related Skills
node-connect
341.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.6kCommit, push, and open a PR
