First attempted box ever since I figured it’d be the easiest currently active. Stuck on www-****. Can’t seem to find anything useful. Would really appreciate some help. PM please
You need to use a combination of ls and cat around the place you have landed. The information you need to progress is pretty much at your feet there.
Ignore the millions of shells. Look for interesting files and folders which may hold configuration information for a system and then remember people reuse passwords.
Wow I hate myself. Found the credentials for user1 hours ago but only attempted to login with user2. Thanks for the push, made me retrace my steps. My true newbie colors are shining through at the moment. I’ll get there eventually
can someone give me hint i get the user1 j***y but cannt get the user2 can someone give me hint?
Enumerate your user fully, find out if something groups the two users together. Find things they might both be able to access. Read them, exploit them.
@TazWake Thanks. Now, I’m stuck on user2, and pretty sure it’s something to do with that program under their share folder, and even has part of the exploit in a file, but it’s not working. It gives me a shell, but it’s the same privilege. Also, I thought that user had sudo, but I guess not…none of the passwords work. Seems like I’ve tried every one of the exploits in GTFOBins, for that program.
Oh, wait, was that just to show me that user can use that program with sudo? That’s what I’ve been trying, but it’s not working.
Not sure if you’ve cracked this yet, but if you are still struggling, chances are you’ve misread it and are trying something it doesn’t allow you to do.
Ok now that I finally rooted this machine, here are my thoughts:
Lessons Learned
Overall
If you’ve got some creds that you think should work but don’t, reset the box and try again. Some people are changing the user creds to block others from connecting - this happened to me multiple times, not sure if this is being done maliciously, or as a defensive mechanism, or what. It’s really annoying. Don’t do this.
Initial foothold
Make sure you use a trailing ‘/’ for the exploit script!
User 1
There are many ways of spelling “password”!
ls and cat are effective tools for enumeration if you’re only checking a few places
User 2
If johnny isn’t rocking your world, make sure your command line args are correct (–arg=/some/path, not --arg /some/path)
Root
It was the obvious thing, but at first I didn’t understand the format of the command. Each line is a single command, not multiple commands separated by whitespace.
@01ph0rie , @TazWake : The shell pops up, but it’s just the same privilege, same user. So, I see how ‘sudo -l’ shows the program, but that’s what I’ve been trying the whole time. I’ve tried every method on GTFOBins, so now I’m wondering if I’m totally off, or what.
If I run sudo -l, and it shows I’m supposed to be able to run the program with no password, I don’t get why it’s prompting me for a password when I try to sudo the program.
EDIT: …still can’t figure this out, after few more hours messing with it. I don’t understand, why sudo isn’t working when it says NOPASSWD. I don’t see how the GTFOBin method is supposed to work without sudo. I’ve tried it without sudo a hundred times now. Anyone else still messing with this? Does anyone have user2 cred’s, for sudo? Maybe I’m missing some cred’s. Someone mentioned some mysql cred’s. I haven’t seen them, but not sure if I need them, either.
Some thoughts from my side:
Begin with standard Enumeration, after you find the interesting App, search for exploits.
For User1:
at first dig deeper, not higher, you should find everything needed to log into the lowest port
User2: Grab all the stuff you can get and can access before, watch the new files and exploit it, Call your Crack-Buddy and Talk about this key and the phrase
root: The most important point I nearly stumbled (again after Swagshop?) → Spaces are no commas!!! After that, its easy, particularly with the nice Webpage from other hints.
I had issues with all the stuff and how to put it in order.
Thanks for the Box, learned new things and refreshed memories!
@6062055 I had the same problem as you at first. Read my comment above about the output being a single command, not two commands. E.g. if you see ‘/bin/command /opt/otherthing’ you should run that as a single command, not just /bin/command by itself.
EDIT: …still can’t figure this out, after few more hours messing with it. I don’t understand, why sudo isn’t working when it says NOPASSWD. I don’t see how the GTFOBin method is supposed to work without sudo. I’ve tried it without sudo a hundred times now. Anyone else still messing with this? Does anyone have user2 cred’s, for sudo? Maybe I’m missing some cred’s. Someone mentioned some mysql cred’s. I haven’t seen them, but not sure if I need them, either.
Are you still stuck? If so PM me. No extra creds needed but I am curious how you got user 1’s creds.