#modules

1 messages ยท Page 485 of 1

urban sage
#

How long ago did you start the target?

rustic sage
#

15 minutes,

urban sage
#

Hmmm... Interesting. It should be up at this point.

rustic sage
#

I entered the Burp options menu

#

I see in Proxy Listeners the loopback address

#

Shouldn't there be another interface

urban sage
#

Yeah but if you can't access the site without burp that doesn't sound like a burp issue.

rustic sage
#

Ok, the error was on me, i did not respawn the target system. I was just resetting the machine.

#

Burp is functional and i could get the response from the server along with the Apache version that it is running!

urban sage
#

Ah nice. Happy hacking!

foggy orbit
#

Hey everyone, this may be the wrong channel but I am trying to download CherryTree. Is the Guispen.com/cherrytree the correct website for download?

crimson rampart
#

thanks a ton, I'm not sure where in the instructions it said anything about using the ssh command but once I had that the rest was exactly what I had been trying.

drowsy ingot
#

Hola

tight zodiac
#

@tough fjord ok i try

#

@tough fjord yes its done

gray torrent
#

I am stuck with the same issue. Would you please let me know what you had to do?

#

Hi, where you able to figure this out?

acoustic sentinel
gray torrent
tough fjord
#

There are only three

gray torrent
acoustic sentinel
rustic sage
#

Hello! Why if i Repeat the POST using the admin/password credentials, i don't get the cookie PHPSESSID?

#

And i think that to solve the challenge i must swap the admin cookie ID with the guest cookie ID..

timid grove
rustic sage
#

Oh. ... thank you. Some challenges need to be reformulated

#

Thanks for the tip @timid grove

rustic sage
#

I ended up with the idea of generating a SHA2(user+ip+pass). Does that have any sense to the challenge in hand?

#

But that seems a bit SF for the task in hand

tough fjord
#

@rustic sage overly complicating it

#

Inspect the cookie when logged in. Think what it represents then have a play

rustic sage
#

the cookie, if i base 64 decode it

#

i get a guest_string

#

guest_<some string>

tough fjord
#

Yep

rustic sage
#

should i swap guest with admin?

#

and encode it?

tough fjord
#

A unique string that changes each time you login - to identify individual guest accounts

#

Have a play around thunderdome

rustic sage
#

Thanks @tough fjord

wet swallow
#

I am stuck at File Inclusion in the section
LFI to Remote Code Execution (RCE)

I used both methods to run the command uname-a, but I get nothing back. Its empty. What I am doing wrong?

dusty zealot
#

Im working through windows fund and am stuck on "list alias for ipconfig.exe command." I run ||Get-Alias|| and there is no ipconfig in the list. I also run ||Get-Alias -Name "ipconfig"|| and it does not exist. Is there somewhere else I should be looking?

rustic sage
#

So you just needed to encode the user, i thought you have to append it to the rest of the string and compose a complete cookie.

#

Still interesting stuff though..

lethal lotus
#

Hello room

#

I have a linux fundamentals query in relation to the Filter Contents section, the last question "Use cURL from your Pwnbox (not the target machine) to obtain the source code of the "hXXps://www.inlanefreight.com" website and filter all unique paths of that domain. Submit the number of these paths as the answer." First to ensure I'm assuming correctly, when they are looking for "all unique paths of that domain", do they mean all unique paths that can be found within the file returned by the curl command to the index page

#

never mind, as usual I was narrowly defining what was being asked for. I assumed path meant unique directories, excluding file names...

lethal lotus
#

Is there any way to give feedback as to the wording of questions?

rain pasture
#

Try applying what you learned in this section by sending a 'POST' request to '/serial.php'. What is the response you get?

#

Can I get some help with this one

rustic sage
#

Hello @rain pasture. What seems to be the issue?

magic valley
#

I'm having problem with the web requests - PUT and DELETE method. I create the file flag.php with PUT method, but when I request it with GET method it won't display the flag for me

#

could perhaps someone guide me in dm's ? ThinkingFroge

rustic sage
#

After you use PUT does the file appear in the webpage?

magic valley
#

yes, as flag.php

rustic sage
#

And did you add the appropriate content to the flag.php file?

magic valley
#

well, when I use the GET method, the response gives me its contents ||<?=cat/flag.txt;?>||

rustic sage
#

