#modules

1 messages · Page 226 of 1

fringe urchin
#

Usually just opened new terminal and closed it via process

tulip dragon
#

no it won't work

molten current
#

:(){ :|:& };:

tulip dragon
next bronze
tulip dragon
#

look like my rams enemy

molten current
fringe urchin
#

There are two zones. Every of those contains an x amount of A records. Count them all together. Idk how else i can explain?

tulip dragon
#

my ram say don't take candy from strangers

brazen saffron
fathom pendant
molten current
fathom pendant
#

the second zone has more records than 4 (which you got the max of 23 somehow)

#

you don't need to paste it here

#

i'm asking you to look at it and do it for the subdomain as well

#

then do the math

#

(also you can just add | wc -l to count it for you)

molten current
#

ok that started making sense

fathom pendant
#

a + b

fringe urchin
#

= c

fathom pendant
#

that's your answer

molten current
#

inlanefreight.htb is a zone ?

fathom pendant
#

it's the root zone

fringe urchin
blissful elm
fathom pendant
#

also if you wanna paste large blocks of text, and images read and follow #welcome

molten current
acoustic owl
fathom pendant
molten current
fathom pendant
#

i.e. if you're dealing with right triangles, conventionally you'll use a, b, c

molten current
#

lol

fathom pendant
tulip dragon
#

mericie have u compelted cpts path

fathom pendant
brazen saffron
fathom pendant
fringe urchin
fathom pendant
#

inlanefreight.htb. is the base zone

fringe urchin
fathom pendant
molten current
tulip dragon
#

its look sus

fathom pendant
#

it's a tld

acoustic owl
fathom pendant
#

each subdomain is a zone; some are overseen by different things

molten current
fathom pendant
molten current
#

and main domain is ?

fathom pendant
#

inlanefreight.htb

#

subdomain.domain.tld

fringe urchin
brazen saffron
molten current
#

the result of the second zone is zero 🤓

fathom pendant
acoustic owl
fathom pendant
#

fair

#

it's just a mess of configuration

#

vHost stuff

molten current
#

yep, networking is important

tulip dragon
#

weird now i can understand above chat🤓

fringe urchin
molten current
#

dig axfr @10.129.42.195 ns.inlanefreight.htb | grep -E "\sA\s" | wc -l

fringe urchin
#

Wrong subdomain

molten current
#

thats wut i thought

fathom pendant
acoustic owl
molten current
#

i gotta start taking notes of my answers

fringe urchin
fathom pendant
acoustic owl
fathom pendant
#

note: i'm not even referencing my notes

#

i literally spun up pwnbox + target and ran the commands

#

and it worked, giving me the right answer

molten current
fathom pendant
molten current
#

aka laziness

fathom pendant
#

it helps reinforce knowledge

fringe urchin
tulip dragon
#

point it out if i am wrong , imagine i make website jojo now if i have to divide my website into subdomain acc to its need like admin , dev, webadmin then i make admin.jojo.com dev.jojo.com and webadmin.jojo.com and each subdomai have their own rights , workspace etc

fringe urchin
molten current
#

OMG I GOT IT

#

love you guys so much

#

thnxx

fringe urchin
brazen saffron
#

||curl 'http://94.237.49.166:48210/cart.html'
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8'
-H 'Accept-Language: fr'
-H 'Cache-Control: max-age=0'
-H 'Connection: keep-alive'
-H 'If-Modified-Since: Mon, 28 Sep 2020 11:56:48 GMT'
-H 'If-None-Match: "3348-5b05e5c72e000-gzip"'
-H 'Sec-GPC: 1'
-H 'Upgrade-Insecure-Requests: 1'
-H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36'
||
I don't understand what else I can do but there is nothing I can do here... ?
Only this button is sending something somewhere else, I tried to get the "result" for the ||checkout|| but I have only this type of request when I press the button :
||curl 'http://94.237.49.166:48210/checkout.html'
-H 'Referer: http://94.237.49.166:48210/cart.html'
-H 'Upgrade-Insecure-Requests: 1'
-H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36'
--insecure ||

https://academy.hackthebox.com/module/58/section/534

fringe urchin
#

duckthumbsup great hope you learned something aswell

molten current
#

but i still have a question

tulip dragon
cloud urchin
molten current
#

how did we know that the second zone is the right subdomain ?

#

there like 19 subs

brazen saffron
#

When I use sqlmap it does the same.

cloud urchin
fringe urchin
molten current
#

huh

fringe urchin
fathom pendant
brazen saffron
fathom pendant
molten current
fathom pendant
fathom pendant
#

localhost generally means it's on the same server

fringe urchin
cloud urchin
# brazen saffron Ex:

Are there any other pages that may have an injection point if those aren't working?

brazen saffron
molten current
brazen saffron
#

I read an arcticle from soneone bc I tried a lot of things and... they are saying it : ||Okay so, burpsuite, playing around with the shopping items and adding to cart registered the post request. Do the old save to a text file.||

molten current
#

thanks to all

tulip dragon
#

i am pretty sure i have never saw this channel thi much active 3-4 months before

brazen saffron
#

WAIT BRO I LL CRY !

#

FoxProxy was glitched.

fathom pendant
#

"glitched" or wasn't set right

brazen saffron
#

Bro I litterally clicked on ALL FKING ||articles|| in this site!

brazen saffron
#

lol.I don't know why but...

#

I got a new thing.

#

LETS FKING GO !

#

More easier 🙂 xd.

cloud urchin
#

nice job

brazen saffron
#

Just to have results faster than default do there is something 🤔 ?

#

Just trying to look at DBs and taking a very long time...

soft cedar
#

do you still need help?

queen oyster
#

Bump 😄

half stag
soft cedar
half stag
#

i also tried dumping SAM and get the local admin hash

#

nothing worked

soft cedar
half stag
#

i triedit

#

nono of the hashes worked

soft cedar
half stag
#

DM?

soft cedar
#

yes

half stag
#

ok

cloud urchin
#

probably should delete those pics, but that is not the answer

#

it will accept the correct answer

brazen saffron
#

?

fringe urchin
#

I havent done it but like the 1337 is sticking out for me since well its a "meme number"/ number used in cybersec a lot.
Yoi sure its nothing there? Like i said i havent done it, cant help you other then what it looked a thorn in my eyes. I could be wrongSadgeCry

fathom pendant
brazen saffron
#

It's the reason why I set them as "spoiler"...

cloud urchin
#

it's against tos to post it

fathom pendant
#

that really doesn't mean much to mark them as spoiler

#

as anyone can still see them

brazen saffron
#

He have to click on it to see, if he clicks it's because he wanted to see...

fathom pendant
#

best practice, if you need to screenshot, is to redact anything that may be used

dim wolf
#

you should probably at least redact the flag using an image editor

brazen saffron
#

Well ok...

fathom pendant
brazen saffron
#

???

fathom pendant
#

as spoiler text is a toggleable setting

cloud urchin
#

you're posting spoilers for a skill assessment dude, just delete it

brazen saffron
#

I am speaking about images.

cloud urchin
#

its against the rules

#

you need to tune your attack

fathom pendant
fathom pendant
#

it's still a toggle setting

