mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced 2024-11-08 07:49:17 +01:00
Use sudo to copy SUIDs in examples
This also works with /sbin/ executables.
This commit is contained in:
parent
66844f9cc4
commit
81b87f033e
@ -24,8 +24,7 @@ layout: common
|
||||
|
||||
{% capture code %}
|
||||
{%- if function_id == 'suid' or function_id == 'limited-suid' %}
|
||||
cp $(which {{ bin_name }}) .
|
||||
sudo sh -c 'chown 0 ./{{ bin_name }}; chmod +s ./{{ bin_name }}'
|
||||
sudo sh -c 'cp $(which {{ bin_name }}) .; chmod +s ./{{ bin_name }}'
|
||||
{% endif %}
|
||||
{%- if function_id == 'capabilities' %}
|
||||
cp $(which {{ bin_name }}) .
|
||||
|
Loading…
Reference in New Issue
Block a user