Obscurity

I’ve found the script, but I’m not entirely certain what it does. I am not looking for the answer so much as a nudge as to what I should be researching next. I have some small understanding of the language, but could use a little help on how to understand constructing an input that triggers an unwanted response from the server. Have tried a few random curls to see if something interesting happens, but no dice.

Any hint about foothold

Type your comment> @ghost5egy said:

Any hint about foothold

On the main page you can find direction (file in dir), you can try to find this ‘directory’ manually or use small wordlist of very common dirs. It is important to look at the very specific error message.

Type your comment> @commercialeer said:

I’ve found the script, but I’m not entirely certain what it does. I am not looking for the answer so much as a nudge as to what I should be researching next. I have some small understanding of the language, but could use a little help on how to understand constructing an input that triggers an unwanted response from the server. Have tried a few random curls to see if something interesting happens, but no dice.

If you talking about first script (from web server) - look for comments in code from author, if developer does not particularly understand how something should be done, then this something have high probability of being vulnerable.
And you can look at how to make HTTP requests with python requests lib, it is doing some staff for you, so you can input raw (no encoding) uri’s and they will be properly understood by this server.

Question about root. I think I know how what to do regarding the file in t*p. But I cant seem to the run the py file without getting permission errors. Any help?
NVM I was being stupid

Rooted! had some real fun with user. Root was a bit disappointing (too easy).
Hints:
Foothold: don’t rush with that command and that syntax only because you have seen ippsec videos and it worked. Take time to understand the tool you want to use and what to fuzz
User: just a funny puzzle game. remember that sometimes copypasting might corrupt your bytes!
Root: nothing to say. just run the thing and you are done
Pm for nuggets!

huh… that was really fun…
and i’m so ashamed that i first stepped into the trap of bruteforcing check+out…
(maybe thinking is over-estimated)…
there is really no big logic involved or great mathematical skills needed…
just keep your bytes clean and dont ruin them by copy-paste

Wow @c1cada just seen the way you got something, how long did that take? with ry?

Any hint for root?

Type your comment> @Abdelwahed said:

Any hint for root?

look at the script and what it’s doing… saying much more is not really possible

I had an insanely hard time with this one… But got it with some hints in the end… Was fun but in no way easy for someone with little python knowledge… But thats what made it fun was not knowing…

Really new and excited to get going with htb. Very very stuck on initial foothold can’t find the directory where the py file is held. Tried many wordlists could not find it. please can anyone help me with a nudge? I feel i must be overthinking it

edit - I found it finally thanks to @phycomp very helpful! was missing one piece to my fuzzing. On to the rest!

@dontknow thanx pro I have low priv shell
I loved this box
Foothold : tricky one
search analyze exploit
User : read the code reverse it
Root : tricky 2
Read the code analyze it
watch command is your friend
Thanks box creator I loved it and learned alot

.

Rooted.

Interesting box, the difficulty is very subjective for this one in my opinion.

PM if needed :slight_smile:

rooted!!! Pm for nudge

I think this is my first medium box, was pretty fun, especially user flag.

This one forced me to get away from my usual approaches which IMO is a good thing.

Some hints:

foothold: you’re told what to find, you can find it with simple tools
user: you’re given everything upfront, read it and research/understand each line, its a puzzle worth solving
root: Few ways here… one simple way is to do something twice

this is my very first box and i feel like im going about this wrong (or im just stupid) im connected in metasploit but my lists are failing to get in…

Can anyone please give me a helping hand with user. I have the pieces of the puzzle, but the glue, or the key rather, that holds them together still seems off. It’s soooo close but just not getting the proper o**.txt after getting it I think I’m off by just a few characters. Help would be much appreciated.

Rooted !!!
Really really fun box, it required some understanding of python, which is simply :heart:

This box takes you away from usual approaches to owning which I really liked.

Some HINTS:
Foothold: The page says it all, you have got the file to grab and also the directory told by them. Honestly can be grabbed manually (no fuzzing needed).

User: Simple yet interesting cracking of script, just understand what its doing and reverse it. Everything is given on a silver plate inside the home.

Root: Read the code carefully and exploit the vulnerability of SLEEPING rabit once it stored the important file at some location. Do basic scripting to capture that, since we humans are not that fast, but scripts are :wink:

Still Stuck??? Feel free to DM :slight_smile: