#modules

1 messages · Page 487 of 1

rustic sage
#

Nevermind, i was just stupid as fk, i got it

glad garnet
#

hey guys ,
Which shell is specified for the htb-student user?
in linux fundamental
what's the command should i use ?

pearl birch
glad garnet
pearl birch
# glad garnet do you prefer learning linux command's before anythig ?

No, what I suggest is, if you can't figure out the answer for the assignment "which shell is specified for htb-student user" - just go through the sections and you will get the answer. However, the answer to the question is very simple but you must understand how to find users on target system then you will know what shells are set to each user.

peak juniper
#

I am getting this error when trying to connect windows machine from terminal. Working on windows fundamentals module. Kindly guide me where I am going wrong

autumn pilot
#

Are you connected to the vpn?

peak juniper
waxen escarp
#

Imodified the cookie, it showed me on the portal instead of Welcome guest the Welcome admin but if post the cookie value with or without encoded it does nto accept it as being good. In what format should it be posted ?

autumn pilot
tough fjord
waxen escarp
# tough fjord I dont understand what you mean

I modified the cookie so I see welcome admin_ , now i do not know what i need to submit as answer. I tried the encoded cookie value, without encoding . all submissions are returned error

tough fjord
#

When logged in as admin.properly it will give you a flag

waxen escarp
#

ok then i am on the wrong path 😦

honest creek
#

Hi guys, I am on Java Deobfuscation skills assessment final question. I've decoded the key and done a post request but I just get a 404 error

#

must be doing something wrong

tough fjord
#

@waxen escarp you are close

#

admin_ is not the same as admin

waxen escarp
#

also no luck prabbly thats the reasonit provides 2cubes 🙂

ashen hinge
#

STUCK - PUT/DELETE for some odd reason I'm not even able to DELETE the files let alone get the flag. I'm using the following string (after like literally 10 other options) <?='cat /flag.txt';?> can someone please help?

visual spade
ashen hinge
visual spade
#

can you do a curl <ip-address> ?

ashen hinge
visual spade
#

If you fx write curl -X OPTIONS ip:port that will return the options you have on the server. One of those should be POST

#

Also, if you have a look at curl --help, you should note the -T option.

ashen hinge
visual spade
#

Ok. So you made a file called flag8.php having only the string <?='cat /flag.txt';?> in it?

ashen hinge
#

But I'm going to try creating a file and do it via curl

#

is there a space btw cat and /

visual spade
#

The question says "Create a file named....", so do that. And yes to space between cat and /

tough fjord
#

@ashen hinge there is a difference between backticks and quotemarks

#

` vs '

ashen hinge
#

Thanks @visual spade and @tough fjord I winded up getting it. It was the back ticks that got me

brisk basin
#

hey everyone, I am trying to ssh in as another user, can I use the spawned target if the username isn't working? or should I add the user and password first?

#

im trying to find the kernal version for a different host btw

supple cosmos
#

Hi! help/guidance with the POST Method, I'm stuck exactly after we get the cookie from guest user

lapis stump
#

Hi Hackers! I am stuck in INTRODUCTION TO WEB APPLICATIONS/HTML INJECTION the payload works but in the answer it does not accept the HTML coding. Is there anyone who can help me?

ashen hinge
brisk basin
#

nevermind I figured it out lol

#

thank you!

supple cosmos
ashen hinge
hybrid dawn
#

Kinda stuck. Trying to find the password for SQLI with PHP. It's asking me to check the imported page due to $conn is not defined. Not sure how to go about this. I am able to see the php/html code after running the union select query.

hybrid dawn
#

Disregard. I figured it out.

icy snow
#

anyone got a second to help me with the nmap module, specifically the NSE section?

#

did you figure this out?

#

did you figure this out? I can help with service enumeration

hybrid dawn
#

Anyone have a moment to assist me with the SQLI fundamentals in the PHP webshells section? Not quite sure what to do.

opaque tusk
#

Help me to solve determine what user the proftpd server running under in content filtering session

opaque tusk
#

Any help bro

#

Linux fundamental

visual spade
opaque tusk
#

Thanks bro

topaz granite
#

I'm doing the last assesment on the Login brute forcing. The question states 'As you now have the name of an employee...' but the thing is I don't have the name of an employee and when I go to the adress for the target machine its down. Triee scanning with a browser, then nmap and getting it with cURL. 8t says its down and I've reset the target box 3 times Am I misunderstanding something?

rustic sage
#

@topaz granite you do have a name from your previous brute force attack on the web page!

topaz granite
primal isle
#

How do I ssh into htb?

tough fjord
#

ssh username@ip

#

the same way you ssh into anything

primal isle
#

Its only giving me the login credentials

autumn pilot
#

man ssh

tough fjord
#

click the link to launch the instance and get the ip

primal isle
#

Thank you I didnt realize I also had to spawn a target

frosty urchin
#

I am stuck at a question at linux fundamentals:
What is the path to the htb-student's mail?

rustic sage
#

Hey guys, I'm kinda new on the HTB Academy and got stuck on the first lesson in Linux (System Information). The question is "Find out the machine hardware name and submit it as the answer." And the only clue above it I have is - SSH to 10.129.133.65 with user "htb-student" and password "HTB_@cademy_stdnt!". What do I do with this?

autumn pilot
#

ssh into the target

rustic sage
#

Aha, and hypothetically - how would one do that? 😄

#

Actually, where? In the Workstation?

autumn pilot
#

spawn the target and spawn your pwnbox instance

hybrid dawn
#

Kinda stuck on writing files for SQLI fundamentals. It's asking me to find the flag using a webshell. I can create the webshell but not sure where to go from there. I know the shell works due to ?0=id pulls up information. Any suggestions would be helpful.

rustic sage
autumn pilot
#

in a couple of comments above you will find the necessary command

rustic sage
#

Found it, thank you so much dpgg!

tough fjord
#

@rustic sage make sure you do the intro to academy module. It will explain much of this

hybrid dawn
#

Found a debian-10.3.flag file but not sure if that is it. Can't open the file either.

frosty urchin
#

I am stuck at a question at linux fundamentals:
What is the path to the htb-student's mail?

hybrid dawn
#

Nvm figured it out.

opaque tusk
#

Help me for how to filter all unique path of the domain ??

#

Linux fundamentals

#

Content filtering session

#

😳

#

I didn’t see fully

lapis stump
#

Hi hackers! I have already finished the Introduction to web applications module but I am still stuck in HTML injection if someone can give me a hand I would appreciate it, the payload works perfectly but when I put it in response it gives me an error. Thanks in advance for the help that you can give.

dull garnet
#

For Windows Fundamentals, somebody has a hint to get the SID of bob.smith?

autumn pilot
#

Where I found the syntax/command

tranquil holly
#

Hey guys, I have gotten stuck on Windows Fundamentals > Windows Services and Processes. It says to "Identify one of the non-standard update services running on the host." I have tried every running service that was listed but nothing seems to work can anyone help?

autumn pilot
#

Try to separate them, e.g. standard you know and non-standard

tranquil holly
#

thats the thing I don't know which is which

autumn pilot
#

You can use google

tranquil holly
#

I tried googling there was nothing that helped me

autumn pilot
#

Take a break then, it helps

tranquil holly
#

I have this is my 3rd day attempting

#

Sorry not trying to shoot down your suggestions but I have tried a lot of various things except hopping on here for help

autumn pilot
#

The hint is self-explanatory

tranquil holly
#

Yes but looking at all the running services there was nothing related to what the hint said

autumn pilot
#

There is

tranquil holly
#

can I message you a question about the command im using

autumn pilot
#

You can use the Task Manager if the powershell is too complicated for you

tranquil holly
#

Thats not what I asked but oko

primal isle
#

Lol

tranquil holly
#

task manager doesnt help either btw

vale stream
#

Hello guys. Got stuck on Linux fundamentals here module File descriptors. How many files exist on the system with the .log extension?

#

I tried locate *.log | wc -l

#

Which gave the answer 24 files but its not the correct one I guess....

rustic sage
#

Try to use the find command. In the find command you need to specify the name you are searching for similar to what you have already stated and don't forget to narrow the scope of the search by filtering the errors. You are almost there KoelhoSec - just need to add some more commands to your search.

vale stream
rustic sage
rustic sage
#

I'm working on Web Applications and trying to access the website from the Parrot terminal however I keep getting URL not found. Is there a problem with it or am I doing something wrong

vale stream
#

What I am liking about this KTB is that they make you google and learn new stuff while you do it is really hands on go out there and figure out on your own. Im liking it so far

#

*HTB

rustic sage
#

I'm still not having luck with intercepting stuff with BURP suite. I have tried to enable the proxy but I keep getting error messages. Any help would be appreciated

charred basalt
#

@rustic sage watch some videos on burp they might help you

rustic sage
#

Hey Guys, I am so excited to start my journey in hackthebox! I have minimal experience with Linux and have been working in IT for about 3 years now. I was just wondering how much should I grind on HackThebox and other resources to really grasp the knowledge. Thank you!!

rustic sage
#

hello guys im new here

vague sonnet
#

Hello guys, i am stuck in the "linux fundamentals" module,i am unable to get 'What is the path to the htb-student's mail?' does anyone know please help me

#

if i use env will i get it?

candid iris
#

@vague sonnet hey 😉
i am new here but completed this last week. i dont know if this the best help but i want to try it.
you can list the tree from "/" and try to search (function for search in command line for example: find, locate, findstr) for "mail". if you do this you should find the path fast i will mean. hope its helpfull ! 😉

boreal plover
#

Hi everyone can someone please help my I'm stuck on the Linux fundamentals the question is "what kernel version is on the system?(format: 1.22.3) I've tried the uname command in different ways to get the kernel version but when I enter the version it says it's incorrect am I just not understanding the question or what cause I'm serious stuck Google hasn't been very helpful thus far so yeah?

autumn pilot
#

make sure that you have ssh'ed in to the target

#

and use the examples in the section

boreal plover
#

Thank you so much

foggy needle
#

hellow

lapis stump
lapis stump
rain forge
#

hello. I'm stuck and I think its cause I don't exactly know what I'm looking for. (to be clear im not looking for solutions, just some clarity) I have to find a non-standard directory in the c drive. with the info I got from google I assumed I was looking for key words like "lost&Found" "CD/Rom" or "Run" now i think i just dont fully understand what its asking me to find. can anyone offer me some clarity? (Windows Fundamentals )

urban sage
#

None standard as in not present by default in windows iirc.

rain forge
urban sage
#

No problem. Happy hacking!

rain forge
#

🙂

rustic sage
acoustic beacon
#

SOLVED! If anyone have problem typing the special characters such as " ` " , the special-characters.txt file has all of them.

