r/hackthebox • • 9d ago

Help needed with "Ghost". Multiple write-ups have failed me.

OK, I'm working through the CPTS Prep track and I'm on the last machine: Ghost. Now, I'm a beginner who's only a couple of months into doing this sort of thing, so I knew I'd definitely need some write-up assistance to complete an "Insane" machine that has reviews calling it the hardest machine on HTB. As such, I'd do little chunks of what I could figure out on my own, then ultimately turn to the write-up. I had to spend a fair amount of time getting some of the tools like Rubeus configured properly on my machine (arm64 Macbook Pro running Kali on UTM) but ultimately, with the help of the official write-up, I got as far as the very final step.

I'm shelled up as `nt authority\system` and I run the mimikatz command the write-up supplies: all good. I then run the rubeus command and get `[+] Ticket successfully imported!`. Awesome! Just one more step!

`dir \\dc01.ghost.htb\c$\Users\Administrator\Desktop`. Uh-oh! Here's what happens:

dir \\dc01.ghost.htb\c$\Users\Administrator\Desktop

dir : Access is denied

At line:1 char:1

+ dir \\dc01.ghost.htb\c$\Users\Administrator\Desktop

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : PermissionDenied: (\\dc01.ghost.ht...strator\Desktop:String) [Get-ChildItem], UnauthorizedAccessException

+ FullyQualifiedErrorId : ItemExistsUnauthorizedAccessError,Microsoft.PowerShell.Commands.GetChildItemCommand

dir : Cannot find path '\\dc01.ghost.htb\c$\Users\Administrator\Desktop' because it does not exist.

At line:1 char:1

+ dir \\dc01.ghost.htb\c$\Users\Administrator\Desktop

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : ObjectNotFound: (\\dc01.ghost.ht...strator\Desktop:String) [Get-ChildItem], ItemNotFound

Exception

+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand

I got the same thing trying just `dir \\dc01.ghost.htb\c$`

So I turned to a second, external write-up that had a different ending sequence: https://ch3ng625.github.io/ghost

I went through the same steps he went through, got the same successful output from the commands that were supposed to set up the final command, and when it came time for the moment of truth:

PS C:\Users\Public\Music> dir \\dc01.ghost.htb\c$

dir \\dc01.ghost.htb\c$

dir : Access is denied

At line:1 char:1

+ dir \\dc01.ghost.htb\c$

+ ~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : PermissionDenied: (\\dc01.ghost.htb\c$:String) [Get-ChildItem], UnauthorizedAccessExcept

ion

+ FullyQualifiedErrorId : ItemExistsUnauthorizedAccessError,Microsoft.PowerShell.Commands.GetChildItemCommand

dir : Cannot find path '\\dc01.ghost.htb\c$' because it does not exist.

At line:1 char:1

+ dir \\dc01.ghost.htb\c$

+ ~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : ObjectNotFound: (\\dc01.ghost.htb\c$:String) [Get-ChildItem], ItemNotFoundException

+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand

When I run klist I see:

Cached Tickets: (1)

#0> Client: Administrator @ corp.ghost.htb

Server: cifs/dc01.ghost.htb @ GHOST.HTB

KerbTicket Encryption Type: AES-256-CTS-HMAC-SHA1-96

Ticket Flags 0x40a50000 -> forwardable renewable pre_authent ok_as_delegate name_canonicalize

Start Time: 11/12/2026 11:07:51 (local)

End Time: 11/12/2026 21:07:51 (local)

Renew Time: 11/19/2026 11:07:51 (local)

Session Key Type: AES-256-CTS-HMAC-SHA1-96

Cache Flags: 0

Kdc Called:

But when I run `klist get cifs/dc01.ghost.htb` I see:

klist get cifs/dc01.ghost.htb

Current LogonId is 0:0x3e7

Error calling API LsaCallAuthenticationPackage (GetTicket substatus): 0x520

klist failed with 0x8009030e/-2146893042: No credentials are available in the security package

I'm completely stuck. This was hard enough for me even when the write-up was working but when even doing total karaoke doesn't work? Dang. I don't want to suggest "the box is broken" because I'm way too novice to just assume I'm not missing something obvious and stupid, but... does anyone see anything obvious and stupid I'm missing?

I have a lot of trouble DNF'ing a box (especially one that would complete a track), just on a mental level.

10 Upvotes

9 comments sorted by

•

u/AutoModerator 9d ago

Thank you for posting on r/hackthebox! New to Cyber Security and looking for a place to get started? Checkout our getting started guide here. Please note that posting Solutions or Hints for Active content goes against the HTB Terms of Service, more information can be found here. If your having issues and need to reach customer support please do so via the in-platform chat, or by emailing [email protected]. Our Knowledge Base can also come in handy!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

3

u/Kerberose88 9d ago

IppSec

1

u/lemondropkid 9d ago

Ok... So follow their video instead?

2

u/Kerberose88 9d ago

Yep, do your best but if you can't push further, refer IppSec. End of the day you'll learn something

3

u/lemondropkid 9d ago

Phew. Thanks for the suggestion. His path at the end was almost entirely different, which is great because I was able to actually execute it in about half an hour :D. Now I can do all kinds of post-mortem to figure out what half of what I just did meant!

2

u/Popular-Mastodon3498 7d ago

comment to follow, curious how you get the system32 shell?

1

u/lemondropkid 7d ago

I used EFSPotato

3

u/Kindly-Bag763 9d ago

0x3e7 is the system session. service shells have no network creds so smb can't use the ticket. pth into a new process with the admin hash and ptt there

2

u/nimbusfool 9d ago

This is a you have the ticket but the shell session still reads as the creator right?