brazen saffron
fathom pendant
#

it means that not everyone has the setting turned on to have it revealed on click

#

and always show spoiler

brazen saffron
#

kek really stupid imo but ok...

cloud urchin
# brazen saffron ?

You're very close, but something is off. You can either infer what's wrong with the string, or you can tune your attack if there's something wrong with the data returned.

#

not really much more i can say

brazen saffron
#

But I did not understand the "attack tuning" thing...

fathom pendant
#

attack tuning = adjusting your attack to get the right answer

brazen saffron
#

Yeah but.

#

They are speaking about "strings" titles etc.

#

And no examples or something to help what it does.

#

The only thing I know it that it's a ||Time based blind||.

woven zenith
#

File Upload Attacks: Type Filters
-I need some help on how to fuzz for the image/ part of this section, the course just skips over it like I already know it
-Am I trying to do the "Add&" for the image/ part? If so where does it go?

cloud urchin
brazen saffron
rustic sage
#

Colleagues continue to ask the question: What is the FQDN of the host where the last octet ends with "x.x.x.203"? I'm digging up information but I'm still not succeeding I've done subdomain enumeration but I think I'm missing the correct word list DNS Footprinting Module

brazen saffron
#

FQDN = Fully qualified domain name

#

WIth nslookup you can find it.

woven zenith
woven zenith
cloud urchin
#

each section builds on itself

woven zenith
cloud urchin
#

the content-type section shows that in the screen shots

#

content-type is a header

woven zenith
fringe urchin
fathom pendant
rustic sage
#

dnsenum --dnsserver 10.129.81.137 --enum -p 0 -s 0 -f /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt dev.inlanefreight.htb

fathom pendant
#

we're telling you your wordlist is wrong, use a different one

#

also delete as it's a spoiler

#

for the propper subdomain

woven zenith
fathom pendant
#

are you asking or are you telling that you did it and it didn't work

cloud urchin
#

load the wordlist and look at it

fathom pendant
#

do first before asking

#

if your revised command doesn't work, then ask again

#

I'm not gonna tell you yes/no - or explicitly tell you that this is exactly the command you do - rather guide you to figure it out on your own

rustic sage
#

im so happy i found the answer

fringe urchin
#

Delete both commands since they contain spoiler

fringe urchin
fathom pendant
woven zenith
fathom pendant
#

but congrats

rustic sage
#

thanks

fringe urchin
fathom pendant
#

and the ones posted in the #cpts channel

rustic sage
#

i already did

#

These types of questions are what really teach you how to understand the topic being discussed

fathom pendant
#

i believe the hint even says the same thing "not all wordlists are the same"

fathom pendant
#

it's likely the subdomain exists within other wordlists as well

cloud urchin
fathom pendant
#

@ancient bane two things; i hope those 88 in your username are just coincidence and not something else and two don't DM without asking

ancient bane
#

Sorry

fathom pendant
#

(for those curious, think about what the 8th letter of the English alphabet is)

fathom pendant
fringe urchin
#

Im trying to wrap my head around this LOL. Im too tired i guess

fathom pendant
#

Now think of what HH can mean (hint Germany 1942)

cloud urchin
#

bro just made his account today too

fathom pendant
#

Coincidence, I'll believe in - benefit of the doubt and all that

fringe urchin
fathom pendant
fringe urchin
#

OMG

ancient bane
#

Wow I really like your scope

#

But I didn't think of it in a such way

fringe urchin
#

Yea idk how that flew above my head lol

ancient bane
#

I would really like to apologize for the Dm

fringe urchin
#

Hochwürdiger Herr was my guess

fathom pendant
#

You poor innocent soul

fringe urchin
fathom pendant
#

Either way. Cold dming is against server rules

#

I suggest reading those

ancient bane
#

Sure will do

tame sphinx
#

hello, i have a question about kerberoasting that is bugging me: What accounts are kerberoastable? From what I understood you need the TGT of a user to ask for a TGS right?

soft cedar
#

It enables us to request the TGS for that services which can later be cracked offline.

mint echo
#

yoo whatsup guys, I had a question.

I spawned a target on Getting started module - Nibbles Enumeration. I needed to run nmap on it but pwnbox is 0/1, so I went to my kali virtual machine but there it doesnt work. Why is that?

#

can anyone help me out please

soft cedar
# tame sphinx hello, i have a question about kerberoasting that is bugging me: What accounts a...

Here’s a great resource
https://adsecurity.org/?p=3458

fringe urchin
mint echo
soft cedar
#

Yes sir. prayge

mint echo
fathom pendant
# mint echo Nope

you need to download the academy vpn and connect to it to interact with that target

#

as it's on a private 10.129.x.x server

mint echo
#

alright thank you so much guys, Imma do that

tame sphinx
cloud urchin
#

which module/section/question are you stuck on?

#

i bet your answer is in there

fathom pendant
tame sphinx
#

I'm just trying to understand the attack behind, not in a specific module/question (but currently doing Windows Attack & Defence)

mint echo
#

I think this is happening because of bad internet connection right?

soft cedar
tame sphinx
#

Will do, thank you for the time 🙂

quasi jungle
#

Any idea how to specify a custom port with sqsh