waxen escarp
rustic sage
ashen hinge
rustic sage
#

I tryied also creating file with BURP, changing the file with <?php ....

#

backtick inplace of '?

ashen hinge
#

` not '

#

And....that's not how you do it burp

rustic sage
ashen hinge
ashen hinge
rustic sage
long blaze
#

hack for roblox??

tropic cove
#

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 Foxit Reader Update Service as my answer

#

but it refuses to accept it

harsh pine
#

did you add ".exe" at the end and write it all in one word?

tropic cove
#

well i ran get-service -Displayname "<display name>"

#

it didnt print the whole thing since it was too long

#

so there is a .exe at the end right?

#

i'll try that

#
it worked
#

yay

#

do u have any advice on how do fix this?

tropic cove
#

thank you

#

i'll try it

#

hmm it didnt work

harsh pine
tropic cove
#

ok i have looked it up and have not found anything good

#

i will try the link u just sent

rustic sage
#

@tropic cove The challenge says service executable

ocean hound
#

hey guys, for the network enumeration with nmap starter module, the service enumeration has a working example on a target with smtp enabled. My spawned target does not have the same services as the example. Is this normal?

spring inlet
#

@ocean hound yes, they're examples how of command outputs/results for you to adapt to the target environment to complete

silent bobcat
#

Hi I’m an idiot, I’ve never done any real training or coding or programming but I was bored so I decided I’d take this course, I’ve completed the post method and put and delete methods in the academy training but I can’t figure out GET method, I know it’s not hard I’m almost there but it was never explained what a flag.php is, I’ve looked everywhere and I don’t know how to send a request to that, and also am not sure where to find the parameter numbers 🤷🏻‍♂️ if anyone wants to send me a message that would be cool, I think it’s because originally the site was supposed to block me out, but I didn’t use Burp right away because I knew how to log In using admin:password, then after setting up Burp I tried to complete the last steps of getting the parameter and sending theGET but I’m lost

spring inlet
#

You then use burp to modify the html headers for GET and the get variables the course describes

silent bobcat
#

Thank you very much!! It’s been like 40 minutes and the module is mocking me 😂

#

I very much appreciate you

spring inlet
#

It's fine, I've cooked my noodle a few times since I started, looking for a more complex answer than the one actually required 🤦‍♂️

silent bobcat
#

Absolutely, especially in this program, I was applying cUrl methods and Get method is way before that so i don’t really know what I was doing 😂 everything and anything except what I was supposed to do I guess

odd python
#

Can someone give me more hint on the windows services & processes question?
The question: identify one of the non standard update services running on the host

steel mesa
#

Is there anyone can help me about Linux fundamentals?

rustic sage
#

omg this is my first day of discord.This is kinda complex

tough fjord
#

not particularly. Most of the server is closed to the public and only available for verified members

vague sonnet
#

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). can anyone please tell me how to do it

tough fjord
#

not without giving the answer

#

look at the http server module in npm. then look at how to launch a webserver on port 8080.

#

then give the command to do that

vague sonnet
tough fjord
#

google

#

npm http web server module

lapis stump
rustic sage
#

Could anyone help me on PUT and DELETE section, ||I’m on the part where I need to get the flag, I’ve made the flag.php and inserted the cat command, but when I look at it, I only get <?=cat /flag.txt;?> ||

autumn pilot
#

Try to formulate a question on the method rather seeking for the answer

rustic sage
#

I’m not sure I follow.

#

Nevermind, I just had re-read what you said

#

Thank you.

tough fjord
#

Backticks vs quote marks

vast egret
#

Hi, I´m on the Module "Web Requests" and trying to setting up a Burp Suite. But, I get the error message that the Burp Suite Community Edition server is closed: http://206.189.25.23:30147/ . Can anyone help me, either with an other server adresse or restart the server? Thank you!

rustic sage
#

I would really appreciate any pointers in PUT and DELETE section in Web Requests: I created the file flag.php and made sure that backticks and spaces are in proper places as suggested by others but I just get back the code in the php file.

atomic light
#

how do i list all lines in a text file that contain the same word using grep?

#

so that i can use | uniq -c after

rustic sage
#

@atomic light You can just put the pattern you are searching after grep. Make sure to put quotes around it if there are spaces, quotation marks or regex in it.

atomic light
#

i dont know how to make a pattern for grep since a password can be any pattern

#

i need to find the most common used line in a text file

#

some how grep needs to display only lines that are similar so cant be unique lines

pearl birch
#

IPS and IDS evasion medium lab, anybody who has completed this assignment. Do I need VPS in other to scan for service versions of installed application on the network.... In section "Firewall and IDS/IPS Evasion", the author explains a scenario whereby, individual subnets would not have access to the server's specific services. So we can manually specify the source IP address (-S) to test if we get better results with this one.

I have tried scanning the network with some of the methods listed in the section, my scan hasn't been fruitful so far, I'm wondering perhaps the IP assigned to the pawnbox would is not allowed to access specific services and I might need VPS. Anybody who have completed this assignment, I just need your advise if I am gonna need a VPS to scan the network in order to find additional info to complete the lab. Thank you in advance.

#

Lastly, someone please send me an invite to discord channel. Easy-modules, medium-modules, hard-modules, or perhaps there is a way to join without invites please share.

rare linden
#

hey im kinda of noob learning Linux on the Linux fundamentals but im having problems with the question of finding a units name... I searched on the internet and asked on the forum with no answers. Please help

rare linden
# pearl birch What is the question?

I cant find the units name i used the systemctl --type=service and a bunch of other commands but it always said wrong i even used the hint and it was --type=<type>

rare linden
pearl birch
#

Inbox me the question

rare linden
atomic light
#

i solved my problem

harsh pine
#

Hello, I'm in the put and delete section of the Web Requests module, I was wondering why sending an OPTIONS request through the repeater doesn't return the Allow header, but just an 200 OK with no extra info. And also, when I create the flag.php, it doesn't let me delete it nor gives me the answer as i request it with GET. Is the repeater not the appropiate way of doing it?

#

Just figured out I have to change the target to the target's IP and port, perhaps that will solve it...

round fern
#

Hello

#

for the linux Openssh

#

we i do the command

#

systemctl status ssh they ask me for a password

#

but i don't know what is the password

bold herald
#

I have a problem. How to start a server with npm on port 8080?

Estou com um problema. Como iniciar um servidor com npm na porta 8080?

atomic light
#

Snoopy I had to google how to run a basic http server and just put that command as the answer because I was not able to install anything since I was not in the sudoers file or something.

frank swallow
robust gulch
#

Greetings all! Newbie here going through the HTB academy. I am doing the Linux fundamentals, noticing on the package management portion that some things I didn't have permission to get or they were missing. Is this just do to the fact that they maybe outdated?

pearl birch
robust gulch
#

So was it more of a demonstration of what could be done rather than actually grabbing the packages they were talking about?

rustic sage
bitter turret
#

can someone help me out with the exercise included in thepost module in web requests? I've been trying everything for the past half hour and I can't find the solution

#

I've tried both SQL injection and the cookies thing which is in the text and referred to by the hint

harsh pine
rustic sage
harsh pine
#

@bitter turret @rustic sage best advice I can give for the POST method is: login as guest and gain your way up to admin by manipulating the cookie, there is actually no need to use the json stuff mentioned in the section, nor the SQL injection

rustic sage
#

so I have the guest cookie

#

how does that help me get the admin cookie?

#

aside from just brute-forcing values for it

harsh pine
#

the solution is pretty specific, I will say this: ||"try to look like you are the admin loggin in"||

#

If you still can't solve it after trying and thinking about what I just said, you can dm me

rustic sage
#

Sounds good 👍 , thanks for your time @harsh pine

harsh pine
#

Glad to help :)

jaunty vortex
#

how can 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?

rustic sage
#

the answer is in your lesson! You just need to adapt the command to your task

jaunty vortex
#

i try this but there are hundreds of results

rustic sage
#

Do you need to search the entire system for config files?

#

i forgot where does the challenge tell you to search!.

jaunty vortex
#

it's just written like that

bold herald
#

How do I do a get with num1 and num2 that the sum is 1337?
I'm a beginner.

Como que eu faço para fazer um get com num1 e num2 que a soma é 1337?
Sou iniciante

rustic sage
#

@bold herald What are the first two numbers that come to you mind which their sum is 1337?

rustic sage
#

Ok, you thought of a half value simmetric approach

#

Something else which involves nice round numbers?

bold herald
#

I'm using a translator. I do not know English very well

rustic sage
#

could any one help i am new to linux

rustic sage
#

i am stuck on the linux fundamentals

#

If u are stuck on a specific question then ask your doubts on the specific question here.. People who have done may be able to help ya. And if u are just struggling to work with linux as u are not familiar with it then there are a lot of resources on google which could help learn linux.

bold herald
rustic sage
#

thanks

rustic sage
#

thanks

mild dock
#

I put the server IP into /etc/hosts as admin.academy.htb but when i opened it, only white screen shown. Why so?

mint lava
#

Hi Guys! I am still stuck in HTML injection if someone can give me a hand I would appreciate it, the payload works perfectly but when I put it in response it gives me an error. Thanks in advance for the help that you can give.

next lava
#

Any one completed SQL fundamentals

pine sleet
#

Hello, can anyone help me with the Web Requests module ? the guest/guest credentials are good, but when I try to log as admin (admin/password) it doesn't work..?

rustic sage
#

Hi, I dont know anything about hacking.

#

@pine sleet Have you checked Burp?

pine sleet
#

Got it 😉

#

Thanks very much

#

But now my instance is dead and I can't reboot it

#

I'll do it thru VM I suppose

craggy kettle
rustic sage
#

You can extend your pwnbox

#

How do you check the console? sorry lol

#

@craggy kettle you must first check Burp and see the result of connecting with guest/guest

#

After you figure it out what's in there, you can connect with admin

pine sleet
craggy kettle
#

So I got ||guest_(code)|| so I tried replace it with ||admin_(code)|| but no luck

rustic sage
#

nvm i got it

pine sleet
mint lava
rustic sage
#

Anyone can help with PUT / DELETE section in Web Requests? I creates the file and made sure backticks and spaces in place but I get back the code when i request flag.php.

opaque relic
#

I'm stuck on Linux Fundamentals, specifically "Working with Web Services."

The issue is after I ssh into the target, it won't let me install the apache2 server as my account isn't in the sudoers list.

Can anyone shed some light on how to get past this?

rustic sage
#

You just need to use two installed packages

opaque relic
#

Oh really? I assumed to answer the question* you would need to do that first.

*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
#

The keywords here are npm and php

opaque relic
#

Ok thanks for the heads up. I'll change my approach.

daring wadi
#

hi everyone, why can't I spawn a target system?

rustic sage
#

I can't do it, either

opaque relic
#

I can't even start an Instance right now.

daring wadi
#

same here

#

is there an admin here which can help?

sage sparrow
#

Same here

opaque relic
brittle root
#

I am also unable to start an instance currently. Trying to knock out the Linux fundamentals which I have been thoroughly enjoying thus far.

rustic sage
frosty grail
#

Can someone guide on POST module of Web Request? I don't quite get the requirement / format of the answer.

rustic sage
#

@frosty grail as @rustic sage said, use guest as user and guest as password. Intercept the server's response, see what you get, analyze the response, then try to login as admin!

red silo
#

I keep getting this error "There are no available instances. " whenever I try to start up an instance. Any ideas?

mint drum
#

anyone?

rustic sage
#

Same

primal marlin
#

00#

mint drum
#

?

rustic sage
#

No need for a video on that Burp Intercept. You just need to try and sent the guest/guest credentials to the server and see it s response, then analyze it. You will figure it out .

#

Yeaaah you put Get method when stay on the admin panel and after introduce a code . Json?? I don't understand this part the hint say the cookies but i don, t now

mint drum
#

in the web requests module, im not getting an http response in burp suite, anyone got a clue?

#

ip: 206.189.25.23:30147

#

only getting the http request then nothing appears after forwarding

mint drum
#

never

#

mind

#

actually

#

yeah

#

still no reponses

#

and yes i have intercept responses enabled

safe jewel
#

I can't connect to script kiddie box

#

I downloaded the VPN from the release of the box. Connected to it. Spawned the box. But it says problem loading!

#

What am I doing wrong?

outer otter
#

WEB REQUESTS ----> PUT and DELETE Methods

I can successfully PUT the "flag.php" file in the website but when I go and GET it (which should return me the flag) it doesn't actually return me the flag. It either freezes completely (both on burp and on the browser) or just spits me back the raw content I inserted in the file itself. I feel like there's something wrong with the way i'm inserting the content but i'm literally just copy pastying it from the website, i can't see what's going wrong. Pls help before i throw the PC out of the window lol

pine sleet
rustic sage
#

Hi, some hints please?
Context -> File Inclusion last test "Skills Assessment - File Inclusion/Directory Traversal"
Spoiler
Found/retrieved
-- Source code of the following pages index.php, welcome.php and main.php + the source of the admin index, ||using the php filter thing||
-- no access the to ||/etc/passwd file|| 😦
Now searching for a way to list the files in the root to be able to find the flag.

So i'm stuck, tried --but possibly wrong-- the ||data://, php://input (with post data etc)||

outer otter
#

@pine sleet if you find out what's wrong feel free to hit me up xD

pine sleet
#

@outer otter You too 😂

rustic sage
#

anyone can help me? I'm stuck.....
If you wanted to inject a malicious link to "www.malicious.com", and have the clickable text read 'Click Me', how would you do that?
I tried multiple format and no one works.... sadglas

craggy kettle
#

@pine sleet @outer otter Had the same problem yesterday tried everything and the end I just moved to another module xd

outer otter
#

@craggy kettle i did the same now but i'm gonna have a seizure if i don't see the green bar full xD

craggy kettle
#

Ikr I just want my 2 cubes lol

pine sleet
#

@outer otter @craggy kettle same I need that green bar 😂

upbeat obsidian
#

In Linux fundamentals what is hardware name?

#

I tried Linux but it's not working 🤔

peak raptor
#

Try using uname options

craggy mountain
#

What is the path to htb-student's home directory?,,,i tryed "pwd"...."/"...."cd ~"....nothings works ....can u please , guys help me ?

#

@peak raptor .....and i used all options on "uname "

upbeat obsidian
craggy mountain
#

ok then ...so is an imposible question ....how can an super/mega nob as me can unswer?

vernal crown
#

Can someone help me on Web requests GET Method. I really dont know what parameters they mean and the 1000 and 337 i tryed aswell

pine sleet
mint drum
#

why can i not post images

#

also

#

are the servers down or what

#

i cant submit any answers

#

actually, i can submit any answer and it gives me "incorrect answer" but the one i think is correct, the submit button just holds

#

im referring to PUT and DELETE methods in the web requests module

#

answer which i think is correct: ||<?=cat /flag.txt;?>||

outer otter
craggy mountain
#

@outer otter ...bro ....can you (or anyoane )help me with the unswer on the question " What is the path to htb-student's home directory?".....I tryed so many things ..have hours and still cant do it ..starting to be exagetared annoying

#

I do think after few hours ...to be able to find somewere the unswer (I understant ...I am very stupid) ..but still

rustic sage
#

I dmed you @craggy mountain I will help you work through it.

#

There's a comment in the first index page which leads to the admin page. From there I'm stuck as well (for the moment).

Next things to try (for me)
-try to access ngnix log file and use log file poisoning if this works ==> works, ||but ensure to include enough ../, the next step was logfile poisoning|| via ||the agent||

  • if not try something else 😊
#

BTW, you can use the ulr with the filter in burp (intruder), owasp zap or fuzz to find out all other pages (eg: main etc)

Greetz & good hunt!

twilit wyvern
#

I'm having an issue with HTML Injection in the Intro to Web Apps module (Insert hyperlink that reads "Click Me" but leads to "www.malicious.com". I'm using a very basic href command, and it WORKS in the test box but it keeps telling my answer is incorrect. I'm inserting "<a href="http://www.malicious.com">Click Me</a>" as the username.

rustic sage
#

@twilit wyvern I found the solution.... after all , was very simple... <//a href="www.malicious.com">Click Me</a//> just remove //

next lava
#

SQL funadmental challenge anyone?

#

Cant upload a shell anywhere

twilit wyvern
rustic sage
round fern
#

Hello, for the working with web services in the Linux module when i try to do apt install apache -y they told me no and if i try with sudo they told me taht i don't have access and that it will be reported. And also i don't get it with npm, like i've tried website like stack overflow, etc.. but don't now how to start the simple hhtp server

rustic sage
gaunt linden
#

Stack-Based Buffer Overflow on Linux x86 I am trying to get the flag. I have an exploit that will give me a reverse shell in gdb but when I pipe the python code into the binary it gives me a seg error. Any help?

rustic sage
#

hi can someone help me i am stuck at the first question on Linux fundamentals

tropic cove
#

sure what do u need

#

do u want to do dm or can we do it here

rustic sage
#

i dont care

tropic cove
#

bruh

#

ok what is the question

tropic cove
#

try "uname -a"

#

hardware name is usually x86_64 or x64 or x32

#

look for that

#

if you dont understand some stuff do some research

#

if u are still suck then you can ask here

rustic sage
#

i did not get that

tame ermine
#

Haii
Linux fundamentals , system information question how to find tha answer
How to do it with ssh

rustic sage
#

are you on the first question on Linux fundamentals

next lava
#

whats the question?

rustic sage
#

What is the path to htb-student's home directory

next lava
#

I assume /home/student

rustic sage
#

how do you find the path

next lava
#

but you can check by doing cd .

#

cd /

#

or pwd

#

pwd (print working directory)

#

cd / brings you to the core of the computer

#

or if that does not work

#

find / -type d -name "student" 2>/dev/null

#

type for directory name for name 2>/dev/null for permission

tame ermine
#

Haii
Linux fundamentals , system information question how to find tha answer
How to do it with ssh

tropic cove
#

did my answer help?

next lava
#

whats the question? @tame ermine

rustic sage
#

i am stuck on number two

tropic cove
#

what the questino

next lava
#

@tropic cove which modules did you finish?

rustic sage
#

it's What is the path to htb-student's home directory

tropic cove
#

i am halfway through the linux undamentals

next lava
#

oh oh

#

okok

tropic cove
next lava
#

gobi are you born in 2003

#

?

rustic sage
#

how do you get it

next lava
#

pwd

tropic cove
#

ok im going to bed now

tame ermine
next lava
#

uname -m

#

uname -m

tame ermine
next lava
#

awhhh Im 2003

tame ermine
next lava
#

nice!

#

did uname -m work>

tame ermine
next lava
#

work?

#

uname -a | shows all machine info

#

uname -m | should show machine hardware

rustic sage
#

that dose not work

next lava
#

copy and paste the question

tame ermine
next lava
#

plz

rustic sage
#

What is the path to htb-student's home directory?

next lava
#

/home/htb-student/

tame ermine
#

Find out the mission hardware name and submit it as the answer?

rustic sage
#

i tried pwd it said it home/user

#

instead

next lava
#

oh cuz u in that dir

#

but it wants a different one

#

you can see by doing cd /home

#

then doing ls

#

@tame ermine does hostname give the right answer

#

maybe the kernel?

next lava
#

hmm I dont wanna waste the cubes lol

rustic sage
#

hi try x86_64

tame rampart
#

Can anyone help me with the POST request module? I feel like I'm missing something. I've gotten the session cookie and modified it to read as Admin, but I still can't find the answer to the question.

rustic sage
#

you put uname -a

next lava
#

yea sure @tame rampart

#

web requests?

tame rampart
next lava
#

oh thats the worst one

#

I completed it

#

let me review for a sec

tame rampart
next lava
#

I know

rustic sage
#

i still cant find what find the answer for What is the path to htb-student's home directory?

tame rampart
# next lava I know

But, I feel like I'm working my way around that, until I hit the question at the end. What am I looking to do once I get that cookie?

next lava
#

@tame rampart I know the answer

#

the cookie is just b64 encoded username

#

decode the base64 cookie and see and make sure it says guest

tame rampart
next lava
#

and that didnt give you the flag?

rustic sage
#

can you help me

next lava
#

#JD

#

they will explain it better

#

as for everyone else I gotta do my thing sorry 😦

tame rampart
thick dust
#

doing the linux module but been stuck on this anyone help please?
Which option needs to be set to lock a user account using the "usermod" command? (long version of the option)

#

i tried sudo usermod --L and sudo usermod -L and sudo usermod --L** but nothing is working

rustic sage
thick dust
#

the thing is i dont know what the long version i cant find anything online

rustic sage
#

There is.. tweak your googling terms perhaps.

thick dust
#

again im still a newb so a bit of help maybe?

rustic sage
#

tbh i have not done this module.. so i cant help.. just bcoz u asked the question and showed what u have done i thought u might be missing the long version..

#

but try reading the manual of usermod

#

that might contain the full version of the option

thick dust
#

is it in the linux manual?

rustic sage
#

man usermod

thick dust
#

alright thank you!

rain pasture
#

Download the file flag.txt from the web root using wget from the Pwnbox. Submit the contents of the file as your answer. I'm stuck on this one. So, where is the web root in Windows 10?

civic condor
#

Hello guys. I have been stuck for a while at the web requests GET excercise and I don't understand what I am supposed to do, what does flag mean?. I have entered every possible answer and all are incorrect. Also burp makes me press forward a thousand times for some firefox requests. Can somebody help?

#

It is my first time doing any of this. I am a complete beginer

pine sleet
frigid canyon
#

Dear HackTheBox academy

I need to say, your instances aren´t working properly.
I need to use burp, but wen i switch and going to hack site, site won´t load.
I was happy when i found this academy, but it is now useless.
You should FIX this

Thanks
Adduck

autumn pilot
#

You understand that you have to adjust the proxy via the foxyproxy addon in the browser?

#

The goal is to proxy the web request to burp for you to examine them

rustic sage
#

big oof

thick dust
#

quick question

#

this is the question

#

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).

#

and my answer was npx http-server localhost -p 8080

#

yet its still wrong

drifting knoll
thick dust
#

isnt it the same as NPM

#

?

#

when i tried tho in the vm it worked

drifting knoll
thick dust
#

well i was learning from the module as thats what it required

#

haha

#

i normally use apache2 or python3

drifting knoll
#

the module didn't tell you to do it like that 😄

thick dust
#

Find a way to start a simple HTTP server using "npm".

#

no?

#

im still a noob at this dont get angry at me haha still learning

drifting knoll
thick dust
#

ah okay from a quick search of google npm is is a tool that use to install packages. Npx is a tool that use to execute packages.

#

i found the solution its the same but without the npx at the start

amber crystal
#

Hello everyone! I have some troubles on the POST Method exercise. It seems that I cannot access to the admin panel through the username: admin password: password. The login failed each time... Do you know if it is normal?

thick dust
#

whats the command your writting ? @amber crystal

amber crystal
thick dust
#

oh then i cant help you much haha

amber crystal
thick dust
#

i can see cry0l1t3 and mrb3n

drifting knoll
thick dust
#

awesome didnt want to be doing something wrong haha

civic condor
#

Hello guys. I have been stuck for a while at the web requests GET excercise and I don't understand what I am supposed to do, what does flag mean? I have entered every possible answer and all are incorrect. Also burp makes me press forward a thousand times for some firefox requests. Can somebody help?
It is my first time doing any of this. I am a complete beginer

pine sleet
#

The flag is like a key, a string of random characters, you need to "capture" that flag to finish the exercice

#

it will look like gibberish

#

Also burp makes me press forward a thousand times for some firefox requests. Can somebody help?
Go on the page you're looking to intercept the packets for, then turn on the intercept and refresh the page, you should mostly get the target page requests

civic condor
#

Oh ok. Thank you very much for your help and time

pine sleet
#

Can someone point me in the right direction about the Linux Fundamentals - Filter content modules ?

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 are the unique paths exactly ? Every single link on the file ? I've counted all links but I can't seem to get the right answer

rustic sage
#

ALso, ensure to sort unique 🙂

civic condor
#

For some time now I have been trying to capture the flag at the web requests GET excercise and it just tells me incorrect answer

#

It also wants me to send two parameters where their sum is 1337

sand harness
#

For the GET exercise how do you get flag.php? I tried changing the web address to say flag.php instead of search.php but it didn't work.

civic condor
#

flag is a string with gibberish characters. You can highlight it and hit ctrl+shift+B and it will translate it

#

I just pressed forward in burp, then I hit ctrl+r, I went to the repeater and it showed me

sand harness
#

oh, thanks i have been stuck on this for ages

civic condor
#

Me too. But now I can't find the answer because I don't know what to write

#

(sorry If my english is bad, I am greek)

#

???

civic condor
#

So it is partly correct?

pine sleet
#

I didn't do it that way but this command should return the right answer, given the right parameters

civic condor
#

Oh ok I understand. Thank you very much

sand harness
civic condor
#

Dude I'm just going to give up. I can't understand it

sand harness
#

i didn't get a result but did what the task said so I think it's ok

civic condor
#

what did you do?

sand harness
#

i managed to log into the target website and i put in the parameters it asked me to - i didn't get a result because none of the ports can add up to 1337 but i put in the parameters and got in so I am happy

#

i know it isn't helpful to actually get the cubes from the question but oh well

civic condor
#

Oh so you haven't solved it. You just logged in/

sand harness
#

yes

civic condor
#

Good job

sand harness
civic condor
#

Ok I understand

visual spade
sand harness
#

oh, so I should just put num1=1 and num2=1336 right?

visual spade
#

Basically yes

mint drum
#

yo im having trouble in the java deobfuscation module

#

in the source code part, the exercise is a bit odd

#

gives me a page and tells me to check the source code, sure, i find a secret.js file

#

which has

#

sure, i try to console.log it, gives me undefined

#

the flag is supposedly somewhere in there, but i cant find it

autumn pilot
#

avoid posting spoilers please

mint drum
autumn pilot
#

by explaining your logic

#

I can easily give you the flag/answer, but that is not the point behind Academy. The point is to learn. Sometimes you may struggle but that is the path to become successful

jagged hamlet
#

What is the path to the htb-student's mail?

tropic cove
#

/var/mail

#

i think

#

use the locate mail command

jagged hamlet
#

cheers

tropic cove
#

did you get it?

jagged hamlet
#

in a min

craggy mountain
#

invalid answer

jagged hamlet
#

nah

tropic cove
craggy mountain
#

/var/mail is a invalid answer..to me at least

#

for the q:What is the path to the htb-student's mail?

tropic cove
#

use the command "locate mail"

craggy mountain
#

i use it

tropic cove
#

gimme a sec

craggy mountain
#

it is like u said ....but from reason ...when i put the answer ..it sayz invalid

tropic cove
#

u have to add htb-student

#

at the end

#

just like for the home directory question

craggy mountain
#

i am on : htb-student@nixfund:

drifting knoll
#

@craggy mountain i suggest to use the shown commands and try to figure out which one shows you the right answer

tropic cove
#

go through the cheat sheet

drifting knoll
#

@tropic cove pls, dont publish answers here

tropic cove
#

ok

craggy mountain
#

@drifting knoll ...i keep doing that man ....

tropic cove
#

bro i literally gave u very hint

craggy mountain
#

i do thing ..i am close ....but ...i will see

tropic cove
craggy mountain
#

@tropic cove i did exacly as u sayd...put those answer there and still it say invalid

rustic sage
#

i wanna learn to hack

tropic cove
#

???

#

yeah htb deosnt teach how to hack

#

wrong place buddy

rustic sage
#

😭

tropic cove
#

hmm i may have said that wrong. Why do u want to learn hacking

#

if u want to learn it do good then this is the place for u

pine sleet
#

Yooo anyone can DM me about the PUT and DELETE methods, I can't seem to solve this exercice but I don't understand what I'm doing wrong.
flag.php just returns the raw code for some reason, I would need clarifications

buoyant ruin
rustic sage
#

You can dm me

rustic sage
#

Sure

#

I cant dm you, you’ll either have to add me or change your privicy settings.

honest arch
#

can someone teach me how to use hack the box

mint lava
#

@pine sleet @buoyant ruin How Can I help?>

swift grove
honest arch
#

i have the program but i dont know how to use it

pine sleet
pine sleet
#

many architectures, especially for huge web applications, are designed to distribute their load over many back end servers

tropic cove
#

lol

rain pasture
twilit sphinx
#

Good night guys

#

Someone already completed the linux fundamentals ?

tropic cove
#

yup

#

me

#

it was rough

twilit sphinx
#

I imagine hahaha

#

I stopped at a part

tropic cove
#

if those are so hard then the easy module will be harder

twilit sphinx
#

You help me ?

tropic cove
#

sure

#

join

lapis stump
#

Hi Hackers, I'm stuck on ATTACKING WEB APPLICATIONS WITH FFUF / Page Fuzzing I can't find the flag, I've already tried with some options that I picked up in ffuf -h if someone can guide me I would appreciate it.

dusty zealot
#

im doing the web app fundamental module and i'm stuck on 'To which of the above categories does public vulnerability 'CVE-2014-6271' belongs to?' in the common web vulnerabilaties lesson. Ive tried literally everything and cant get the answer. any advice

lapis stump
lapis stump
dusty zealot
dusty zealot
lapis stump
rustic sage
wintry cipher
#

@hybrid dawn did you get any help?

#

@rustic sage hey google and read about the CVE-2014-6271 which I believe is shellshock. The way its executed is the answer. Don't think too hard.

rustic sage
#

@wintry cipher thanks but is this tip about PUT and DELETE section in Web Requests module? I know this vulnerability but I don't see how it relates to the solution in that section in particular.

wintry cipher
#

@rustic sage No. Its something to do with 'injection' attack. After reading about the cve is it html injection, sql injection, command injection ...... Try to figure it out.

bitter turret
#

what's wrong about curl -X PUT "http://46.101.10.169:31416/" -F "file=flag.php"?

#

it returns a 409

#

^webhooks PUT module

#

response with -v arg:

*   Trying 46.101.10.169:31227...
* TCP_NODELAY set
* Connected to 46.101.10.169 (46.101.10.169) port 31227 (#0)
> PUT / HTTP/1.1
> Host: 46.101.10.169:31227
> User-Agent: curl/7.68.0
> Accept: */*
> Content-Length: 147
> Content-Type: multipart/form-data; boundary=------------------------b84de6ddc78ca2eb
> 
* We are completely uploaded and fine
* Mark bundle as not supporting multiuse
< HTTP/1.1 409 Conflict
< Server: nginx/1.10.3 (Ubuntu)
< Date: Wed, 10 Feb 2021 11:14:03 GMT
< Content-Type: text/html
< Content-Length: 176
< Connection: keep-alive
< 
<html>
<head><title>409 Conflict</title></head>
<center><h1>409 Conflict</h1></center>
</html>
* Connection #0 to host 46.101.10.169 left intact
#

nevermind, I forgot to use -L and specificy flag.php in the URL

#

but now when I get request the file it shows junk about files and it doesn't show the flag:

Content-Disposition: form-data; name="file"

flag.php
--------------------------30464bf3afe7e325--
visual spade
past scaffold
#

hello everyone, in introduction to web apps module in HTML injection subsection how can i get the flag? i already made the injected link but i cannot figure out what to write on the flag.

rich pulsar
#

Hello everyone! I'm currently working on the web-requests post method section in the htb academy. I'm having some difficulty finding the answer to : Login with the credentials guest / guest and try to get to admin. I've been trying many different variations with cookies and cant seem to figure this out. Any suggestions?

warm beacon
somber verge
#

a

warm beacon
#

anyone who can tell me what exactly this means/does?
<?=`cat /flag.txt`;?>
<?=cat /flag.txt;?>

tropic cove
#

yeah that module is broken

#

when u request the flag you only get what you PUT

#

i ended up getting the answer on reddit

#

if anyone has actually completed it then they can call me out for being wrong. If not, then im right and that question needs to be fixed

tired ravine
#

Hi all, Im having an issue with what looks like my browser timing out when doing the GET Method within my workstation. When this happens, my target IP I've entered into the browser changes in BURP to http://dectectportal.firefox.com and I'm then left with a constant refresh in the browser along with responses in burp from dectectportal.firefox.

would anybody know what it is I've done wrong?

#

I just got the flag for the above method, but without the use of burp. I'm unsure why BURP was, what looked like, timing out. perhaps I did somthing wrong, unsure!

tropic cove
#

u dont always have to use burp

#

u can use the bash

#

or the brower itself

#

sometimes

tired ravine
#

ok, thats good to know, thank you. Im still confused why the target IP kept timing out when using burp as proxy. are the workstations sometimes unresponsive?

tropic cove
#

try resetting target

#

to get a new one

tired ravine
#

👍

tropic cove
#

it worked?

tired ravine
# tropic cove it worked?

It hasn't. I renewed the target multiple times but the same issue kept happening and instead of getting a response from the target IP, it was detectportal.firefox.com responding. Really odd. Regardless, I got the flag. Will see if it continues on other methods. Thanks mate

tropic cove
#

no problem

outer otter
#

Hey there boys, i don't know if i'm missing the obvious here but I can't possibly find out how to answer this question:

LINUX FUNDAMENTALS ---> FILTER CONTENTS ---> "Determine what user the ProFTPd server is running under. Submit the username as the answer."

#

i feel like i don't possess the knowledge to do this

#

even googling i can't find commands that would get this done

tropic cove
#

did u get the command right?

#

if so scroll through and you will find proftd on the far left. then follow the line to the right and the user name is there.

#

it is very obvious trust me

outer otter
# tropic cove did u get the command right?

no i most definetely didn't, that's why i say that i feel like i don't possess the knowledge to do this. Everything else so far came pretty naturally and quickly but here i feel like i'm missing something

rich pulsar
#

I'm not totally sure about the detect.portal on Firefox in burp but I have noticed one thing. If you have extensions on your browser, burp detects some of those extensions. Sometimes turning them off helps.

tropic cove
#

are the fundamentals the easiest modules?

#

also how do i change my name in the server

rich pulsar
#

I would say they are and yet still challenging.

rich pulsar
#

Not sure what you're asking exactly. Like how to change username on your host machine?

cerulean ridge
#

your name on the discord is the same as your name on the main hackthebox platform

cerulean ridge
#

reverify your account

narrow falcon
#

Do files get saved in the interactive instance? If not, why does the Fundamentals of Linux Module ask you to install "evil-winrm" on the interactive instance? For the Package Management Section, are we supposed to try installing packages on our own local machine?

rustic sage
#

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 need help with this for the Windows Fundamentals

rustic sage
#

Nvm...i got it

toxic linden
#

for get method am i supposed to be sending get on bursuite or cmd line

tropic cove
#

either is fine

late socket
#

Guys, I'm learning Linux Fundamental module and I'm in section user management. My question is "Which option needs to be set to create a home directory for a new user using "useradd" command?" The answer I have entered is "useradd -d". Is this the correct answer??

proud rose
#

im trying to use ffuf to find a flag in the HTB academy but my ffuf isnt giving me a output on the matches , but it does show its doing some work ,any idea what im doing wrong?

civic condor
#

Hello guys. I have been trying the POST excercise at the web requests and I am at the point where I have logged in the admin dashboard with the guest/guest credentials. It says welcome, guest..... I enter that name as the answer but it is incorrect

#

What format does the answer have?

#

Every time I log in from the admin/dashboard with the same credentials a different guest appears

#

(the name of the cookie is 'auth', not 'PHPSESSID')

fathom nacelle
#

Hi all, I am currently pretty bad stuck at following exercise: Web Requests - GET METHOD - Send a GET request to flag.php with two parameters num1 and num2 such that their sum is 1337. I dont really understand what it wants to know from me as I already tried following things. Burping it via Browser on: Send a GET request to flag.php with two parameters num1 and num2 such that their sum is 1337 and also with cUrl which tells me 401. Unauthorized. Can someone please point me in the right direction of what exactly needs to be done. Thanks in advance for any help. P.S. For the sake of the overview I would really prefer a DM. Thank you!

civic condor
#

You have to search the link with the parameters to your browser

#

And then it will show you some letters. Copy and paste them into the answer box

rustic sage
#

Just in case people are still stuck in PUT and DELETE section in Web Requests. Seems like it is fixed. Try it again.

fathom nacelle
#

Did that and the authentification window pops up

#

You mean in the source code window?

civic condor
#

I did it in google chrome

#

Do you want me to show you what you will have to google or not?

fathom nacelle
#

Yeah please.

harsh pine
dense bloom
#

I'm doing the "Linux fundamentals" and I'm stuck with getting the unique paths of the domain "https://inlanefreight.com" but I cannot get the right answer. I've gotten the answer from googling it but I have no idea what is wrong with my own method

round fern
#

Hello, i'm still stuck at the linux fundamental at working with web services. I tried this ||require("http").createServer().listen(8080)|| didn't work, also this ||"start": "http-server -a localhost -p 8000"|| + other stuff and all of them didn't work. Any tips of where should i look ?

proven grove
#

I need some help can anyone help me with a linux fundamental module specifically the "Working with Web Services

spiral egret
#

Quick Question about File Transfers module and the Linux File Transfer Methods segment question 2. I managed to upload the file. However, when I then run the hasher command it gives an invalid flag even though the contents of the file is the same as the one downloaded? anyone else with the same problem or is it just me??(´Д⊂ヽ

visual spade
tired ravine
#

I'm trying to fill the answer to Cross-Site Scripting (XSS) in the introduction to web apps but the submit button is unresponsive. Not giving me wrong or correct answer notification. Reset browser etc. Any ideas?

tired ravine
#

ignore me im a twat.

coarse sun
#

hi i am stuck at the javascript deobfucation

drifting knoll
#

@coarse sun dont share any kind of flags

coarse sun
#

sorry

#

i thought somebody could understand better if they see the point im stuck

drifting knoll
#

then you should explain what you want to achieve and where you got stuck

#

(without sharing contents of your target)

coarse sun
#

i need to get the flag of the deobfuscation sections however i keep getting the same base64 answer despite using different serials

drifting knoll
#

which section?

coarse sun
#

javascript deobfuscation

drifting knoll
#

thats the module

coarse sun
#

sorry

#

the sections is deobfuscation

#

obfuscation - deobfuscation

drifting knoll
#

i recommend you to read it again

#

everything you need is explained
you have to figure out how to use/adapt it

coarse sun
#

did a little research and found this guy that had the same problems as me

harsh pine
coarse sun
harsh pine
#

it would surprise me if typing "POST" like that would work, I think you have to do it like: "-X POST", with "-X" defining the method, and also the last part (HTTP/1.1) is unnecessary

#

Hope that helps, @coarse sun

coarse sun
#

got the same result 😦

harsh pine
#

what does it give you as output?

coarse sun
#

idk if i can post it here can i send you as a pm?

harsh pine
#

yeah

#

dm

late socket
#

Guys, I'm learning Linux Fundamental module and I'm in section user management. My question is "Which option needs to be set to create a home directory for a new user using "useradd" command?" The answer I have entered is "useradd -d". But it says wrong answer. I have tried all possible options to answer the question. Need some guidance please

visual spade
late socket
#

Is the user has been created or I need to create a new user and the home directory??

visual spade
#

It says: "Which option needs to be set to create a home directory for a new user using "useradd" command?" It says to create a new home directory for a new user. It says FOR a new user. Not AND a new user. And the question only asks for the option.

rustic sage
#

linux kernel versiuon

#

Kernel -- info or -h, all you search is on this man

#

@rustic sage its a question?? ☝️ ☝️

lucid veldt
#

Are these modules helpful for pwning machines???

torpid imp
#

@lucid veldt what??

lucid veldt
torpid imp
#

yes

#

I even learned more then from online courses because they give you tasks where have to think alot and read manual pages and documentations

#

*online video courses

bold forum
#

v

torpid imp
#

@lucid veldt thats my opinion, but you need to test how you can learn best. I started with video training with my own labs but I think books and labs are better for me

#

can someone pls ban this guy lol

lucid veldt
#

LOL at that spam block above

prime schooner
#

i'm currently doing the web requests POST module and I've managed to login with the admin credentials but still don't know what the answer is

#

i dont know what the flag is

#

actually i may be mistaken

#

when you successfully login with admin/password does it still say welcome, guest...?

#

whenever i change the value of the cookie to the hex string after guest the page just reloads but the guest part is replaced with gibberish

warm beacon
#

I like how everyone ignores the huge spam block above and just talks about cookies and shit

prime schooner
#

lol

#

yes, but could you please help me?

warm beacon
#

yeah

#

let me read what u need

#

lets go in DM to avoid spoilers

tired ravine
#

how many of you here understand javascript or php properly? Im struggling to know if i should stop and go learn basic javascript and php to make things easier on myself and understand the vulnerabilities and attack methods.

hushed anvil
#

can u code in at least one programming language??

tired ravine
#

@hushed anvil no. ive learnt enough over time to be able to read hmtl and css and understand what it's doing but I dont know the basics of any language.

hushed anvil
#

you should learn at least one...

tired ravine
#

ok thanks

hushed anvil
#

i would suggest c or c++ but i am not a good coder , neither a good pentester

#

better ask anybody

tired ravine
#

Thanks for the advice. The red name and hacker tag says otherwise though catthink

tacit frost
#

how do i get a network interface name?

#

could it be eth0

#

??

hushed anvil
#

on which os??

wary knot
#

Hello

inner ember
#

123

chilly pendant
#

Im on the last question for "Stack-Based Buffer Overflows on Linux x86" and I've managed to get up a reverse_tcp_shell using a python string in GDB, outside of GDB however I just get "Segmentation fault (core dumped)". Im assuming im either passing the string back wrong or I need to adjust the EIP address due to stack differences inside GDB vs outside. Quick pointer would be appreciated 😄 P.s. fairly newb to buffer overflows so happy I got this far without help

Update: worked it out

rustic sage
#

Hi all. What aboutIntroduction to web application? I'm stuck to HTML injection. I'm sure about the answer cause it works, but it still gives me error. Maybe I have to enclose answer in quotes or somethin'?

chilly pendant
lofty wave
#

Same issue with the Intro To Web App. I've got the whole <a> tag with the href=xxxx in there. No bueno. It's not happy with that answer.

#

Works fine on the target. I get Your name is Click Me. And Click Me is link text that goes to the URL.

#

Also my <a> tag is closed with the proper </a> at the end.. 🙂

#

NVM, figured it out. Had to remove something to satisfy the academy gods lol. Still boooo though because the answer HTB wants messes up the link the way it should work.. 🙂

#

I'm all for these types of micro sized courses. But man, at least let the people have some variations in the answers. More than one way to skin a cat lol

rustic sage
#

Here I am again, this work during test:

#

Any suggestion?

white smelt
#

Hey Guys! i'm stuck in the linux fundamentals part on package management. I'm trying to install evil-winrm but when I try to download it (one I have ssh into the htb-student, not even sure I was supposed to do this). upon using git clone i'm getting an error "fatal: unable to access 'http........." could not resolve host github.com.
Also, I tried to create a new folder like in their example using mkdir /opt/evil-winrm but getting an error permission denied

Any help would be greatly appreciated

visual spade
white smelt
mint lava
#

Hello everyone, Can someone help me, I am stuck in nmap module
Use NSE and its scripts to find the flag that one of the services contain and submit it as the answer. Never mind got it.

mint lava
lofty wave
scarlet imp
#

Hi. I'm a bit stuck at "What non-standerd application is running under the current user?" in page 8 of the module on windows fundamentals. I'm using tasklist on the cmd to list all the running processes, filtering by username and status. I tried some of them as flag but that didn't work. Am I missing something petty or is it to be done in a totally different way??

#

Oh, ok. Looks like I just needed to remove the .exe part

#

Solved👍

finite hill
#

Hi there, I've been working on post method exercise several hours. I got the cookie. I decode it and changed the username id. I injected my admin cookie with js injection in auth parameter but in my brower console appears something like SameSite is none .

cinder path
#

could anyone help me with someting

#

please

harsh pine
finite hill
#

@harsh pine I mean. When I log with guest I can see user and password parameter but not cookie or auth parameter

harsh pine
#

are you using burpsuite, curl?

finite hill
finite hill
harsh pine
finite hill
#

I though some way to take the cookie's admin from the cache

#

I've been dreaming with cookies and base64 for few days

harsh pine
#

hahahah, well, I suffered for 4 days with the PUT and DELETE methods

#

if you enter the correct cookie it will return you the flag

finite hill
#

Nice to read that for the next one.

#

I'm totally stuck.

finite hill
harsh pine
#

on sending the correct cookie, basically

finite hill
#

yap. The thing is how I get the correct cookie

harsh pine
#

Have you already |learned to || encode and decode the cookie, so that you can make it say whatever you want ||?

finite hill
#

||Sure hahahaha even for injection shoud be encoded||

timid grove
timid grove
glossy yacht
#

yea its way better @white smelt

glossy yacht
rustic sage
white smelt
timid grove
timid grove
#

because when i read " on your intereactive instances ", i take it as my workstation/vm/pc

timid grove
white smelt
#

Got it. So no way really around this that you know of expect using my own VM?

timid grove
#

i prefer doing it on my personal VM or PC or Laptop

#

but for ur sake buddy i test it

#

and yes we can install it in the interactive instances

#

so yeah just head to the github, read abit about installations and notes and u got it

white smelt
#

Same with the install every command I put in dosnt seem to work

timid grove
#

i didnt do that. i just clone the repo, install dependencies and done

#

u include sudo in ur command ?

white smelt
#

I tried that as well but It says Im not in the sudoers or somthing like that. Then have message that t"this will be reported״

timid grove
#

hmm

#

try run id in ur command

white smelt
#

So I used git clone. How do you install it after?

timid grove
#

or sudo -l

#

u should see u are under the sudo group

timid grove
#

if u cant then idk how to help u already 😂

timid grove
#

read the github page, scroll down till u see the installation & quick start

white smelt
timid grove
#

then yeah u shd be able to run all commands

white smelt
#

hmm can't seem to upload images here

#

─[eu-academy-1]─[10.10.14.165]─[user64591@htb-ozazrtu25q]─[~]
└──╼ [★]$ sudo -i
─[eu-academy-1]─[10.10.14.165]─[root@htb-ozazrtu25q]─[~]
└──╼ [★]#

timid grove
#

not i

#

l

#

l for laptop

white smelt
#

installed it using gem install. But the exercise explains to try and use apt or dpkg

timid grove
#

The examples there are to teach u , the concept is similar

timid grove
#

and if u were to scroll up u will see they mentioned this

white smelt
timid grove
#

good that u are curious . u will learn more as u go so its fine

white smelt
timid grove
#

no worries, happy learning

tribal walrus
#

HI guys can u please help me with the htb academy web request I'm stuck with the get request and not being to understand the question

tribal walrus
rustic sage
chilly pendant
tribal walrus
#

I will try again with the curl and report to u thank you

tribal walrus
rustic sage
#

yup.

#

but i prefer curl for beginners atleast.

chilly pendant
#

so in burp you can do it via repeater or proxy intercept depending what your doing, but its easier to send the data via curl for that exercise as its cleaner and you should get used to using curl.

tribal walrus
#

With burpsuite I had send a get request to a the target machine it redirects me to a login page and with the correct login credentials it just redirects me to a search.php location when I try to redirect my self to the flag.php by customising the Get /search.php HTTP it says parameters not found .

#

I will try with the curl method now

chilly pendant
#

For the moment unless you need to inline edit a cookie, id, or session token use curl, for those things I mentioned use burp. You'll find it easier to create get, post, del etc. requests via curl initially. burps nice but why spend 10 minutes in burp when 30 seconds with curl will get the job done 🙂 curl will also let you practice with scripts and chaining commands.

tribal walrus
timid grove
#

for those who doing the web request, try to stick with burp suite. practise what u learn in the module.

try not to stray too far too curl because it can only make u more confused if u dont know what u doing

#

the reason is if u are new to the module or new to this, u can always refer back to the modules notes. there's plenty of guidelines in the module and also here.

for the curl its also possible, but only if u know what u doing .

my 5 cents bois

clever crow
#

Hi I am doing the „Request and Response“ tasks. When I am looking for the Apache-Version it says at „server“ it is nginx.
Please help me

tribal walrus
#

You can get the server when u get response from the server it should be stated as Server: Apache/2.4.46

hazy osprey
#

Hey guys, I'm currently attempting the Web Requests, POST method section. I can login with guest/guest credentials, but when I try to change the credentials, it doesn't seem to work. I've tried using both json and x-www-form-urlencoded, but nothing seems to work. Could anyone guide me as to what I'm doing wrong? Thanks!

tribal walrus
hazy osprey
#

I tried manipulating the cookies as well, but I'm not too sure if what I'm doing on burp is correct or not

tribal walrus
#

I did copy the whole flag name and when that didn't work I even copied the text "the flag is " but it didn't work 😅 😂

timid grove
#

so till now u havent cleared that section yet ?

tribal walrus
#

No stuck in the post method

timid grove
#

PM me

clever crow
tribal walrus
upper prawn
#

how can i do that

odd python
#

How far have u gone

mint lava
#

@pearl birch I got already thanks anyway

pearl birch
#

You're welcome.

tribal walrus
torpid imp
#

Hey guys, I need a hint for the hard lab in the NMAP (Network enumeration)-module.

I found out tcp/21 is unfiltered and tcp/25 is filtered. I tried like every evasion technique from the tutorial but it didnt worked for me. Any hints ?

scarlet imp
#

qualcuno da roma?

jovial pivot
#

I can screen cap the issue if it helps

lofty wave
jovial pivot
#

can anyone help with the path to htb student email? /var/spool/mail is not working, and I am not sure if its case sensitive or what I am doing wrong. I figured out the home directory, yet I cannot figure out the email directory

lofty wave
#

You're close with the /var/spool/mail. It's slightly off, just look closer.. 🙂

#

and remember what you're name is.. 🙂

#

*your

jovial pivot
#

so far i tried running a whoami and put the username in as /var/spool/mail/usernameputhere, I tried a different variant with mail/htb-student, no luck, still tinkering

lofty wave
#

swap some items in the directory structure.. 🙂

#

and look at the directory structure on the target system

#

You are close!!!

rustic sage
#

anyone can explain me vhosts fuzzing? I add server_ip and domain inside etc/hosts, then i fuzzing with wordlist subdomain the -u domain:port with -H host:fuzz.domain...
now I obtain two subdomain.. "admin" and "test"
so I wanna explore these two subdomain. I start to fuzz "admin" subdomain so:
ffuf -w wordlist:fuzz -u http://admin.domain.port/fuzz ...... and here i get error....why???? i make me crazy
how i can add vhosts subdomain to etc/hsots

jovial pivot
#

htb-student/var/spool/mail, tried swapping the directory structure to that order, but i think i am getting the username wrong. on a side note i figured out that i needed to re ssh into the system to get the kernel correct, i think thats what you're hinting at for the email so i'll give it a gander

brave wigeon
#

so it seems like im not the only one stuck on windows fundamentals and linux fundamentals....

native gyro
#

some of the quesitons are SO confusing

#

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 cannot answer this no matter how hard, and i would LOVE a direct answer so i can figure out how the command works on my own

#

Hint - service is related to PDF editing

brave wigeon
native gyro
#

there should definitely be an answer sheet...

#

is there an answer sheet?

brave wigeon
#

no this discord helps a lot. Ctrl-f an search for hits throughout previous questions.

brave wigeon
#

well now i feel less dumb as i read more

#

but only slightly

brave kindle
#

Someone is doing the windows fundamentals module ?

autumn pilot
#

ask more specific question on methodology

brave kindle
#

Identify one of the non-standard update services running on the host (windows 10)

hidden knoll
#

hello

#

im stack on this 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.

autumn pilot
#

use the commands mentioned in the section or improvise with other methods

brave kindle
#

I don't know how, I have already tried

autumn pilot
#

use the hint and find it

rustic sage
# hidden knoll can somebody help me

use curl and grep (with regexp) to extract all the paths that contain this domain. Don't give up, also investigate the sort command and its options and the wc command

hidden knoll
#

okey thank! but how to extract all the paths ?

hidden knoll
#

but its incorrect result

#

but its already incorrect answer

#

whats wrong

#

am i close to correct answer ??? 😫

#

can anybody explain me

rare vale
#

I've made it to the same spot in the Web Request where I'm doing my post commands. I've gotten it to log me in as Admin and forward the packet. I see my flag, but copy/paste into the box tells me wrong answer.

#

Nevermind I think I know what I have to do

#

Nope that wasn't it.

#

Ahh that was it

#

I'm good disregard.

vale stream
#

Hello guys module JS deobfuscation here on Source code. I analized it and used the website to deobfuscate and found the function and tried to call it on the console but I came back undefined? What am I doing wrong?

#

Oops I believe I just found it. Its funny when you write your question here most times you find it yourself after. I believe its the programmer rubber ducky effect 🤣🤣🤣

hidden knoll
soft patrol
#

anyone knows hacking of discord pls help my acc got hacked this is my alt pls help DM me ASAP

autumn pilot
#

this is not the place that you should ask such questions or seek for help regarding your issue

#

discord has support try to reach them

scarlet imp
#

how do I get write access to the easy-modules section here on discord?

#

Got it. I had to verify myself with the bot

opaque stump
#

Hello everyone! Can someone give me a tip in NMAP SCRIPTING ENGINE. The question goes like this "Use NSE and its scripts to find the flag that one of the services contain and submit it as the answer." and the hint says "Web servers are among the most attacked services because they are made accessible to users and present a high attack potential.". Till now I tried commands like "sudo nmap -sV --script <category> <ip>" for every category and some just for port 80 and I didn't find any flag. What am I missing? Is the flag in format HTB{...} or should I be looking for something else. Any help would be much appreciated!

mint lava
autumn pilot
#

please avoid double-posting @opaque stump

opaque stump
#

@mint lava tnx for help I got it! @autumn pilot sorry wont happen again

mint lava
#

@opaque stump Glad I could help

modest moth
#

i am defeated lol, i am so lost on the SQLi fundamentals room. i am on the "writing files" tab and cant seem to answer the question

i tried making a reverse shell php and listen in on the port with nc

#

i think thats the wrong method, i know the original SQLi works when you use '0' as the parameter when executing the shell that was injected originally

lyric echo
#

Hey I have been going through academy Linux Module, but when I try to connect to target machine using xfreerdp, security negotiation failed. Any advice?

#

Nevermind, figured out the issue

coral aspen
#

does anyone know how to boot offline

lyric echo
#

hey Lifeking, what do you mean by boot offline?

coral aspen
coral aspen
lyric echo
#

no, sorry man

rustic sage
#

What about "Once you have the secret key, try to decide it's encoding method, and decode it. Then send a 'POST' request to the same previous page with the decoded key as "key=DECODED_KEY". What is the flag you got?"?

#

Once again I found API_p3n_73571n6_15_fun but gives me error. I really find difficult to get what's been asked. Maybe language probs

lyric echo
#

yeah some of the questions can be hard to interpret

jaunty vortex
#

how can i find how many packages are installed on the target system?

plush wharf
#

Can I use Linux installed on my computer for further training, or do I need to use "My workstation"?

harsh pine
clever crow
#

I am working at „GET Method“ but when I press ctrl + r nothing happens. I am a little bit confused. Please help me

rustic sage
brave kindle
#

anyone could help me with this: Identify one of the non-standard update services running on the host (windows 10).

autumn pilot
#

don't just seek for the answer, ask more about certain techniques or methodologies

#

i've mentioned you couple yesterday use them

brave kindle
#

I use powershell cmdlets Get-Service that gets object that represent the services on a computer.
Now you can filter this services; if a string is included in the name or the displayname, if it is running or not and other filter and other filter.
I believe that this the way the to do it. My question is: is there a way that can I filter this Get-Service command line to have as output my non standard update service ?
Sorry if I mispell something