I am aware of a number of good linux priv escalation scripts out there which i use for my hacking ( legal only, mainly practice for my OSCP ). I like Linux Priv Escalation Scripts . My prefered one uptil now has been "
The script is great except that for suggesting applicable kernel exploits it relies on its own database which is barely updated and comprises of only 50 exploits. Also the script uses kernel, mount & process information to suggest exploits.
os = sysInfo["OS"]["results"] version = sysInfo["KERNEL"]["results"].split(" ").split("-") langs = devTools["TOOLS"]["results"] procs = getAppProc["PROCS"]["results"] kernel = str(sysInfo["KERNEL"]["results"]) mount = driveInfo["MOUNT"]["results"]
One notable thing is that it does not use installed package version to suggest exploits as the author notes.
#pkgs = getAppProc["PKGS"]["results"] # currently not using packages for sploit appicability but my in future
Not nitpicking because its a great work by the author but I would like to know if there are existing efforts that
i) have a larger database of exploits ( maybe crawl exploitdb to provide suggestions)
ii) take into consideration
installed package versions while suggesting exploits
I have frequently missed out because of not being able to sieve through the installed package versions for detecting a exploit. I would like to fix it for the future.