GTFOBins.github.io icon indicating copy to clipboard operation
GTFOBins.github.io copied to clipboard

Edit sudo facter command. Env variable isn't needed

Open Sht1n opened this issue 9 months ago • 0 comments

Hi

Setting environment variable in sudo requires permissions for preserve the environment also (env_check, or env_keep options). So without this permissions escalation via variable fails. However, environment variable isn't needed for facter binary escalation. We can use --custom-dir flag instead

Tested on CentOS 7 and Oracle Linux 9.

Sht1n avatar Jan 28 '25 14:01 Sht1n