Last updated: 15 Apr 24 15:46:28 (UTC)

WhoWantsToBeTheKing: 1

WhoWantsToBeTheKing:1

By Lawcky 11/04/24

Introduction

Difficulty : Easy

Additionnal info :

Name: WhoWantsToBeTheKing
Release date: 1 Dec 2020
Author: Bjorn
Series: Who Wants To Be King


Scans

950af383aeaaa59a7e82c5625724d3eb.png


Write-UP

ed2d711836a4e639ed37fbf0f36a553f.png

we got an unknown binary

skeylogger: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=ba22a62cfb23e5f98841e89718b9d3f5e76bdf94, for GNU/Linux 3.2.0, with debug_info, not stripped
skeylogger: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=ba22a62cfb23e5f98841e89718b9d3f5e76bdf94, for GNU/Linux 3.2.0, with debug_info, not stripped

after some analysis of the bin we find :

  • /home/sunita/Descargas/simple-key-logger-master
  • ZHJhY2FyeXMK

base64 decoded : ZHJhY2FyeXMK = dracarys

after trying for different user i found a matching combo

daenerys:dracarys

f7b7eaf4f29f344ffa9b0d0ad1e94f5a.png

d1dc1a15ab81987ec6fb571d8042a2e7.png

this did not work

(root) NOPASSWD: /usr/bin/mint-refresh-cache
(root) NOPASSWD: /usr/lib/linuxmint/mintUpdate/synaptic-workaround.py
(root) NOPASSWD: /usr/lib/linuxmint/mintUpdate/dpkg_lock_check.sh
(root) NOPASSWD: /usr/bin/mint-refresh-cache
(root) NOPASSWD: /usr/lib/linuxmint/mintUpdate/synaptic-workaround.py
(root) NOPASSWD: /usr/lib/linuxmint/mintUpdate/dpkg_lock_check.sh

none of these files exist and they cant be created by our user

c7d5b9fa0a1cd67529a71f30545508d3.png

found this file

433a9a950fcbb6676cc054bbe9627fe2.png

found possible match with google :

864ae73332baf8f14d1f1791d7502ae7.png

bb97ef715e2d602239e1ede243a9d849.png

flag found

"aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1nTjhZRjBZZmJFawo=" = https://www.youtube.com/watch?v=gN8YF0YfbEk
"aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1nTjhZRjBZZmJFawo=" = https://www.youtube.com/watch?v=gN8YF0YfbEk