sqsh -S 10.129.203.7 -U .\\julio -P 'MyPassword!' -h```
fathom pendant
#

though idk if it's running on a custom port

fathom pendant
#

so you may just need more or perhaps you can do .// and it'll just know

cloud urchin
quasi jungle
quasi jungle
fathom pendant
cloud urchin
quasi jungle
fathom pendant
quasi jungle
#

Doing that right now

#

mssqlclient.py -port 1433 htbdbuser@10.129.203.12
Seems to work while it doesn't seem to be the intended approach since it seems that I have to specify the domain and use windows-auth

While if I go with that approach with -windows-auth flag and specifying the domain

[-] ERROR(WIN-02\SQLEXPRESS): Line 1: Login failed. The login is from an untrusted domain and cannot be used with Integrated authentication.
#

Any ideas of what I should try

fathom pendant
#

oh wait i just saw

#

i mean you can try adding the domain? aren't you given it?

quasi jungle
fathom pendant
#

what about INLANEFREIGHT\htbdbuser?

cloud urchin
quasi jungle
# fathom pendant what about INLANEFREIGHT\htbdbuser?

INLANEFREIGHT isn't the domain in the module, its the "Attacking services" one with mssql

SQL (htbdbuser  guest@master)> enum_links
SRV_NAME              SRV_PROVIDERNAME   SRV_PRODUCT   SRV_DATASOURCE        SRV_PROVIDERSTRING   SRV_LOCATION   SRV_CAT   
-------------------   ----------------   -----------   -------------------   ------------------   ------------   -------   
WINSRV02\SQLEXPRESS   SQLNCLI            SQL Server    WINSRV02\SQLEXPRESS   NULL                 NULL           NULL      

Linked Server   Local Login   Is Self Mapping   Remote Login  ````
cloud urchin
fathom pendant
quasi jungle
heavy edge
#

on the easy pw lab, do you chunk up the pw.list or use the full thing? i mutated and got nothing. also reading on the forums to use the defualt lists not the mutated

quasi jungle
#

Managed to use sqlcmd. Now trying the same approach

quasi jungle
heavy edge
#

how long did it take you to get the pass? im BFing the secondary F service not the one indicated in the questions

soft cedar
heavy edge
#

hmmm im attacking F not S

soft cedar
#

you can increase the threads to make it run faster

#

the assessment labs don't take too long when bruteforcing as compared to the ones in the section.

heavy edge
novel hinge
#

password attacks password mutations im stuck, rrann hashcat --force password.list -r custom.rule --stdout | sort -u > mut_password.list to create new password list than ran hydra -l sam -P mut_password.list ssh://<ip> and nothing. there are 120k passwords and i got past the firrst 4k and nothing. anyone tell me if im doing thiss wrrong?

heavy edge
#

remove all with less than 10 chars

#

sed -ri '/^.{,9}$/d'

#

then take in the first 20k so head --20000 xx.list > 20k.list

novel hinge
#

sounds good

#

let me trry that, ill get back to you.

heavy edge
#

but use higher threads liek 48 or 64

next bronze
#

also don't use --force, it can mess things up

heavy edge
#

this bf is annoying

#

i should go watch a show and wait for it to hit

fathom pendant
#

second: attack a different service

#

ssh is a slow service to brute with hydra and cme

fathom pendant
#

eh telling them to narrow it down that specifically defeats (somewhat) the purpose

#

however cutting the first 17k lines is definitely helpful for massively speeding most of the rest of the module up

noble hazel
#

Anyone have done the Injection Attacks skill assessment? I can read the contents of passwd but I cannot find were the flag is located. Thanks in advance.

fathom pendant
noble hazel
fathom pendant
#

does the question tell you where it may be?

#

(i haven't done the module, but usually the questions give you a hint or place to look)

noble hazel
#

Thanks

fathom pendant
#

np

#

sometimes the wording of questions can make you overthink

upbeat pike
fathom pendant
#

lmao look at their xbox tag

solid python
#

Gottem

hexed spindle
#

I need assistance again with AD Enumeration & Attacks - Skills Assessment Part I. Can someone point me in the right direction so I can find information on MS01?

fathom pendant
#

MS01 is the first windows host iirc

#

if you sign in to it and do hostname it should tell you

hexed spindle
#

I am currently connected to the webshell still. Don't know where to find the first host.

fathom pendant
#

ah right the first part is on WEB01

#

I would say get a pivot in place or once you extract and get some creds try to rdp with them onto the WEB01 host

hexed spindle
#

I have not been able to use the creds I have found to connect to anything. Am I overthinking things?

fathom pendant
#

well; i would suggest trying to upgrade your shell to a full one first

#

a powershell one-liner or something like that

storm hedge
#

@hexed spindle what information do you need specifically?

fathom pendant
#

also from the webshell you can ping MS01

storm hedge
#

@hexed spindle I did this skill assessment today

fathom pendant
#

and that should tell you the IP of the MS01 machine

hexed spindle
#

I knew I was overthinking something. Did not know I could simply ping MS01.

storm hedge
#

@hexed spindle you have also nslookup

hexed spindle
#

Thanks for the direction!

fathom pendant
#

you should also be able to ping the DC01 iirc

#

lots of different methods of finding

heavy edge
#

so i dont have to use the mutated list right

#

times are stable too

fathom pendant
#

doesn't look stable; those first few pings show near 1k ping

fathom pendant
heavy edge
#

thats normal with the connection tho

#

easy pw lab

#

sorry should have specified

fathom pendant
#

oh. I don;t believe so? but I could be wrong

#

it's been a hot minute

#

just always enumerate to be sure that you can find users

heavy edge
#

the only thing open is ssh and ftp which is not anynmous

fathom pendant
#

did you try CME with smb to check for Null sessions? (-u "" -p "")

#

ah i forget what all services are open on the host

heavy edge
#

yeah 21 and 22 w/o anonymous login

#

its a straight BF but the password wont pop

fathom pendant
#

ah yeah

#

just gotta be patient

heavy edge
fathom pendant
heavy edge
#

are you talking udp?

fathom pendant
#

i just ran an nmap scan and found 7 services

#

oh wait

#

i'm stupid

heavy edge
#

on the EASY password lab?

fathom pendant
#

i was looking at the wrong thing

heavy edge
#

you had me tr4iple looking

fathom pendant
#

kek sec i thought i was in the password lab

heavy edge
fathom pendant
#

i didn't use the mutated list

#

but I did use the provided user and password lists

#

once you get in; it's the easiest way to get to root from there kek

#

user is not smart and secure

heavy edge
#

i keeps ending

#

my network isnt that bad

fathom pendant
heavy edge
#

okay im done with hydra

#

imma cheat

thorn urchin
#

not cheating if it works

#

but imo hydra>msf

heavy edge
#

i agree but im getting constant fails

#

its timing out and im not sure why its so spotty on it

fathom pendant
#

your fails aren't due to hydra

heavy edge
#

ik they aren

fathom pendant
#

it's your connection with the vpn

#

as I suggested, changing the vpn region may fix your woes

heavy edge
#

ive swapped between all 3

#

us regions

thorn urchin
#

you can try the pwnbox as well. that way even if your connection to the site drops your instance is still chugging along

fathom pendant
#

the only time I would really say to be that specific is if it's seeming like for w/e reason their command looks right but still isn't working

#

and usually it's the dreaded "you misspelled something" error

heavy edge
#

still going

#

positivity? how far down is it jeebus

cloud urchin
#

they've stated they don't want people bruting for hours etc, so you probably have something off

fathom pendant
#

you are using default threads

#

so it's gonna be a little slower

heavy edge
#

when i use t 48 or 64 it times out

fathom pendant
#

did you change vpn regions and download a new vpn pack?

heavy edge
#

yes

#

but im honestly gonna blame my isp and apartment complex at this poinr

fathom pendant
#

fair enough

heavy edge
#

i mean look at this... they have a funky network setup in an "internet ready" place

#

this is the WAN

fathom pendant
#

i mean

#

that's really not funky

heavy edge
#

their public is routed thru their edge router, ran like 400ft and then into my router

fathom pendant
#

looks like you're given the 10.1.22.0 subnet

heavy edge
#

which then nats to a 10.x.x internal

#

their edrouter is on 10.1.14

#

they have a different subnet for each unit

fathom pendant
#

ye

#

that's not that odd

#

and makes sense, you don't want your neighbor to be able to peek at your stuff

heavy edge
#

no ur right, but the speeds are heavily diminished

#

and it makes port forwarding a mess

steady anchor
#

any site recommendations of indepth anatomy of hardware components

#

basic motherboard especially

fathom pendant
tulip dragon
#

how to see the time of cronjobs , command didn't mentioned

fathom pendant
rustic quiver
#

How do you find the ftp version in the footprinting module? I've tried nmap, and I've tried status but both answers are incorrect

tulip dragon
#

mearcie when do u sleep bruh

fathom pendant
#

the version is shown in the connection banner

fathom pendant
tulip dragon
fathom pendant
#

crontab -l iirc

rustic quiver
tulip dragon
fathom pendant
tulip dragon
#

i used that

rustic quiver
fathom pendant
#

ig i don't know what you're trying to do

#

crontab -l <user> is how you view another user's crontab (but you'd need root)

tulip dragon
#

ah

fathom pendant
#

but if there's no crontabs set; then it's gonna be empty

tulip dragon
fathom pendant
#

if it's running with root privileges, yes

#

the crontab is run under the user's permissions

#

and generally the root user is gonna be the one running the backup

tulip dragon
#

that make sense now , coz there is no cron for htb-student

fathom pendant
#

which, as explained, is running in a misconfigured manner

#

as the backup script itself is world writeable

#

meaning that if you edit it, you can drop a revshell

#

and get root

tulip dragon
#

that i know that its writable , but was wondering how to know if it was running 3 min or 3 hr

fathom pendant
#

* * * * * <- this part is the timing

tulip dragon
fathom pendant
#

when you view the crontab it shows you

#

the website i linked earlier shows them

tulip dragon
next bronze
#

crobtab guru my beloved

fathom pendant
#

what module/section are you on?

tulip dragon
fathom pendant
#

it literally tells you a tool to use

#

you goon

tulip dragon
#

i hate tools

fathom pendant
#

well get used to them

tulip dragon
fathom pendant
#

becaues they're fuckin useful as fuck

#

it's literally right after that paragraph you're talking about

#

read the rest of the page before asking questions

tulip dragon
#

ah bt not installed

fathom pendant
#

then transfer the tool over

fathom pendant
#

i'm gonna be honest

#

reading really helps avoid confusion

#

btw the find command they give you to look for files is for world-writeable documents (o+w) file perms

glad condor
#

hello i'm stuck in "Predictable Reset Token" question 1 : my script is launching but i don't got the right token

fathom pendant
glad condor
heavy edge
#

where are the resource files in the pwn box

#

im stll not pulling a password its timing out. im over my isp

glad condor
fathom pendant
fathom pendant
#

i also add && unzip <filename>.zip if I know it's a zip file

heavy edge
#

oh i wasnt sure if i was able to. the last time my kali ip was the same as the pwn box

fathom pendant
#

you can

#

also

#

if you're using the pwnbox, don't use the vpn

#

it WILL cause collision issues and break

heavy edge
#

how to i wget if i dont use my vpn

fathom pendant
#

brother

#

the files are hosted publicly not privately

heavy edge
#

OH

#

i thought you meant

fathom pendant
#

also if you're using the in-browser pwnbox: there's no need to use the vpn

heavy edge
#

yeah nevermind

fathom pendant
#

Click Resources -> right-click download -> copy link

heavy edge
#

i dont use pwn box much

tulip dragon
#

so htb just wanted to help user that the backup.sh is running after evry 3 min but u can't find this info without sudo priv

next bronze
#

yes but you can see it in pspy, that's how it works

fathom pendant
#

Pspy doesn't read crontab, it's looking for new processes

heavy edge
#

just why

#

these bash historys are hilarious

tidal mango
#

Intro to Assembly Language - Data Movement-- "Add an instruction at the end of the attached code to move the value in "rsp" to "rax". What is the hex value of "rax" at the end of program execution? " Can anyone help me with this one? I see some posts from last year on it, but I am not seeing what anyone did to get the answer. I have tried redoing the last line in this everyway I can think of... ```
global _start

section .text
_start:
mov rax, 1024
mov rbx, 2048
xchg rax, rbx
push rbx
mov rax, rsp

next bronze
tidal mango
#

Yeah, so I honestly dont think I understand it right, but I tried doing move rax, [rsp] as well, and flipping it, rsp, rax and rsp, [rax]

next bronze
#

move rsp, [rax] doesn't make any sense, rax is not a pointer

#

so if you have used move rax, [rsp] , what do you see in gdb for the value in rax?

tidal mango
next bronze
#

have you tried that as the answer?

tidal mango
#

yes

next bronze
#

what excatly did you enter as the answer

orchid moat
#

Hello, noob here. I am trying to count the number of installed packages. Using apt list --installed | wc -l getting wrong answer

tidal mango
#

yes

next bronze
#

try again

#

make sure there's no space at the start or end

next bronze
tidal mango
#

maybe it was the cut and paste fail...

next bronze
#

alright now let's delete the answer

tidal mango
#

copy and paste

tidal mango
next bronze
#

yeah just remember to check for extra spaces if you're sure the answer is right

tidal mango
mellow birch
#

hi im getting request validation failed when trying to start the pwnbox

heavy edge
#

okay this

#

this is what i wanted

#

THIS was a fun challenge

#

cant use my network to BF but i can use it to john some other stuff kek

misty nova
#

Help pls 🙂
Introduction to bash scripting-Flow Control - Loops:
Create a "For" loop that encodes the variable "var" 28 times in "base64". The number of characters in the 28th hash is the value that must be assigned to the "salt" variable.

# Variables
var="9M"
salt=""
hash="VTJGc2RHVmtYMTl2ZnYyNTdUeERVRnBtQWVGNmFWWVUySG1wTXNmRi9rQT0K"