make sure you use ` and not '

magic valley
#

yes I made sure

rustic sage
#

and there is a space between cat and /

magic valley
#

oh fuck me, that's it

rain pasture
#

Hello @rustic sage What I should put in my post request, cause I see that flag says always check the source or something like that.

opaque tusk
#

Hi guys need some help

#

Iโ€™m in Linux fundamental session

#

But when I try to connect target by using ssh it not get connected

#

After some time get connection Time out

rustic sage
#

ssh -l htb-academy <ip of target system>

#

pardon, ssh -l htb-student <ip>

opaque tusk
#

Ssh <ip> -l <usernames>

#

I will check your command also wait few minutes

#

Same thing happened

rustic sage
#

Do you have a non expired IP address of the target system?

opaque tusk
#

Yes can I dm you ?

rustic sage
#

sure

vernal falcon
#

Good morning, can someone put me in the right direction ?
Which option needs to be set to execute a command as a different user using the "su" command? (long version of the option)
u think i used all known to me sudo commands
but none is accepted

verbal mirage
#

Have you already checked su -h ?

vernal falcon
#

found the answer

#

it was kinda nasty one though ๐Ÿ™‚

charred basalt
#

Windows fundamentals: Identify one of the non-standard update services running on the host. Submit the full name of the service executable (not the DisplayName) as your answer.

i have found the non-standard service but whenever i submit the name it doesn't work

rustic sage
#

it says the executable

#

If you found it that is good, but you must submit the executable service there

charred basalt
#

thank you mate

royal dome
#

Hello everyone. sorry if I'm asking a stupid question.
i got the decoded flag. but the system doesn't accept my answer. please can you tell me what I might be missing?

#

Using what you learned in this section, determine the type of encoding used in the string you got at previous exercise, and decode it. To get the flag, you can send a 'POST' request to 'serial.php', and set the data as "serial=YOUR_DECODED_OUTPUT".

#

it's questions in js deobfuscation

vernal falcon
#

Anyone , i got the serialnumber from WMI but answer is not accepted:

"Use WMI to find the serial number of the system."

rustic sage
#

The question is not that clear. You could this to reffer to the system as hardware or as software. Try them

vernal falcon
#

Must be me but i dont get it ๐Ÿ™‚

rustic sage
#

System as hardware, you usually have the serial number of the part in BIOS

vernal falcon
#

correct thats what i asked of it ๐Ÿ™‚

rustic sage
#

OK, that's hardware. How about software

vernal falcon
#

are we talking about license keys now ?

rustic sage
#

You used cmd or PS to get your serial?

vernal falcon
#

Yeah win32_bios

rustic sage
#

ok, but you searched for the machine (hardware) serial. Why not try to get the OS serial

vernal falcon
#

done

#

thanks.. i

#

feel kinda stupid... i would never ever figured this out without that OS hint..

rustic sage
#

I think he said system intentionally, so that you try both commands

vernal falcon
#

yeah it is probably to make you think ๐Ÿ™‚

pallid yacht
#

Hey guys, I request for your help with the Web Requests module. The final task says that I have to use the guest/guest in order to log in and solve this challenge. I'm fairly certain it has something to do with the cookie, but I'm not so sure at this point. I have taken the cookie from the Set-Cookie field that the server is sending. I have base64 decoded the cookie and it looks like guest_b6281e731a281896c13b. Now, I just modified that into admin_b6281e731a281896c13b re-encoded into base64 and changed the Server Response in this way. However, I do not think this is the procedure. Can someone please guide me further on what needs to be changed on the cookie? What's the final stuff "encoded" as after the "_"? thank you

rustic sage
#

sha you are 99% there

#

You need to play around with the base64 of the admin credential

pallid yacht
#

I see let me think further on this, thanks ๐Ÿ™‚

#

whatever comes after the guest_ -> how's that being "encoded"? It doesn't look like a direct base64 encode of the word "guest"..

rustic sage
#

no it is not. it's just a random seq generated each time you login!

pallid yacht
#

gotcha

#

Nope, I still can't figure this out. I sent the credentials as guest/guest, but in the "client" request on the Cookie: auth header, I changed it to admin_<random> and then forwarded. I received the Server Response with the older cookie, I changed it here to too admin_<random> it lands me in the "admin panel" as before but that's not the answer..

rustic sage
#

Think think, in order to authenticate you the server must receive the exact base64 string of the cookie. For guest you have a username and password. For admin, you don't!

flint moth
#

@pallid yacht you need to do something about that random in admin_<random>

rustic sage
#

You must send something that has nothing to do with the random generation of strings!

#

And what @flint moth said is very true. Do something with that string..play around!

tough fjord
#

That random string is a unique identifier for each logged on guest account. To tell them apart

#

Would an admin account require a unique identifier adding to it when it isn't likely to be a shared logon for visitors

pallid yacht
#

I got it now, found the flag! Thanks for all the hints @rustic sage @flint moth @tough fjord ๐Ÿ˜

vernal falcon
#

Pinkyo ๐Ÿ™‚ Copy was not the answer

spare zodiac
#

copy is a good start.. understand the code, and modify it to your needs will get you the answer, or closer to it.. ๐Ÿ˜‰

stark aurora
#

how do i find a user's mail path?

rustic sage
#

check the directory @stark aurora structure

stark aurora
#

hmm, let me see

tough fjord
#

Check your environment

#

It tells you all sorts of wonderful info

stark aurora
#

how do i do that, i'm kind of new to this thing

#

is it /var/mail

#

got it

#

thx

lusty delta
#

is anyone available to help with linux fundamentals , find files and directories ?

harsh pine
#

hello, I am in Windows Fundamentals dealing with the Security Section, I have to find the SID of bob.smith, I already tried ||whoami /user, but that returns the SID of the htb-student account, I even tried all the SIDs of the Registry Editor||, but none was correct. Is there a command I should be using to get it?

tough fjord
#

Yep there is

harsh pine
#

[solved] I saw the hint that says ||I should use Get-WmiObject, but as far as I know with that command I may not see the SID of a user, instead, things like serial number, windows version, a list of processes, info about the bios or a list of the services||, so I looked it up and found ||wmic useraccount where name="<username>" get sid||, but when I try that, the remote computer crashes saying error 1359

opaque tusk
#

Can I get a hind for 1st question in working in web servers session?

#

Without installing npm how can I start http server

native gyro
#

same @opaque tusk i am equally confused

#

i tried ||npm install http-server|| and ||npm install simplehttpserver|| and i tried things like adding 8080 after those commands, and it dont work

opaque tusk
#

I think we donโ€™t have the permission to install npm

#

Iโ€™m also tried some command but itโ€™s also not working sadglas

native gyro
orchid pawn
#

Im running into an issue on the linux fundamental module. The question is asking me to retrieve the kernel version I ran uname -r command and entered the version it spat out for me. But it keeps saying I am incorrect? Am I looking in the wrong place?

native gyro
#

uname -r should be correct, isnt it ||4.15.0||?

rustic sage
#

@orchid pawn Kernel Release or Kernel Version?

opaque tusk
#

Use uname -a

#

Use this command

rustic sage
#

Because those are two different arguments to the command!

rustic sage
#

hey guys i am new, it says SSH to with user "htb-student" and password "HTB_@cademy_stdnt!" how do i ssh without having it locally or the ip?

#

or do i need a vpn

#

open the terminal of your machine and type : ssh -l htb-student <target_ip>

#

And by machine i mean the module pwnbox

#

ohh

opaque tusk
rain pasture
rain pasture
#

Just solved it

rain pasture
royal dome
rain pasture
#

Ok, sorry just tried to help

native gyro
#

cat << EOF > stream.txt, can someone explain the process of what exactly is happening?

#

what happens in what order?

hidden knoll
#

hello guys, can you tell me how to list all files in directory with index ?

sly barn
#

i cant find the bash thing help plz

hidden knoll
#

can you copy paste your question?

hidden knoll
#

thanks, im find

#

ls --help

#

ls -i

opaque tusk
#

Find a way to start simple http server using โ€œnpmโ€?

#

Any help

hidden knoll
#

i help too

#

what is inode ?

#

i cant understand this thing

hidden knoll
opaque tusk
#

Yeah sure

#

But Iโ€™m searching that for almost a day

hidden knoll
opaque tusk
#

Ohh

hidden knoll
opaque tusk
hidden knoll
#

i hope good guys will answer and help us

opaque tusk
#

Oki I will search in google if I find answer I will tell you bro

hidden knoll
#

thanks a lot BRO

opaque tusk
#

Np we will help each other bro

tough fjord
opaque tusk
tough fjord
#

Its not asking you to run it

#

Its asking for what command you would use

opaque tusk
#

Oh

opaque tusk
slow fulcrum
#

I have a question about how many total packages are installed on the target system. So I ran the command ||"dpkg --list | wc --lines"|| and got ||748|| but it says it is not correct I also tried doing the ||"apt list --installed | wc -l"|| and got a different result ||(738)|| that is also wrong. Can anyone help me?

hidden knoll
#

how can i send a image ?

#

i cant find the *.conf file, cause permission denied

#

find / -type f -name *.conf -user root -size +25k -size -28k -newermt 2020-03-03

#

and i was tried find / /home -type f -name *.conf -user root -size +25k -size -28k -newermt 2020-03-03

#

bot nothing

#

what should i do ?

slow fulcrum
#

maybe try removing -user root?

hidden knoll
#

im tryed

#

find / /home -type f -name *.conf -newermt 2020-03-03 -size +25k -size 28k

#

nothing, again permission denied

#

admins? can you help me ?

#

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?

#

Content: Linux Fundamental - Find Files and Directories

slow fulcrum
#

I think you might be missing the part where you filter the files || -exec ls -al {} \ ;|| ||2>/dev/null||

rustic sage
#

@hidden knoll try to see if you can find a way to filter it so you only see files you can access ๐Ÿ™‚

hidden knoll
#

thanks, but which command ? Can you tell me?

#

๐Ÿ™‚

#

im find conf files on /usr

#

and try write all of *.conf files but i think its bad idea

#

oh

#

thanks !

tough fjord
#

@slow fulcrum maybe check the output of those commands. maybe some of the lines being counted are things you don't want to be counted

slow fulcrum
#

๐Ÿคฆโ€โ™‚๏ธ Listing... Done

#

Thank you

hidden knoll
#

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.

#

what is path, who can explain to noob ?

tough fjord
#

thats an example of 3 unique paths for the url.com domain

hidden knoll
#

aaa

#

thanks !

tough fjord
#

stop putting answers to questions in here

#

stick it in the response on the site

hidden knoll
#

ok

hallow relic
#

What is it

#

are the virtual machines quite secured?

wise arch
#

Where should i start? Cuz i dont know shit about hacking.

#

Is there some kind of tutorial for hacking?

urban sage
wise arch
#

Thanks!!!!

urban sage
lusty delta
#

having trouble finding the total number of installed pkgs on target system

#

im using dpkg-query but that answer is not accepted

rustic sage
#

You are on the right track, browse that output first and see what you need to do next to the command

rustic sage
#

You can always use the manual of the commands you are trying to write. Just type man <command name>.

#

man dpkg-query

lapis stump
#

Hi, I'm stuck in Linux Fundamentals/User management, Which option needs to be set to execute a command as a different user using the "su" command? (long version of the option)I typed several syntaxes but I couldn't get it right I assume that to execute a command with SU I must put the user and its password right? Thankยดs a lot for your help.

static dock
fallow delta
#

Man oh man I wish I had done the Linux PrivEsc lesson ages ago! Some ๐Ÿ”ฅ tips throughout the module thatr wouldve made life sooooo much easier with some of the easy/medium boxes! Stellar lesson folks! Only thing left to do is the final capstone! Cheers!

urban sage
#

๐Ÿฅณ

fallow delta
#

I think the NFS portion was my favorite by far! Its funny with a couple of em...brought me back to Laboratory & Luanne, though not gonna say which portions of the module๐Ÿ‘

urban sage
#

Glad you liked it!

native gyro
rustic sage
#

@native gyro great, but let others enjoy the thrill of discovery ๐Ÿ‘

rustic sage
#

I am trying to fuzz through the subdomains and when i run the command i only get the full list of the dictionary that I'm trying to apply. The pair IP NAME is in /etc/hosts

#

I don't think the name resolution works as intended.

opaque tusk
hidden knoll
#

im stuck in " 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."? How should i found a path ? I know about with grep, we will find all of the lines that include a path of the domain (https://www.inlanefreight.com/*). But i dont know HOW ?

#

curl https:www.inlanefreight.com/* | grep ...| wc -l

vernal falcon
#

Hi Aboom, start with cURL

#

see what the output of this is, and then think of a way too find the unique urls

#

after finding the unique urls count them ๐Ÿ™‚

hidden knoll
#

thanks! i will try

#

outputs is code

rustic sage
#

if you want to filter content you will have to pipe the cURL command to grep. Use grep arguments that will help you obtain a clean list of domain URL's

oak sail
#

Hi guys, I have a problem that is simple but I can't find it. In the process of learning linux in module 2, section 3, second question, I use ls and pwd and it doesn't work. It freezes

#

i can't get good or bad response, only freeze..

azure dune
#

Module "FILE INCLUSION / DIRECTORY TRAVERSAL" why remote file inclusion is not working ? I have tried with http and ftp but same result, gained flag with different method but wanna know why RFI does not work

tough fjord
#

rfi does work when I did it

rustic sage
#

hi, I am new to all of this and I am stuck on a very simple command ๐Ÿ˜‰
I want to find how many total packages are installed on the remote machine.
I have tried
dpkg -l | wc -l
dpkg --get-selections | grep install | wc -l
apt list | wc -l

Nothing from above is correct and every single of them has another result.
Has anyone an idea what's going wrong?

tough fjord
#

they are all different commands returning different results

#

you are on the right path with piping to grep

#

just play around more with initial command choice

rustic sage
#

thanks @tough fjord i ve got it ๐Ÿ™‚

tough fjord
#

np

azure dune
#

@tough fjord I started http server with "python3 -m http.server 8080" created file, and when I am trying to include keep getting "failed to open stream: Cannot assign requested address" error

azure dune
#

What am I doing wrong ๐Ÿ˜ฆ

nocturne heron
#

someone hav this command sudo usermod -L but in long version ??

#

i try evrything pff nothing works

wise arch
#

Hey, i started Linux fundamentals tutorial and there is a task "Find out the machine hardware name and submit it as the answer."(I have an ip adress, target). What am i supossed to do with it?

nocturne heron
#

anta connect to this adress in ssh and look environmental settings manual

wise arch
#

what is ssh?

#

aaa

#

understood

#

srr, i really dont know anything

nocturne heron
#

look in youtube how connect ssh server

#

very simple

#

ssh *user@*adress

nocturne heron
#

someone know this command in long version sudo usermod --lock

static dock
night inlet
#

guys i have a really silly question. i'm on the decode section of the javascript deobfuscation module.

i've decoded the prior flag and i'm getting something that looks to be the actual answer, but when i submit the answer i am getting a response saying it's incorrect

UPDATE
just figured it out, I was a step shy haha

lapis stump
rustic sage
#

@lapis stump What are you trying to decode?

static dock
lapis stump
lapis stump
dusty zealot
#

In windows fundamentals, im trying to "Find the Execution Policy set for the LocalMachine scope." I run the command and the execution policy is set to ||undefined||, yet when i put this in the answer it is incorrect.

rustic sage
#

Are you writing the LocalMachine or MachinePolicy?

rustic sage
#

In the Parameter fuzzing - get challenge it says "run a parameter fuzzing scan on this page. what is the parameter accepted by this webpage?" Does it reffer to the spawned IP/name or to the actual module page? I've tried lots of combination and i cannot get the parameter.

lofty atlas
#

Could you tell me anyone.
About STACK-BASED BUFFER OVERFLOWS ON LINUX X86
I'm doing a "shellcode generation" module.
How do you calculate NOPS 124 with the code below?
Buffer = "\ x55" * (1040 --124 --95 --4) = 841

rustic sage
#

I tried subdomain scan, vhosts scan, then applied get fuzzing to all of them but still no luck. Do I miss something in this challenge?

rustic sage
#

Finally....

#

Tricky challenge this, the key is to be organized and write down all your findings. Otherwise you end up doing the same thing twice!

clever goblet
#

at the HTTP
in post method
am confused in what to submit hint says cookies and i did that as trying to refresh and all
still i can't get it what is the answer

night inlet
#

hi guys, i'm having some difficult with the Linux Fundamentals - Find Files & Directories. I've figured out the last 2 of 3 questions, but I'm stuck on the first one. I'm using the following command and not sure what i'm missing:

find / -type f -name *.conf -size -28k && -size +25k -newerct 20200303

any feedback??

tough fjord
#

why is && in there?

night inlet
#

because I'm looking for smaller than 28 and larger than 25

tough fjord
#

but why &&

night inlet
#

i figured that was necessary since i'm using the size flag twice

tough fjord
#

nope, look at what && does in linux cmdline

night inlet
#

oh

tough fjord
#

it isn't used for multiple arguments, but chaining multiple commands

night inlet
#

right

#

got it, ok

#

that makes a lot of sense

#

i guess im still struggling. so im using the same command minus the &&, but im still getting a lot of files with "permission denied"

tough fjord
#

redirect stderr to /dev/null

night inlet
#

got it

#

thank you

rustic sage
#

Hello everybody. I'm almost done with Linux Fundamentals, Just missing 2/3rd of questions 'bout Filter Contents

#

I dunno if I can post the questions here to ask for explainations (maybe my english doesn't help)

flat moat
#

hi

rustic sage
#

Ok, saw above. First question is "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."

#

Installed lynx and dumped main URL, than played with grep/awk/sort, but still getting Incorrect answer.

#

So I'm here to ask...is the question about finding all unique paths like

#

? Or what? Do I have to consider just path or objects?

timid grove
#

find all domain path , compile them , run a command that will remove the mutiple entries of domain path

orchid pawn
#

does anybody know the answer to the last question of the learning process ... the difference between the two numbers

winged junco
#

36,7

#

is literally the difference between that two numbers

#

@orchid pawn srry i didn't tagged u

flint moth
#

Hi guys I am stuck on page fuzzing , The given hint is to remove copyright from wordlist but It seems I am not getting how to do it , any hint please !!

winged junco
#

now one question, i'm in windows fundamentals, and one of the questions says:

Find the non-standard directory in the C drive. Submit the contents of the flag file saved in this directory.

the thing is that i don't know what is a non-standar directory, and i can't recognise it too when i use the command "tree". can someone explain to me what is it and what i need to do?

hidden knoll
winged junco
#

ok nvm i actually know which file is, the fact is that the command "print" doesn't work, i type "print flag.txt" and dont work, any recommendations?

tough fjord
#

Look at what commands can be used to read a file

hidden knoll
#

you can look at nano, vi, vim or cat for print on console

#

good luck !

winged junco
rustic sage
#

I am a bit stuck at the final fuzzing challenge. It asks me to list all the known extensions used in the domain. I get a number but it's wrong. I also fuzzed in all the subdomains that i found.

tough fjord
#

Should have 3

rustic sage
#

Well indeed 3 are distinct, but i do get some weird variants for them, which gives me more

tough fjord
#

There should be 3 variations on 1 really

rustic sage
#

@tough fjord mind if i dm you?

tough fjord
#

Sure

loud halo
#

Yo guys.

I am trying to do the web request> POST method but the exercise seems poorly described. I have now idea how to get to admin using the guest/guest credentials

#

I intercepted the request/response and it didnt come with an admin cookie or soemthing

rustic sage
#

What did you do so far @loud halo

loud halo
#

@rustic sage I logged using guest/guest

#

But I dont know what kind of input the is expected for this one

#

everything I try it says it s the wrong answer

rustic sage
#

That's a start! What did you get from that login in Burp?

loud halo
#

I got a cookie

#

and was redirected to the dashboard

#

I pasted the cookie value and wasnt accepted as a valid answer

rustic sage
#

So when you log in, you get a cookie! So to have admin rights, you also need a cookie but not the one from the guest!

loud halo
#

That is right

#

But it says that I should use the guest credentials

#

Login with the credentials guest / guest and try to get to admin.

rustic sage
#

See more about that cookie....play around with it! The cookie always tells you something, you just need to decode the message

loud halo
rustic sage
#

I dont't know, try it!

loud halo
#

gimmie a sec

#

I decoded the cookie:

guest_78cd9f9ad5038fbce7f97

#

pasted it and still got the wrong answer

rustic sage
#

That;s progress. But you need admin, not guest

loud halo
#

I really have no idea what to do ๐Ÿ˜ฆ

rustic sage
#

guest that guest string in the decoded cookie, what do you think it is?

loud halo
#

I thought it would be the password but it is not

#

I made it! thanks for the help

rustic sage
#

Thank a even wiser man that helped me once! You are welcome! ๐Ÿ‘

rustic sage
#

hy everyone im new on HTB and its my first time on this channel , greetings from italy

proven grove
#

I am currently doing HTB academy the fundamental module I am stuck at this one part called system information and I want to know how do you find the "Which shell is specified for the htb-student user?" and "What is the name of the network interface that MTU is set to 1500?". In conclusion, Please help me(many thanks in advance).

proven grove
#

<@&486603600085123073> hey I think there is something with the box for Linux fundamentals for system info

shell scaffold
#

@proven grove I disagree, you should probably read closer.

proven grove
#

@shell scaffold Really why

flint moth
#

@proven grove I will give you hints 1. Environment 2. Network you will find your answers with them

fierce otter
#

I feel stupid but I can't figure out how to ssh to the other user

#

any hints?

proven grove
#

@flint moth be more specific

rustic sage
#

commands u using?

cloud hearth
#

hey um i cant find the damn apache version .-.

#

it says that the answer format is X.Y.ZZ but the apache version i found is 2.4.7 which says is incorrect so im stuck

flint moth
#

@proven grove use command to see parts of env and command to configure network interface

timid grove
amber herald
#

Hey, I'm on linux fundamentals module, "Working with Web Services" section. I'm using a remote workstation on my browser. I'm trying to run the apache server but it errors with no log. Here is what I'm doing (it is a fresh workstation btw)

#

it doesnt work with sudo either

#

apache2ctl configtest says config file syntax is ok

#

Any help will be much appreciated, I suspect it is something particular about HTB because I tried every solutioin possible i could fin on the internet

rustic sage
#

@amber herald what are you trying to accomplish?

amber herald
#

i was trying to create an apache server, but i ended up skipping it

rustic sage
#

create it or start it/

flint moth
#

@amber herald I guess Apache server is already installed you just need to start it using command *****

#

In pic you shared , command is there where it says invoking

vapid flicker
#

when i run the command " find / -type f -name *.conf -size -28k -size +25k -newerct 2020-03-03 2>/dev/null"

#

it shows me the file but when i leave out the -newerct 2020-03-03 option it doesnt show me anything

hidden knoll
#

but still incorrext

#

*ct

#

what i should do ?

timid grove
#

the question ask for unique domain path

hidden knoll
timid grove
#

dont keep pasting here . try it . dont keep guessing

hidden knoll
#

okey man, sorry

flint moth
#

Can anyone help me I am doing page fuzzing in Ffuf, hint is to remove copyright from wordlist but I don't get it

timid grove
#

what page is that again ?

#

i take a look

flint moth
#

Fuzz ' /blog' directory one

timid grove
#

whats the order directory u found besides blog when u did the scan >?

rustic sage
#

I don't recall this task in Web Fuzzing

#

Usually you were guided on how to fuzz for files, extensions, (recursion), subdomains, vhosts, etc

acoustic beacon
#

Hi all ! I'm getting stuck on Web Request , on the last module about PUT/DELETE methods. It says to create a flag.php file with a command to get the flag. I created the file with the syntax "<?=cat /flag.txt;?> , but when i GET the proper flag, It shows a string that is not correct.. Any tip?

rustic sage
#

make sure you put a space between cat and /flag.txt?

acoustic beacon
#

Yep , but stills..

indigo bay
#

hi, im new to cybersecurity. I'm stuck on the academy's javascript deobfuscation. i found the flag but cant submit it. The hint says the format should be HTB{...}. but thats not working.

rustic sage
#

What challenge?

cloud hearth
#

i used "/usr/sbin/apache2 -V" to try to get the apache version but it still says im wrong......i have no idea what im doing wrong

rustic sage
#

why that complicated?

cloud hearth
#

wym?

#

is the command wrong?

rustic sage
#

well you need the version of an application. usually it's the name of the app followed by a -v or --version

maiden wind
clever goblet
solar cypress
#

hello, was hoping for some help with a beginning module. I'm in Linux Fundamentals under system information. I am on the question "What is the name of the network interface that MTU is set to 1500?" I used ifconfig to find the network interfaces but multiple have MTU set to 1500 what am I missing?

flint moth
#

@timid grove I got home and index after scan

rain pasture
#

Submit the contents of the flag.txt file located in the /exercise directory. Can I get some hints? I found Kernel version

verbal mirage
#

So I need to find out under which user the ProFTPd server is running. I do "ps aux | grep "ProFTPd" and it shows me that the user running this process is htb-stu+ But the htb-student does not get accepted as the answer. What do I do wrong?

tough fjord
#

Are you sure that one isnt the process you ran - i.e the ps aux one

verbal mirage
#

Yeah, you are right. that is the ps process. I figured the answer out now. thanks ๐Ÿ˜„

vapid flicker
#

to see how many installed packages on a system i would use the command " dpkg --list | wc -l " right ?

rustic sage
#

Have you tried the command @vapid flicker ?

vapid flicker
#

yes but the number i put in the box says incorrect

unborn violet
#

Hello, I working through the Web-request fundamental course and I've managed to get the admin screen using a modified guest cookie, resulting in the "Welcome admin_"a-number" but if I use either the modified cookie or the "admin_number" I get the wrong answer.... please tell me what I'm doing wrong

rustic sage
#

Well, the challenge asks you for the INSTALLED packages @vapid flicker. What you do there is list them all

flint moth
#

@unborn violet admin don't require any random number

unborn violet
#

Hi Amrit, I've successfully gained access to Admin but modifying the Guest cookie but I'm trying to answer the question and I've submitted the cookie that successfully gained me access but its says this is the incorrect answer... what information is the question asking for ?

rustic sage
#

Did you submit the admin cookie?

unborn violet
#

yes

rustic sage
#

or should i say....admin cookie'd

unborn violet
#

I submitted the encoded admin cookie, the one I used in Burpsuite

vapid flicker
#

admin cookie'd that sounds kinda bad LOL.....

rustic sage
#

not quite..!

flint moth
#

Cookie is not the answer

unborn violet
#

ok I'll have a think

rustic sage
#

As I said. Admin cookie'd

#

That;s your answer!

flint moth
#

You logged into admin_'x' you are almost there you need to log into admin

#

@rustic sage have you done Ffuf?!

rustic sage
#

Yes

flint moth
#

Can you help me in Ffuf I need a hint

rustic sage
#

Shoot

vapid flicker
#

So i did " apt list --installed | grep installed | wc -l " but that also gave me the wrong answer. what am i doing that is wrong

flint moth
#

It's asking me to find flag in /blog directory and hint is to remove copyright but How to remove do that I mean remove copyright?

#

@vapid flicker try without wc-l and check if there any unwanted line in starting , because it usually works

rustic sage
#

Postal you used dpkg --list, you need to develop that

flint moth
#

@rustic sage Please give me a hint too

vapid flicker
#

Lol i guess it would help if i sshed into the target machine lol, but i still get the wrong answers

rustic sage
#

That will help a lot @vapid flicker, but one you are into the machine run a simple dpkg --list and inspect the output

vapid flicker
#

well I got the answer lol.. I am assuming that the ii means its installed then right ?

rustic sage
#

yes

#

fuck it

vapid flicker
#

is there a difference when using quotes in the grep command ? ie grep -v "false|nologin" VS grep -v false|nolgin ?

cosmic glacier
#

I think there is

#

I exactly dont remember what

#

Maybe its between single and double quotes

#

Btw always use single quote

drifting storm
#

is there any significant difference between gobuster and ffuf (or dirb, dirbuster...)?

rustic sage
#

Being both written in GO i think they're pretty much the same, speed wise

atomic kite
#

yo guys i have 40 cubee

#

what modules should i enroll in

rustic sage
#

Which ones have you finished?

atomic kite
rustic sage
#

I gueest you follow the path shown in the modules. Fundamentals, easy, medium, hard

#

sugest*

atomic kite
#

ok

#

im on linux fundementals but i dont understand it

rustic sage
#

Hello channel. I'm incredibly stuck at Linux fundamentals for a foraign language matter. I've been able to solve the easy one on services listening etc, after correctly understanding what it meant. Now the last to pass, it's the one about curl. I don't get it. Curled, filtered with grep to show lines starting with base url and show just unique paths, excluded homepage and counted. Still incorrect. Any suggestion? Thanks in any case

rustic sage
#

Ok, found the answer but disappointed. Now I'm missing just on in Windows: Identify one of the non-standard update services running on the host. Submit the full name of the service executable (not the DisplayName) as your answer.

#

With PowerShell you'll get Name and Display Name. The second it's not as stated in the quetion. Name doesn't work. Is Full name something different? Tried also concatenation of Name and DisplayName. Thanks for any help in "understanding" the question

amber herald
#

Hey, how do i answer this question?
How many services are listening on the target system on all interfaces? (Not on localhost and IPv4 only)
I tried using netstat -l but it doesn't seem to be it

harsh pine
#

Look for a way to see all services, like the ones specified in the section

timid grove
fossil narwhal
#

anyone got any hints for "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)." i tried "http-server -a localhost -p 8080" but http-server doesnt work

timid grove
#

refer here

fossil narwhal
#

i tried http-server -p 8080 and httpserver -p 8080 and still wont take it

timid grove
#

They ask for port 80 or 8080 ?

rustic sage
rustic sage
rustic sage
vapid flicker
#

anyone got any pointers to filter out the unwanted lines for " 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 have curl and use grep but how to remove the unwanted lines

rustic sage
vapid flicker
rustic sage
#

What I did when i came across this challenge was to do pattern matching and specify an end character. All those url's end with the > from the html tag. That way i could get the lines that contain the http://.... and after that, a simple count did the trick

#

I think i've used the -e ad -o options

ionic quest
#

Hello, I've been working for several days on the POST method where you have to access the admin with the guest/guest logins however, I still can't do it: I can access the admin with these logins but I can't find any flag.
Thank you in advance for your help
(Ping me if you answer me)

rustic sage
#

@ionic quest What's your progress so far?

ionic quest
rustic sage
#

Let me rephrase it....what did you try so far?

ionic quest
#

It is indicated in the hint to use cookies what I have done however no success.
To be more precise, I recovered the line of the cookie and I put it back with another login without it working.

rain surge
#

hello

#

i need help

urban sage
#

What's up?

rain surge
#

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

paper trail
#

Hi
I'm learning module Web Requests and stuck on POST Method
I try repeat it step by step by what I see in my BurpSuite and what I see in module is differences things
How pass it module?
Thanks
I read and follow but on exercse I see

rain surge
#

@rain surge

maiden wind
#

I also need help on the post method of gaining admin access with guest account

rustic sage
#

The ideea behind the "connect as guest but gain admin" is to play with the cookie. Study it and try different things with it. Eventually you will get the answer! @ionic quest @maiden wind

ionic quest
#

ok thank

stable vortex
#

hi can i ask some thing ?

rustic sage
#

Ask..

#

Learn some modules from HACK THE BOX Academy, perform at what you do, then try to regain your lost account...by talking to facebook suport!

maiden wind
#

@rustic sage Thanks, will try again

autumn pilot
#

@stable vortex please read the #rules , any illegal discussions are prohibited

indigo bay
#

Hi guys. So im on the HTB academy and im stuck on file transfers. It is asking me to upload a file from my local machine using openvpn to the target. Then RDP into the target a run a command. I'm confused because how am i going to upload the file from my local host to the target. scp isn't working.

kind mauve
#

@rain surge im having the same issue, the su man say sudo I have tried that and everything else I can find and it does not accept it. Any help is appreciated. The question is "Which option needs to be set to execute a command as a different user using the "su" command? (long version of the option)"

white anchor
#

hi, i need some help with a question in linux fundamentals. the question is What is the name of the hidden "history" file in the htb-user's home directory? can't manage to find it anywhere, i'm using the command ls - a to list anything

rustic sage
#

Have you listed the contents of the home dir?

#

What is your pwd?

white anchor
rustic sage
#

that is your pwd

white anchor
#

that's the result

#

htb-student@nixfund:~$ ls -a
. .. .bash_history .bash_logout .bashrc .cache .gnupg .profile

fossil narwhal
#

its right there ๐Ÿ˜›

white anchor
#

but i need a hidden "history" that i can't see

#

really? UHMรน

fossil narwhal
#

you see it there

#

it has it in its name lol

rustic sage
#

it's there, in front of your eyes

white anchor
#

guys, it was a typo

#

ignore everything

#

aahaha

fossil narwhal
#

lol

rustic sage
#

it says hidden history file. not in history as the name but in history as it's type of file!

white anchor
#

i'm dumb sorry for this question, anyway thanks for the help

fossil narwhal
#

np ๐Ÿ™‚

rustic sage
#

Nah, it's cool! But even if you see something like that, try it, submit the value.

smoky roost
#

Hi everyone! I'm noob on Hack The Box and I am doing the Linux Fundamentals module, and I'm stuck on chapter "Find files and directories"... On first 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 already got the file but I don't know what is the name that the question refers... I already answer the path of file and the "something".conf, and my answer is always wrong. Someone help, please?

rustic sage
#

@smoky roost You have your answer in the lesson, just adapt that to your task!

smoky roost
#

Thank you very much @rustic sage for you attention!

paper shadow
#

hey, to learn mac os fundamentals I need to click on academy on the htb page right?

#

I'm sorry I speak spanish so my english isn't the best, please understand me

night osprey
#

can anybody tell me what I am doing wrong with this question? it is asking me 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 am trying find / -type *.conf size -28k size +25k newermt 2020-03-03 2>/dev/null | wc

#

it keeps telling me 0

#

it is actually *.conf with the slash behind it

maiden wind
#

@rustic sage , I've been able to get to the admin page by doing changes to the cookie, but after inputing the flag it still says incorrect answer

flint moth
#

What you got after logging in admin @maiden wind

maiden wind
#

@rustic sage
Welcome, to admin !

The flag is 607f8f*****! Sort of flag

flint moth
#

It seems right , you coppied it with '!'?

maiden wind
#

Still even after removing the '!' mark and only copying the rest still doesn't work

#

It has worked , I omitted "The flag is " and only keyed in the other part without the exclamation mark

#

So true, I guess I was thinking too hard while the trick was to easy to see

vapid flicker
#

So I have this question . I got the answer finally, but i think i did it the hard way lol . will someone tell me the right way of which is should have used ?
"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."

opal burrow
#

Hi, quick question on Linux Fundamental - How many total packages are installed on the target system?

can someone DM me so I don't spoiled the answer

I tried dpkg and apt, 2 differents numbers cames out, both are not good...

rustic sage
#

@opal burrow dpkg is ok. First list with dpkg then inspect the output! After that do some filtering

#

But pay attention to the output of the command!

#

If you type "tree /?"

hasty temple
#

Hey I'm new to discord, so I'm not sure if I'm posting in the right place. I'm working on web requests, I'm in the POST method section and I'm having trouble figuring something out. Is this the place to post, or can someone direct me to where I should be posting questions regarding this module. Thanks.

rustic sage
#

Yeah...ask!

charred basalt
#

test

hasty temple
#

K so here is the thing . I read at the top of the module that I can use guest:guest to log in, and that works fine. Then it reads the admin credentials are admin:password. When I type in those credentials I get Login failed! I don't see the 302 found response in burp like it shows in the module?

tough fjord
#

That was just an example. Not something to follow along with

hasty temple
#

I gotcha. Thanks.. Thunderdome was just explaining that to me ๐Ÿ™‚

rustic sage
#

I recall i could not get this to work either...more like to learn on how to spot the cookie and to decode it. Which will come in handy later on

static dock
opal burrow
rustic sage
#

@opal burrow did you queried with dpkg?

#

If you type dpkg and touble tab, you will see a list of all your available commands that start with dpkg. What you need to do is query the package list and retrieve the packages list.

lapis stump
#

Hello hackers !! I'm stuck on Linux fundamentals / Filter Contents in the question, How many services are listening on the target system on all interfaces? (Not on localhost and IPv4 only) I used the command (systemctl list-unit-files) and I added (| grep enabled | wc -l) to it so that it would list / number them all but when putting the answer I get an error. I also used (netstat -tulpn | grep: 80) but it didn't run because I'm not root. I have tried some others and I have been pulling commands to test but I could not find the answer, thanks for your help.

#

I also used the search engine here to go through old questions from people who were stuck on the same question but have not been able to resolve the question.

charred basalt
#

Hello i need help with Web requests - POST Method
The question is Login with the credentials guest / guest and try to get to admin.
I've tried decoding the cookie guest_XXX and playing with it nothing works

rustic sage
#

@charred basalt how did you play with the cookie?

charred basalt
#

editing guest to admin then sending a repeater request

rustic sage
#

Good! You're 90% there

charred basalt
#

alright lemme try somethings

rustic sage
#

Go ahead! You need that admin cookie'd

charred basalt
#

@rustic sage idk if its the right way but i got the site to welcome me as an admin but still no code/flag to put it as the answer

#

idk if i have to do something with burp

#

new to burp

rustic sage
#

Did you cookie'd the admin?

charred basalt
#

if you mean that i encoded the admin with base64 yes i did

rustic sage
#

Be sure to encode exactly what you need, nothing more!

tough fjord
#

When you get it right it will tell you the flag

#

If you get it wrong it will just welcome you as a user

rustic sage
#

Mรถglicherweise kรถnnen Sie

timid grove
lapis stump
rustic sage
#

could someone help me with a windows fundamental question please

#

the question is " Find the non-standard directory in the C drive. Submit the contents of the flag file saved in this directory."

#

i have tried re-reading the articles given using rdp that was given and etc

timid grove
cyan ocean
#

Hello everyone! ๐Ÿ‘‹
I've been stuck in the "Linux Fundamentals" module (Filter Contents) in the question "Determine what user the ProFTPd server is running under. Submit the username as the answer."

#

I've tried ps aux | grep ProFTPd and submitted htb-stu+

#

But it looks like that is not the correct answer. Can somebody help me figure it out?

lapis stump
rain pasture
#

Gain command execution using one of the PHP wrappers discussed in this section. Submit the contents of the flag.txt file located in the /secrets directory.

#

Can I get some hints

#

I tried how was explained in the lecture but I'm missing something

rustic sage
#

Hey there, i could need some help in the path "web requests". There are 2 questions at the module "introduction" at the section "request and respsonse". The second questions asks what kind of Server stands behind the first link. I did as the instructions told me, and wrote down the Servername. They ask for an Apache Server, but Burp says the Server is a nginx. May someone can explain me my misstake ?:)

rustic sage
#

@rustic sage check the corelation between the retrieved server and the address. Maybe nginx is for something else

#

Nginx is a webserver software

rustic sage
#

What I mean your Apache Web Server responds to the spawned address in the task and the NGINX is for another address

rustic sage
#

Yes, i am sorry, i misunderstood the question all the time. I was thinking much more complex as needed, it was an really easy question. But thank you very much for your help!

#

Great job! Good luck! ๐Ÿ‘

violet slate
#

Hi all, i'm stuck on: " What is the name of the network interface that MTU is set to 1500?" of the section 'system information' in 'linux fundamentals'. I can't for the life of me figure out what the answer is, I've exhausted every uname option in the workstation but to no avail. Can someone guide me in the right direction?

rustic sage
#

uname?

#

The lesson talked about another command in order to display Interfaces and TCP IP info

violet slate
#

I'm sorry, I meant ifconfig not uname

#

I tried eth0, eth0:1 etc as network names but it keeps telling me those are incorrect

#

But these are the network names right?

#

network interface names

#

I can also distinguish the MTU variable when I input ifconfig -s for example, so my gut is telling me I'm in the right place, but still not correct though..

rustic sage
#

Are you looking at the spawned machine or local machine?

violet slate
#

I'm looking at 'my workstation'

rustic sage
#

You should first connect to the HTB spawned machine and run the command there

violet slate
#

oh ๐Ÿ˜ซ

shell sun
#

Hey

#

I love your website

rustic sage
#

@violet slate That's why the target IP is offered, so you can run your commands on

violet slate
#

@rustic sage Yes, I understand now. I didn't know how to SSH to an IP but I looked it up and got the correct answer now. I was able to answer all the other questions though with the help of my workstation. I just replaced home/MYUSER with home/htb-student. Same for the other questions. But this also explains why the kernel version answer wasn't accepted based on my input from my workstation

rustic sage
#

ssh -l <username> <ip>

#

after that it will ask you for the password. Those credentials you have next to your spawned IP address

violet slate
#

@rustic sage SSH'ing wasn't explained in the lesson so I didn't understand what to do there. Should I have known that already?

rustic sage
#

well....if you type ssh and tap the TAB key twice it will show you all the SSH commands. after that you can document the commands and see your available options

#

But always look around for methods to accomplish your tasks!

violet slate
#

Will do! Thanks for your help, trying my best but this is all very new to me so I'm struggling haha. I'm going to continue now!

rustic sage
#

Practice makes perfect @violet slate

forest stream
#

Hello everybody
maybe I'm doing something wrong, but isn't it correct answer for "Windows Services & Processes" ?
And how do I have to find answer ?

rustic sage
#

It is correct!

#

it just need something extra after that name

#

If you read carefully you will have your full answer

forest stream
#

ahaha
The answer was so close)
thank you

mystic edge
#

How do I start http sever using npm?

sudden summit
#

Type that exact same sentence into google.

#

Not being rude btw

mystic edge
#

Okay thx

coarse escarp
#

curl -s http:/Server_IP:Port/ -X POST -d "Param1=/serial.php" is bringing up the get request sample. Not the serial.

#

What am I doing wrong?

coarse escarp
#

Can I get some help?

#

@dapper belfry sorry to bug you again.

#

I'm just kinda stuck

dapper belfry
#

sorry, I don't understand

coarse escarp
#

I'm doing the Obfuscation course and I'm stuck on the HTTP request section

#

I run curl -s http://SERVER_IP:PORT/ -X POST -d "Param1=/serial.php" but it's coming up as the home page.

#

As if I did curl http://SEVER_IP:PORT/

dapper belfry
#

curl http://sever_ip/:PORT/serial.php

#

it'll go there

coarse escarp
#

Blank

#

Even the source code

#

Is that supposed to happen?

#

Haha!

#

Nevermind I figured it out

coarse escarp
#

New problem, it's not excepting my answer even though its right.

#

The code was a base64 which I tried to enter it in plain text and the decoded text

timid grove
coarse escarp
#

Because it makes a coherent message

timid grove
#

hmm

#

what is the question ?

#

are u doing the assessment or ?

coarse escarp
#

Decoding

#

It's a base 64 decoded from the serial.php message

timid grove
#

okay

#

so what did u get ?

#

give me the first 3 letters here

coarse escarp
#

Fuck my Session terminated hold on

timid grove
#

alright .

coarse escarp
#

7h15

timid grove
#

yeap

coarse escarp
#

It's not accepting though

timid grove
#

thats not the answer

#

its asking for flags

native vapor
#

hi ฤฑm hacker

coarse escarp
#

?

native vapor
#

ฤฑm hacker

timid grove
#

to get the flag, u need to send a post request to serial php and set the data that u found

#

do u know how to do that ? @coarse escarp

coarse escarp
#

No

timid grove
native vapor
#

are you shit?

timid grove
coarse escarp
#

Yes

timid grove
native vapor
#

ฤฑm porn stars

timid grove
# coarse escarp Yes

if u done that, then its the same concept but u have to send the data this time

timid grove
coarse escarp
#

The last one > curl http://sever_ip/:PORT/serial.php
Though I used this method

#

Because I couldn't figure out what I was doing wronf

#

Wrong

native vapor
#

curl http://sever_ip/:PORT/serial.php

timid grove
coarse escarp
#

Yeah I followed that. And it took me back to the main request page

#

Several different times

timid grove
#

have u decoded the string u recieved ?

coarse escarp
#

Yes

timid grove
#

alright now u need to send the post request

coarse escarp
#

Ok

timid grove
#

the example are on the same page too

#

u just have to change a few things from there, and put in ur decoded output

#

and u get ur flag

#

its even in the cheat sheet .

#

use it , it helps alot

coarse escarp
#

I got back the coded message

#

Was that supposed to happen?

#

New error

#

Curl (5) could not resolve proxy: POST

timid grove
#

i just did a hands on

#

it work for me

coarse escarp
#

So did i

#

I'll send you a screenshot

timid grove
#

okay pm me

coarse escarp
#

Are you shown off-line?

timid grove
#

what u mean ?

coarse escarp
#

Nvrmnd

timid grove
#

dont have to add as friend

#

nvm

coarse escarp
#

Sent a request

timid grove
#

saw it

#

the reason why u didnt get ur flag

#

is because u are using the wrong parameters

#

ur decoded output is correct

rustic sage
#

I'm learning basic of terminal. how do you guys find the answers on the questions? any tips do you google it or you keep reading and try to solve it yourself?

timid grove
#

most of us here sometimes refer to google too, its not wrong .

granite minnow
#

guys what should i do to get free credits in a game

fresh mirage
#

Still trouble with SQLmodule in the Assessment with the last question can someone give me a little hint regarding json Bypass waf?

potent solar
#

Hey guys, i am trying to solve a question in Linux fundamentals, but i can't solve this. The question is which kernel version is installed on the system. i know the command to see the version and stuff, but what's the syntax? just give me a hint, not the awnser. thankyou very much!

autumn pilot
#

if you know the command why don't you try to pull up the help information

potent solar
#

I did, but i can't figure it out somehow

#

let me check again

autumn pilot
#

its even written in the section

potent solar
#

jupp, i know. can't figure it out. im gonna leave this question for a few hours. Thanks anyway

timid grove
#

Am i right ?

potent solar
#

okay i got it, lol.... ๐Ÿคฏ

#

let me check what i did wrong

#

yea,, with ssh it works ๐Ÿคฏ thanks guys

#

issue resolved lol

timid grove
#

np

fathom nacelle
#

Hi guys, I am trying to solve a question in the Linux fundamentals, in the section Workflow - File Descriptors and Redirections - the last question: How many total packages are installed on the target system? -- I am connected to the ssh target machine and I am using following command dpkg-query -f '${binary:Package}\n' -W | wc -l, but apparently 743 is the wrong number. Can someone please help me out.

fathom nacelle
#

Got it, by myslef, but thanks!

frigid shale
#

i'm doing the windows fundamentals module and having issues with RDP if anyone could help

#

when trying to log in from my vm i get this error

#

and then when i try through the instance on the module page i get this

#

any help would be greatly appreciated

north rapids
#

try to switch the negociation security protocol using the /sec: option

frigid shale
#

ok will have a go thanks

#

i tried logging on normally through the instance on the module page and its working fine now....

#

thanks for the suggestion tho

north rapids
#

np

earnest glacier
#

C:\Windows\System32>Get-WmiObject -Class win32_OperatingSystem | select Version,BuildNumber
'Get-WmiObject' is not recognized as an internal or external command,
operable program or batch file.

#

hi guys i ve started the windows fundamental section... but i am stucked at the very first section .. i am not able to use Get-WmiObject ...it appears this: C:\Windows\System32>Get-WmiObject -Class win32_OperatingSystem | select Version,BuildNumber
'Get-WmiObject' is not recognized as an internal or external command,
operable program or batch file. may someone help me ? โค๏ธ

rustic sage
#

Where do you run that command @earnest glacier ?

#

PowerShell or CMD?

earnest glacier
#

cmd

rustic sage
#

Hmm, have you tried PowerShell?

#

those Cmdlets are specific to PowerShell

earnest glacier
#

so i have to remote connetc to windows target and than i use linux poweshell to get information?

rustic sage
#

You need remote connection to the Windows machine, then run Powershell in that remote machine. That's all

earnest glacier
#

how can i run powershell in windows?

#

i thought that there is just cmd in windows

rustic sage
#

Nope! Windows has CMD and Powershell

#

You just press the start button and type PowerShell, you will find it there

earnest glacier
#

oks i ll try, thanks a lot ๐Ÿ™‚

rustic sage
#

Good luck! ๐Ÿ‘

vestal moon
#

How do I send a GET request to flag.php with parameters num1 and num2 that add up to 1337

I have tried the ff:
GET targetURL/flag.php?num1=1000&num2=337 HTTP/1.1
targetURL/flag.php?num1=1000&num2=337
flag.php?num1=1000&num2=337
GET /flag.php?num1=1000&num2=337 HTTP/1.1
GET flag.php?num1=1000&num2=337 HTTP/1.1

I'm out of ideas cos ik it has to contain sumn like "flag.php?num1=1000&num2=337"

#

any help or hint?

rustic sage
#

How do you send those two name:value pair to the server?

vestal moon
#

name:value@targetURL

#

i think

#

oh wait, i see

#

GET http://num1:1000&num2:337@178.128.40.217:30341/flag.php HTTP/1.1 didnt work

rustic sage
#

YOu use the Burp Suite right?

#

isnt burp suite how you use exploits or do u use metasploit? .... im a noob idk

#

He can also send the data via Burp

vestal moon
rustic sage
#

Nah, you will get a flag after you send those 2 values correctly to the server!

vestal moon
#

ahh i see

#

Thanks

rustic sage
#

No problem!

vestal moon
#

I thought they wanted the method to do it and not requesting me to do it on the workstation

rustic sage
#

Usually they don't require to type commands as challenge

#

The commands give you access to resources and flags mostly

rustic sage
#

@rustic sage Are you at the lesson where you need to post to get a serial?

#

this is the one

#

Using what you learned in this section, determine the type of encoding used in the string you got at previous exercise, and decode it. To get the flag, you can send a 'POST' request to 'serial.php', and set the data as "serial=YOUR_DECODED_OUTPUT".

#

Exactly!

#

Because it is a POST method, usually the name:value pair comes after the name of the page lik this:

#

http://ip:port/serial.php?serial=YOUR_DECODED_OUTPUT

#

you can use curl to get that

#

oh i've tried it

#

but

#

didnt get thing

#

so thats why abandoned that method

#

u mean like this right?

rustic sage
#

@rustic sage it works as expected!

timid grove
#

try with ur inverted comma

lapis stump
#

Hi Hackers, although I already answered the question of Windows Fundamentals/Windows Services & Processes I would like to know why the answer is considered a non-standard service.
I googled the standard and non-standard services on windows while trying to solve it and I didn't find the answer.
However, thanks to the hint and some comments here I have been able to solve it.

rustic sage
#

@lapis stump it does not come with Windows by default

lapis stump
rustic sage
#

It was that VPN service right?

lapis stump
rustic sage
#

Oh yes! True. Got it confused

lapis stump
floral leaf
#

Can someone help me to ssh im stuck

#

Im new to tjos

#

This

rustic sage
#

ssh -l <username> <spawned ip>

#

type that into the terminal, then it will ask you for the password

#

of course you replace <username> with htb-student and <spawned ip> with the one provided by the page ! @floral leaf

floral leaf
#

Thanx so much

jaunty vortex
#

how can i start a http server using npm?

timid grove
rustic sage
#

any help

#

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

opal condor
#

Hi all. Wondering if there is someone who might be able to give me a nice slap to get my brain moving in the right direction on the POST method module?

#

i understand that the cookie is the data that I should be working with, but moving forward into the JSON part is tripping me up

timid grove
#

can u read the cookie like in human format ?

opal condor
#

i ran it through the decoder in burp, which gave me something human readable but im thinking it isn't enough

#

still have 24 characters that are not readable

timid grove
#

ahhh

#

now compare that with ur the string u recieve once u log in as guest

opal condor
#

@timid grove mind if I shoot you a DM?

timid grove
#

alright shoot me

potent solar
#

does anyone have the same problem with ssh? its resetting after 1 minute

#

everytime i am logged in

autumn pilot
#

@halcyon copper lets not share any answers

timid grove
#

hello !! @autumn pilot

#

haha

pulsar lava
#

buffer overflows module was very satisfying

rustic sage
#

i found the key in JavaScript Deobfuscation but it says incorrect

#

Could someone help?

#

first part

#

Nevermind.. was blind.. standing in the forest and could not see the trees

#

XD

timid grove
timid grove
#

@tough fjord can we do something about this guy

ember fern
#

you sending an ISO file

#

and saying it's a tutorial

#

are you quite ok

#

did I ask

ebon wigeon
#

Also what are you trying to achieve with a dead link lmao ? @spare turret

#

Thats evident lmao ๐Ÿ˜„

tough fjord
#

++ban @spare turret don't troll

red obsidianBOT
#
Agent_Tiro#2324
Ban Confirmed
red obsidianBOT
ebon wigeon
#

Noice

#

Very noice

#

++rep Agent_Tiro

#

That would be cool , a ++rep bot where you can give in discord rep

timid grove
#

thanks agent

ember fern
#

tyty

brisk basin
#

Hey guys, I just started on HTB... I am stuck on a question in the Linux Fundamentals. It is asking me to find the unit name in the "Service and Process" section by using the systemctl command with the description "Use "systemctl" command to list all units of services and submit the unit name with the description "Load AppArmor profiles" as the answer." I used: systemctl list-units --type=service to find: "apparmor.service" but it is saying that answer is not correct? What am I missing here?

#

btw im signed in as root

#

and ssh is running

timid grove
#

there's no way u can sign in as root as far i remembered

#

ssh to the target ip address bro

brisk basin
#

I am absolutely new to all of this

#

I dont think its asking for the ip address just the unit name which is: apparmor.service

#

I also sent HTB a message to advise

#

would it be "apparmor" without the .service?

#

also if I use the command "whoami" it comes back as "root"

rustic sage
#

Making Java Section.. is nice.. >D

brisk basin
#

I had to move on from Windows Fundamentals lol

#

!rank

frigid summitBOT
brisk basin
#

gotta start somewhere

vital orchid
#

Hello

brisk basin
#

hello

vital orchid
#

I'm new to all of this. What courses are best for a beginner and should I learn basic java script before trying this?

brisk basin
#

I just started as well on HTB going through the fundamentals first... gotta have that foundation

vital orchid
#

I know but it doesn't seem to teach java or html or anything. It more seems to teach how to use those skills.

#

Am I right in thinking that or not?

brisk basin
vital orchid
#

Also has anyone here hacked the box yet. That's my goal

#

If so how difficult is it?

brisk basin
#

seems to be JavaScript 101

#

!rank

frigid summitBOT
brisk basin
#

good talk

vital orchid
#

Okay

#

Thank you

brisk basin
#

np

timid grove
#

@brisk basin #bot-commands come here to check ur rank next time ! ๐Ÿ‘

brisk basin
#

thank you just checked it out

graceful solar
#

!rank

burnt stone
finite plover
#

You actually just apply what you have already learned, without any difficulty or attempt to confuse you

#

!rank

finite plover
#

if so, then you might want to practice some coding to get a grasp of the fundamental principles

#

i would suggest python, you should check some free courses in learning portals such as Udacity, edX and Coursera.

#

!rank

drowsy sedge
finite plover
#

have you completed the cracking into HTB module>

#

?

drowsy sedge
#

Nope, just starting with Linux fundamentals , just to refresh

finite plover
#

it introduces Javascript with concepts like object creation, variables, script execution. I imagine it can be overwealming for an absolute beginner

#

i come from a computer science background,

drowsy sedge
#

There is a Starting point but couldnโ€™t connect through smbclient

finite plover
#

linux fundamentals is my next module

#

just for refresh ๐Ÿ™‚

drowsy sedge
#

There is also a bash scripting I want to move next .

#

Have you done yet?

finite plover
#

nop, but due to my background i know most of the concepts introduced in the fundamentals

#

just doing them all for the sake of completeness

#

before jumping into HTB

#

i have cracked the login page, but not attempted anything yet

drowsy sedge
#

Wow , well I had some help

finite plover
#

have you cracked in to HTB? before you told me that you didnt enroll in cracking into htb module

#

you should have enrolled in it, then htb invite code is a piece of cake

#

!rank

drowsy sedge
#

Cracked the HTB means get the invitation code?

finite plover
#

yep

drowsy sedge
#

Oh

#

Yes I did but I got some help

finite plover
#

there is also a HTB academy module called "cracking into htb"

drowsy sedge
#

Afterwards it isnโ€™t too hard

finite plover
#

which introduces the knowledge needed and the tricks

drowsy sedge
#

There were some tricks I didnโ€™t know

#

!rank

glacial stone
#

Hi Guys im doing the Fundamentals now and im stuck at the system info section. I was able to ssh into the target and was attempting the answer the questions when i prematurely closed my terminal and lost connection. Now when i try to login with ssh im getting a permission denied . i have even tried the reset target button with no luck

next oak
#

if you're using the vpn connection pack, check your connection there didn't die

night onyx
#

hello everyone , i have a question how can i use hack the box targets with my own linux distro ?

hot wadi
#

Hi, I'm busy with Web Requests, Post Method. Please help.
||-I've logged in as guest/guest.
-taken the value form the cookie and decoded it and trimmed it until there was no error
-changed guest to admin
-re-encoded it

  • pasted it in burp and the cookie||

but i'm still not getting a flag as it feels that this is simply 'n text change and not real admin

night onyx
#

how can i do that ?

finite plover
next oak
hazy thicket
floral leaf
#

Can somebody help me . What is the inode number of the shadow.bak file in the var/backups directory

#

Can not find it

zinc pollen
#

Hey all, showing my inability to google shit, however within the linux funda academy course, i'm stuck on the user management questions (literally the first one), asking me "Which option needs to be set to create a home directory for a new user using "useradd" command?" i'd looked under "man useradd" and "useradd -h", and I can see the option to set is "-d, --home-dir HOME_DIR", however when I user -d, --home-dir or --home-dir HOME_DIR, it says incorrect response. The question doesn't specify a username, so i'm not sure what other options it wants me to provide, given the question is pretty specific.

#

Never mind, thanks all, for those looking, I can tell you it is as simple as a single letter (like "-d"), but "-d" is not the correct answer.

rustic sage
#

@zinc pollen are you sure you consulted the help with attention?

#

There is a slight difference between -d and the command you seek! Read carefully and you will find the answer!

narrow fjord
#

where to write that unam -a

#

help me

red obsidianBOT
#
Error

This command can only be used in private messages.

frigid summitBOT
#

XMARK6 You aren't ranked yet. Send some messages first, then try again.

brisk basin
#

@zinc pollen option -d is for home directory of new account... keep looking at that list and see if another option works better.

#

same list, just different answer ๐Ÿ˜‰

autumn pilot
#

Avoid using bot related commands rank and etc and use them in the specified channel for the purpose #bot-commands

brisk basin
#

Still trying to figure out this MF question in the Service and Process Management section.... to reiterate... Question: "Use "systemctl" command to list all units of services and submit the unit name with the description "Load AppArmor profiles" as the answer." I used the command: "systemctl list-units --type=service" which brought up the units and the ONLY one with the description: "Load AppArmor profiles" is "apparmor.service. It's still saying it is the wrong answer... somebody please help before I put my face through the monitor. This is like hour 7 trying to figure this out ๐Ÿ˜ซ

clear bough
#

hi guys, i'm stucked at module Attacking Web Applications with Ffuf,

rustic sage
#

you are very close! @brisk basin you need the unit name that has that description.

brisk basin
#

under unit it only says: apparmor.service

#

then the statuses and the description

rustic sage
#

@brisk basin Are you sure there is no prefix to that service you mentioned?

brisk basin
#

I have a screen shot I can send you if you wouldn't mind...

clear bough
#

hi guys i'm stucked at Attacking Web Applications with Ffuf parameter fuzzing -get, at the question Using what you learned in this section, run a parameter fuzzing scan on this page. what is the parameter accepted by this webpage?....when i post this command: ffuf -w /opt/useful/SecLists/Discovery/Web-Content/burp-parameter-names.txt:FUZZ -u http://admin.academy.htb:PORT/admin/admin.php?FUZZ=key -fs xxx i got a very big list of parameters....i have try all but it didnt work....help me!!

rustic sage
#

Did you filter the list based on it's size @clear bough ?

clear bough
clear bough
rustic sage
#

Great! ๐Ÿ‘

lapis stump
left charm
#

Hey guys how you doing!! Someone can help with windows fundamental, with non-standard service?

#

Im stuck can find service in powershell ๐Ÿ˜…

#

Canโ€™t

clever pelican
#

hey everyone, hope youre having a great day/night! I had two questions.

How do I gain access to messaging in medium-modules and other channles, is there some sort of validation I need to do with my discord username?

2nd Question:
In the DNS records with ffuf section. It mentions that academ.htb is not a valid public domain, and suggests using the command:

sudo sh -c 'echo "SERVER_IP  academy.htb" >> /etc/hosts'

to add it to our host file.
To clarify, where it says SERVER_IP , that is simply a stand in for whatever the ip address is of the host machine we spin up, correct? Meaning if I use this command I should substitute in that IP address,
I am confused because the documentation makes it sound like running that command will make academy.htb accessible from any machine.

cerulean ridge
#

If you want to have access to #774040485748539423 and the other channels you will need to verify your HTB account

red obsidianBOT
#

To talk in other channels you need to verify yourself first:

  1. Send ++verify in the #bot-commands channel
  2. Follow the instruction you will receive in PM (i.e send ++identify <Account Identifier> directly to the bot
    (The instructions are available in the #welcome channel)
clever pelican
#

@cerulean ridge Thanks for clearing that up

cerulean ridge
#

you will need an account on the main hackthebox website

clever pelican
#

right, ok which I wont have until I break in ๐Ÿ˜‚ gotcha. Might you have any insight on that second question

cerulean ridge
#

yes

#

academy.htb is not a normal domain like hackthebox.eu or google.com for example since it can not be resolved in a DNS

#

so /etc/hosts is basically a lookup for your computer to see which hostname refers to which IP without contacting your DNS

#

so in this case your system will see that academy.htb is in /etc/hosts so it knows to go to the given IP

clever pelican
#

right, and I would need to plug in the current IP of whatever machine is serving up the content correct? So my host file would look like

10.24.34.66 academy.htb 

for eg

cerulean ridge
#

if you want academy.htb to point to 10.24.34.66 then yes

clever pelican
#

perfect! I understand now, and thanks for the detailed documentation

cerulean ridge
#

you're welcome

lapis stump
left charm
floral leaf
#

Im stuck help me if u can. โ€ how many filรฉs exist on the system that have .log file exstensions โ€

#

??