mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Make the SUID boilerplate code copy-paste friendly
Even when the sudo password is asked.
This commit is contained in:
parent
66f60d7ef6
commit
1c0b2ff21d
@ -28,8 +28,7 @@ layout: common
|
|||||||
{% capture code %}
|
{% capture code %}
|
||||||
{%- if function_name == 'suid-enabled' or function_name == 'suid-limited' %}
|
{%- if function_name == 'suid-enabled' or function_name == 'suid-limited' %}
|
||||||
cp $(which {{ bin_name }}) .
|
cp $(which {{ bin_name }}) .
|
||||||
sudo chown 0 ./{{ bin_name }}
|
sudo sh -c 'chown 0 ./{{ bin_name }}; chmod +s ./{{ bin_name }}'
|
||||||
sudo chmod +s ./{{ bin_name }}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ example.code }}
|
{{ example.code }}
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
|
Loading…
Reference in New Issue
Block a user