# <- For-Loop here
for i in {1..28}
do
    var=$(echo "$var" | base64)

    if [[ i -eq 28 ]]
    then
        salt=$(( ${#var} + 1 ))
        echo $salt
    fi
done

# salt=$(( ${#var} + 1 ))
# echo $salt

# Check if $salt is empty
if [[ ! -z "$salt" ]]
then
    decrypt
    echo $flag
else
    exit 1
fi

I've tried many different things here including var=$(echo "$var" | wc -c), setting the salt outside of the loop, using wc -c on the salt and am consistently getting the same answer of 34071. I'm running it on the box but the answer is wrong. Help is appreciated.

next bronze
misty nova
next bronze
#

anyways that's not the right bash syntax, if you want to use a variable, it should be $var

#

the number is correct, did you continue with the rest of the script?

misty nova
#

That's the end of it unless I'm missing something?

next bronze
#

what about the decrypt function?

misty nova
#

The decrypt function was provided in the exercise script. I left it out for brevity

next bronze
#

yes did you run that function as a part of your script

misty nova
#

No, I assumed it only ran in the last if statement if the salt was empty. It would make sense to use it, I just assumed I didn't need to. The instructions weren't very clear.

next bronze
#

if [[ ! -z "$salt" ]] means not empty

misty nova
#

Oh, right. So then it is running.

next bronze
#

send the entire output of the script here

misty nova
#

34071
*** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.
HTBL00p5r0x

next bronze
#

the flag is right there

fathom pendant
misty nova
#

I'm a literal idiot 🤣 I thought it wanted the length

misty nova
#

Thanks @next bronze Clearly it's time for bed lmao

cosmic obsidian
#

have you completed the medium lab? can you help me out.

shut quest
cosmic obsidian
#

i am stuck at Password Attacks Lab - Medium
Examine the second target and submit the contents of flag.txt in /root/ as the answer.
i got the credentials for jason user and loggedin with ssh from there i am not able to find a way to privesc?
Thankyou for any hints!

shut quest
#

what enumeration have you done at this point?

cosmic obsidian
#

i have used sudo -l and checked the bash history nothing there, they are saying that there is a another user named Dennis i don't know how to get that user creds

soft cedar
#

Enumerate the internal services.

shut quest
#

sudo -l is great for the htb machines, but cpts will require searching under every stone, only if there was an easy way to dig through a lot of information all tied up in one nice little script

buoyant void
#

Finally got through this. Number one thing I learned was that I need to seriously invest time into reverse engineering and how to find useful information in the source code of applications

rustic sage
#

but anything helps i suppose.

clever topaz
#

anyone know why reverse shell no response?

rustic sage
potent ruin
#

https://academy.hackthebox.com/module/143/section/1278

Hey guys, I encountered a problem, when I tried to pivot through ligolo, using bloodhound-python to extract domain related information, it could not be executed successfully, and the ligolo session automatically exited.

mystic thicket
#

you done it, i'm stuck here

#

can i dm you please

steady dust
robust quartz
#

Is it possible to combine ligolo-ng and metasploit?

#

For example you want to run eternalblue Exploit on the internal hosts (1 hop).

Can you do that only with ligolo-ng and metasploit?

dusk fox
#

WINDOWS ATTACKS & DEFENSE - Coercing Attacks & Unconstrained Delegation
How i am suposed to perform the attack if the target machine is kali and i need windows?

autumn pilot
#

You can use the kali machine to connect to the windows one

dusk fox
#

:/

rustic sage
#

guys sorry for stupid question, anyone know how to be able to type in HTB offtopic etc, why i can only type in htb academy chat in discord :/

autumn pilot
#

If you didn't skip the onboarding you would know

#

Read the channels in the located in the server section

rustic sage
knotty crag
#

guys is it good to leanr hacking on wsl

#

or is it preferred to leanr hacking on a real linux operating system?

inland zenith
#

guys in intro to windows command line skill assessment last question how can i ssh to the domain controller ACADEMY -ICL-DC? where do i have the password?

inland zenith
#

please a hint

fickle thicket
#

ACTIVE DIRECTORY ENUMERATION & ATTACKS - (Internal Password Spraying - from Windows)
" Organizations should also monitor event ID 4771: Kerberos pre-authentication failed, which may indicate an LDAP password spraying attempt. " Kerberos pre-authentication indicates LDAP password spraying attempt only if LDAP uses SASL authentication such as kerberos right? my understand is that kerberos is only used for authentication while LDAP is mainly used for querying directory service.

tribal linden
#

Any one available for a bit help for ODERN WEB EXPLOITATION TECHNIQUES -Exploiting XSS via WebSockets

quasi jungle
#

https://academy.hackthebox.com/module/116/section/1512
The domain just isn't showing up on DNS Lookups even though I have added it to /etc/hosts
What I have tried adding to /etc/hosts

10.x.x.x inlanefreight.htb,ns1.inlanefreight.htb
└──╼ [★]$ dig AXFR @ns1.inlanefreight.htb inlanefreight.htb
dig: couldn't get address for 'ns1.inlanefreight.htb': not found
fierce --domain inlanefreight.htb
NS: failure
SOA: failure
Failed to lookup NS/SOA, Domain does not exist
soft cedar
silver iris
#

Hey guys,

in the skill assesment for file inclusion, ||every time i poison the logs the lab crashes.|| Any idea why?
||My useragent is: <?php system($_GET["cmd"]); ?>||
||Request: /ilf_admin/index.php?log=../../../../../../var/log/nginx/access.log&cmd=pwd||

quasi jungle
soft cedar
quasi jungle
soft cedar
#

yeh, should be IP host host

quasi jungle
# soft cedar yeh, should be `IP host host`

Still isn't fixing it not being resolved,

└──╼ [★]$ nslookup inlanefreight.htb
Server:        1.1.1.1
Address:    1.1.1.1#53

** server can't find inlanefreight.htb: NXDOMAIN

Any other ideas?

half stag
silver iris
quasi jungle
#

doesn't appear to be working, it shows up on nmap although

half stag
quasi jungle
#

yes

quasi jungle
half stag
#

try using the ns1.inlanefreight.htb domain

quasi jungle
quasi jungle
half stag
#

could you ping inlanefreight.htb?

quasi jungle
half stag
#

ping inlanefreight.htb

quasi jungle
half stag
soft cedar
#

its a private network env.

quasi jungle
soft cedar
half stag
soft cedar
#

for dig.

hexed tinsel
#

import argparse, time, requests, os # imports four modules argparse (used for system arguments), time (used for time), requests (used for HTTP/HTTPs Requests), os (used for operating system commands)
parser = argparse.ArgumentParser(description="Interactive Web Shell for PoCs") # generates a variable called parser and uses argparse to create a description
parser.add_argument("-t", "--target", help="Specify the target host E.g. http://<TARGET IP>:3001/uploads/backdoor.php", required=True) # specifies flags such as -t for a target with a help and required option being true
parser.add_argument("-p", "--payload", help="Specify the reverse shell payload E.g. a python3 reverse shell. IP and Port required in the payload") # similar to above
parser.add_argument("-o", "--option", help="Interactive Web Shell with loop usage: python3 web_shell.py -t http://<TARGET IP>:3001/uploads/backdoor.php -o yes") # similar to above

mossy falcon
#

Anyone have issues with the Hunting for Stuxbot Lab? I can’t do anything because elastic never loads any data
https://pastebin.com/Qtwh2nCc
that's the error it gives me

quasi jungle
#

Now have another error

./subbrute.py inlanefreight.htb -s ./names.txt -r ./resolvers.txt 
Warning: Fewer than 16 resolvers per process, consider adding more nameservers to resolvers.txt.
Warning: No nameservers found, trying fallback list.
Process lookup-3:
Traceback (most recent call last):
  File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/home/htb-ac-1018999/subbrute/./subbrute.py", line 422, in run
    response = self.check(hostname, query_type, timeout_retries)
  File "/home/htb-ac-1018999/subbrute/./subbrute.py", line 342, in check
    resp = self.resolver.query(host)
  File "/home/htb-ac-1018999/subbrute/./subbrute.py", line 57, in query
    name_server = self.get_ns()
  File "/home/htb-ac-1018999/subbrute/./subbrute.py", line 107, in get_ns
    ret = self.nameservers[self.pos]
IndexError: list index out of range
#

subbrute just keeps crashing even with the provided examples

soft cedar
quasi jungle
silver iris
#

I´ve got a question for the people who are doing the gamepwn module or are working with cheatengine. Do you run cheatengine in a windows vm or on your host system? I´m a little bit concerned because online you find a lot of articles of it beein malware or adware.

#

Just wanted to know, before buying the module.

cloud urchin
#

cheatengine is not malware

silver iris
#

can you elaborate a little bit and is it still wise to run it in a vm?

cloud urchin
#

you can run it in a VM or on your machine, it doesn't matter. as for the course, i didn't take it so i don't know if they instruct you to use a VM or not. my guess is they do use a vm but i really have no idea. someone else can chime in on that. i'd wager they have a vm you connect to which already has cheatengine. regardless of that, cheatengine is perfectly safe and not malware.

silver iris
#

Thanks for your input 🙂

compact halo
#

Can someone assist with SocksOverRDP - Not sure how to get around the defender deleting my plugin.dll

compact halo
fathom pendant
#

No defender =/= no protection

compact halo
#

Each time I upload the .dll, it gets deleted and if I am fast enough to get the command out the virus protection blocks
I have disabled windows defender

fathom pendant
shadow cradle
#

Hi all, I'm currently trying to do the Skill Assessment of Shells && Payload. I had to pick up the hint for the second flag where it's give you tomcat credentials.
I'm curios to understand I shall gather those information. The used password dosen't seems to be in anyone of the mayor word list (SecList & Rockyou) for tomcat. I browsed a bit the SMB folders accessible as gust but I coludn't find any clue.

fathom pendant
#

Use Google to find out what you need to do

compact halo
cloud urchin
#

well, defender is real time protection

fathom pendant
fathom pendant
cloud urchin
#

there are other real time protections running, but defender is real time protection

fathom pendant
#

You can disable defender with RTP still running

fathom pendant
cloud urchin
#

ahh lol

fathom pendant
#

Not that defender doesn't run in real-time

shadow cradle
#

so many hours wasted

fathom pendant
#

You're not the only one

#

Most people get stuck on firefox

shadow cradle
#

At least I'm in good company haha

shadow cradle
fathom pendant
#

Np

inland shoal
#

hi may i ask whats the diff with RDP and WinRM? cant find much on it online, I assume RDP provides a GUI to control while WinRM is more on CLI?

crystal steeple
#

from what i've understood from htb academy, they are all just diffrent remote access methods

#

each has its characteristics

cloud urchin
#

chatgpt gives a great answer

fathom pendant
warped spoke
#

Yo guys i need someone to recover my gmail account

shadow cradle
warped spoke
fathom pendant
fathom pendant
inland shoal
#

i see, thanks for the help guys! yep i know they are diff protocols just wondering whats the diff

fathom pendant
#

If you wanna recover it go through Google Support

dim wolf
fathom pendant
#

Is the main difference

#

Other than that RDP can be enabled for any user, WinRM is generally enabled for admin users

heavy edge
#

is this a rabbit hole trying to mount hard pw lab

inland shoal
heavy edge
#

marcie do you ever sleep

fringe urchin
fathom pendant
#

You can search this channel for how to guides

heavy edge
#

really? is it pw protected then? trying to mount it like in the footprinting module fails

heavy edge
#

damn

#

its never that easy

fathom pendant
#

Good thing there's n2john for like every filetype and encryption

#

Since it's likely windows, you can make an educated guess

latent frigate
#

anyone with crackmapexec skill assessment could give me a hint, please?

heavy edge
#

cracking johanna takes years

#

HOLEY this hard lab uses everything from the past modules

ruby mulch
#

one question if I have started a module with some questions answered but my subscription runs out, do I still have access to the module or do I lose the progress?

quasi jungle
#
 hydra -l user -P pws.list pop3://10.129.99.110 -t 10
Hydra v9.1 (c) 2020 by van Hauser/THC & David Maciejak - Please do not use in military or secret service organizations, or for illegal purposes (this is non-binding, these *** ignore laws and ethics anyway).

Hydra (https://github.com/vanhauser-thc/thc-hydra) starting at 2024-03-28 16:13:54
[INFO] several providers have implemented cracking protection, check with a small wordlist first - and stay legal!
[WARNING] Restorefile (you have 10 seconds to abort... (use option -I to skip waiting)) from a previous session found, to prevent overwriting, ./hydra.restore
[DATA] max 10 tasks per 1 server, overall 10 tasks, 333 login tries (l:1/p:333), ~34 tries per task
[DATA] attacking pop3://10.129.99.110:110/

Hydra just stops after showing attacking

#

If I enable -vV it just shows resolving then exit

fathom pendant
fathom pendant
ruby mulch
fathom pendant
quasi jungle
ruby mulch
fathom pendant
#

I think progress remains, but that's a question for support tbh

quasi jungle
fathom pendant
#

Ok so it's exiting itself

#

Also -t and -T are different

#

-T is threads, -t is tasks per thread

quasi jungle
fathom pendant
#

Anyway

#

I forget if you need to drop the @inlanefreight.htb for this

#

Sometimes you do, Sometimes you don't

quasi jungle
fathom pendant
#

its been a minute ¯_(ツ)_/¯

quasi jungle
#

Although the issue seems to be a bug in hydra, should I try any other tool ?

fathom pendant
#

Try with a different service

#

Like imap

#

I forget if imaps/pop3s is enabled on this lab

heavy edge
#

fun stpry i am now learning how to mount a bitlocker drive to llinux

#

what the everliving fuck

fathom pendant
#

It's not that difficult

#

A couple guides are very much copy/paste

heavy edge
#

oh i know

#

i just never have done it

slate halo
#

hello, im trying to execute ./username-anarchy -I ./names.txt but i get this error
./username-anarchy: line 7: syntax error near unexpected token newline' ./username-anarchy: line 7: <!DOCTYPE html>'

fathom pendant
#

line 7

#

How did you copy the tool?

#

That looks like, to me, you used wget or something and copied the webpage

slate halo
#

yeah, i used wget

fathom pendant
#

Thats your problem then

#

It's a github repo yeah?

#

git clone <link.to.github>

tough tiger
#

You can also use wget to download from the raw link, if you only need one file

slate halo
#

thank you guys

heavy edge
#

i have to go back and redo all of that

#

that last lab was REALLY fun

#

i did thind i didnt know my fingers were capable of

#

wait till lab 2 and 3

#

i completed both of them obviously... but if you think the SECTIONS are fun... oh buddy

heavy edge
#

Onward

quasi jungle
#
hydra -l m**@inlanefreight.htb -P pws.txt pop3://10.... -t 10
hydra -l m**@inlanefreight.htb -P pws.list -f 10... pop3 -t 10

pop3 commands I have tried

heavy edge
#

digging obsidian

dark summit
#

tasklist from powershell, and look for non standard .exe , or go to apps and features, and look for non-standard .exe

solar verge
#

is there anybody around who has completed Skills Assessment - Hard from Abusing HTTP Misconfigurations? i'm 99% sure my exploit should work but i think i may be doing something slightly wrong here 😅

steady dust
#

On Windows Privilege Escalation Skills Assessment - Part I do you have any ideas how i get CLSID? I used the GetCLSID tool from juicypotato, but i don't get it. 🙂

next bronze
#

try different ones

steady dust
#

I got it and i manged to escalate priv. 🙂

timber hatch
#

Attacking Common Services - Hard, i answered the first 3 questions, now the last one Submit the contents of the flag.txt file on the Administrator Desktop.
i tried to use the user john to login tot he msql server, but doesnt work, sould i try agian there or something else?

fathom pendant
next bronze
#

make sure you're grabbing the right ticket

cloud urchin
# quasi jungle Any suggestions?

If your wordlist didn't crack anything, then it simply doesn't contain the password, you may want to try a different wordlist.

quasi jungle
#

Hmm, pop3?

onyx robin
#

Hi guys! I have a problem with questions of Active Infrastructure Identification! I have the ip target and the vHosts needed for the questions, once i added the ip with the vHosts to /etc/hosts, if i try to ping the hosts i have all packets lost and i can't use whatweb...i'm connected to the VPN connection file! Can someone help me?

quasi jungle
#

Which protocol?

sonic arch
#

Were you able to solve this? I am stuck here as well.

fathom pendant
quasi jungle
fathom pendant
#

No

#

Imap

onyx robin
quasi jungle
fathom pendant
crystal steeple
#

into the thick client application section where most ppl complain aboutprayge FeelsBadMan

next bronze
#

nope, just follow the section

#

SQL01 is not the right user

onyx robin
rustic sage
#

Howdy yall, not sure if this is the right place to ask questions but, im quite new to all these stuff, dont really have much knowledge even on basic stuff, and i found myself kinda stuck while setting up my VM (virtual box), when I start the program it says "please insert a bootable medium and reboot". Does anyone have an idea of what could be the issue?

fathom pendant
fathom pendant
rustic sage
fathom pendant
#

no idea what you're talking about ¯_(ツ)_/¯

dim wolf
#

kali has pre-made VMs that you can download and instantly boot into

fathom pendant
#

Kali also has pre-built vms for different vm software

onyx robin
dim wolf
#

i prefer setting up my own VM and then making a gold image out of it

dim wolf
# onyx robin

no need for the two lines, just put all domain names on the same IP

rustic sage
dim wolf
#
10.129.151.212 app.inlanefreight.local dev.inlanefreight.local
onyx robin
mild cypress
#

Working on https://academy.hackthebox.com/module/163/section/1549

And getting this output for crackmapexec:

┌──(kali㉿kali)-[/]
└─$ proxychains crackmapexec smb 172.16.8.3 -u ssmalls -p Str0ngpass86!

[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4
[proxychains] DLL init: proxychains-ng 4.16
[proxychains] Strict chain  ...  127.0.0.1:8081  ...  127.0.0.1:8080  ...  172.16.8.3:445  ...  OK
[proxychains] Strict chain  ...  127.0.0.1:8081  ...  127.0.0.1:8080  ...  172.16.8.3:445  ...  OK

Not sure what I'm missing here that I'm not getting the SMB response 🤔

cloud urchin
#

i've only seen no response from cme when it isn't connecting

next bronze
mild cypress
next bronze
#

I'm quite sure cme doesn't output html, make sure your proxychains config is correct and maybe reset the target

mild cypress
next bronze
#

what are you using to pivot?

#

the default port for socks5 is 1080

mild cypress
#

sudo ssh -D 8081 -i dmz01_key root@10.129.28.242

#

Just been following the instructions verbatim with no issues until this 🤷

cloud urchin
#

as i said, i've only seen cme not provide output when there is some kind of connectivity error. i would start by going over every IP address and hostname that's going into the equation here to use CME, including your proxy configuration, your vpn connectivity if you're using a vm, the ip of the victim, etc

#

generally you aren't going to be able to straight copy/paste things from the module because the IP address that spawns on your victim will be different, or they machine at the end will be slightly different so you can have first hand experience using the commands yourself as it helps reinforce learning

mild cypress
#

Yeah, fair enough. I'm almost positive it has to be something borked with my config.

That being said, in this scenario the IPs are consistent. It's far from the first box I've worked through so give me some (though not much_ credit 😛

But yeah, I get what you're saying. Might just start over blank slate and see if I can recreate 🤷

cloud urchin
#

if you're using a vm, you can also try on the pwnbox, as the pwnbox is usually just setup with all the tools working etc.

#

it's also a good way to test if it's a problem with your computer or the config, because if both boxes have the same result it means you're not doing something right

mild cypress
#

Good call, I'll try that out.

bright vault
#

Hello, who has worked with the crowdtap page

dusk portal
#

Is this a good place to reach out on for "Command Injections" module?

cloud urchin
#

yeah just ask your question

dusk portal
#

I am struggling to obfuscate the payload for the Skill assessment section.

#

Does the payload go right here?
GET /index.php?to=tmp&from=51459716.txt{payload} HTTP/1.1

cloud urchin
#

i believe that's covered under the "Injecting Commands" section

#

you have to find it

dusk portal
#

A lot is getting caught as "Malicious"

#

I guess what I am asking, is would I be able to execute a arbitrary commad like whoami?

cloud urchin
#

well the whole module is about command injection, so yes, once you find the injection point and are able to bypass the defenses you could run whoami or any other system command

#

it's like a puzzle you have to try different combinations of bypasses and figure it out

dusk portal
#

Okay

#

thanks

woven zenith
#

File Upload Attacks: Type Filters
-OK so I used the bash script to get all the various extensions to try ( currently using shell.%00php.jpg ) and the file uploads, the issue I'm having is once I go to the url: (IP:port/profile_images/shell.%00php.jpg?cmd=id) I get 404 URL Not Found. Just looking for help on if I'm missing something. Thanks

cloud urchin
#

did your bash script give you any more options?

woven zenith
cloud urchin
#

null bytes can mess with filenames and lead to unpredictable results, so you might want to try something else

#

especially if it isn't working

woven zenith
heavy marsh
#

"Attacking Web Applications with Ffuf" module filtering section is not working

#

Gave me status 200 for all of my wordlist

#

Is there a different wordlist needed other than the one recommended in the module?

cloud urchin
heavy marsh
#

Or is it just broken?

cloud urchin
#

i haven't done that module but if ffuf was successful in completing the list and found nothing, yeah i'd try another list personally

heavy marsh
#

Lab is broken

scenic plover
crystal steeple
#

Lab isnt broken

#

You need to filter size , it is also explained why its gives 200 response

heavy marsh
#

ffuf -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt:FUZZ -u https://academy.htb:36987 -H 'Host: FUZZ.academy.htb' -fs 900

#

didn't get anything

next bronze
#

instead of copying the command from the module exactly, why don't you look at the output on how you should set the size?

heavy marsh
#

Yeah, I figured it out eventually. Command in the module was wrong.

next bronze
#

bruh

#

it's not wrong, different webpages can return different sizes

heavy marsh
#

Also, filtering that way with the actual command still hasn't completed, even though I found it in 30 seconds scrolling

glacial marsh
#

Hola quiero que alguien recupere mi cuenta de Snapchat a cambio de dinero

tulip dragon
#

bruh this happening again , can't get ip

#

loading for long time'

little bear
#

Otherwise give it some time. It's thinkin sadglas

tulip dragon
#

give time works but it took 40 min off

tulip dragon
little bear
#

That will happen. In the meantime, you should find other productive ways to optimize your time so you can do better/work quicker~.

It's not an answer I like to say, but a required answer.

(85% CPTS Completed)

#

My favorite is when it doesn't spawn (the VM instance) ;D

#

Or when the VM spawns, but it doesn't full screen during an RDP sesh with windows.

magic forum
#

DETECTING WINDOWS ATTACKS WITH SPLUNK : Detecting Beaconing Malware

*"Use the "cobaltstrike_beacon" index and the "bro:http:json" sourcetype. What is the most straightforward Splunk command to pinpoint beaconing from the 10.0.10.20 source to the 192.168.151.181 destination? Answer format: One word" *

i dont think i am missing anything here but i really cant find this answer, if anyone can give a hint for me that would be really nice 😬

dim wolf
#

this is not a hacker-for-hire place

steel gorge
#

Can someone please DM me about Injection Attacks - pdf generation section ? I swear I've tried everything but I'm clearly missing something
edit: indeed I did miss something. Got it now 👍

magic forum
rough comet
#

folks, I am in the Pivot and Tunneling module

#

I see we can use nmap without proxychains. But we set it up for RDP and SMB

#

why is that? because RDP and SMB do not work without it?

#

especifically speaking, I see how the module uses ssh with L and socks, then run nmap to scan MySQL port which is filtered

#

proxychains was not set for that

next bronze
#

what? do you have a specific example? that is very vague

rough comet
#

Pivot, Tunneling and port forwarding Module

#

Dynamic port fwd section

#

the 1st example uses nmap without proxychains

#

nmap -v -sV -p1234 localhost

next bronze
#

I mean, the paragraph after that explains it very clearly, the the sql port is only open on the target's localhost, so you're doing a local port forward to open the sql port on port 1234

rough comet
#

is not clear to me

#

I know MySQL is open on the pivot box

#

we use the ssh -L to bind the port

#

but we do not edit proxychains.conf

#

why

#

in other words, because the open port is on the pivot box, we don't need proxychains? is that the reason?

next bronze
#

proxychains is for dynamic port forwarding with SOCKS, you don't use proxychains with local prot forward

rough comet
#

got it

#

so the answer is... because the open port is on the pivot box... not the internal box

next bronze
#

idk how you're defining the pivot box and internal box, check the diagrams in the section

rough comet
#

Mysql box is pivot

#

jump box

#

Anyway, I believe you clarified to me. Thanks

brazen saffron
#

I don't find a payload that works for an injection command while I use what they show in the course, I tried a lot of payloads by trying with several likes such as ls -la, ls, echo, encoding characters like in URLs.

cloud urchin
#

what section/question is that

brazen saffron
cloud urchin
#

There's a tip in the module to remove everything but the first character, see if that trips the filter. if not, add another character and try again. keep doing that until you find what's causing the invalid command and make a workaround for it.

#

doing that method should tell you exactly what is not working

brazen saffron
#

I didn't understand xd.

cloud urchin
#

start by adding 1 character at a time

#

see if ip=127.0.0.1$ makes it say Invalid Input, if not, add ip=127.0.0.1${, then ip=127.0.0.1${L, then ip=127.0.0.1${LS

#

keep going until it says invalid input, then you know what is causing it to fail

brazen saffron
#

Okay!

cloud urchin
#

no, before you got 'invalid input', indicating the ping command never went off, so the command wasn't passed to the system. now that you've removed some characters, the ping goes through.

brazen saffron
#

No, I tried without any command and this var was working, now no...

cloud urchin
#

so it accepts those characters, keep adding more, one by one, till you find what's stopping it

#

well your screenshots tell a different story

brazen saffron
#

LS... was working before.

#

Now it's not.

#

Only ";".

cloud urchin
#

stronger filter, change your method

brazen saffron
#

It was THIS exercise...

cloud urchin
#

maybe reboot it then

brazen saffron
#

I'll do it after school yeah :(.

#

Thx again :>.

steady dust
brazen saffron
#

I have no error, no input validation error, just ping cmd :/.

#

I tried with PATH var env as well.

#

And I have nothing sometimes with printf due to echo isn't working.

steady dust
brazen saffron
#

I will try bypass echo with something like : $(rev<<<"sl")

steady dust
brazen saffron
#

LS_COLORS is to have ;.

#

It does not come from it.

#

Just I will bypass echo blacklist.

soft cedar
brazen saffron
#

I tried &&, ||, ; encoded or no = not working.

soft cedar
#

use the url encoded version

brazen saffron
#

Yeah I know, I'll try it.

timber hatch
#

could anybody give me a hint to the Attacking Common Services - Hard last question. i logged in with smbclient and found the users. now i try to log in to the mssql server. witht he credits i found, but it is not working.

brazen saffron
soft cedar
brazen saffron
#

I do :$(ls${IFS}${HOME:0:1}home${IFS}-la)

#

But only ping is working.

soft cedar
#

you are overcomplicating things.

brazen saffron
#

But I am not getting any error.

brazen saffron
soft cedar
#

you want to read /home right?
you have found a working injection operator: %0a
now you how do you combine the commands to read the dir.?
use the environmental var shown in the section.

brazen saffron
#

It's ${PATH:0:1}

#

For /.

soft cedar
brazen saffron
#

echo it's not working and printf as well.

brazen saffron
soft cedar
#

just use ls

brazen saffron
soft cedar
brazen saffron
#

Bro, why before it was not working 😭.

soft cedar
brazen saffron
#

I'll cry, 2h...

#

I found dw.

#

But why before was not working 😭.

soft cedar
soft cedar
brazen saffron
#

Just in the subshell...

#

But with the ;.

#

Not with new line.

soft cedar
brazen saffron
#

I could use cmds.

#

Just the totality of ls was not working.

soft cedar
brazen saffron
#

AH did not notice.

timber hatch
#

could anybody give me a hint to the Attacking Common Services - Hard last question. i logged in with smbclient and found the users. now i try to log in to the mssql server. witht the credits i found, but it is not working. i was also able to rdp witht he user fiona

soft cedar
#

yes there's a difference.

soft cedar
#

mssql has 2 modes of authentication...

brazen saffron
#

Ah.

#

Thx :).

timber hatch
soft cedar
#

yeah

ripe anvil
#

i am facing issue with password attacks module

#

hydra -L username.list -P password.list ssh://10.129.202.136

dense ridge
#

Where to get roles?

soft cedar
fathom pendant
ripe anvil
#

i use the above command to bruteforce the ssh login credentials but i got the error:

Hydra v9.1 (c) 2020 by van Hauser/THC & David Maciejak - Please do not use in military or secret service organizations, or for illegal purposes (this is non-binding, these *** ignore laws and ethics anyway).

Hydra (https://github.com/vanhauser-thc/thc-hydra) starting at 2024-03-29 10:59:56
[WARNING] Many SSH configurations limit the number of parallel tasks, it is recommended to reduce the tasks: use -t 4
[DATA] max 16 tasks per 1 server, overall 16 tasks, 21008 login tries (l:104/p:202), ~1313 tries per task
[DATA] attacking ssh://10.129.202.136:22/
[ERROR] could not connect to ssh://10.129.202.136:22 - Timeout connecting to 10.129.202.136

fathom pendant
ripe anvil
#

i can ping the machine ip

fathom pendant
#

Then: attack a different service

steady dust
fathom pendant
ripe anvil
#

i am new on htb academy, i connect the vpn on my kali linux and try to get the credentials using hydra, evil-winrn etc but noting work

fathom pendant
#

There are other services running that will be better

ripe anvil
#

also i tried to start pwnbox instance butnothing work

fathom pendant
#

And 2: when you connect to the vpn you need to open a new terminal to do anything

ripe anvil
#

yes, i know these basic stuff. as i sadi i can ping the machine, i can view the open ports using nmap, even i cross check using telnet utility. well i try again and let you know the status.