Ulli Weichert/ April 5, 2022/ IT-Security, Write-Ups/ 0Kommentare

Sleuthkit Intro

Description

Download the disk image and use mmls on it to find the size of the Linux partition. Connect to the remote checker service to check your answer and get the flag.
Note: if you are using the webshell, download and extract the disk image into /tmp not your home directory.
Download disk image
Access checker program: nc saturn.picoctf.net 52279

Solving

  1. As mentioned in the challenge description we need to find out the length of the partition and when we found the length, we can connect to the app server and get the flag.
  2. When you have the length, you can use this script to connect and solve the challenge.
  3. You need to get the length on your own!
#!/usr/bin/env python

from pwn import *

context.log_level = 'critical'

host,port = "saturn.picoctf.net", 52279

print("Mr.Robot: Of course I can get the flag for you!")
length=input("Mr.Robot: Just tell me the length: \n> ")

try:
    s = remote(host,port)
    s.recvuntil(b"sectors:")
    s.sendline(bytes(length,"latin-1"))
    s.recvuntil(b"work!")
    flag=s.recv().decode('utf-8')
except:
    print("Mr.Robot: Oh no! Something went wrong... :-(")

s.close()

print("Mr.Robot: I know - I'am awesome... here is the flag!")

print("\t" + flag.strip())  
Share this Post

Über Ulli Weichert

2004 fing Ulli bei der Bundeswehr als Ausbilder und IT-Spezialist an. 2011 hat Ulli eine Umschulung zum Fachinformatiker für Systemintegration absolviert und sich auf Linux spezialisiert. 2016 hat Ulli dann bei einem mittelständischem Unternehmen, welches Kunden in ganz Deutschland betreut, als Linuxadministrator angefangen und kümmert sich seither nebst, Netzwerk, Security, Firewall, Storage überwiegend um Linuxthemen aller Art. Seit kurzem hat auch Ihn das Thema Container und k8s erwischt.

Hinterlasse einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

*
*