mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 14:59:44 +01:00
Fix binary template
This commit is contained in:
parent
dd337b5ddf
commit
00dd36c73d
@ -23,11 +23,11 @@ layout: common
|
|||||||
{% for example in examples %}
|
{% for example in examples %}
|
||||||
|
|
||||||
{% capture code %}
|
{% capture code %}
|
||||||
{%- if function_id == 'suid-enabled' or function_id == 'suid-limited' %}
|
{%- if function_id == 'suid' or function_id == 'limited-suid' %}
|
||||||
cp $(which {{ bin_name }}) .
|
cp $(which {{ bin_name }}) .
|
||||||
sudo sh -c 'chown 0 ./{{ bin_name }}; chmod +s ./{{ bin_name }}'
|
sudo sh -c 'chown 0 ./{{ bin_name }}; chmod +s ./{{ bin_name }}'
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{%- if function_id == 'capabilities-enabled' %}
|
{%- if function_id == 'capabilities' %}
|
||||||
cp $(which {{ bin_name }}) .
|
cp $(which {{ bin_name }}) .
|
||||||
sudo setcap cap_setuid+ep {{ bin_name }}
|
sudo setcap cap_setuid+ep {{ bin_name }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user