62

GitHub - CoolerVoid/rootstealer: Program to detect when linux user opens termina...

 6 years ago
source link: https://github.com/CoolerVoid/rootstealer
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

Rootstealer

Program to detect when linux user opens terminal with root and inject intrusive commands in terminal with X11 lib.

Video of Proof of concept

The proposal of this video is use the tool rootstealer to spy all gui windows interactions and inject commands only in root terminal. This approach is util when attacker need to send a malicious program to prove that user is vulnerable to social engineering. Force root command in terminal with lib X11 is a exotic way to show the diversity of weak points.

https://www.youtube.com/watch?v=V8sZQq7nerw

Install

# apt-get install libX11-dev libxtst-dev
# cd rootstealer/sendkeys; 

Config CMD that you need use to do injection, edit value of variable CMD in /rootstealer/sendleys/src/sendkeys.c

Now you can take that following:

# make; cd ..    #to back to path rootstealer/ 
# pip intall gi
or
# pip install gir

Run the python script to spy all windows gui and search window with "root@" string in title.

$ python rootstealer.py &

Done, look the video demo, rootstealer force commands only on root terminal...

Tests

Tested on ubuntu 16.04

Note:

I am not responsible for the evil use of that tool. Use that for a good purpose.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK