Advertisement
FlyFar

README

Jun 7th, 2023
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | Writing | 0 0
  1. ample Rootkit for Linux
  2. About
  3. 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.
  4.  
  5. Usage
  6. 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.
  7.  
  8. 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).
  9.  
  10. Examples: echo -n thf >> /proc/rtkit ./rtcmd.py hp1337
  11.  
  12. 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
  13.  
  14. Notes
  15. 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).
  16.  
  17. Paper describing details of implementation (in polish) is available.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement