#modules

1 messages · Page 305 of 1

nova wharf
#

qq in the Footprinting Mod MySQL when I try to login to the mysql server I get this error " ERROR 2026 (HY000): TLS/SSL error: self-signed certificate in certificate chain"

fathom pendant
#

You can rm that externally managed file. And with apt you need to run with sudo

livid zodiac
#

not sure what you mean by remove the externally managed file? it says my environment is externally managed and doesnt mention a file as far as i can see

#

maybe im missing something

#

cant send an image lol it wont let me

fathom pendant
#

find / -name "EXTERNALLY-MANAGED" 2> /dev/null

livid zodiac
#

thanks, im assuming that wont break anything? some stackoverflow threads said installing stuff could break the system

#

suggested installing them in a venv instead

fathom pendant
#

and a fair bit of tools now use pipx for their installs

#

which creates a venv for them to run in

safe star
nova wharf
#

@safe star yeah on my kali machine I switch to the pwnbox to move along but I still want to figure out the error

safe star
#

just use -p and don’t input the password

#

It will prompt u

nova wharf
#

I'll try it real quick to see if it lets me

#

same error

#

I'll work on it when I get back from getting my kids from school

safe star
#

What module?

nova wharf
#

Footprinting the Mysql section

#

it works in the pwnbox but yeah just wanna figure it out on my local machine

safe star
#

I just logged in

#

U sure u just did -p and nothing after?

steady charm
#

In Module Pivoting, Tunneling, and Port Forwarding Section Web Server Pivoting with Rpivot Question 3

I get an error when trying to run rpivot client.py from the PivotMachine

python2.7 client.py --server-ip <IP> --server-port 9999
Traceback (most recent call last):
File "client.py", line 12, in <module>
import relay
ImportError: No module named relay

Why is that? I mean I understand the error but why is the PivotMachine not configured to run the tool?

rustic sage
#

Does anyone know why I'm getting this error, I'm using ligolo to reach the DC IP

└──╼ $bloodhound-python -d inlanefreight.local -c All -u DOMAINUSERNAME -p PASS -ns DCIP --kerberos
#

LDAP port is open

nova wharf
fathom pendant
#

try the FQDN of the DC01, not the IP

#

also make sure it's in your /etc/hosts as DC01 DC01.inlanefreight.local

steady charm
rustic sage
fathom pendant
#

kerberos is picky about it

rustic sage
#

yeah, netexec with BH doesn't even use kerberos

#

but that also gives me an LDAP socket error

#

I can windapsearch though, so it's not on the server

fathom pendant
#

¯_(ツ)_/¯

rustic sage
#

I contacted support

#

the only thing you can do is run sharphound, but even then that doesn't get the computers

#

if you're lucky enough to get that upload half working

fathom pendant
#

sharphound should get most of it

#

and i've not had much issues with it

#

¯_(ツ)_/¯

rustic sage
#

I got it working one time

#

but then env got reset

steady charm
#

When i was prepping for OSCP this helped me fix the problem

rustic sage
#

GOATED

steady charm
#

But it's a messy solution

rustic sage
#

i'll take a look thx

#

ligolo knows all

steady charm
#

I gave up on it and just when the SharpHound route

rustic sage
#

it doesn't upload to bloodhound though

grand loom
#

my tunnel using chisel is setup and i want to do a ping sweep

here is proof it works but why isnt fping working?

#

i know i can use a port sweep module in msfconsole and itll work that way, also if i do a tunnel with ligolo it works, but why not this?

#

Chisel Reverse Pivot was done

pseudo kiln
#

i forgot does chisel even support ping traffic ?

grand loom
fathom pendant
fathom pendant
steady charm
#

I really don't understand why I can't submit the correct flag to this Rpivot exercise. It is driving me insane

fathom pendant
steady charm
#

Cleaned it over and over without luck. There was another poster here with the same problem but he mentioned restarting the host worked for him. Did it twice and still not working

steady charm
#

yup that's the one with a lot of leet chars

pseudo kiln
#

sometimes I had to copy to notepad, and then to question input

pseudo kiln
#

hmm, let me check what I answered on it

steady charm
#

Maybe it's the fact that I curl instead of doing it from the firefox GUI, but the browser timesout

fathom pendant
#

That shouldn't matter tbh

pseudo kiln
#

have you tried refreshing the page ? that helped me sometimes

steady charm
#

yeah well this is currently unsolvable so fml

fathom pendant
#

Yeah sometimes refreshing the page helps

steady charm
#

Yeah no luck. Marcielee can I dm you the flag to at least verify I am not under the sea level IQ dumb

pseudo kiln
#

you can dm me

steady charm
#

If anyone else has the problem with rpivot and submitting the flag..just manually type it

wild harbor
#

how can i send photo here

dim wolf
fathom pendant
#

@wild harbor I didn't consent to dms

wild harbor
civic hamlet
#

@fathom pendant completed the module, but i have a question

How can you infer, from a registry-run key, if an application is disabled?

#

Windows fundamentals, Windows security

wild harbor
rustic sage
steady charm
rustic sage
steady charm
#

oh weird, i didn't do that exercise specifically, just mentioned I gave up using bloodhound.py and used SharpHound instead wherever I could

#

did the dnschef not help?

rustic sage
#

nah

#

thx though

livid zodiac
#

back again cause i finally got my vm set up. is there a way to connect to the vpn from my virtual machine while htb is open on the host machine? i'd like to have the htb window open on my main machine but be running all my commands from the virtual machine. when i drag and drop the file into the vm and run the command it doesnt seem to want to connect

#

seems to hang on "Protocol options: explicit-exit-notify 1"

#

think i got it, never mind

warm shuttle
#

hi

livid zodiac
#

looking for a small hint on the module 77 knowledge check. i managed to get a foothold using metasploit with the outdated version on the website. found the user flag. im working through privilege escalation now and found the sudo passwordless information... apparently this user doesnt have any write permission so i cant wget linenum, cant create files, and cant edit the file that i have permission to run with sudo. any tips?

#

cant tee either...

fathom pendant
#

And if it's the thing I'm thinking, wget won't be helpful anyway

livid zodiac
#

sorry - last module of the "getting started" path

fathom pendant
#

Last section* getting started module*

livid zodiac
#

👍

fathom pendant
#

Learning paths are broken down into modules, which are broken down into sections

livid zodiac
#

gotcha makes sense

fathom pendant
#

The knowledge check section?

livid zodiac
#

thats the one. im going through my privesc notes and trying to check each thing out, i think i might have an idea but im not 100% sure on how to execute it

#

let me try this and see if it works

fathom pendant
livid zodiac
#

thanks ;) managed to get wget working and ran linenum

#

i think i know what its gonna tell me (sudo exploitation stuff) and ive been trying to run a shell related to that but i keep getting a "failed to parse" error when i try to run it

fathom pendant
#

Trust me. Once you find it out. It's so dumb

livid zodiac
#

got it

#

it was sudo stuff i was just looking at it the wrong way

livid zodiac
fathom pendant
#

Wait nvm it is sudo

#

Gtfobins is great

#

Well, sudo permissions

livid zodiac
#

yeah i was using that at first to try and do reverse shell stuff but realized i was way overcomplicating and could just access the filesystem on the target machine

#

just had to scroll down half a page on gtfobins and not get too locked in to the first result haha

#

thanks again

frank trench
#

Can someone please point out what's going on with this little bash scripting encryption exercise. As far as I'm aware, the script should be fine. The prompt is:
Create a "For" loop that encodes the variable "var" 28 times in "base64". The number of characters in the 28th hash is the value that must be assigned to the "salt" variable.

And this is my script:

#!/bin/bash

#provided by HTB
function decrypt {
        MzSaas7k=$(echo $hash | sed 's/988sn1/83unasa/g')
        Mzns7293sk=$(echo $MzSaas7k | sed 's/4d298d/9999/g')
        MzSaas7k=$(echo $Mzns7293sk | sed 's/3i8dqos82/873h4d/g')
        Mzns7293sk=$(echo $MzSaas7k | sed 's/4n9Ls/20X/g')
        MzSaas7k=$(echo $Mzns7293sk | sed 's/912oijs01/i7gg/g')
        Mzns7293sk=$(echo $MzSaas7k | sed 's/k32jx0aa/n391s/g')
        MzSaas7k=$(echo $Mzns7293sk | sed 's/nI72n/YzF1/g')
        Mzns7293sk=$(echo $MzSaas7k | sed 's/82ns71n/2d49/g')
        MzSaas7k=$(echo $Mzns7293sk | sed 's/JGcms1a/zIm12/g')
        Mzns7293sk=$(echo $MzSaas7k | sed 's/MS9/4SIs/g')
        MzSaas7k=$(echo $Mzns7293sk | sed 's/Ymxj00Ims/Uso18/g')
        Mzns7293sk=$(echo $MzSaas7k | sed 's/sSi8Lm/Mit/g')
        MzSaas7k=$(echo $Mzns7293sk | sed 's/9su2n/43n92ka/g')
        Mzns7293sk=$(echo $MzSaas7k | sed 's/ggf3iunds/dn3i8/g')
        MzSaas7k=$(echo $Mzns7293sk | sed 's/uBz/TT0K/g')

        flag=$(echo $MzSaas7k | base64 -d | openssl enc -aes-128-cbc -a -d -salt -pass pass:$salt)
}

#provided by HTB
var="9M"
salt=""
hash="VTJGc2RHVmtYMTl2ZnYyNTdUeERVRnBtQWVGNmFWWVUySG1wTXNmRi9rQT0K"

# my portion
for counter in {1..28}
do
        result=$(echo $var | base64)
        if [ $counter -eq 28 ]
        then
                salt="${#result}"
                echo "fuck yeah?"
        fi
done

#provided by HTB
if [[ ! -z "$salt" ]]
then
        decrypt
        echo $flag
        echo "yeah?"
else
        exit 1
fi
#

The output is:

fuck yeah?
*** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.
bad decrypt
4057C913DF7E0000:error:1C800064:Provider routines:ossl_cipher_unpadblock:bad decrypt:../providers/implementations/ciphers/ciphercommon_block.c:129:

yeah?
#

The "yeah" stuff was just for debugging to make sure it's apparently doing what it's supposed to. I'm new to encryption so I can't quite diagnose what's the problem.

fathom pendant
#

Your padding broke

#

Aka for some reason, the key to decrypt is looking for ABC, but your block us CBA

#

It's not an error correcting algorithm

#

Echo your counter so you know where it's at too

#

You also don't need to include the if statement in your for loop

fathom pendant
#

You can use var = instead of result =

frank trench
#

Right.
Sorry for not replying faster. I kept reediting my message to account for every new thing you said haha.
I'm rewriting my portion right now.

fathom pendant
#

Also echo the salt

#

Like some characters that you may not want

hexed ginkgo
#

hello, is there any purple team path in HTB?

frank trench
fathom pendant
hexed ginkgo
#

Because im pretty well learning but im learning not knowing what i want to do

fathom pendant
#

Maybe if you do the research yourself

hexed ginkgo
#

I did

#

I could not find anything about red team and blue team

#

just bug bounty hunter

fathom pendant
#

Blue team = defensive work, red team = offensive simulation

#

Bug bounty is finding a needle in a haystack

frank trench
#

Pentester: hired red team.
Bug bounty: "hobbyist" red team.

fathom pendant
#

And pentesting is telling a company how vulnerable certain aspects of their network are

fathom pendant
fathom pendant
#

Yes

hexed ginkgo
#

I already know

#

I want to see how they work

fathom pendant
#

Then get a job

frank trench
hexed ginkgo
fathom pendant
fathom pendant
#

Most red-teams have their own dedicated malware developer

frank trench
fathom pendant
#

As off-the-shelf exploits will get detected

#

You shouldn't define either pentester or bounty hunter in terms of red team

frank trench
#

Ok

fathom pendant
#

AI is dogshit at answering broad queries

#

As AI isn't a search engine

hexed ginkgo
#

AI is my best friend

#

anyways, is there a Red Team or Blue team path in HTB?

frank trench
# fathom pendant In the salt

here's the new code:

#!/bin/bash

# Decrypt function
function decrypt {
        MzSaas7k=$(echo $hash | sed 's/988sn1/83unasa/g')
        Mzns7293sk=$(echo $MzSaas7k | sed 's/4d298d/9999/g')
        MzSaas7k=$(echo $Mzns7293sk | sed 's/3i8dqos82/873h4d/g')
        Mzns7293sk=$(echo $MzSaas7k | sed 's/4n9Ls/20X/g')
        MzSaas7k=$(echo $Mzns7293sk | sed 's/912oijs01/i7gg/g')
        Mzns7293sk=$(echo $MzSaas7k | sed 's/k32jx0aa/n391s/g')
        MzSaas7k=$(echo $Mzns7293sk | sed 's/nI72n/YzF1/g')
        Mzns7293sk=$(echo $MzSaas7k | sed 's/82ns71n/2d49/g')
        MzSaas7k=$(echo $Mzns7293sk | sed 's/JGcms1a/zIm12/g')
        Mzns7293sk=$(echo $MzSaas7k | sed 's/MS9/4SIs/g')
        MzSaas7k=$(echo $Mzns7293sk | sed 's/Ymxj00Ims/Uso18/g')
        Mzns7293sk=$(echo $MzSaas7k | sed 's/sSi8Lm/Mit/g')
        MzSaas7k=$(echo $Mzns7293sk | sed 's/9su2n/43n92ka/g')
        Mzns7293sk=$(echo $MzSaas7k | sed 's/ggf3iunds/dn3i8/g')
        MzSaas7k=$(echo $Mzns7293sk | sed 's/uBz/TT0K/g')

        flag=$(echo $MzSaas7k | base64 -d | openssl enc -aes-128-cbc -a -d -salt -pass pass:$salt)
}

# Variables
var="9M"
salt=""
hash="VTJGc2RHVmtYMTl2ZnYyNTdUeERVRnBtQWVGNmFWWVUySG1wTXNmRi9rQT0K"

# Base64 Encoding Example:
#        $ echo "Some Text" | base64

# <- For-Loop here
for counter in {1..28}
do
        echo $counter
        var=$(echo $var | base64)
done
echo "{$counter}th hash character number getting assigned to salt..."
echo "This is the current var: $var"
salt=${#var}

# Check if $salt is empty
if [[ ! -z "$salt" ]]
then
        decrypt
        echo "Salt: $salt"
        echo "Flag: $flag"
else
        exit 1
fi

The output is very large, due to the var value I printed. But it's effectively: 1 2 3 4 . . . 28 {28}th hash character number getting assigned to salt... This is the current var: Vm0wd2QyUXlVWGxWV0d4Vm0wd2QyUXlVWGxWV...wNk1EbERaejA5Q2c9PQo=

The rest of the output is:

*** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.
bad decrypt
40870EDBAF720000:error:1C800064:Provider routines:ossl_cipher_unpadblock:bad decrypt:../providers/implementations/ciphers/ciphercommon_block.c:124:
Salt: 34070
Flag: 

Thank you, by the way, for offering to help.

fathom pendant
#

I'm not all that familiar with bash

frank trench
#

I don't really mind it ultimately. But it technically won't count as a finished module if I don't answer all the prompts haha.

#

I might've misunderstood the assignment. The characters in the hash it was gets assigned, not var. Supposedly, at least.
But how does var correlate to the hash.

fathom pendant
#

The var is ultimately used for the salt

fathom pendant
frank trench
#

It does print a flag now!

#

And it is indeed the answer. Thank you very much Marcie.

fathom pendant
#

Likely some slight difference then

frank trench
#

It also works without using the space delimeter. Do you reckon I should stay away from using "${#variable}" next time to count and stick to wc?

fathom pendant
#

might be a weird edge case ¯_(ツ)_/¯

frank trench
#

Probably, yeah.

fathom pendant
#

Curious what the length difference is

frank trench
#

Originally the salt was "34070", and now it's "34071"

#

lol

fathom pendant
#

kek off by one error

#

Oh fuck you know what it genuinely might be? Newline character

frank trench
#

Oh my god. It totally was the newline.

#

I mean, it might've been. Used "was" but I don't know how to confirm that.

#

I don't think using tr -d '\n' would do it

fathom pendant
#

It's the most likely culprit

frank trench
#

Yeah

tender nimbus
#

Hey guys can someone help me for the nmap module?

#

do you know why it take this much time?

#

like sometimes it takes 15s and then other time its shows this? What i also not understand is when i do a scan without -p- sometimes it says that all the scanned ports are in ignored states? What does that mean? Thanks for you help 🙂

rustic sage
#

Module: Shells and Payloads
Section: Laudanum, one webshell ro rule them all

i gained the webshell access ofc, I did "cd ../../" in the input box and it didnt send me back to any directories, other directories r locked for access

#

i also did the "cd .."

#

well the backwards slash too since it's windows

#

same issue

#

not working for me which is odd

grand loom
#

for xfreerdp you can add a drive by using /drive:etc.. but the thing is im able to move stuff out of the folder to the machine(rdp'd machine) but cant move stuff into the folder from the rdp'd machine

#

any commands or tips?

#

trying to get sharphound result out

sly trench
#

Guys I'm in pentest path, in the footprinting module in MySQL footprinting. In the second question where it asks you to find the email of Otto lang it seems like the MySQL server has massive performance problems. I had to use ssh to with robin:robin to connect to the localhost and then connect to the MySQL server but any command I use on the server doesn't respond, like I can type random letters all day and I can't even see them on the terminal

#

I already reset the server and vpn multiple times also changing it's location

#

And now even just after I ssh into it I can't see anything that I type

#

Even on the pwnbox same thing

rustic sage
sly trench
#

Now it worked but I had to do copy paste for every command otherwise it would keep lagging for every letter I typed. Is there a way to avoid this? Any settings?

sterile solstice
#

to update. i tried ligolo again, and the second pivot just worked. im still not sure why. maybe re-setting my VM and a new target instance helped reset whatever issues I had.

what I did do different was i kept the ligolo dev the same, as opposed to the tutorial which created another tun dev just for the second pivot. so when I did ip route add 172.x.x.x/23 dev ligolo it added this new subnet to the already existing dev that had the first subnet/network.

this doesnt make any sense for why it worked this time, when i tried it for many hours over and over last night. so dunno why it worked. but when it does work, it is far less complicated that msf (though msf has benefits beyond a simple tunnel so sometimes it can be preferred)

gray yacht
sharp shard
#

Hello guys I'm in need of little help with a question in htb Linux module.
Q: what is the name of the latest modified file in the "/var/backups" directory?
I did "ls -lt /var/backups | head -n 2 | tail -n 1"
The file I got was " 0 AUG 13 dpkg.arch.0"
However it was incorrect answer

sterile solstice
#

yea, i agree. having a few different ways is good. i found the pivoting module relatively easy but i do have a background in networking.

and the failing double pivot was annoying me because there was 0 logic to it failing .... i still dont know why. i got further with msf, though today msf was failing lol!

#

good thing about ligolo is that i was able to scp my exploit files across the double pivot, to the target system, without trying to figure out some complicated way. was just the normal scp command and it routed it as per normal ... lol

foggy monolith
#

On this module now and keep getting errors like FETCH: Invalid Arguments whenever I try these payloads. Is there something missing?

strange pivot
#

are you connected with openssl ?

#

type this: 1 LIST "" *

foggy monolith
#

Also, A1 LIST INBOX * returns absolutely nothing. Yes I am and yes I am authenticated using the compromised user (i.e. the a1 login robin robin) command

strange pivot
#

try use pop3 instead

#

openssl s_client -connect 10.10.10.10:pop3s

foggy monolith
#

Exactly how I connected.

strange pivot
#

ok try imaps instead now

#

openssl s_client -connect 10.10.10.10:imaps

foggy monolith
#

Won't even let you log in as the compromised user without SSL, so again, already did that.

mental latch
#

in the shells and payload module for the live engagement skills assessment , is the only way to complete these task to use the rdp into the host and then foothold from that host ? as living in Australia this rdp machine is just unusable and the vm is just so out of date

foggy monolith
strange pivot
#

can you login with telnet?

#

connect with telnet

#

then use, USER (Username)

#

and PASS (password)

#

then type: LIST

#

and RETR 1

foggy monolith
#

As already stated before.

strange pivot
#

ok what does openssl do when you do it?

foggy monolith
#

Actually allows me to log in as the compromised user, while Telnet doesn't.

strange pivot
#

try these three commands once youve authenticated in openssl

#

A1 LIST "" *
A1 LIST INBOX *
A1 LIST "Archive" *

#

in openssl you login like this was well: A1 LOGIN "username" "password"

foggy monolith
#

All of those return "A1 OK List completed" but don't return any data.

strange pivot
#

try just LOGIN "username" "password" without the A1 😛

#

what page are you on? ill go to it and try it

safe star
#

Was RDP supposed to work during the pivoting skill assessment?

#

i had to do so much with winrm, netsh, and proxychains

strange pivot
#

yes Tlattice

foggy monolith
safe star
#

🙃

strange pivot
#

so this is what worked for

foggy monolith
strange pivot
#

me, openssl s_client -connect 10.10.10.10:imaps

#

"1 login user pass"

#

1 LIST "" *
1 FETCH 1 ALL
1 FETCH 1 BODY[]

#

that was from my notes

#

if that don't work for you 😛 ill try it now see if i can find out

safe star
#

freaky ahh emojis

foggy monolith
strange pivot
#

Well ive just done exactly what ive just wrote

#

and its working for me 😄

#

1 LIST "" *

  • LIST (\Noselect \HasChildren) "." DEV
  • LIST (\Noselect \HasChildren) "." DEV.DEPARTMENT
  • LIST (\HasNoChildren) "." DEV.DEPARTMENT.INT
  • LIST (\HasNoChildren) "." INBOX
    1 OK List completed (0.010 + 0.000 + 0.009 secs).
#

I gotta go sleep now, hope you work it out, good luck 😛

strange pivot
#

try hacktricks if your still stuck

#

try type 1 list inbox

wild sage
#

trying to get the flag?

strange pivot
#

I think, DEV and DEV.Department have contents so try list them 😛

wild sage
#

which question are you on?

strange pivot
#

I think hes on the last question

#

and Tlattice, use ligolo for the pivoting module

safe star
#

u forgot the select option i think

#

1 select DEV.DEPARTMENT.INT

wild sage
#

^

safe star
#

1 FETCH <ID> all

strange pivot
#
1 SELECT INBOX
1 FETCH 1 all
1 FETCH 1 BODY[]
#

from my notes 😛

foggy monolith
wild sage
#

ah the email address

safe star
wild sage
#

1 select Dev.Dep...

safe star
#

just wanted to learn how pivoting worked first

strange pivot
#

If you want lattice i can help you set it up?

safe star
#

nah im good for rn

strange pivot
#

ok, i got a perfect script to set it up for when i take the exam 😛

safe star
#

that module burned me out for a lil

strange pivot
#

honestly, ligolo makes it like a cake walk 😄

#

its like laughable how easy it is with ligolo haha

#

and yes, ill post it there now

safe star
#

ive heard that a lot

#

just wanted to feel the struggle of other tools first

strange pivot
#

ill message you my github

safe star
#

alr

foggy monolith
# safe star 1 select DEV.DEPARTMENT.INT

Okay, figured out what the problem was. Needed to put "DEV.DEPARTMENT.INT" in double quotes because otherwise, I'm guessing, the '.' was seen as an invalid character and messing up the syntax.

lofty sparrow
#

im doing the attacking common apps module and im having trouble getting joomlabrute to work. has anyone had this problem

#

nvm got it to work with a different script

pliant coyote
quasi wave
#

why is the target taking so long to boot?

#

the pwnbox boots just fine. this makes no sense. is there a lot of traffic right now with the targets?

#

normally it doesn't take this long so its really weird. this is for PHP web shells section of shells and payloads module

#

wait it loaded never mind

quiet trout
#

Can someone help me understand this? its not clicking...
Remote Access VPN This involves the client's computer creating a virtual interface that behaves as if it is on a client's network. Hack The Box utilizes OpenVPN, which makes a TUN Adapter letting us access the labs. When analyzing these VPNs, an important piece to consider is the routing table that is created when joining the VPN. If the VPN only creates routes for specific networks (ex: 10.10.10.0/24), this is called a Split-Tunnel VPN, meaning the Internet connection is not going out of the VPN. This is great for Hack The Box because it provides access to the Lab without the privacy concern of monitoring your internet connection. However, for a company, split-tunnel VPN's are typically not ideal because if the machine is infected with malware, network-based detection methods will most likely not work as that traffic goes out the Internet.

specifically the last few lines:

for a company, split-tunnel VPN's are typically not ideal because if the machine is infected with malware, network-based detection methods will most likely not work as that traffic goes out the Internet.

#

wait maybe i got it, the internet connection does not route out of the vpn, but rather on the host machine?

#

that seems unclear, and makes it sound like there is no internet access

#

ah nvm

#

gap in threat detection... exfil from a target machine to the local then pass it along from there via the internet (if needed)

proper mountain
#

I'm trying to do the skill assessment of XSS (cbbh path), but I'm not able to go the /assessment directory. I've even connected to the vpn. But I'm able to connect to that using pwnbox, any Idea why this is happening ?

proper mountain
cloud urchin
jade latch
#

something i'm doing wrong with chisel here? i have proxychains.conf with socks4 127.0.0.1 1080, but i can't reach any hosts. CME - skills assessment. feeling kind of dumb not even being able to do the setup

civic hamlet
#

on to bash scripting

civic hamlet
#

cant afford anything else, im out of cubes

#

oh well

jade latch
#

all the tier 0 modules are a good choice, other than buffer overflows

foggy monolith
#

PwnBox has been stuck on "Instance is starting" for 5 minutes now — has anyone else had this problem?

foggy monolith
#

@autumn pilot do you know what could cause PwnBox to just hang instead of starting properly?

autumn pilot
#

try in an incognito tab

vestal crescent
#

is there a way to do this with .pngs or .jpgs?

foggy monolith
# autumn pilot try in an incognito tab

Not doing anything. It's still stuck on "Instance is starting…" for what seems like forever. It's also taking forever to spawn the targets, something that didn't happen in a non-incognito environment.

autumn pilot
#

reach out to support

pliant coyote
#

Why don't I have a 0000000000003000 sized

heavy mango
# vestal crescent is there a way to do this with .pngs or .jpgs?

You can do that with a ton of different file formats: https://en.wikipedia.org/wiki/List_of_file_signatures

This is a list of file signatures, data used to identify or verify the content of a file. Such signatures are also known as magic numbers or Magic Bytes.
Many file formats are not intended to be read as text. If such a file is accidentally viewed as a text file, its contents will be unintelligible. However, some file signatures can be recognizab...

pliant coyote
#

Has anyone done this? Can anyone help me?

pseudo kiln
pliant coyote
pseudo kiln
#

if I am correct, take a peak at IPsec walkthrough for fatty to unstuck yourself

pliant coyote
#

I solved one problem and then another one came up

pliant coyote
#

Why don't I have an open button?

cold dome
#

Hi everyone. I wanted to hear your opinion. Let's say, I finished the cbbh track. Can I take the exam right away? or do you recommend going through everything again? What are your thoughts on this? Thanks.

vestal crescent
#

Do I have to use some hexademical editor for file types other than GIF??

heavy mango
vestal crescent
#

Gotcha, thanks man

rose briar
#

Guys, when you are making the penetration tester process module, do you make the submodules together? For example, read a topic and do Linux fundamentals, Windows fundamentals, networking, read a part and do the modules that are mentioned?

pseudo kiln
#

I personally just did the entire infosec fundamentals path entirely prior to starting the cpts path

vocal holly
#

What is one prominent issue with passwords? (Broken Authentication: Brute-Forcing Passwords)

I can't seem to get answer for this question.

acoustic owl
vocal holly
cunning cape
#

Having Issues with the academy atm, anyone else? spawned a machine but can't ping, scan or connect via SSH which is required for the module. connected to the VPN and have restarted my VM and the target machine multiple times. anyone else having issues or just me? module is from the pivoting module specifically "Web Server Pivoting with Rpivot" but I have tried a few other lessons and getting the same issues

Edit: must be my VPN, pwnbox is working fine

ashen fiber
#

I'm having issues in using ReconSpider.py . Tried everything . Installed scrapy and python required.

#

(Please disregard: All good.

smoky marten
smoky marten
ashen fiber
# smoky marten can I ask what the issue was? /nf

The script needs to update from (from scrapy.downloadermiddlewares.offsite import) to ( from scrapy.spidermiddlewares.offsite import OffsiteMiddleware). Reinstalled scrapy using python3-scrapy (pipx was my default)

smoky marten
#

ah, mkay

#

tbh when I tried that one it kept saying things were depreciated (I made sure I had the current version (the one you’re describing)) so I figured i’d just make a spider and probably learn a lot more that way

ashen fiber
#

Cool.

fathom pendant
midnight galleon
#

hello there
the the passowrd attacks module Ptt windows section when i try to rdp it just fails

#

this are the creds from invoking the instance

acoustic owl
#

Try putting the password in quotation marks

midnight galleon
#

same thing

#

ok single quote worked

#

but why?

scenic path
#

Singlequotes disable handling of special characters like $

jolly yacht
#

In Introduction to active directory Module's guided lab part 1 section. if i rdp into that given windows server target its showing a black screen and after sometime showing the error shown in the ss. Any help please ?

jolly yacht
fathom pendant
autumn pilot
#

it has been explained numerous times and it is trivial

fathom pendant
#

hey @autumn pilot i was just on the Drupal section and decided to refactor the python2.7 exploit...only in the next sentence it gives your updated python3 version kek

vapid forge
#

Hey need help with this.. Within the "webfuzzing_hidden_path" path on the target system (ie http://IP:PORT/webfuzzing_hidden_path/), fuzz for folders and then files to find the flag.
i tried using this cmd ffuf -u http://94.237.53.113:56313/webfuzzing_hidden_path/FUZZ -w /usr/share/wordlists/SecLists-master/Discovery/Web-Content/web-extensions.txt:FUZZ -c and got .ic as output but i get 403 forbideen when i visit the website.

#

help anyone?

acoustic owl
#

you have to fuzz by files and not by file extensions

tender nimbus
vapid forge
acoustic owl
tender nimbus
#

just want to know why it didnt with the vpn setup

acoustic owl
vapid forge
#

aight a sec

acoustic owl
vocal holly
#

were you able to solve it?

stone elk
elder kraken
#

Check the /tmp directory and find Julio's Kerberos ticket (ccache file). Import the ticket and read the contents of julio.txt from the domain share folder \DC01\julio.

Can you help me with this question from the course? I've imported ccache file but I don't know how to use it to connect to the share? (Password Attacks - Pass the Ticket (PtT) from Linux)

fathom pendant
#

iirc it's as simple as using -k with smbclient

#

but it should be explained in the reading

elder kraken
#

I guess I'm just having trouble understanding the explanation, then.

vapid forge
# acoustic owl Look in the module. It explains which lists are suitable

got the list figured out. but am confused about the command ffuf -w /usr/share/wordlists/SecLists-master/Discovery/Web-Content/directory-list-2.3-medium.txt -u http://94.237.53.113:56313/FUZZ should it be this one or this>> ffuf -w /usr/share/wordlists/SecLists-master/Discovery/Web-Content/directory-list-2.3-medium.txt -u http://94.237.53.113:56313/webfuzzing_hidden_path/FUZZ

#

this is the module question Within the "webfuzzing_hidden_path" path on the target system (ie http://IP:PORT/webfuzzing_hidden_path/), fuzz for folders and then files to find the flag.

vocal holly
fathom pendant
#

it's literally telling you to start @ webfuzzing_hidden_path

vapid forge
stone elk
fathom pendant
vocal holly
vapid forge
fathom pendant
#

just have patience

vapid forge
#

ya

#

the module suggests this one /usr/share/seclists/Discovery/Web-Content/common.txt

#

maybe that's why am complicating it..

pseudo kiln
#

how does your second command look like ?

elder kraken
vocal holly
fathom pendant
#

so instead of 1; 00001 (or however many to meet the length)

vocal holly
fathom pendant
#

second question; are they the right length?

vocal holly
fathom pendant
#

visit that endpoint

#

:)

#

:)

fathom pendant
vapid forge
#

is says this is the flag directory

#

there's no flag

#

what wordlist for files should work?

fathom pendant
#

you can use the same

#

or use the other list mentioned in the reading

#

alongside the -e [.extension,.list,.here]

vapid forge
fathom pendant
#

the reading is pretty helpful in telling you what to try

vapid forge
#

i am following it

#

and this time it responded with an index.html page

#

which says the same as the flag dir

fathom pendant
#

weird i'm in the middle of another module atm so i can't troubleshoot this for you

fathom pendant
#

beyond index.html?

vapid forge
#

nope just his one

#

nah

vocal holly
fathom pendant
#

and you used all the extensions from the reading? and using common.txt?

vapid forge
#

can send u the active machine ip

fathom pendant
#

so i can't TS this for you

vapid forge
#

yes like .php, .jav

fathom pendant
vapid forge
#

its fine

vapid forge
fathom pendant
#

.php,.jav,.txt,.jav ...

#

bc i definitely feel like you missed something

vapid forge
#

ffuf -w /usr/share/wfuzz/wordlist/general/common.txt -u http://94.237.53.113:56313/webfuzzing_hidden_path/flag/FUZZ -v -c -e .php,.html,.txt,.bak,.js

#

got the respone from this.

vocal holly
vapid forge
#

can someone help?

spark spruce
vapid forge
#

i've found a flag directory but there's isnt one

#

so what do i do next

spark spruce
vapid forge
spark spruce
vapid forge
#

got seclists,

spark spruce
#

in section

vapid forge
#

a sec this one is given bro

fathom pendant
#

deleting bc spoilers

#

my guy

spark spruce
#

then what are looking for
you already got it @vapid forge

vocal holly
mossy plover
#

Guys to be a cyber security enginner is worth it nowadays??

mossy plover
#

İ m currently student but i don t know which field must i choose like to be android developer backend developer etch

spark spruce
spark spruce
vapid forge
#

did

spark spruce
stone elk
spark spruce
#

you should delete it from here

fathom pendant
#

@vapid forge are you including .html in your fuzzing extensions?

fathom pendant
fathom pendant
#

it's a different filename that's .html

vapid forge
fathom pendant
#

common.txt worked for me

vapid forge
#

it will but the flag is a file

#

@fathom pendant

#

sorry for the flag

fathom pendant
vapid forge
#

mistake

fathom pendant
#

it's one you keep making

#

:(

vapid forge
#

sori sori

brave sail
#

Anyone know of a color wordlist for a security question field? Tested a few short ones (~150 lines) like html-colors. None seem to work.

#

For API attacks skills assessment

mint linden
#

Any idea why I would be getting this error on a pre-built hack the box server???

vapid forge
spark spruce
fathom pendant
fathom pendant
fathom pendant
#

I've used windows snip a ton, never had it highlight unwantingly

mint linden
#

Must have clicked on something

wraith pelican
# brave sail Anyone know of a color wordlist for a security question field? Tested a few shor...

something like this project? Color names are in files with hex values, you can easily extract them or find a ready-made wordlist based on the project. There is multiple sources in there you can check. I don't know if that work for your API skill assessment though.
https://github.com/meodai/color-names

GitHub

Large list of handpicked color names 🌈. Contribute to meodai/color-names development by creating an account on GitHub.

fathom pendant
#

tfw a manual exploit works but the msfconsole exploit fails kek

brave sail
#

ama check it out🔝

brave sail
#

W wordlist

rare sky
#

hi guys, i have a problem with the machine at hacking wordpress module. I need the last flag, but the vulnerable machine is too slow and i cant upload my payload.

#

it's lag, and some times it gives me "this site can't be reached" then for some minutes it returns up. I have edit the host file and all, but nothing. I have tried also to change vpn but it still to go slow.

foggy monolith
#

Progress: module/112/section/1245

Attempt:
||

msfconsole
use auxiliary/scanner/ipmi/ipmi_dumphashes
<SNIP>
set OUTPUT_HASHCAT_FILE /home/<username>/Desktop/ipmi-hashcat-pwn.txt
exploit
exit
hashcat -m 7300 -a 0 Desktop/ipmi-hashcat-pwn.txt /usr/share/wordlists/rockyou.txt

||

Result: Hashfile ||'ipmi-hashcat-pwn.txt'|| on line 1 (<SNIP>): Token length exception

Why is the OUTPUT_HASHCAT_FILE generated by Metasploit specifically for Hashcat not being recognized as valid by Hashcat and how does one tweak the file so it actually gets properly recognized?

fathom pendant
#

module name and section name are more helpful than the endpoint

#

take out the -a0 that's not required

foggy monolith
#

Still giving the token length exception error

#

There has to be something buggy with the way Metasploit is exporting the OUTPUT_HASHCAT_FILE. Question is, how do I edit the formatting of the hash so that Hashcat sees it as valid input?

fathom pendant
#

don't take the file it outputs

#

i don't recall needing to edit it or do anything crazy

#

should be <username>:hash iirc

foggy monolith
#

Yeah, Metasploit is outputting it as username:long_hash:short_hash. Which of those 2 hashes do I use?

#

Because if I copy the whole line and paste it, I'm still getting the token length exception error.

fathom pendant
#

It's been a minute but like I said you shouldn't need to modify it

foggy monolith
#

Okay, it works if I snip the username out.

fathom pendant
#

Try with --username and see if that makes a difference

#

Or that works

rustic sage
#

im having xfreerdp RDP issues, where it doesn't connect properly, crashes everytime

fathom pendant
#

sounds like connection issues

#

try adding /timeout:99999

vapid forge
wild harbor
#

Hi Everyone ,Detection Example 3: Detecting Credential Dumping Q3) Replicate the Credential Dumping attack described in this section and provide the NTLM hash of the Administrator user as your answer. “C:\Tools\Sysmon” and “C:\Tools\Mimikatz” on the spawned target contain everything you need.
I try do Mimikatz the file AgentEXE.exe and i run this file do the same coomand line and passwd it work but when i go to event view there is no event Id 10, try find by the name of AgentEXE.exe not found any id 10.
i did the sysmon step also to double check. but also the same thing no found any event id 10.
how can i find it

#

Analyzing Evil With Sysmon & Event Logs Windows Event Logs & Finding Evil

fathom pendant
vapid forge
#

its taking soo long

fathom pendant
#

and it will bc that list is pretty big, you also don't need to rate limit

vapid forge
#

but the cheat sheet says so

fathom pendant
#

idgaf what the cheatsheet says

vapid forge
#

marcielee can u spoil the answer in dm ?

fathom pendant
#

i'm telling you from experience

rustic sage
vapid forge
fathom pendant
vapid forge
rustic sage
vapid forge
#

its already like 41-50 minutes

vapid forge
rustic sage
#

sometimes it's okay to know just understand why they got that answer

fathom pendant
proper mountain
#

yo in the SQLi findamentals module

We see in the above PHP code that '$conn' is not defined, so it must be imported using the PHP include command. Check the imported page to obtain the database password.

I'm not able to figure out how to get the name of the other page. Can someone give any hint.

vapid forge
#

@proper mountain how did you quote this

fathom pendant
#

Patience is a key virtue in the world of hacking

#

> at the start of the line

vapid forge
proper mountain
fathom pendant
#

> text here

text here

vapid forge
fathom pendant
#

¯_(ツ)_/¯

#

it's basic markdown stuff

vapid forge
#

pro

vapid forge
#

i know, i dont even wanna think at this point @fathom pendant

vapid forge
fathom pendant
#

chill

#

was looking it up

proper mountain
proper mountain
fathom pendant
vapid forge
#

rn? bruh this web fuzzing module

proper mountain
vapid forge
proper mountain
fathom pendant
#

bc i can't be asked to dig through every section

proper mountain
#

I can send the code here itslef

fathom pendant
proper mountain
proper mountain
fathom pendant
#

once you get the source code for A you can then find the source code for B

#

as described, by the module btw of viewing the source code

vapid forge
fathom pendant
#

just be patient you little fucker

proper mountain
fathom pendant
#

go grab a coffee and relax

vapid forge
fathom pendant
#

no

#

if you found something investigate it on your own

proper mountain
fathom pendant
#

i'm not in much of a mood for "and next"

vapid forge
#

i did but not working

proper mountain
fathom pendant
#

won't be exactly as the example

#

and it will lead you to the next crumb

proper mountain
#

fff

#

mb that was so obviuous

fathom pendant
#

:) don't always trust the examples; they will either be different or omit the next crumb

#

think for yourself, don't try and be a copy/paste warrior

proper mountain
#

thanks for the help... I just glanced through the source code on burp, thought they were the same so then I thought we had to invoke an error and it would show something because of the die fuction (idk php asked gpt to explain the code a bit).
Thanks tho

proper mountain
fathom pendant
vapid forge
#

what was it?

fathom pendant
#

as the answer is deeper than 2

sacred jacinth
#

I am unable to install PowerShellGet on the Target Host and on running Get-PSRepository I get the following warning:
WARNING: Unable to find module repositories.

I have tried to implement solutions from google but to no avail.

scenic path
#

Is anyone else experiencing slow connection / dropped connections on "Attacking Common Applications" ? I can imagine the hosts having low resources and running many services putting load on servers.

crisp remnant
#

Is there someone that can shed a bit of light for me about the second part of the assessment challenge for "Advanced SQL injections" module

vague tundra
#

File upload skills assessment was really something

#

it was cool

#

i mean is

fathom pendant
#

it's up there with the hard assessment for password attacks for me tbh

vague tundra
#

I did it in a few hours, wans't the hardest but probably the coolest

fathom pendant
#

oh yeah not saying difficulty wise, i'm more referring to the use of techniques

vague tundra
#

made me think I am a real investigator for a moment

high grove
#

Hello there.
I'm at the very end of the ADCS module and I'm stuck on the last question of the skills Assessment.
got the DEV01 with Machine Template.
Found Jimmy
Found a local cache credential for domain admin but unable to crack.
Tried ESC8 and ESC11 with coercer end petitpotam but each time got RPC error.
Only DEV01 allows me to coerce and potam ... then I have no clue to get the domain admin privilege.
Thank you very much

fathom pendant
#

and then you try one of the other techniques you swear you did

#

and it falls apart

vague tundra
#

I hope what's coming up in web would be as cool

gilded radish
#

What's the OS version?
Windows 10 / Server 2019 Build 17763 x64

#

what am I have to write

#

how to do it right

fathom pendant
viral cloud
#

In the detecting windows attacks with Splunk i have no logs when I try to run the query for detecting kerberoasting. I only have two events in the whole kerberoast index. Should that be that way or is something wrong with the instance? I tried restarting it

sturdy robin
#

did anybody pass Skills Assessment of module 280, Web Fuzzing?

dim wolf
#

some have completed it yes

sturdy robin
#

admin/panel.php with message "Invalid parameter, please ensure accessID is set correctly", I tried different fuzz that parameter with post and get requests but unsuccessful and actually stacked on it. Just want to know that it's correct

fathom pendant
#

it will be in common.txt

#

:)

sturdy robin
#

i did

fathom pendant
#

it 100% is in common.txt; i believe i used get requests

#

make sure your spelling is correct as well

foggy monolith
#

Why does ls <mounted NFS> take forever to run in the case of module/112/section/1079? Tried the following and it just hangs:

||```bash
mkdir Desktop/NFSPwn
sudo mount -t nfs <target IP>:/TechSupport Desktop/NFSPwn
ls Desktop/NFSPwn

The `ls` just hangs for 2 minutes, then throws `Permission denied` after keeping me waiting.
foggy monolith
#

Hangs in that case too. Why the slow performance?

#

I also get cp: cannot stat <SNIP>: Input/output error when I try to copy the files.

#

Never mind, copying files seems to be working on the second attempt.

zenith vale
foggy monolith
#

Update: the I/O error happened again. Can anyone explain why this is?

quasi wave
#

if your using pwnbox like I am its an issue

#

I was about to do skills assessment for the module I'm finishing but I'm gonna wait until later for this reason

foggy monolith
#

Using US-WEST-6 which is allegedly a low load — and it's also closer to where I'm located (California)

fathom pendant
quasi wave
#

and then what about the target?

fathom pendant
#

try sudo cat <snip>/ticket<snip>.txt

quasi wave
#

I'm too lazy to use VPN connection even tho I know how because I dont' want to actually install ParrotOS VM and use it yet. For my next computer, which I may get soon, I will probably use VPN connection because host OS will be Parrot OS but for now my OS is Kubuntu. Technically I have a Kali VM I'm just lazy so I use Pwnbox.

foggy monolith
quasi wave
fathom pendant
quasi wave
#

because its right there in the browser

glass quail
#

Module: Hacking Wordpress
Section: RCE via Theme Editor
I am having trouble with the 404.php it tells me Uncaught Error: Call to undefined function get_header() in /usr/src/wordpress/wp-content/themes/twentyseventeen/404.php:13 does anyone know how to fix this?

fathom pendant
#

the -size thing is taught btw in the Linux Fundamentals module 😉

fathom pendant
#

as a note whenever you see; file:N that N is the line number that's throwing the error

glass quail
fathom pendant
#

¯_(ツ)_/¯

glass quail
fathom pendant
#

then it looks like it either gets the function from somewhere else, or it's just an oops

glass quail
#

ya thats what I was thinking

fathom pendant
#

i wouldn't worry about the generated errors, just throw in your RCE, call it, and see if it works

#

:)

glass quail
#

ok

fathom pendant
#

btw in some of the modules they encourage you to use a random/obfsucated command so instead of 'cmd' you'd use like, the md5sum of the word 'cmd' (dcfdd5e021a869fcc6dfaef8bf31377e)

#

so that in the event some rando rogue hacker is also testing, you're not incidentally creating an easier path for them

#

so when you call it you do ?dcfdd5e021a869fcc6dfaef8bf31377e=<insert+command+here>

#

also don't forget with spaces either %20 or +

glass quail
#

it still brings up the error. if I was to delete the entire php and put in the RCE statement would it work

fathom pendant
#

¯_(ツ)_/¯

#

it's generally discouraged though to completely erase a customer's file

#

also just genuinely asking, you're referring to the error happening in the editor, or the page itself

glass quail
#

when I try to render the page in the browser it shows the error

fathom pendant
#

👍 just wanted to see what the error was

#

but i mean you likely can scrap the code; but in a real engagement you can't just go "so i scrapped your 404 page, and didn't back it up... soooorrrryyyy"

glass quail
#

i know haha

fathom pendant
#

can you check the other theme's 404 page? just out of curiosity

glass quail
#

transportex works

fathom pendant
#

then i'd say use that tbh

#

no sense in debugging something when you can just use something else

glass quail
#

the other ones that aren't active do the same thing would that be the problem

#

I'll do that because I just tested it and doesn't work

foggy monolith
fathom pendant
fathom pendant
glass quail
fathom pendant
#

well when you called the new shell did you specify the other theme?

rustic sage
#

hii

glass quail
#

yes in the url I can call any theme I want

glass quail
fathom pendant
rustic sage
#

There're having hacker, right?

fathom pendant
dim wolf
#

this channel is for discussion of HTB Academy modules

rustic sage
#

Okay

supple light
#

Hi. I'm doing the first DACL attacks module.

#

I don't understand the difference or relation between ActiveDirectoryRights and Access Mask.

#

user A has GenericWrite right over user B

#

and the access mask is ReadControl, WriteProperties, Self

#

My understanding is that Generic Write and Write Properties are different rights.

#

Anyone can shed a light on the difference between those properties please ?

supple light
#

access mask, a 32-bit value specifying the object's granted rights.

#

Why is it different from the ActiveDirectoryRights

fathom pendant
#

Generic is broad

#

Aka you have broad write access to something

supple light
#

So GenericWrite doesn't mean I can write what I want to the object ? So in some cases I can't write to some property for example ? And it's the mask that specifies exactly what I can write. Is my understanding correct ?

fathom pendant
#

basically yes

#

write = specific, genericwrite = broad

#

think of it like a generic access key to a building; you have a key to get into the apartment complex (genericwrite) then you have a key to get into your specific apartment (write)

supple light
#

Thank you !

fathom pendant
#

PRTG is giving me a headache as it's not doing the thing REEEE

foggy monolith
fathom pendant
#

snoop around for anything interesting

#

HTB user isn't gonna be a user on the system

#

he's ||in a database||

rustic sage
#

Hey there lads,

I'm currently doing Pivoting, Tunneling, and Port Forwarding

Do you guys have any recommended videos/articles for getting more knowledge on this matter? Would appreciate it!

sonic plume
#

could i get a little nudge in dm for file upload sa?

fathom pendant
foggy monolith
supple light
#

In the DACL Attacks, why does this work robocopy /b P:\Windows\ntds\ C:\Users\Public\ ntds.dit

#

but cp P:\Windows\ntds\ntds.dit C:\Users\Public\ not

fathom pendant
fathom pendant
supple light
#

Could you please elaborate. Like how can I robocopy then read a file that I don't have right to read in the first place.

fathom pendant
#

search on the page for /b

hazy brook
#

hi,
Service Authentication Brute Forcing
don't take the mr bill home flag....if it's correct
||HTB{n3---d5!}||

supple light
fathom pendant
#

yup

#

i'll give it a minute to kick in as to why that's an important distinction

supple light
fathom pendant
#

which is why proper rights management is important

supple light
#

Which rights do you need to be able to robocopy a file ?

#

Do you need SeBackupPrivilege ?

fathom pendant
#

i never dug deep into it ¯_(ツ)_/¯

#

just providing what documentation there is

supple light
#

Thank you ! This is confusing to me. I don't have access to the file. But I can robocopy it.

#

What if I use it access files of Administrator or sth

fathom pendant
#

¯_(ツ)_/¯

foggy monolith
fathom pendant
verbal kraken
#

hey everyone, in the information gathering module skill assessment i put the host in the /etc/hosts file but it doesnt resolve

fathom pendant
#

how did you put it in there?

#

if you put the ip:port in there; that's incorrect

#

😄

verbal kraken
#

83.136.251.65 inlanefreight.htb

#

no port

fathom pendant
verbal kraken
#

yeah

#

doesnt load the page

fathom pendant
verbal kraken
#

yep

fathom pendant
#

then restart the machine, make sure you replace the ip in your hosts file

#

if it continues happening, reach out to support

verbal kraken
#

wait

#

it works now lmao

#

didnt work when i was connected with vpn

fathom pendant
#

but eh

#

weird shit happens

verbal kraken
#

whatever it works now

#

what exactly is your problem

#

this module is messed up for me

#

i solved it before and my old answers show up in the new questions lmao

#

the name server is the ip i think

#

dig axfr inlanefreight.htb @machine_ip

#

not sure tho

fathom pendant
#

dig axfr inlanefreight.htb @ip

#

if you don't know the nameserver then you need to specify the IP

#

since .htb isn't a publicly routed tld

verbal kraken
#

np

fathom pendant
#

when in doubt use the IP

#

also not rooms; sections

#

modules are broken down into sections

#

rooms is THM lingo, and we don't do that here, we're better than that Kappa

gilded radish
#

Okay, I left for a while
but a question is still there

Using CrackMapExec
Basic SMB Reconnaissance

What's the OS version?
Windows 10 / Server 2019 Build 17763 x64

Windows 10
Server 2019
Windows Server 2019
doesn't work

sonic plume
#

windows 10?

gilded radish
#

Windows 10
Server 2019 - doesn't work
Windows Server 2019

sonic plume
#

which section?

gilded radish
#

Basic SMB Reconnaissance

quasi wave
#

hi so for the first question for the assessment section of shells and payloads module I'm trying to get the hostname of host 1. I have tried different things in Nmap and its still not showing up:

$sudo nmap -sC -sV 172.16.1.11 --script=banner.nse
Starting Nmap 7.92 ( https://nmap.org ) at 2024-08-14 17:58 EDT
Stats: 0:00:07 elapsed; 0 hosts completed (1 up), 1 undergoing Service Scan
Service scan Timing: About 0.00% done
Stats: 0:00:32 elapsed; 0 hosts completed (1 up), 1 undergoing Service Scan
Service scan Timing: About 63.64% done; ETC: 17:59 (0:00:18 remaining)
Nmap scan report for status.inlanefreight.local (172.16.1.11)
Host is up (0.044s latency).
Not shown: 989 closed tcp ports (reset)
PORT     STATE SERVICE       VERSION
80/tcp   open  http          Microsoft IIS httpd 10.0
|_http-server-header: Microsoft-IIS/10.0
135/tcp  open  msrpc         Microsoft Windows RPC
139/tcp  open  netbios-ssn   Microsoft Windows netbios-ssn
445/tcp  open  microsoft-ds  Microsoft Windows Server 2008 R2 - 2012 microsoft-ds
515/tcp  open  printer
1801/tcp open  msmq?
2103/tcp open  msrpc         Microsoft Windows RPC
2105/tcp open  msrpc         Microsoft Windows RPC
2107/tcp open  msrpc         Microsoft Windows RPC
3389/tcp open  ms-wbt-server Microsoft Terminal Services
8080/tcp open  http          Apache Tomcat 10.0.11
MAC Address: 00:50:56:B0:12:E4 (VMware)
Service Info: OSs: Windows, Windows Server 2008 R2 - 2012; CPE: cpe:/o:microsoft:windows

Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 75.25 seconds
┌─[htb-student@skills-foothold]─[~]
└──╼ $ping 172.16.1.11
PING 172.16.1.11 (172.16.1.11) 56(84) bytes of data.
64 bytes from 172.16.1.11: icmp_seq=1 ttl=128 time=0.572 ms
64 bytes from 172.16.1.11: icmp_seq=2 ttl=128 time=0.523 ms
64 bytes from 172.16.1.11: icmp_seq=3 ttl=128 time=0.586 ms
64 bytes from 172.16.1.11: icmp_seq=4 ttl=128 time=1.69 ms
64 bytes from 172.16.1.11: icmp_seq=5 ttl=128 time=0.631 ms
^C
--- 172.16.1.11 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4076ms
rtt min/avg/max/mdev = 0.523/0.800/1.690/0.446 ms
┌─[htb-student@skills-foothold]─[~]
└──╼ $sudo nmap -v -sP 172.16.1.11 
Warning: The -sP option is deprecated. Please use -sn
Starting Nmap 7.92 ( https://nmap.org ) at 2024-08-14 18:04 EDT
Initiating ARP Ping Scan at 18:04
Scanning 172.16.1.11 [1 port]
Completed ARP Ping Scan at 18:04, 0.01s elapsed (1 total hosts)
Nmap scan report for status.inlanefreight.local (172.16.1.11)
Host is up (0.00011s latency).
MAC Address: 00:50:56:B0:12:E4 (VMware)
Read data files from: /usr/bin/../share/nmap
Nmap done: 1 IP address (1 host up) scanned in 0.10 seconds
           Raw packets sent: 1 (28B) | Rcvd: 1 (28B)
┌─[htb-student@skills-foothold]─[~]
└──╼ $

I entered status.inlanefreight.local and it didn't work as host name.

#

but it should be no?

fathom pendant
#

That's the vhost. But not the hostname

quasi wave
#

ok hold on

fathom pendant
#

Hostname = computer name

#

Like how the hostname for the foothold is skills-foothold

quasi wave
#

ya I know

#

but then how do I get that?

fathom pendant
#

Looks like 8080 is open

#

Tomcat is a vulnerable service yknow

#

I suggest using firefox and hope you're rdp into the host

quasi wave
#

ok but firefox is not on this host

#

only tor browser which won't work

fathom pendant
#

Yes it is

quasi wave
#

why doesn't it show up under Internet?

fathom pendant
#

Try typing firefox in terminal

fathom pendant
quasi wave
#

ok thanks

#

wait I found it without opening firefox but ya opening firefox in terminal worked

#

ok great. thanks for the hint it will be helpful when I get to the web shells section

fathom pendant
#

Also credentials are given on the desktop for services

quasi wave
#

I opened the page in firefox and I did a failed login attempt then it gave me the username and password. I tried entering in the username and password to login again (this is for question 2) and it won't let me login as manager in GUI even with manager username and password.

#

Can someone help point me in the right direction here?

#

it says I need to add creds to this file but how do I do that?

fathom pendant
quasi wave
#

ok got it

fathom pendant
#

There's your credentials kek

quasi wave
#

ok I'm gonna keep trying

#

I'll get back to this tonight

gilded radish
#

please, help prayge

fathom pendant
#

what module and section?

#

since you keep bugging about it

gilded radish
#

CrackMapExec
Basic SMB Reconnaissance

fathom pendant
gilded radish
fathom pendant
#

not joking

gilded radish
#

I could give you my creds if you need

#

or send screenshots in dm

fathom pendant
#

it's that simple

#

it's a combination you likely didn't even think to do

glass quail
#

I have cubes to if you can solve me problem with hacking wordpress 😛

gilded radish
#

doesn't work

fathom pendant
foggy monolith
# fathom pendant Maybe those credentials are reused for a higher power

Alright, moved onto module/112/section/1080 now. Nmap scan of all ports showed that the POP3 and IMAP ports were open for both SSL and cleartext, yet the instant I initiated a script scan on the discovered ports directly, they suddenly went from open to filtered. Is there some IDS on the victim machine that the module description isn't telling us about?

fathom pendant
#

use the module and section name

#

not the endpoint

#

the endpoint is useless to me

#

yes there is

fathom pendant
gilded radish
#

thanks

fathom pendant
#

@gilded radish i'm deleting your messages considering it's a t3 module

#

and you've basically been spoiling it

gilded radish
#

yeah, sure, won't happen again

#

thank you so much

fathom pendant
#

(narrator: it will happen again)

gilded radish
fathom pendant
#

but yeah it's likely some version changes and such caused the difference

gilded radish
#

I will delete myself then

foggy monolith
fathom pendant
#

give me a minute jesus

fathom pendant
gilded radish
#

yeah, okay

#

yep, It output the same thing

glass quail
#

ahhhh ha I finally got it I think it was how I spaced out the RCE statement

fathom pendant
gilded radish
#

👍

fathom pendant
#

one of the few instances where i won't fault for spoiling kek *stupid bullshit nxc/cme

glass quail
#

@fathom pendant it also runs with the error too

fathom pendant
fathom pendant
#

i only have enough braincells to spare for a minute before cracking away at my own problems... like not being able to read kek

foggy monolith
fathom pendant
#

i would not

#

but you shouldn't need to scan all ports

#

it's a common port

#

ubiquitous enough to have a tool named after it

foggy monolith
#

Ah, yes. Alright then.

fathom pendant
#

if you want more hints just read the mission brief for the lab

quiet trout
foggy monolith
#

Isn't that the default?

fathom pendant
#

And -F is top 100

quiet trout
#

maybe the arg is top-10000-... ? i can never remember it, they shouldve made it 10k or 1k or whatever... something with... less zeroes?

fathom pendant
#

Also it's like --top-ports N

gilded radish
#

well you could use -p 0-10000

quiet trout
#

appears the option is actually --top-ports X

fathom pendant
gilded radish
fathom pendant
#

No, it's not :)

gilded radish
#

isn't it?

fathom pendant
#

Nope

quiet trout
#

"top" as in, most commonly used. not the top ports from 0-10k ascending

fathom pendant
#

^

#

Also you'd start at 1

#

Port 0 is a wildcard much like 0.0.0.0

quiet trout
#

hmm, dont think i knew that

gilded radish
#

oh

fathom pendant
quiet trout
void tendon
#

Hi!

I would appreciate it if anyone could help me. I don't understand something about Nmap with UDP and TCP scans.

In a TCP scan, Nmap receives an ICMP unreachable message and considers the port to be filtered (possibly by a firewall). In a UDP scan, Nmap receives the same response and considers the port to be closed.

So, my question is: Why does Nmap consider the port state differently with the same response? Is it because of how UDP and TCP work? (I know that TCP uses SYN/SYN-ACK/ACK).

fathom pendant
midnight galleon
#

Hi
can i get help with this question from password attacks?
Use the LINUX01$ Kerberos ticket to read the flag found in \DC01\linux01. Submit the contents as your response (the flag starts with Us1nG_).

fathom pendant
#

So if it's dropped, the assumption is that it's closed, not filtered

#

Since UDP isn't expecting an ACK response

midnight galleon
#

to solve this i have to do the whole chisel thing ?

fathom pendant
#

No

midnight galleon
fathom pendant
#

You need to find the Linux01$ machine ticket

#

The tool given in the section can enumerate it

midnight galleon
#

with linikatz?

fathom pendant
#

Yeppers

#

Though I think gh is down rn

#

But the example output shows a valid directory

midnight galleon
#

wow

#

github is down

#

what a nice world do we live in

fathom pendant
midnight galleon
#

found it

fathom pendant
#

👍

midnight galleon
#

i exported the ticket

#

but got this

rustic sage
hazy brook
midnight galleon
#

i hate this thing

#

but i dont think so it works normally ig with c$

void tendon
#

Thanks@rustic sage and @fathom pendant. 😀 It was just how I was thinking. It is because of how TCP and UDP work!

rustic sage
#

Ye

midnight galleon
rustic sage
midnight galleon
#

oh it is unnessecery at all
LINUX01 just works

fathom pendant
#

If you look at the question :)

midnight galleon
#

yeah I was just being a script kiddie:)

#

Thanks for the help!

void tendon
rustic sage
#

Yes, if a system simply ignores incoming UDP packets, the sender might keep sending them, leading to unnecessary network traffic

fathom pendant
high reef
#

when i follow along with the module this is the output i get

#

any idea what i can do to get the answer ?

fathom pendant
#

visit the page itself and see

#

also don't run around your system as root, it makes you look like a skid

#

js

#

if you need root to do something, sudo it

spark spruce
#

DM

hazy brook
#

to escape the full screen of rdesktop?
inside a VM
CTRL+ALT+RETURN don't work

strange pivot
#

sign out gian

#

its because two hotkeys are set up with same keys i think

hazy brook
#

black screen
restart 🫤

shut vapor
#

When you extract keys with mimikatz, why are all the rc4_* hashes the same?

#

And can I get aes256_hmac from an lsass dump; I get the rc4_hmac with pypykatz but not aes256_hmac

foggy monolith
#

Mine says open|filtered for whatever reason but still displays all that info — normal?

quiet trout
# rustic sage In a TCP scan, receiving an ICMP unreachable message suggests that the packet wa...

what does this look like on tshark or when sniffing or w/e can we verify that in some tangible way by viewing the traffic? this is also something i wasnt aware of... confferring a port closed/filtered based on response (or lack of) edit: if we're expecting an ACK or RST, we can assume that a lack of either of those two must mean the port is filtered? is thatwhats going on behind the scenes?

fathom pendant
#

tfw i don't notice the "agent login" button for a minute kek

foggy monolith
#

Never mind, fixed by removing the -T5

fathom pendant
fathom pendant
# shut vapor

because rc4 is just the encryption mechanism, and they are all the same mechanism

#

that rc4 is the LM hash from what I recall

#

rc4 is extremely insecure :)

foggy monolith
#

Interestingly, though, ||snmp-brute.nse|| also changes the port status from open to open|filtered — any idea why that could be?

shut vapor
#

Thank you... naturally my next question is about what I think is the hash function (e.g. hmac vs md4). A different hash function should result in a different hash by my thinking.

#

You're right it is the LM hash (or NTLM hash, I'm a little fuzzy on the distinctions between all these still) and it matches output I get when extracting hashes from an lsass dump with pypykatz... but I don't get the aes256_hmac hash with pypykatz.

fathom pendant
fathom pendant
#

what you're seeing is the base of what would be fed to those algorithms basically

fathom pendant
#

in most cases with LM:NT (that's the ordering) what's cracked first is LM which is then mutated to crack the NT

#

since LM hashes have a significantly reduced character space

#

iirc only lowercase/numbers/special characters

shut vapor
#

Oooh ok. Thanks. There's a lot of weird nuance with Windows auth that I'm afraid is going to take me quite a few attempts at meandering into the docs and tools to really grok. I think I've got most of what I need for now, but without fully putting all the detail together.

fathom pendant
#

i mean all you need to know is that hashes, for all intents and purposes, are as good as passwords when doing pth

shut vapor
#

Sure, I get that pretty much. I spent quite a number of years programming and as a result get somewhat fixated on the details 😅

#

Also this is the first area with which I had zero prior experience.

shut vapor
#

no. my notes actually say "there is not a whole lot to using onesixty"

fathom pendant
#

if you're gonna use the integrated terminal just pull up the actual in-browser vm

foggy monolith
fathom pendant
#

sometimes the integrated terminal is dumb

foggy monolith
#

Yeah, noticed.

fathom pendant
#

so i'm chalking it up to the Integrated terminal being adumb

#

Most people do AEN blind, please refrain from posting spoilers about that module

#

the module itself should be the walkthrough, if you're struggling then idk what to tell you

rustic sage
# quiet trout what does this look like on tshark or when sniffing or w/e can we verify that in...

Yeah for TCP, no response or an ICMP unreachable suggests interference, probably by a firewall. However, open UDP ports often don't respond at all to empty packets. This is why Nmap interprets an ICMP unreachable message as "filtered" for TCP but "closed" for UDP. You can verify this behavior by capturing network traffic during Nmap scans which will show these different response patterns for TCP and UDP ports in various states.

fathom pendant
#

@ashen dagger as stated just above; most people do it blind; please refrain from spoiling the module. If you can't do it with the steps laid out in front of you, please reread the section or previous sections that may have gotten you to that point

#

often for a user to get added to a group you need to log out/in for it to take effect