Carrier

@sakyb ive been looking at this ■■■■■■■ for a while now

@sakyb said:
@badman89 same here… waiting for the answer on root

Stuck at the same place.

EDIT: Just reading back through the thread, must have missed the private key.
EDIT2: Can’t find them

Is it possible to connect to this box via ssh without the need to change any config files ? I’ve found keys in usual location but they don’t work. It’s a real pain in the ■■■ having to RCE again and again after each reset. Also limited shell from RCE is painfull.

@msolnicki said:
Is it possible to connect to this box via ssh without the need to change any config files ? I’ve found keys in usual location but they don’t work. It’s a real pain in the ■■■ having to RCE again and again after each reset. Also limited shell from RCE is painfull.

which keys did you find? those in authorized keys? they are public of course are not gonna work

which keys did you find? those in authorized keys? they are public of course are not gonna work

Obviously I didn’t meant pub key from authorized_keys. I’ve found private keys but it seems they are password protected.

@msolnicki said:
Is it possible to connect to this box via ssh without the need to change any config files ? I’ve found keys in usual location but they don’t work. It’s a real pain in the ■■■ having to RCE again and again after each reset. Also limited shell from RCE is painfull.

Agreed I was trying to find a way so I didn’t have to go through the first step if someone reset during the day

@Underworld said:
Agreed I was trying to find a way so I didn’t have to go through the first step if someone reset during the day

If someone resets the box, you’re going to have to go through the first step again no matter what, aren’t you? Or am I misunderstanding what you guys are saying?

Also the SSH thing is completely unnecessary overkill. Just have it download a statically-linked ncat/socat/whatever from your machine and then use it to connect back to your listener. This can all be done in literally one line/request.

Spoiler Removed - Arrexel

@opt1kz said:
If someone resets the box, you’re going to have to go through the first step again no matter what, aren’t you? Or am I misunderstanding what you guys are saying?

Well, no, if there was a pre-configured ssh access to the box, one could just use it instead of going through all those steps you described. Any binary you’ll upload will be gone with the reset, so ssh access doesn’t really seem like an overkill.

@msolnicki said:

@opt1kz said:
If someone resets the box, you’re going to have to go through the first step again no matter what, aren’t you? Or am I misunderstanding what you guys are saying?

Well, no, if there was a pre-configured ssh access to the box, one could just use it instead of going through all those steps you described. Any binary you’ll upload will be gone with the reset, so ssh access doesn’t really seem like an overkill.

Agreed

@msolnicki said:
@opt1kz said:
If someone resets the box, you’re going to have to go through the first step again no matter what, aren’t you? Or am I misunderstanding what you guys are saying?

Well, no, if there was a pre-configured ssh access to the box, one could just use it instead of going through all those steps you described. Any binary you’ll upload will be gone with the reset, so ssh access doesn’t really seem like an overkill.

Have a wget from your machine in your rce, that’s how I’ve been running it all day

@msolnicki said:
Well, no, if there was a pre-configured ssh access to the box, one could just use it instead of going through all those steps you described. Any binary you’ll upload will be gone with the reset, so ssh access doesn’t really seem like an overkill.

I’d disagree, I had a python script that authenticates on the service and initiates a reverse shell via the intended way in, much faster and quicker. Reconfiguring SSH is much longer process.

One liner that downloads a shell file and executes it is much faster and cleaner.

OK thx guys, I forgot I can make my one liner more complicated and use a curl or whatever to inject it. Still, a full ssh shell would be nice. Socat has it’s limitations, not to mention nc.

@Kykli said:

@0xlc said:

@Kykli said:
Hints for the reverse shell? I am able to execute commands but no luck getting reverse shell. It shuts down the connection always instantly…

try a different rev shell :wink:

Have tried so many ways already and nothing is working :astonished:

Yes i was at the same situation, i did reset the machine couple times and tried my same RCE one line codes and boom reverse shell !! I was sure about I tried that before but didnt work. So be sure that no one is working on machine or no one has already got shell from your zone machine. You know, you can check that with the page in front of you… :wink:

working on confusing root…

For people who are struggling, it’s possible to obtain a full reverse shell with a normal one-line command, you don’t need to upload an msfvenom shell or anything like that (although that may work as well).

Someones hammering the box tonight - can’t even connect to it :\

@msolnicki said:

which keys did you find? those in authorized keys? they are public of course are not gonna work

Obviously I didn’t meant pub key from authorized_keys. I’ve found private keys but it seems they are password protected.

The private key doesn’t seem password protected to me. If it were, the prompt would ask for the key passphrase - not password.

The password prompt appears because the private key you found is not valid to be used on the server and your login attempt falls through to regular password-based authentication .

@Skunkfoot said:
For people who are struggling, it’s possible to obtain a full reverse shell with a normal one-line command, you don’t need to upload an msfvenom shell or anything like that (although that may work as well).

I struggled with this until I realized I had a typo in how I was injecting my one-line command.

@petelska said:

The private key doesn’t seem password protected to me. If it were, the prompt would ask for the key passphrase - not password.

The password prompt appears because the private key you found is not valid to be used on the server and your login attempt falls through to regular password-based authentication .

You are probably right. Although I tried adding pub cert from this location to authorized_keys, and then using priv key pair to login - in theory this should work but it didn’t. That is why I assumed they are password protected. Anyway I’m going back to the drawing board with my RCE one-liner as other people suggested.

Guys can anyone guide me on this machine…kinda new to this…

Probably not a good box if you are new to this kind of thing, especially the priv esc - which was very clever and completely kicked my ■■■. Great box @snowscan thanks for creating.