Initial foothold : Google
User1 : Look around
User2 : Look around
root : Corona time, catch a bus and get back home; don;t come out #staysafe
Rooted, thanks to this comment.
Certainly on the easier side of medium boxes. The best part is that all the steps are quite logical with no guess work involved. Props to the creator @ChefByzen for that.
All the hints have already been given in this thread. But if you still need a nudge, feel free to pm.
@CarbonDPG said:
I’m not the owner of the box (obviously), but F2B can be configured to detect (and ban) directory brute forcing.
Thanks for clarifying. Didn’t know that. How does it work? F2B works with “Jails” when banning failed logins, I never looked under the hood how it’s actually doing this.
Fundamentally, F2B is just a log parser. Create a new definition and scan for specific regex in the apache logs. Github link below to detect weblogins for example. Though in this case, you’re not scanning for POST requests in /login, you’re scanning for excessive POST or GET requests to any page. Add the new definition to the jail config, restart the F2B service and bob’s you uncle.
Alternatively, tear apart Chef’s F2B config files once you’ve pwned the box. Found out how he’s implemented it himself, the more you know!
This was a really nice machine @ChefByzen thanks for your efforts! Feel free to get in touch if you’re stuck, I’ll try and nudge if you let me know what you’ve tried!
nice machine.
foothold is pure fun. I wasted A LOT of time getting a grip on it only because of my dumb reluctance to consider uppoer and lower case…But once you get it, it’s a snap.
User1: you are a few slashes from the goldmine.
User2: Yes, it is that easy!
Root: i admit i just took the lazy way to get the flag. but once you are able to do that, getting a root shell is trivial…