From 6baf0c2d0e99398e3c9f23d561e5a80bce0ef805 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Tue, 7 Jan 2020 18:47:03 +0100 Subject: [PATCH] Clarify the need of the SUID cp+chmod command in the examples --- _layouts/bin.html | 2 ++ 1 file changed, 2 insertions(+) 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' %}