Skip to content

A script that performs a dictionary attack locally using su, to elevate privileges to root or other users

License

Notifications You must be signed in to change notification settings

5xshanks/su-cracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

su-cracker

This script has been developped under python3, it aims to launch a dictionnary attack on 'su' in order to elevate privileges either horizontally using existing acounts, or vertically using the 'root' account as a target.

Tested on:

Kali GNU/Linux 2020.4

Usage:

python3 su-cracker.py [-h] username wordlist [threads]

positional arguments:
  username    Username to switch to, must be entered
  wordlist    Name or Path to Wordlist to use, must be entered
  threads     Number of threads to launch, recommended between [100-200], 100 by default

optional arguments:
  -h, --help  show this help message and exit

POC

with root:

with another user:

Developper:

Elaffifi Omar Badis / [email protected]

Alias: 5xshanks

About

A script that performs a dictionary attack locally using su, to elevate privileges to root or other users

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages