From 2653b8787c7dbea5d3eb76f2de7a175d0e2d65e2 Mon Sep 17 00:00:00 2001 From: leetcore Date: Sat, 12 Aug 2023 15:16:50 +0200 Subject: [PATCH] king of the hill stuff --- 1337_file.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/1337_file.txt b/1337_file.txt index 2365953..aebcfd4 100644 --- a/1337_file.txt +++ b/1337_file.txt @@ -158,6 +158,11 @@ echo -n "$hash$xyz" | cut -d "-" -f 1 > hash.txt john --wordlist=/usr/share/wordlists/rockyou.txt crack.hash +# save root (ROOT) +sudo chattr +i /root/flag.txt +ps +sudo kill -9 PID + # Linux PwnKit (linux, policy kit, root) Source: https://github.com/ly4k/PwnKit @@ -190,7 +195,6 @@ export PATH=/tmp:$PATH find / -perm -4000 2>/dev/null bash -p - From user to root (Privilege Escalation) find / -perm +6000 2>/dev/null