Rooted in less than 30 minutes. This is way too easy, after getting foothold instantly privesc to root. May I know if it is intended?
The box is easy, but after getting foothold you should at least have found some loot via common enumeration (easy again, but took me much more then 60 seconds to find out) and edited something else to get RCE after getting the user (this is actually very straightforward). If you have instant privesc as soon as you get the foothold you may have been piggybacking on someone else or found an unintended way. If not, kudos for your enum-fu!
Can anyone explain why running “./linpeas.sh” gives me a permission error, but running “bash linpeas.sh” works fine? All permissions are set correctly, I’ve never seen this before.
It’s kind of funny. The filesystem is set as non-exec. So, the script itself is not executable. However, bash is executable and in a filesystem without the non-exec flag. So, even though if you call the script directly it’d usually use bash as interpreter, you cannot do it. You need to call bash and have it opening the script.
i spent hours trying to get a revshell and still cant get a connection back!
tried php,msfconsole,bash and even made my own pl**n but cant get a shell !!!
i spent hours trying to get a revshell and still cant get a connection back!
tried php,msfconsole,bash and even made my own pl**n but cant get a shell !!!
I was able to go from www straight to root because of some permission things. Is that the right way? I’m thinking that maybe I just got lucky because it seems so wild and easy.
foothold : just basic known cms rev-shell
user : make sure you didnt miss any file from the automation tools output [we definitely getting close to the summer]
root : from step to step you will understand which file you need to edit
I was able to go from www straight to root because of some permission things. Is that the right way? I’m thinking that maybe I just got lucky because it seems so wild and easy.
If you don’t know whether you got it the intended way, then you probably have not: it is quite obvious once you find it. Also you are supposed to move laterally before privesc, not going straight from RCE to root.
However, I don’t understand why the people delete the useful files from the machine. I’ve spent many hours to get user, but some info has been delete by someone!!
Just rooted the box, not too bad. Learned something when it came to the root privesc, which is nice. I would say the difficulty is a little on the medium side, but that might be due to the fact you really, really need to enumerate and running scripts in this environment can be a bit challenging. The actual process of the initial foothold and user isn’t difficult, but I can see where people might hit roadblocks with the final privesc. This box really forces you to roll up your sleeves and enumerate and not rely on your tools so much. There might be times where you cannot execute scripts such as Linpeas…
Initial Foothold:
Like others have said, it’s right in front of you but you may not be able to see it right away. Brush up on your enumeration skills and poke around - you will find something that sticks out. A lot of companies have a separate development and production environment…do they share any similarities? Once you get that access, it’s a known way to pop a shell from the CMS.
User:
This was the fun part since I didn’t use any scripts such as linpeas. If you are doing your enumeration steps correctly, you should find a file that will tell you some things. Something to do with reading something a juicy file? Once found, it will tell you where to look for your answer. Is it hot in here or is it just me?
Root:
Finally, you made it…eh kinda. This user can do something powerful, but if you’re like me, you probably need to do some research (you should always be learning in infosec). Get familiar with it, understand the files it uses, yada yada yada. It might help to see what groups you’re in as it will help you finding what files you’re looking for Once you make your move, you are home free.
If you made it this far, crack open a cold one - you deserved it you enumeration champ!
What an adventure… the foothold drove me crazy. I still can’t believe I missed it for so long.
The privesc part was cool, I figured out pretty quickly how to get the flag but getting an actual shell took me a bit longer.
Cool box overall, thanks @egre55
i spent hours trying to get a revshell and still cant get a connection back!
tried php,msfconsole,bash and even made my own pl**n but cant get a shell !!!
Make sure you’ve the URI in msfconsole set to right path!