DarkCorp Hack the Box Season 7 (Windows Insane)
by RedBlock - Saturday February 8, 2025 at 03:32 PM
if we login roundcube as root we also can download sources
http://drip.darkcorp.htb/dashboard/apps/.../routes.py

in source code we find new host we can login and reset pass:
http://dev-a3f1-01.drip.htb/reset/{reset_token}

So we know mechanism to reset user password
But how to get the letter with reset_token for bcase? we only can login as our user and root user.
Reply
any privilege escalation tips / path already guys ???
Reply
(02-09-2025, 05:07 PM)Steward Wrote: if we login roundcube as root we also can download sources
http://drip.darkcorp.htb/dashboard/apps/.../routes.py

in source code we find new host we can login and reset pass:
http://dev-a3f1-01.drip.htb/reset/{reset_token}

So we know mechanism to reset user password
But how to get the letter with reset_token for bcase? we only can login as our user and root user.

You use the contact form to send an email with a XSS payload. This way you can exfiltrate the mails including the reset link. (Pretty sure the file download is unintended)
Ban reason: Leeching. (Permanent)
Reply
(02-09-2025, 04:41 PM)spamdegratis5 Wrote: The POST request to 172.16.20.2/status contains a json. I don't know if we can inject commands there, the request is done via python requests. Just start a listener with ligolo pointing to your http server and modify the port of the json
{"protocol":"http","host":"drip.darkcorp.htb","port":"xxxx"} GET / HTTP/1.1 Host: drip.darkcorp.htb:8080 User-Agent: python-requests/2.32.3 Accept-Encoding: gzip, deflate Accept: */* Connection: keep-alive

Edit: You can use ntlmrelay to obtain a shell from another account

I can't even make the requests pass through Burp, for some reason it gives me 401 Sad
Reply
(02-09-2025, 05:52 PM)arrogantoverlord Wrote:
(02-09-2025, 04:41 PM)spamdegratis5 Wrote: The POST request to 172.16.20.2/status contains a json. I don't know if we can inject commands there, the request is done via python requests. Just start a listener with ligolo pointing to your http server and modify the port of the json
{"protocol":"http","host":"drip.darkcorp.htb","port":"xxxx"} GET / HTTP/1.1 Host: drip.darkcorp.htb:8080 User-Agent: python-requests/2.32.3 Accept-Encoding: gzip, deflate Accept: */* Connection: keep-alive

Edit: You can use ntlmrelay to obtain a shell from another account

I can't even make the requests pass through Burp, for some reason it gives me 401 Sad
Enable nltm auth in burp https://portswigger.net/support/configur...burp-suite
Reply
(02-09-2025, 03:44 PM)jonklem Wrote: http://172.16.20.2:5000/check this works with victor's creds.  I thought maybe i could snag a hash with responder, but I already had to jump through hoops to get access to the network, i can't just make it fetch my ip.

How did you find this ? please don't say dir fuzzing lol.
I think with ligolo you can tell him to forward one port only, that way you target the .3 machine and it is forwarded to you
Ban reason: Leeching | http://raiddfzn73ir6iyxlf7nwytnujiflddog...an-Appeals if you feel this is incorrect. (Permanent)
Reply
(02-09-2025, 06:13 PM)nothing0112358 Wrote:
(02-09-2025, 03:44 PM)jonklem Wrote: http://172.16.20.2:5000/check this works with victor's creds.  I thought maybe i could snag a hash with responder, but I already had to jump through hoops to get access to the network, i can't just make it fetch my ip.

How did you find this ? please don't say dir fuzzing lol.
I think with ligolo you can tell him to forward one port only, that way you target the .3 machine and it is forwarded to you

Are you fucking dumb, you can do a full tunnel with ligolo
Ban reason: Scraping | https://raidforums.as/Forum-Ban-Appeals if you feel this is incorrect. (Permanent)
Reply
(02-09-2025, 05:54 PM)spamdegratis5 Wrote:
(02-09-2025, 05:52 PM)arrogantoverlord Wrote:
(02-09-2025, 04:41 PM)spamdegratis5 Wrote: The POST request to 172.16.20.2/status contains a json. I don't know if we can inject commands there, the request is done via python requests. Just start a listener with ligolo pointing to your http server and modify the port of the json
{"protocol":"http","host":"drip.darkcorp.htb","port":"xxxx"} GET / HTTP/1.1 Host: drip.darkcorp.htb:8080 User-Agent: python-requests/2.32.3 Accept-Encoding: gzip, deflate Accept: */* Connection: keep-alive

Edit: You can use ntlmrelay to obtain a shell from another account

I can't even make the requests pass through Burp, for some reason it gives me 401 Sad
Enable nltm auth in burp https://portswigger.net/support/configur...burp-suite

I am been getting 500 error instead and also the format is NTLM v1
Ban reason: Leeching. (Permanent)
Reply
hydra -l taylor.b.adm -P /usr/share/wordlists/rockyou.txt -o test.log  -vV ldap3://172.16.20.1 [389][ldap3] host: 172.16.20.1  login: taylor.b.adm [STATUS] attack finished for 172.16.20.1 (waiting for children to complete tests) 1 of 1 target successfully completed, 1 valid password found Hydra (https://github.com/vanhauser-thc/thc-hydra) finished at 2025-02-09 19:19:05
Reply
anyone got anything ?
Ban reason: Leeching. (Permanent)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Hack the box Pro Labs, VIP, VIP+ 1 month free Method RedBlock 22 9,269 06-25-2026, 02:15 PM
Last Post: hashxyz
  HTB Eloquia User and Root Flags - Insane Box 69646B 13 7,455 03-27-2026, 06:14 PM
Last Post: vlxw
  HTB - VOLEUR.HTB - MEDIUM WINDOWS chain 1 6,650 02-09-2026, 07:07 PM
Last Post: 403Forbidden
  HTB - CERTIFICATE.HTB - HARD WINDOWS chain 0 2,859 02-09-2026, 04:49 PM
Last Post: chain
  Hack the Box FullHouse all 7 flags RedBlock 13 4,808 01-27-2026, 08:30 PM
Last Post: 00xx00



 Users browsing this thread: 1 Guest(s)