Skip to content

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

License

Notifications You must be signed in to change notification settings

W00t3k/rootstealer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published