#!/usr/bin/env python# -*- coding: UTF-8 -*- import ioimport zlib with open('firmware.bin', 'rb') as fp: fp.seek(0x23880, io.SEEK_SET) data = zlib.decompress(fp.read(0xd72c7), -zlib.MAX_WBITS) with open('inflated.bin', 'wb') as fp: fp.write(data)
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "./prog.py", line 7, in <module> with open('firmware.bin', 'rb') as fp: FileNotFoundError: [Errno 2] No such file or directory: 'firmware.bin'
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!