#room-hints

1 messages Β· Page 66 of 1

clever pivot
#

Hm, that's true, if I had done that it'd have been easier

#

Thank you

simple mountain
#

Well, It's a learning experience. Not all systems have a handy file sitting there with credentials sat in it!

clever pivot
#

Ik, in my case I went scrapping for any file related to the room (passwords, usernames and such) and I got to that one 'cause the location was odd and I was feeling like I was doing it the wrong way

simple mountain
#

If you get the results you wanted, then it is the right way.

stone oyster
#

Flag 26 for Linux Challenges says to locate a file that begins with 4bceb and is 32 characters long. I was thinking that strings would do that. But it didn't seem to. So I tried find with that part of the flag string, and I think it dumped every file.

#

Am I on the right track?

stuck fractal
#

Strings looksfor human readable strings in a file

#

So no, not really

stone oyster
#

ok

#

ty

stuck fractal
#

Remember you're not looking for a filename

#

You're looking for file contents

stone oyster
#

right. Trying to look into a file.

#

Find only looks at file names?

#

Does the 32 characters factor into the command, or is that just to make sure you found something that's the right size?

#

So, grep isn't "failing" but it isn't returning anything either.

woven mirage
#

What command are you using?

stone oyster
#

well, I've used a few trying to get something.

#

grep -iRl "string" ./

woven mirage
#

try grep -iRl "string" /

stone oyster
#

and so I shall

queen hull
#

Hello- currently in network services task 7. I have run the tcp dump as it states on my local machine and ran the .RUN ping etc on the telnet session I have open. I have been waiting for about 7 minutes and havent received any pings. Is it normal for it to take this long? For reference: command used on local machine : sudo tcmdump ip proto \icmp -i tun0. command used in telnet session: .RUN ping 10.10.87.189 -c 1

stuck fractal
#

That looks like the wrong IP

#

It should be your VPN IP.

stone oyster
#

From the highest folder level I ran grep and it goes straight to /snap/core where everything is Permission Denied. And it just hangs there.

stuck fractal
#

You can filter error messages out

woven mirage
#

add 2>/dev/null to the end of the command

stuck fractal
#

But it's still going to take a while. Searching through every single file on the system

stone oyster
#

Why does grep tell me what I know?

#

I try to look into a folder and it says that's a folder. I'm just like...well....duh

woven mirage
#

?

stone oyster
#

oy..

#

hold on.

woven mirage
#

it is telling you that you cant use grep in a directory like that

#

if you want to use it recursively in a directory you need to use the flag -r

stone oyster
#

Ok. So I have this huge list of files coming down. Am I to understand that every one of these files has that sub-string in it?

woven mirage
#

whats the command?

stone oyster
#

I think grep -rw '4bceb' /

#

yeah.

woven mirage
#

well, the files that show up should have the string

stone oyster
#

Ok. So, all of those files are also permission denied.

#

lol

median compass
#

if i remember correctly you are given other clues in order to help you narrow it down right?

stone oyster
#

It says to search all files for that string. it'll be 32 characters long.

median compass
#

like it's not only that the string contains 4bceb

stone oyster
#

Is there a grep for a max string length?

median compass
#

ok, so you want words that are 32 characters long

stone oyster
#

I haven't found it yet.

#

Unless i need to regex

median compass
#

does it say anything about whether the string starts, ends, or just contains the string?

stone oyster
#

starts

median compass
#

ok, so you got it, regex is your friend

#

if you man grep you'll see how to include regex as your search term

stone oyster
#

I tend to give regex a wide berth as soon as i see.

#

Kinda' like poison ivy.

median compass
#

and i'd recommend regex101 as an easy way to build your regex

stone oyster
#

ty

#

I will look into that

median compass
#

happy hunting

stone oyster
#

mmmm....hunting....

median compass
#

this btw is the hardest of the questions in this room

stone oyster
#

oh goody

#

lol

#

[a-zA-Z] can I sub with numbers?

#

er...nvm

#

[[:alnum:]] Do I need to specify in this flag what I'm looking for? Or is this a flag saying that it will look for alpha-num strings?

median compass
#

play with it a little longer, you'll learn more

echo laurel
#

Sorry I don't know where to put this, but there was a room on port knocking. It's no longer there.

#

Retired?

median compass
#

what was it called, there are a few boxes with port knocking

echo laurel
#

Knock knock I guess

astral smelt
#

Yea that box is private now

#

At least I think I can’t seem to find it

median compass
#

was that in the CTF 100?

echo laurel
#

Yup , 😩

#

was that in the CTF 100?
Not sure

stone oyster
#

@median compass I tried egrep '(4bceb)' -rwb /|less

#

Is it looking for rwb in the string?

median compass
#

i don't see anything in that regex that specifies your 5 characters are at the start of the string, nor that your wanted string is 32 chars long

stone oyster
#

yeah. Working on it.

#

[[:<:]]

#

for beginning

median compass
stone oyster
#

yeah. Poking thru

hidden fractal
#

Room: Find Command
Task : 2
Question:2

#

idk whats wrong in my answer

#

file /home -type f -iname user.txt

stuck fractal
#

Well, you put file not find

hidden fractal
#

wtf thanks

#

lol

stone oyster
#

so I was gonna use [[:<:]] for the beginning of the string.

#

I should put the sub-string outside of this, right?

#

I don't want to use [4bceb] because that allows for any character to match, whereas (4bceb) has to match explicitly

median compass
#

it's a little simpler than that

#

just 4bceb on it's own will match, no surrounding brackets at all

#

then you need something before it to say that's the start of the string you want

#

and something after to say how long the rest of the string should be

stone oyster
#

I'm trying to figure out the length option

median compass
#

try testing with these strings in regex101
4bceb 4bceb243523rsadfsdfgserfasefsdscvsdgvrghefdfsdfse fgrfgfdgdfs4bcebsgfsesefdsefse 4bceb123456789012345678901234567

#

you only want to match the last one

stone oyster
#

ty

#

I can get it to match that pattern many times. Haven't seen how to limit the length of the string.

median compass
#

ok, so give me the start of your regex then

stone oyster
#

{32} matches exactly 32 times. That's not what I'm looking for, but it's the only thing that keeps popping up.

median compass
#

ok, makes sense to start with your search substring right?

#

and then follow that with a number of ANY characters

stone oyster
#

lol my machine expired.

median compass
#

yeah, but you can do this bit without the machine

stone oyster
#

What I've learned: () exact match, [] any match, ^beginning of string, $end of string, {}match upto x times.

#

^(4bceb)

#

this starts at the beginning of the string and looks for exactly 4bceb

#

I can find 4bceb however many times I want to.

median compass
#

that's right except for the (), they're only needed to capture a string, for example in a find-and-replace

stuck fractal
#

So you want to match that string

#

Then match x number of alphanum chars afterwards

median compass
#

so for your purposes ^4bceb works just as well

stone oyster
#

ty

median compass
#

but that's right, that's the start of the search string

#

so what matches any alphanumeric character?

stone oyster
#

I keep seeing ^[a-zA-Z]{x}$ as a way to get an exact length. But that's not right. That finds the a-zA-Z upto 7 times.

#

[[:alnum:]] or .

median compass
#

there you go, the second of those

#

and how many do you want?

stone oyster
#

.{32}

median compass
#

not quite, 32 is the whole string right?

stone oyster
#

so minus 5

#

27

median compass
#

bingo

#

so put it all together now

stone oyster
#

Lord have mercy on me.

#

ty

#

to insert that into my egrep I need to egrep [option] /regex right?

#

oh...and directory

median compass
#

well, i'd check it first against those test strings I gave you just to make sure there's not one last thing (hint hint)

#

and then yes, plug it into your grep/egrep command

stone oyster
#

Yeah. Forgot the $

#

I guess I'm asking, how do I tell egrep that I'm using a regex? Does it have to start with the / ?

median compass
#

that's a googleable thing, just look for egrep examples

stone oyster
#

lololol

#

I might just step away for a little bit. I need to paint the bathroom. Maybe the fumes will help me think clearer and do this righter because it gave me the same file dump as it has so many times before.

#

egrep '^(0|1)+ [a-zA-Z]+$' searchfile.txt is an example I found. So I egrep '^4bceb.{27}$' /

#

Ya'll have a great day. I will talk more with you later.

#

Thank you for your help.

queen hull
#

Hello- Currently stuck in the room "blue". task 2. I chose the exploit, changed the RHOSTS to the victim machine, and ran it. I keep getting back "fail" as it executes the exploit. I searched through the show options command and didnt find anything else that I could change. Any pointers of what I could do to get back on track?

stuck fractal
#

show options and post a screenshot

#

Most likely your LHOST is wrong

queen hull
#

I noticed that before and changed it to the host IP and ran it and it didnt work so i restarted the victim machine and started from scratch (thinking that it wasnt the issue) ran it just now before getting the screenshot just in case..AND it worked.

stuck fractal
#

LHOST needs to be your VPN IP

queen hull
#

vpn ip**

#

i set it to that the first time with no luck. not sure why it didn't work the first time but ran the second but it is what it is. onto the next task πŸ™‚

median compass
#

it's a not uncommon thing with msf @queen hull, sometimes the LHOST parameter resets itself, it's a good idea just to quickly do a show options right at the end before you exploit

rustic lodge
#

Hello, i've got an issue with room : https://tryhackme.com/room/nax - i've made it all the way to the metasploit bit. However it doesn't want to connect/says host is not exploitable.

#

Yes i set the LHOST and RHOSTS and PASSWORD

#

I checked writeups and they all say the same and it should work but doesn't, also connected to VPN, able to ping host/open website manually

rustic lodge
#

nvm had to restart machine..

queen hull
#

I have another question/stuck in the blue room. I got to the very last task (find the flags) and found the first flag on the C: drive. in meterpreter i ran cat flag1.txt. I got back an operation failed. I tried to download it, same thing. I have since restarted the victim box as well as my own just to make sure there wasn't any issues there. the screenshot provided is the second time around

stuck fractal
#

cat C:/flag.txt?

#

Remember, file paths that aren't full relate to your cwd

queen hull
#

ahh ok that makes sense. I was confused on how I was connected but not able to reach it. thank you!

winged mist
#

Hi guys. Anybody done the physical security room please?

stuck fractal
#

It's always best to just ask your question

#

Plenty of people have done most rooms

frail rain
#

i mean you ccould just do shell get windows shell and read the file

stuck fractal
#

Just ask.

winged mist
#

I can’t answer a few questions from the room. I’ve solved 64%

#

I’ve watched the videos over & over but I still can’t answer the questions

#

Maybe if someone explained or sumn

median compass
#

google bosnianbill on youtube, some of the answers require you to research beyond the videos you're given

#

like a lot of the rooms here, google is your friend

winged mist
#

Rip me lmaooo this is proving to be my most difficult room ngl

median compass
#

patience grasshopper, soon you'll try Ra or YearOfTheWhatever and this will be but a happy memory

winged mist
#

Challenge accepted kekkittyfasthands

stone oyster
#

lol

#

so true

#

ONCE you get it, you get it. You'll look back and wonder why you didn't.

#

I FOUND #36!!!

#

Not looking for that one.

stone oyster
#

So, if you run a regex and it says Permission Denied, it's saying that I can't scan thru that file to find what I'm looking for.

#

If it says Invalid argument, it's telling me that the string I'm looking for isn't there.

#

Does that sound correct?

stuck fractal
#

It should fail silently of the string isn't there

#

Invalid argument means one of the arguments was not valid

visual jolt
#

In the Madness room I couldn't get the shell exploit for the suid binary to get root to work for some reason and couldn't find another way to get access to that flag 😦

#

Really enjoyed that room otherwise though πŸ™‚

balmy crystal
#

hello, can somebody help me plz, im on room "upload vulnerabilities", and i am stuck at the challenge of task 8, help plz

hasty slate
#

can you explain exactly where are u stuck at?

balmy crystal
#

bypassing the filter

#

but wait a sec

#

lemme try something ive found

hasty slate
#

okay. reading the material will probably give u everything u need to solve that task πŸ™‚

balmy crystal
#

ok ok

#

i uploaded it

#

can i dm u ??

hasty slate
#

if u uploaded then u are pretty much done.

#

you can say it here, if something is spoilery u can enclose that with spoiler tags ||...||

balmy crystal
#

oh no

#

it didnt worked

#

the machine doesnt recognize the format XDDD

hasty slate
#

okay but did u read the material that is there in the walkthrough itself?

#

every step of the way is explained there isn't it?

balmy crystal
#

yes

#

something tells me that ive missed something

hasty slate
#

yeah re read and try to do the steps in the task itself, as it's a walkthrough room i think most of information would be there itself.

balmy crystal
#

ok ok

#

ill try other time / later

#

im kinda tired

#

thx anyways @hasty slate

hasty slate
#

np πŸ™‚

hidden fractal
#

Uhmm what do u guys think what is wrong here

#

find / -type f -perm 604

#

Find all files that are exactly readable and writeable by the owner, and readable by everyone else (use octal format)

woven mirage
#

well, i don't see nothing wrong

limber bane
#

That currently looks for the following conditions: (U)ser / owner can read, can write and can't execute. (G)roup can't read, can't write and can't execute. (O)thers can read, can't write and can't

hidden fractal
#

That currently looks for the following conditions: (U)ser / owner can read, can write and can't execute. (G)roup can't read, can't write and can't execute. (O)thers can read, can't write and can't
@limber bane Yeah but it's not working

limber bane
#

You want 0644

#

(U)ser / owner can read, can write and can't execute. (G)roup can read, can't write and can't execute. (O)thers can read, can't write and can't execute.

hidden fractal
#

644 works thanks men
i thought i need to 0 the group

limber bane
#

Always remember the octal values, (R)ead = 4, (W)rite = 2, (X) = 1

#

Total of 7

#

(U)ser R,W,X (G)roup R,W,X, (O)thers R,W,X

#

-rwxrwxrwx = 777

#

You can get really easy to use permission calculators online that will help with understanding but try to not rely on them outside of understanding what they're performing

white salmon
#

so i need a hint

stuck fractal
#

#room-hints is here for people who want a "pointer" towards the room they are completing, and not necessarily a spoiler. As such, when asking a question, be sure to include:

  • What room you are on
  • At what stage are you stuck exactly? Enumerating? Exploiting? Priv esc?
  • What techniques / tools have you tried so far? Just so that we know how to hint you in the right direction without repeating what you've already done
white salmon
#

OK

#

The learn linux room, task 21, and i'm not finding a binary

stuck fractal
#

Screenshot please?

white salmon
#

okay

#

Room- steel mountain tried powershell_shell > . .\PowerUp.ps1 hangs. uploaded to correct directory file on the machine

#

so i found some stuff that the question talks about but i don't know if it's what i am looking for.

stuck fractal
#

Go home

#

To your home

white salmon
#

shiba2 home, right?

stuck fractal
#

Your current user's home, yeah

#

cd on its own takes you home

white salmon
#

Okay so anyone who has trouble on steel montain don't use msf6 worked first time using attack machine

#

done

#

Okay as im reading the challenge it says take close attention to the can reset being set to true where is this? i have the answer im just trying to understand for future reference

#

how do i find a file in windows using command prompt? tried google

vale umbra
#

hello guys can someone help me with the room Upload Vulnerabilities Task 9?

#

I can't find the uploaded files

#

nobody? πŸ™‚

white salmon
#

room upload vulnerabilities?

stuck fractal
#

Please try to remember that everyone here is a volunteer

vale umbra
#

@stuck fractal I didn't knew that. First time I ask a question here, sorry.

white salmon
#

ah sorry i haven't got that far i only started yesterday

vale umbra
#

I'm stuck in that part :/

hollow maple
#

how do i find a file in windows using command prompt? tried google
@white salmon dir fileyouwant.ext /s /p
/s = look all disk; /p = pause if found
But it could take a century.. NotLikeThis

white salmon
#

thanks alot @hollow maple

hidden fractal
#

Room: Find Command
Task: 2
Question:
Find all files with write permission for the group "others", regardless of any other permissions, with extension ".sh" (use symbolic format)

The answer i try:

find / -type f -perm g=w -name "*.txt"

spice stream
#

Hello All. Working on NIS - Linux Part I task 5 (grep). When using grep against any of the two grep txt files it is given a permission denied reply. Is it looking for a specific input?

stuck fractal
#

@hidden fractal Extension: .sh

#

.txt and .sh are different

#

And it's asking for others, not group

hollow maple
#

I mean, .sh =/= .txt '-'

hidden fractal
#

oh ok im sorry
i think its my second time asking for a obvious mistake
lol

hollow maple
#

U.G.O
User - Group - Others

hidden fractal
#

tnx

hollow maple
#

Hello All. Working on NIS - Linux Part I task 5 (grep). When using grep against any of the two grep txt files it is given a permission denied reply. Is it looking for a specific input?
@spice stream Yeap, but, you can't do that, 'cause you don't have permission for..

white salmon
#

@stuck fractal i found the answer to Learn Linux, Task 21. Thx for the help!

spice stream
#

Up until this point the commands had permissions to the file for that task. i.e. cat for cat.txt. Am I just missing something?

hollow maple
#

Well πŸ€”

#

Where's the file? currently directory?

spice stream
#

/home/chad/

hollow maple
#

What's your pwd?

spice stream
hollow maple
#

wait, are you in grep group?

#

-rw-r----- = root (user) | grep (group) | --- (others)

#

root can read and write, grep can read, others can nothing.

spice stream
#

This box has been pretty restrictive with commands. It seems the commands are in the groups related to their file. Example:

hollow maple
#

Yeap

#

root cat cat.txt
root grep grep1.txt(?)
root grep grep.txt
....

late patio
#

did anyone get the 7zip file?

stuck fractal
#

That's very vague.

late patio
#

on the nislinuxone room. my bad

woven mirage
#

wrong ninja there

#

more information would help us help you

#

what task

late patio
#

holy crap. show's you how long it's been since i've been in this discord. lol

woven mirage
#

and what are you tring to do?

late patio
#

task 15

#

extract the zip.7z file.

woven mirage
#

which room is nislinuxone?

#

learn linux?

late patio
#

yeah

hollow maple
woven mirage
#

ooh the new one

#

i can't help you, sorry

late patio
#

no worries. i'll figure it out. ty.

woven mirage
#

lol wrong ninja again

late patio
#

holy crap..

#

arghhhh

woven mirage
#

dont need to ping

#

just ask

#

anyone can answer

late patio
#

I'm used to a lot smaller thm discord. whoops. lol

stuck fractal
#

I can't help either, heads up

#

I might work through the room tomorrow if you're still stuck

late patio
#

ok, thank you. i'll ping Chevalier in a bit. thank you guys.

lyric oasis
#

box: library .... done dirb with custom user agent ... s

#

did some ssh bruteforce

#

coudn't fifgure the useragent:rockyou in robots.txt

#

sorry for the trouble ssh brute force worked.....seems i lack patienceπŸ˜…

inland mirage
#

In "Relevant", can't do anything with the file left there, enumerated even more just in case, but knew I had write permissions in this box and decided to put a rshell, one made for the version of IIS it is. (Hopefully not giving away tooo much.. lol) Anyway, I couldn't get it to work, tried multiple ways, encoded even, getting execution through browser, or through curl etc... it doesn't want to reach back out to me. I've done these before and don't think I'm missing anything.... Looked up the owners walkthrough, and looks like I'm doing it the same way.

#

I've restarted the box multiple times

#

I think I'm locking up the service

hasty slate
#

did u try to put nc and run nc with cmdasp?

#

as relevant has windows defender on, malicious signatures will be deleted

#

so try with nc?

late patio
#

is the payload staged?

inland mirage
#

non-staged

#

gonig to try cmdasp

#

lol

#

I didn't get that to work either, let me reset the box again

#

Pretty cool little webshell though, I never used it before

inland mirage
#

So, I restarted, did everything the same I just waited awhile first. Then, the shell took a minute to come back to me as well. But, i'm in.. πŸ™‚

hasty slate
#

eyy gj πŸ™‚

inland mirage
#

I mean, if you know it should work... just go over all the details again... right port, type of system, port, ip, all that... then restart the box and try again with patience lol

late patio
#

had my fair share of those. very true. lol

paper plinth
#

hi

#

I would like to ask about some hints for NIS - Linux Part 1, Task 15 7zip

#

extract the zip.7z file.
@late patio Owh, u have the problem too?

astral smelt
#

Reread the task it tells you how to unzip the 7z file

paper plinth
#

yes i read it

#

I am not sure whether i understand the steps wrongly or i didnt use the correct method

astral smelt
#

It gives you a command to use use that command

paper plinth
#

i do use it

#

but i state that permission denied

fallen jolt
#

LFI Basics task 3 trying to inject the command as shows on the task.
User-Agent: Mozilla/5.0 <?php system($_GET['lfi']); ?> Firefox/68.0 if there any typos since it wont work?

paper plinth
#

Havent done that yet.

LFI Basics task 3 trying to inject the command as shows on the task.
User-Agent: Mozilla/5.0 <?php system($_GET['lfi']); ?> Firefox/68.0 if there any typos since it wont work?
@fallen jolt

late patio
#

@paper plinth Yeah, there's something wrong with it I believe. I got it once. never again. lol

paper plinth
#

So u get the flag already?

past night
#

Wait, please don't tell me that the 7zip is broken again

#

yo @late patio @paper plinth what happened

#

OH FOR GODS SAKE I JUST FIXED BINWALK WHY IS THIS BROKEN NOW

paper plinth
#

yes

#

ahaha

#

sorry to tell you that but

#

7z is broken too

#

permission denied

late patio
#

@past night not sure. run the command and it doesn't extract the .txt file.

past night
#

yeah, i figured it out

late patio
#

i was going to pm you, but didn't want to bother. lol

past night
#

instead of doing -aG i-ve done -ag last night to fix permissions on xxd

late patio
#

yeah, noticed you fixed the binwalk one. lol

past night
#

yup

#

and messed up 7z because i didn't set up the groups correctly

late patio
#

🀣 whoopsies.

past night
#

there's a privesc too for the ones that want to get the file the hard way kekw

late patio
#

lol. i'm about to get some sleep, but might check out the priv esc in a bit.

past night
#

fixed now will ask one of the admins to republish it again

late patio
#

yup. that looks a bit more like the output i was bashing my keyboard to find. kekw

past night
#

yeah, i am really sorry for this

#

i've mistyped a command

#

say thanks i haven't broken everything around it while at it!

late patio
#

lol. all good. the rest of it works. lol

#

@past night ty, and have a good one. going to get a bit of rest.

past night
#

oki, rest well

paper plinth
#

thank you

oki, rest well
@past night

past night
#

no worries, if you want the flag i am happy to dm it to you as you clearly done it correctly @paper plinth

paper plinth
#

nah its ok @past night Thank you fror the room

past night
#

no worries, and apologies

frail rain
#

in startup is the ||.pcap|| file supposed to be empty?

hasty slate
#

nope. but it's not ||pcap|| it wa ||pcapng||

frail rain
#

yuh yuh same

#

its showing empty to me, i guess ill restart the machine

strange nest
#

What is a flag.h file?

hasty slate
#

its showing empty to me, i guess ill restart the machine
@frail rain yeah probably good idea.

frail rain
#

rooted the machine thnx

hasty slate
#

eyy gj potato!

glacial gust
past night
#

i think your command might be wrong scrap that

#

let me check

#

can you drop me your room ip really quick @glacial gust

glacial gust
#

10.10.47.135

past night
#

2 minutes for Attacker Box to boot

#

fixed it for you @glacial gust

#

just exit and enter again ^^

#

i'm waiting for the fix to be pushed live

glacial gust
#

thanks

past night
#

no worries, i do apologise

glacial gust
#

is the 7z error still being fixed

#

nvm

past night
#

i fixed it on your instance

#

just doing hot fixes for now

glacial gust
#

its a good room

past night
#

thank you, i'm sorry i messed up that part, i tried fixing something and broke it somewhere else

glacial gust
#

it happens

past night
#

thank you for understanding and letting me know πŸ™‚

#

i wasn't sure how many things were broken afterwards

white salmon
#

Who is the creator of Ghidra room? I am having some difficulties

stuck fractal
#

You don't usually need the creator

white salmon
#

Task 4 question 2 "What is the first variable set to in the main function?"

stuck fractal
#

Just ask your question directly, and if someone can help then they will

white salmon
#

I don't see where I have to look

stuck fractal
#

Have you jumped to the main function in ghidra?

white salmon
#

yes I am on it

#

I think at least, is that correct?

#

question says "first variable" so "iVarl" correct?

stuck fractal
#

What is it set to?

white salmon
#

||strcmp = (local_18, "l\n")||

#

I think

#

But that not the correct answer

stuck fractal
#

You'll want to look at the assembly if you're still working on it @white salmon

white salmon
#

@stuck fractal I still have Ghydra open yes, even thou I was doing something else. I am not really good at assembly right now😬

stuck fractal
#

It's a crucial skill for RE.

white salmon
#

But that was an hint anyway, now I know where to look thanks!

meager vapor
#

Hi

#

how can I chain oput of one command as argument of another?

stuck fractal
#

That sounds like a good question rather than a #room-hints question

lime verge
#

I have a question for Motunui room. || I found the network.pkt file but it says the only way to open it is with Cisco Packet tracer. Downloading it requires me to make an account and follow a course. Am I doing something wrong or is this the intended route of the room? If it is, it seems oddly complicated||

heavy lake
#

Hey can somebody give me an idea on how to get ||root password|| on room Brute It

jovial sentinel
trim haven
#

Your LHOST seems a bit off?

white salmon
#

set LHOST to tun0

jovial sentinel
#

well, i've read that it should be my VPN ip but I am using an in browser machine and I thought that it is the machine ip

trim haven
#

It should tell you your IP on the page

white salmon
#

either set it to tun0 or go to 10.10.10.10 in your browser copy that ip and put it

trim haven
#

Have you used the Browser Based Machine @white salmon

white salmon
#

ohh

#

sorry i didnt notice

astral smelt
#

Wrong exploit it's upload not deploy

trim haven
#

Thanks Blackout blobheart

astral smelt
jovial sentinel
#

I just checked in 10.10.10.10 and it's the one from there. I will try the upload one now blobheart

#

working πŸ˜‰ thanks guys

fathom mulch
#

Just trying to do old advent calendar and got stuck on Day 24,Elf Stalk 2nd task. Am I correct if I'm thinking CVE-2018-17246 should be used over here?

astral smelt
#

@fathom mulch Yea that's correct

fathom mulch
#

Cheers.

#

Now need to figure out how to upload that revshell..

white salmon
#

finally rooted startup took a good 45mins

root@startup:~# id id uid=0(root) gid=0(root) groups=0(root)

hollow wyvern
#

Hey guys, I'm new to THM, just going through the Metasploit intro lab but I'm just a bit confused, I want to load an exploit into a Windows host but I don't have a Windows lab host?

white salmon
#

press the big green deploy button at the top of the page homie

hollow wyvern
#

That's deployed my linux box, or is there another big green button I'm not seeing

stuck fractal
#

Task 5

#

Click the green button

hollow wyvern
#

Ohhh got it, nice one thanks for that

onyx stream
#

i'm having an issue with the metasploit room...one of the questions is not accepting my answer O_O

stuck fractal
#

It's not asking for the number

#

read the question again carefully

pallid siren
#

could anyone give me a push for the Startup room? I gained shell as www-data, then priv-esced to the next user....i have an idea of how to root, but everything i tried failed....dont really know what to do now

woven mirage
#

run scripts to enumerate the machine such as linpeas and pspy

pallid siren
#

Linpeas doesnt really give anything...i know the files i need to work with, but idk how to make them do what i want since they need root access to edit

woven mirage
#

pspy will give great info

pallid siren
#

Im not really familiar with that.. i used it once in the oscp proving grounds... ill find it and mess with it some more... thank you

white salmon
#

check linnies home folder and pay attention to the files permissions and who they run as

simple phoenix
#

quick question: in the OWASP room task 5, am I supposed to see a txt file somewhere in Burp's site map?

#

OWASP TOP 10 to be more precise

#

Task 5 question: What strange text file is in the website root directory?

#

nevermind I figured it out

pallid siren
#

Thats weird.... i did the same thing i did earlier, but my 2nd shell spawned as the low priv user again, so i thought it was wrong....just tried it again and it spawned as root πŸ€·β€β™‚οΈ

#

Really fun box though

past night
#

nah its ok @past night Thank you fror the room
@paper plinth fixed now πŸ™‚

stone oyster
#

On the Linux Challenge room, flag 26 that gives the start of the flag, someone mentioned using find/grep. Could someone explain what I would find that then goes to grep?

#

or should it be grep/find?

woven mirage
#

Is the one that gives a string that's the beginning of the flag?

#

You don't need find for that

#

Only grep

#

Use grep recursively in the directory you want to find

#

If you don't know the directory, use grep in / and it will search through all the files

#

It can take a while

white salmon
#

I personaly used find and grep, tried with only grep and it took forever, but works

inland mirage
#

Ack, I'm totally brain farting the setting I need to change sometimes for browser to lookup the domain and tld '.thm' .... Very sleepy today, struggling to remember dumb things

#

It's like..... domain lookup file, refer it to this box IP specifically or something.. I think it's a linux setting not a browser setting... top of my tongue here for awhile

woven mirage
#

do you mean /etc/hosts?

inland mirage
#

ding ding ding

#

thank you good sir/ma'am

woven mirage
#

np

inland mirage
#

lol

half citrus
#

Working on Mr. Robot, not looking for hints, but am I nuts in that I'm completely missing flag two? I got dashboard access, but. Stumped. Again no hints, but I feel like to get the second flag it's complicated. Am I possibly overthinking this maybe? Trying to be vague cause this is the first non-walkthrough box I've attempted and trying to do this without hints really..

stuck fractal
#

Do you have wordpress admin?

half citrus
#

ya

stuck fractal
#

You can usually get a shell on the system from that

half citrus
#

that's what I was fiddling with anyway so that's good. at least I'm not over thinking it

tidal dune
#

hey guys... pretty fresh here... I'm up to task 7 in the OWASP juice shop: Question #1: Perform a DOM XSS!.

I put in <iframe src="javascript:alert(xss)"> into the search bar and get the xss alert but no flag? Trawled through a bunch of walkthroughs on the internet to figure out what i'm doing wrong but it's pretty straightforward - apparently the flag should appear like the rest?

#

tried inspecting the element/checking browser console for the flag as well

woven mirage
#

try to redeploy the machine and do it again

tidal dune
#

I'll give it a go now

#

nope still won't appear

stuck fractal
#

You need to follow the instructions super carefully

#

Use the payloads etc you're given

tidal dune
#

uh there isn't any? It just says to input <iframe src="javascript:alert(xss)"> into the search bar

#

maybe i'll run it through burp suite

plush estuary
#

I would suggest clearing cache or trying the payload through burp

tidal dune
#

clearing the cache didn't work - would delivering the payload through burp be by using the repeater and crafting the http://ip/search/?q= bit

tidal dune
#

i went to /api/challenges and found the line for it (#15) and tried searching using the iframe in there <iframe src="javascript:alert(xss)"> which didn't work either haha sorry if i'm just being dumb... pretty lost

polar mountain
#

can somebody please help me with Physical Security Room - Task 6 - Number #5 - An improperly hung door which opens away from you can be bypassed using this type of tool? and Task 6 - Number #8 Adams Rite hardware fixtures are susceptible to a bypass where a wire is snaked through the keyway and actuates the locking mechanism behind it, what could prevent this bypass?

#

I have watched the videos over 3 times and cant find the answer to them

#

thankyou

cunning quartz
#

Can somebody help me in intro to x86-64 room in the crackme2 binary?

#

I'm so confused

night cave
#

@cunning quartz What's up?

#

Where are you stucked? What have you tried?

white salmon
#

I'm almost embarrassed, but I'm stuck in the NIS-Linux room. I just can't find anything that has to do with shiba in any way ... Tast 2-16 were a piece of cake, but task 1 is killing me NotLikeThis

#

Can someone point me to the right direction?

#

Am I supposed to break out of the rbash?

snow matrix
#

i need help in mitre room

median compass
#

hey @white salmon, did you read the text at the start of the room? ||A requirement for this room is to finish the Learn Linux room - https://tryhackme.com/room/zthlinux.

As it covers all the basic requirements and this is just a follow up to it in order to strengthen the understanding you gained throughout the room. In order to do so.
Below I will be asking a few questions related to that room, so please, make sure to complete it first :). If you didn't feel free to go through the tasks and come back to this once you finished the room||

white salmon
#

So I have to Deploy the machine from the other room?

median compass
#

@snow matrix it's better just to ask the question

#

well it's more that you should have done that room and have the answers in your notes/stored in THM - if you haven't then yes, the only way to get them is to go do the other room

white salmon
#

done the other room a month ago πŸ™‚

#

maybe i didnt get the task right. thanks 4 help πŸ™‚

#

But it's not a problem to break out of the rbash in NIS πŸ˜„

median compass
#

it doesn't matter if you break out of the rbash, the users shiba3 & 4 don't exist on this system

#

the only way to get their passwords is from the other room

past night
#

there is a way of breaking out of rbash discovered by 0day, but the only thing you gain out of it is cheating yourself imo

compact sail
#

For the scripting room i am at task 2 where you need to use socket but i am not receiving anything. Do i need to send a command after i connected?

median compass
#

usually you open a connection then ||recvXXXXX from it||. you should go study up on python sockets is my suggestion, lots of examples out there

compact sail
#

ok thx

median compass
#

you could/should have a look at pwntools too, their socket implementation (tubes) is very easy to use and it leads on nicely to buffer overflow techniques later

compact sail
#

i will have a look at pwntools thanks

median compass
#

i'm afraid I haven't done the room in question, your script looks ok at a glance, what port are you interrogating first?

#

3010?

#

if so do you get anything from it when you connect directly with ||nc IP 3010||?

compact sail
#

the port changes every 4s i am refeshing the webpage to get the current port and giving that as arg with the script.

#

i will try to convert tubes and see if i get more luck. I think it has to do with the recv(1024)

#

i will try to lower that

#

because i don't think i get that much data

#

so its waiting to long

#

i hope

median compass
#

pwntools has a very useful-for-ctfs recvuntil which let's you read from the socket up until you get a particular character/string, makes it much easier to grok incoming info and script a response

compact sail
#

gotit

#

i need to send the get command

#

But i will be using tubes waaaaayyyyy easier

#

thanks for the push in the right direction

solemn smelt
#

@rose cape if its not for a thm room then please ask in #general

rose cape
#

alr

queen hull
#

Hello- Stuck in steel mountain- task 3. I downloaded the file, unzipped it, and ran the command prompted within metasploit (within meterpreter). I have also tried using the location of where it is at in my host machine to no avail.

stuck fractal
#

Can you be a bit more precise?

#

"the file"?

queen hull
#

Im sorry, the file from task 3. it is a powerup script that we are prompted to download

#

Told to download said script, then use upload command in metasploit then gives the following : upload /opt/windows/powersploit/Privesc/PowerUp.ps1

stuck fractal
#

Ok, and what happens?

#

Is that where you downloaded it?

queen hull
#

no. I used the original command first (the one above), then I also tried it with the location of where that file is at on my host machine, got the same error message both times

white salmon
#

did you download the script to that location?

#

you have to put the location of the file on your local machine

#

most likely ~/Downloads/PowerUp.ps1

queen hull
#

yeah thats where I had it prior. it is currently in the opt directory

#

ran code, same error message

stuck fractal
#

wait

#

why have you got - / on the end?

white salmon
#

put a web server on your local machine then wget from meterpreter

stuck fractal
#

No no no

#

They're doing something really weird

white salmon
#

huh

stuck fractal
#

They have - / as the destination

#

Urgh that font nvm

#

Whatever they're doing, the file isn't there

queen hull
#

the current command im using is: upload /opt/PowerSploit-Master/Privesc/PowerUp.ps1

stuck fractal
#

So the file isn't there.

queen hull
#

I see it in there, I'm not sure what you mean

median compass
#

do an ls -la /opt/PowerSploit-Master/Privesc/PowerUp.ps1 for us @queen hull

stuck fractal
#

upload evil_trojan.exe c:\\windows\\system32

#

upload source destination

queen hull
#

ninja I tried to do the upload for evil_trojan, same error

median compass
#

ok, so in none of the original commands you showed us was that the path

queen hull
#

yes after xnth mentioned that I moved the file there and tried, can provide screenshot for that as well

median compass
#

please do

queen hull
stuck fractal
#

upload source destination

queen hull
#

re ran it and it went

#

idk

#

lol

#

it was the M in master. all that. im dumb

median compass
#

you're nearly always better off cutting and pasting long paths for exactly that reason

#

good luck with the rest

queen hull
#

thank you for your help

half citrus
#

In reference to Mr. Robot, I discovered either a modified or custom switch on a certain command and I was trying to see if I could tell what the switch was doing because I'm getting strange stdout msgs with it. In reference to the command, for those that have completed the box, is there a .conf file or something that houses custom switches?

stuck fractal
#

That's very very unlikely

half citrus
#

i figured. Just thought I'd ask

stuck fractal
#

You're being quite vague about it. If you'd like an answer, it's best to be more specific

half citrus
#

I know, I'm trying not to get to many hints with this box cause it's the first I've attempted without a walkthrough.

stuck fractal
#

There's #room-help if you're worried about spoiling something

half citrus
#

ah so that one is less specific in regards to questions about a box?

stuck fractal
#

No

half citrus
#

oh I see

stuck fractal
#

#room-help is for once you've checked writeups and something is not working

#

More than just hints, you don't have to worry about spoiling the intended path

#

Obviously don't post passwords or flags if you can avoid it, and don't dump spoilers for no reason, but that's how it breaks down

median compass
#

the more specific you are the easier it is for us to help you just the right amount @half citrus, if you ask a very general question you're likely to get more than you want/need

stuck fractal
#

#room-hints is here for people who want a "pointer" towards the room they are completing, and not necessarily a spoiler. As such, when asking a question, be sure to include:

  • What room you are on
  • At what stage are you stuck exactly? Enumerating? Exploiting? Priv esc?
  • What techniques / tools have you tried so far? Just so that we know how to hint you in the right direction without repeating what you've already done
half citrus
#

I know. But it's like, I need to have that first box I get on my own you know? as a noob it's a fine line

stuck fractal
#

That's the template

#

Then don't ask at all?

#

It's your decision, and we can't help at all unless you help us help you

half citrus
#

Ok, I'll try it this way: Working on Mr. Robot, 3rd flag. found in interesting switch within nmap that upon using it, i get this output. I'm not showing input due to spoilers unless you think it's ok to post.

#

as for the input, I'm targeting localhost, and various standard nmap switches to see what the output is, if it changed.

median compass
#

so you can surround anything you think is a spoiler with ||

half citrus
#

ah thanks

median compass
#

no, double pipes

half citrus
#

lol

#

my input is ||nmap -oS - localhost||

stuck fractal
#

Right process, total rabbithole

half citrus
#

lol ok

median compass
#

-oS means to output your findings in scriptkiddie format

#

hence the int3resting

half citrus
#

wait, so scriptkiddie format is l33t?

median compass
#

yeah

half citrus
#

haha ok, that makes sense

#

I didnt know that

median compass
#

google is your friend πŸ™‚

half citrus
#

I did google around for that, but I didn't put together that -oS was a part of nmap

#

so that's why I missed it. Thanks folks.

median compass
#

good luck with the rest

stuck fractal
#

You're supplying it as a flag to a program

median compass
#

everything after the nmap has to be passed to the program as an argument unless there is a ';', '&', '&&', '|' etc. that signifies a new command or a pipe/redirect to another binary

half citrus
#

thanks for the help. I feel a bit like a dummy spending so much time on this.

median compass
#

everyone starts at the start, keep at it and you'll find a whole world of new things to fail at, that's the joy of infosec πŸ™‚

oblique cliff
#

Some start before the start

white salmon
#

On kali what is the best wordlist to use for gobuster i can't find anything decent i check the dirb wordlists but there like 5 directory searches

stuck fractal
#

THere is no best

#

There's a lot of wordlists in /usr/share/wordlists

#

dirb and dirbuster lists are the best place to start

white salmon
#

Yeah but which is okay. common.txt is awful

stuck fractal
#

Common is just fine

#

Big is just fine

white salmon
#

really?

stuck fractal
#

You have to try these things out yourself

#

It's a tradeoff between time and coverage

#

Like password cracking

white salmon
#

Ahh okay. ive just tried big.txt this is working better thanks common was too quick didn't get much

#

another question if an exploit for example the one i have is 2.4.3. and it shows other exploits with 2.4.3.1 can i use them on the 2.4.3 version?

hasty slate
#

I am saying this generally not for any room, usually it depends on the software, exploit etc.
like they may have fixed it, or they haven't. I have used like exploits which was for very different version with no problems. And also i have seen exploit that didn't work because of .1 difference of patch version. So if you can find an exploit which exactly matches it's cool otherwise u have to use trial and error to see what works.

white salmon
#

thank you

elder knot
#

Hello I'm stuck on the room CC:pentesting on task 4 last question, I tried to do my gobuster command with (I think) the good parameters but I cannot find the file, can someone give me an hint please ? πŸ˜„

#

(I tried a lot of dictionnaries too)

hollow maple
#

What did you use to specify the extension?

stuck fractal
#

If it's the question I think it is, make sure you're looking on / rather than the dir you found

white salmon
#

Trying to crack the password on the HackPark room: Hydra find a wrong pass everytime, is my command wrong ? Task2 Q2

stuck fractal
#

That wordlist looks broken

white salmon
#

That's rockyou.txt

stuck fractal
#
  1. it's got a different name
#
  1. It's got HTML in it
white salmon
#

I just get the 8 chars from rockyou

stuck fractal
#

Rockyou has HTML but I think you're doing something wrong and breaking the page

#

You're missing A LOT of request body from your hydra command

white salmon
#

Since i know the lenght of the pass i just stripped rockyou

#

Alright, that's maybe the problem then. Thanks

elder knot
#

I used -x .xxa to specify the extension

stuck fractal
#

I used -x .xxa to specify the extension
@elder knot Make sure you're using gobuster on / not the dir you found before

elder knot
#

Ok I'll try tomorrow thanks a lot

white salmon
#

How am i suppose to do simple CTF if the exploit is written in python2 and kali no longer uses python2 or pip2 installer?

stuck fractal
#

Either fix the exploit, or fix python2 for Kali

white salmon
#

not so simple ctf lol

magic vector
#

room. owasp zap:
hi
i need help with owasp zap. i installed it and import the certificate on firefox. set foxyproxy for go through port 8080 and zap rout me always over https and not to http.
anyone has a solution?

stuck fractal
#

That's intended behaviour

magic vector
#

okay. its not like burp?

hollow maple
#

Did you try to set the proxy manually (firefox)?

magic vector
#

okay after a few resets it worked!

#

nope with foxy proxy; 127.0.0.1, 9090, http

hollow maple
#

Ok!

grizzled berry
#

I'm currently on Task 21 of the Linux Walk Through, and here's what i've got so far.

shiba2@nootnoot:/home/shiba1$ echo $USER
shiba2
shiba2@nootnoot:/home/shiba1$ ./shiba2
bash: ./shiba2: No such file or directory
shiba2@nootnoot:/home/shiba1$ ls
b.txt  ls  noot.txt  noot.txt.  shiba1
shiba2@nootnoot:/home/shiba1$```
#

what am I not seeing this time

jagged heron
#

link the room please @grizzled berry

grizzled berry
final mortar
#

Change to the home directory of the new user @grizzled berry

#

You are still in /home/shiab1

grizzled berry
#

which command would I use for that?

final mortar
#

You have to change directory to /home/shiba2, how would you do that ? cd /home/shiba2, or relative path cd ../shiba2 , Or just type cd anywhere to go to your home directory

jagged heron
#

cd ../ to go back

#

and then what could you do πŸ‘€

final mortar
#

There is a cd section you must have passed on your way here tho

#

Read up things more carefully

grizzled berry
#

I keep forgetting things, thanks for the help

jagged heron
#

~

final mortar
#

I keep forgetting things, thanks for the help
@grizzled berry Read them again, take notes, read the notes again !

#

Whatever you gotta do :)

jagged heron
#

Yea it can be confusing learning a lot of new information at once but I find for stuff lie using linux for example it becomes a lot easier to learn it when you immerse yourself in it

#

maybe try using wsl or a linux distro as a main os occasionally? seems to work for a lot of people

grizzled berry
#

I actually don't remember learning cd

final mortar
#

Hmm, it's coming up then @grizzled berry

grizzled berry
#

I did a C^F on the page for cd and found it a couple Tasks later

#

im on chown right now

final mortar
#

Yeah it's Fine. Keep doing them πŸ™‚

grizzled berry
#

I have officially learn what cd does

jagged heron
#

change directory

#

@grizzled berry

grizzled berry
#

I'm back

#

im trying to create a new directory called test in home, but im getting Permission denied. Heres how its looking...

shiba3@nootnoot:/home$ mkdir test
mkdir: cannot create directory β€˜test’: Permission denied

I've tried to use chmod to change my permissions however that wasn't successful either:

chmod: changing permissions of '..': Operation not permitted

I feel like im somewhere near the right path...

cunning quartz
#

@night cave
Actually I'm not able to crack the crackme2 part

night cave
#

What have you tried?

cunning quartz
#

I have tried in the radare2

night cave
#

And?

cunning quartz
#

Gdb

#

Changing the breakpoints for noticing the eax and eips but I got confused

night cave
#

Okay, show me what have you done.

cunning quartz
#

Okay

wintry yarrow
#

@grizzled berry make sure you are right user and in the right directory.

grizzled berry
#

found it

cunning quartz
#

you can see the last intruction of comparing the registers, but when i check their values it always gives me fffffff @night cave

night cave
#

Are you trying it on your machine?

cunning quartz
#

no on remote machine

#

ssh

#

i deploy the machine and the files are present their only

night cave
#

Do you have the directory /home/tryhackme/install-files/secret.txt?

cunning quartz
#

yes

#

it got some text

#

but that is not the answer

#

i already tried

night cave
#

Indeed, that's not the answer.

cunning quartz
#

actually i'm a beginner in binary exploitation

night cave
#

Wait, so where exactly the program ends for you?

cunning quartz
#

wait

night cave
#

Ah, move to DM, if I try to help you any further, this will just spoil everything.

#

So, DM would be the best.

cunning quartz
#

all these pics?

#

What should I do now? @night cave

night cave
#

No, just DM me your approach on where you set breakpoints and all

cunning quartz
#

Okay

true dune
#

Can anybody provide a hint as to where I should be looking for Mitre: Task 6 "Where can you find step-by-step instructions to execute both scenarios?". I' feel like I've read the whole website and entered the correct answer, but I must be missing something obvious for the required answer

astral smelt
#

Click on the APT29 link and you will find it

true dune
#

@astral smelt Thanks, I got it. I was looking in completely the wrong place

grizzled berry
#

anyone know where I can find command aliases

median compass
#

what do you mean 'find' them

#

like on a running system?

#

or examples of them

#

what room and task are you doing?

grizzled berry
#

im supposed to find where command alias are stored and get flag 11

median compass
#

you mean task 3 question 1?

grizzled berry
#

yes, apologies

median compass
#

have you tried googling? it pops up in the very first result for me when I search "linux define alias"

grizzled berry
#

Im googling the wrong questions I guess

median compass
#

that's just a question of practice too. Got it now?

stiff ridge
#

hi, on the INVESTIGATING WINDOWS machine i am surprised to say that I am stuck on question " What was the extension name of the shell uploaded via the servers website?

"

#

I have answered all other questions, been wondering how to find out

median compass
#

sorry, haven't done that one. Can you find a log file for the web server?

grizzled berry
#

yeah I found the one, but now its telling me to look where the alias are created

stiff ridge
#

hmmm @median compass will try to find one

median compass
#

all the commands and info you need are in that link @grizzled berry. It gives you the command to print all aliases and further down it tells you how to make aliases that persist across sessions

grizzled berry
#

im going through it right now

stiff ridge
#

@median compass I have discovered it. THanks man, hah, cant believe i spent like 30 min and did not think about that

white salmon
#

@white salmon What extension you tried ?

median compass
#

using spoiler tags (surrounding the text with || on both sides), show us what you've done, i.e. the commands you used @white salmon

polar mountain
#

task5 Q1

#

thanks

median compass
#

have you gone to the SHIELD website as instructed and looked at each of the tactics in turn? @polar mountain

median compass
#

no, I'm aware of the website, I'm asking have you gone there and read it?

#

because each tactic lists the techniques that apply to it

#

and the question just wants to know which has most

#

so the answer is on the site

polar mountain
#

there seems a fair bit to read through

median compass
#

well, that's kind of the essence of learning

#

but you could just count them and not read them

polar mountain
#

true

#

not sure if i am looking at the right page

median compass
polar mountain
#

fair enough

white salmon
#

I did ||find / -type f -name "*.conf" 2>/dev/null|| but there are too many results

#

@white salmon You can snag a sneeky grep if you want to

#

||find / -type f -name "*.conf" 2>/dev/null | xargs grep "*THM*"|| did not find anything

#

You're very very close

#

Check for more option in your grep

#

||-i|| did not help

#

Nop. But look arround you're close

polar mountain
#

@median compass sorry mate i was bamboozled with the website and was looking at the attack codes instead of the name, all sorted out

white salmon
#

do i have to use ||-e||?

#

What this tag used for ?

#

||regex||

#

Well, this channel is for hints not help. I might gave you the hints that can lead you to the flag (i just tried once again and it works). Try to find by yourself again with those hints. Then check the writeups, if you still can't find your way then ask in #room-help

#

alright. thank you

stone oyster
#

morning

grizzled berry
#

any idea on how to search all files for a string that starts with 4bceb and is 32 characters long?

median compass
#

@stone oyster, you got this one!

stone oyster
#

nope

white salmon
#

You can use grep only, or find/grep(my favorite)

stone oyster
#

lol

#

Find is kicking my butt.

#

I was trying type.

#

size.

#

I just keep geting errors or super long lists

#

Currently I have find / -size -50b -type f | grep

#

I'm trying to remember the grep I had the other day.

median compass
#

you need to build a regex to match the search string @grizzled berry - you can try regex101.com to test to make sure it matches - and then as kana says, use grep on its own (works fine but very slowly, like >1hr) or find with grep together

stone oyster
#

using a regex do I need a -regex flag, or / or ' ?

#

@grizzled berry We are working on the same flag

grizzled berry
#

I caught upskidy

#

ill let you know if I get anywhere then

cursive ermine
#

I remember that one being a nightmare. Let me look thru my notes to see if I wrote anything down about the regex string that could be helpful without giving it away

stone oyster
#

I had started building a regex, but I can't seem to find it right now.

median compass
#

i can't hint any more than I already have @stone oyster sorry

stone oyster
#

I know.

#

No worries.

#

I'm working on it.

#

You mentioned the size, the string...

white salmon
#

Actually if you don't like the regex, i just tried with find only

#

It works (but that's very silly)

cursive ermine
#

If I was better at grepping back then I would have done that probably. Find * in / | grep string

white salmon
#

A awk can be usefull too

cursive ermine
#

and maybe sed

white salmon
#

There are so many ways to find this, hardest part is to pick one lol

stone oyster
#

for the regex, do we need the /gm at the end?

white salmon
#

nop

stone oyster
#

ok. To begin a regex is there a special way to signify that we are usinig regex?

white salmon
#

First thing first

#

man grep

#

Google grep regex

#

Then ask again here.

stone oyster
#

In the research that I've done I've seen pages us -regex, /, and '

#

So I don't know if I need or dont' need and if so, which.

#

need more coffee.

#

brb

#

afk

white salmon
#

If you can't find your way with that, i don't know what else i could do without giving the answer

grizzled berry
#

heres what im thinking
rgrep -e '--5bceb--' /

stone oyster
#

Looking at this example about purchase followed by anything it says to use 'purchase..'

#

Would only 2 dots allow the 27 characters we need?

#

or would we have to put in 27 .?

#

We had discussed .{27} the other day

white salmon
#

Guys if you really want to learn something about that (which is important to me) try to find the command by yourself with the resources i provided. There is literaly the answer in this web page. Try to work on that together if you want to. It will be way more useful for you.

stone oyster
#

I'm trying

median compass
#

that site regex101.com is great for building regex guys, seriously try it

#

it has all the syntax and you can see exactly what is and is not being matched

#

a dot matches any single character marc

#

so purchase.. matches purchase99 and but not purchase9

#

putting a number inside {} means match that many of the character before

#

but seriously lads, you can get all this from the links kana sent or from that regex101 site

stone oyster
#

No doub.t

#

We just need to piece it together.

#

find / looks at everything from / onward. I guess it's about as root as we will get with this one.

#

so we can look at all files in garry, alice, bob and elsewhere.

median compass
#

find looks at everything from where you tell it to

stone oyster
#

riight

median compass
#

if you use find / ... then from root

#

if you use find /home ... then from /home, etc

stone oyster
#

Do we need to look for hidden directories?

#

Do we need to look for hidden files?

median compass
grizzled berry
#

I think were supposed to look through all files just to find something that starts with 5bceb and is 32 characters long

stone oyster
#

I found a 41da

#

lol

median compass
#

4bceb @grizzled berry

stone oyster
#

Is the file named like the flag?

median compass
#

no, the flag is what you'er searching for

#

when you get the command it'll return one 32 character string and that's your flag

stone oyster
#

Right. The file has it's name, and we will find that name, not that it really matters, by running a grep for the contents

median compass
#

yes, the file name is incidental

stone oyster
#

My size option isn't working. I tried -size 32b and -size 10b and received the same huge list

grizzled berry
#

its not making any sense

median compass
#

if you want an answer then i suggest #room-help, there's not many more hints anyone can give I'm afraid

stone oyster
#

the beast is going to give in to me if only to get me to quit poking it.

#

I'm making assumptions. Is the file we are looking for going to be a .txt?

median compass
#

nope, the only assumptions you should make are the ones that are given to you

stone oyster
#

Bah! I have to go for now.

#

Thanks for the help

#

will poke more later.

jaunty vault
#

Any hints for what Room Mitre, Task 6 Question 5 is needing. I've found the website but everything I enter isn't working. Not sure what I'm missing

hollow maple
#

Ctrl + F and keyword from the question into website.

#

I found it right now easy peasy..

jaunty vault
#

I'm still missing something.. the question is "Where can you find step by step instructions to execute both scenarios?" and I see the link to the website but the answer format is ****** ******* and I can't seem to make anything work..

hollow maple
#

It's a placeholder.. So 2 words..

astral smelt
#

Click on the APT29 link and you'll find your answer

hollow maple
#

Yeap

jaunty vault
#

I'm in the APT29 link and it takes me to pdf hosted on github and I find the link within that document that claims it has step by step instructions which it does. But I've tried several different combinations of 2 words I could think of that would match the format with no luck. I know I'm missing something I'm just not sure what..

#

Am I on the right track or am I overlooking something?

hollow maple
#

PDF?

astral smelt
#

You're clicking the FIN6 link if it's taking you to GitHub

hollow maple
#

I mean, read the previous question, it's a huge hint.. just saying..

jaunty vault
#

Found it. I was going into the pdf from the link, I needed to back up and look at the other page. I had the answer correct I was missing a "special charactor" within the answer. Thanks for your help

hollow maple
#

no prob

white salmon
#

on room hydra what wordlist should i use to bruteforce i have loads of wordlists

dusk violet
#

@white salmon rockyou πŸ™‚

#

always rockyou unless the room states otherwise

white salmon
#

@dusk violet thank you πŸ™‚ didn't wanna sit through a million different wordlists and thanks good tip. also does hydra work off gpu or cpu?

dusk violet
#

cpu

white salmon
#

damn i only got i5

dusk violet
#

normally passwords will be closer to the begining of the file..so wont take too much time

white salmon
#

Orite thank god

dusk violet
#

no worries...hydra is bruteforcing password on a webserver

#

the bottleneck is the network

white salmon
#

Lets hope it doesn't crash im using high threads

dusk violet
#

when you are cracking hashes or pgp using john/hashcat is more cpu intensive

white salmon
#

you can crack pgp with john wtf?

dusk violet
#

-t 4 will be enough

white salmon
#

hashcat uses gpu right?

dusk violet
#

if you set a high threads you might miss the password...

#

hashcat can use cpu/gpu or both

#

gpu is much more fast πŸ™‚

white salmon
#

ahh okay im on 40k passwords right now so maybe reduce threads?

#

will a gt710 work okay lmao?

dusk violet
#

are you using a VM to connect to THM openvpn?

white salmon
#

yeah

dusk violet
#

then you cannot pass through the GPU resourses to the VM

#

just CPU

white salmon
#

ahh okay. thanks for the tip

dusk violet
#

however...if you get something to crack offline you can send it to the Host and use Hashcat there with GPU

white salmon
#

So you mean a hash.txt?

dusk violet
#

yep

white salmon
#

great im not sure a gt710 will handle hashcat though pretty weak gpu

dusk violet
#

in THM metwork you won't need a beast to pass the rooms πŸ™‚

#

in fact the VM they provide to use through the web browser is basic. so don't worry

white salmon
#

Thank god i had a problem with a ctf on another website that used hashcat

dusk violet
#

make sure the hash is detected

#

and you're using the right -m

#

use 'Find' to make sure you are doing it properly

white salmon
#

yeah i was it said something like your GPU could crash and aborts

#

i was using a bog standard hp intergrated graphics card lol

dusk violet
#

🀣

stuck fractal
#

@white salmon Hydra is network brute force. It doesn't really depend on your hardware speed, unlike hash cracking.

white salmon
#

Okay thanks what are recommended specs for hashcat

stuck fractal
#

There are none.

#

Your cracking speed will depend on your hardware. It will run on most GPUs.

white salmon
#

i dont have decent hardware though

woven mirage
#

normally hashed password on thm rooms take a little time to crack even in bad pcs

white salmon
#

Is it safe to run with bad specs?

woven mirage
#

well, i don't see why it wouldnt be

white salmon
#

might crash pc?

woven mirage
#

are you afraid that your pc will explode because of hashcat?

white salmon
#

no ive had it crash before

hollow maple
#

Try AttackBox to do it!

woven mirage
#

theres probably an option to make it use less resources

oblique cliff
#

are you afraid that your pc will explode because of hashcat?
@woven mirage let me tell you ok. I’m on my sixth exploded computer after trying to use hashcat ok

white salmon
#

so your pc can explode lol

woven mirage
#

he's joking kk

white salmon
#

lmao

oblique cliff
#

Am I πŸ‘€

dusk violet
#

@white salmon I've read to don't use the --force option (ignore warnings) on hashcat, and you'll be good to go.

#

(on machines with low specs)

white salmon
#

that explained why my pc crashed before

woven mirage
#

at least it didn't exploded πŸ€·β€β™€οΈ

hollow maple
#

yet*

#

Hydra + John + Hashcat = what would happen? kekw Using a 775 LGA socket w/o GPU, 1GB RAM

white salmon
#

looking for hint on gaming server ctf. i have the private rsa key. how do i use it to login using ssh ?

#

google how to login to ssh with rsa key

#

or do man ssh

#

do i have to bruteforce a private rsa key?

#

nah you use it to login

#

just think of it as a password and youll be fine

#

i think the syntax is ssh -i id_rsa

#

i tried that but doesn't work

void lava
#

did you chmod it?

white salmon
#

oh true

void lava
#

also it would be great if you gave us more info than just "it doesn't work"

white salmon
#

chmod 600 yes

woven mirage
#

@white salmon send screenshot of the output of the command

white salmon
#

i closed it lol

#

to hard lol

fleet pike
#

Room: Mitre, task 4, question 2. "For the above analytic, what is the pseudocode a representation of"

Do they mean the TA0003 tactic, or the analytic of CAR-2014-11-004 ?

Room Mitre, Task 5, question 5, "Continuing from the previous question, look at the informationf or this ATT&CK Technique, what 2 programs are listed that adversary's will check for?"

I've scanned all of the VM detetction techniques and I cannot find any mention of two specific programs (especially that correlate between the sub techniques) on those pages, or any linked content on those pages that match that hash count.

Room mitre, Task 7, question 3. "As your organization is migrating to the cloud, is there anything attributed to this APT group that you should focus on? If so, what is it?"

Stupid users doesn't fit the hash. Email phishing, does. but apparently is not the right answer. neither is Cloud Security or Email Filtering ... any thoughts on what they are trying to get as an input box? (As this seems to relate directly to Crowdstrike, i also mined crowdstrikes site with the feline sounding group name who is listed as an actor. No particular mention of tools/techniques, detection tips. or deployed platforms on crowdstrikes webiste asides from the same copypasta that went everywhere.. Email phish, person clicked msg. application executed. blah ) .. By correlating the empire links, i discovered an app that starts/ends with same letter on an entirely diff url .. But I'm not sure what I should be detecting as an aerospace industry to catch this person (asides from incompetent users)

subtle drum
white salmon
#

@fleet pike Task 7 question 3 you almost had the right answer, just try some variations of the ones you already said...

fleet pike
#

spear phishing didn't work either ..

hexed crescent
#

For T4 Q2, another analytic tied to TA0003 tactic. @fleet pike

fleet pike
#

hmm

#

Ty for clarifying TA003

white salmon
#

Is a variation of ||Cloud security||

fleet pike
#

TBH, if i'm trying to protect my organization against APT33, im just goign to remove my users ability to send/receive email

#

lmao

#

"No email privileges for you"

#

Make them go back to letters and stamps

#

Got any Azure creds? Go phish

hexed crescent
#

For T5 Q5, the answer is on the page that represents the technique mentioned for T5 Q4.

fleet pike
#

TY

white salmon
#

T5 Q5 My Hint his that in the page of the technique the tools are listed with a "," but in the answer you have to use a conjunction

white salmon
#

Is there a prefered way to nmap scan ? i usually do nmap -sS -sC -sV -A -p- -oX scan.xml <ip_Address>

#

@white salmon I think this kind of question goes to #general channel or something along that line

#

it's for a room im doing

#

Anyway for the sake of answer, there is no prefered way it all depends on what you are doing, how much time you have, what kind of machine you are scanning etc...

#

the machine im scanning is a windows machine

#

But as example if you read nmap man page you will see that -A incorporate -sV and -sC in himself

#

what do you mean

#

Read the nmap man page you will understand

#

Oh i see thanks

#

Do you have access to that folder?