Operation Oni
Description
Download this disk image, find the key and log into the remote machine.
Note: if you are using the webshell, download and extract the disk image into /tmp not your home directory.
Download disk image
Remote machine:
ssh -i key_file -p 60303 ctf-player@saturn.picoctf.net
Solving
-
Mounting the disk image (it is a msdos mbr partition... whole disk)
-
Create temporary dir for mounting
mkdir test
-
Look into the partitiontable
fdisk -l <file>
-
After calculating the offset mount:
mount -o loop,ro,offset=105906176 disk.img test
-
Look for ssh keyfiles
find . -name '*id*'
-
Use the ssh key and try to login.
ssh -i root/.ssh/id_ed25519 -p 60303 ctf-player@saturn.picoctf.net
-
You will get the flag.