diff --git a/_layouts/bin.html b/_layouts/bin.html index 79d95c0..c884ccb 100644 --- a/_layouts/bin.html +++ b/_layouts/bin.html @@ -24,6 +24,8 @@ layout: common {% capture code %} {%- if function_id == 'suid' or function_id == 'limited-suid' %} +# create a local SUID copy of the binary for the sake of the example +# in a real world scenario ignore this line and use the proper path below sudo sh -c 'cp $(which {{ bin_name }}) .; chmod +s ./{{ bin_name }}' {% endif %} {%- if function_id == 'capabilities' %}