Skip to content

Commit

Permalink
add qcow2 support to the debugee
Browse files Browse the repository at this point in the history
  • Loading branch information
0xricksanchez committed Dec 27, 2022
1 parent 177301c commit 0c7c422
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/debuggee.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def infer_qemu_fs_mount(self) -> str:
return f" -initrd {rootfs}"
elif b"filesystem data" in magic.stdout:
return f" -drive file={rootfs},format=raw"
elif b"qemu qcow" in magic.stdout.lower():
return f" -drive file={rootfs}"
else:
logger.error(f"Unsupported rootfs type: {magic.stdout}")
exit(-1)
Expand Down

0 comments on commit 0c7c422

Please sign in to comment.