-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Console access #1
Comments
I'm not familiar with firmware-mod-kit or how it works. Unless it's using firmadyne internally, this project and firmware-mod-kit are completely separate and unrelated. If you're trying to emulate a firmware image with firmadyne, you should follow the instructions at https://github.com/firmadyne/firmadyne#usage . |
I understand that the firmware-mod-kit is completely separate. It is a tool used to extract a firmware root filesystem to allow for modifications and then allows the firmware to be built again. https://github.com/rampageX/firmware-mod-kit The reason I mention it in this issue is that from the instructions for the console, it seems that to enable the console functionality of a firmware being run with firmadyne, that it is necessary to extract and modify the firmware to include the console binary in this repository. Is this accurate? It seems that firmadyne provides functionality to extract firmware and build it again in a similar manor but firmadyne doesn't seem to leave the firmware in an extracted state where you are able to add the console binary for the applicable architecture and then to rebuild the firmware binary. firmware-mod-kit aside, what I am and trying to understand is that the instructions for the console seem to just be:
But they don't indicate how the firmware should be extracted and rebuilt to include the console binary. What I am looking for are what steps should be followed to emulate a firmware using firmadyne and to be able to access the running firmware via a terminal. |
From what you've said, the goal of firmware-mod-kit is to allow users to modify a firmware image and flash it back to the original hardware. This is different from firmadyne, which is a framework for dynamically emulating firmware without the original hardware. As part of the emulation process, we do need to extract the filesystem from a given firmware image, but there's no support for repackaging a potentially modified filesystem back into the format of the original firmware image. The |
From what I have seen, run.sh does not present a console:
The terminal window that is running So if |
It looks like you're using an old version. Did you clone the master branch? The instructions explicitly state |
I have the same confusion, what's the relationship between terminal and primary console? why the default console should be automatically connected to the terminal? and I have no idea about what the default console actually and terminal is? |
The terminal is your local shell terminal (e.g. bash, etc) that was used to execute Some firmware do not spawn a shell on the terminal, making them difficult to interact with locally (not over the network). The purpose of the |
I am trying to get command-line access to a firmware that I am running using firmadyne. The process I am following is:
When I try to run the firmware it fails to start and in
qemu.initial.serial.log
I find:"Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)"
I saw the FAQ on the main firmadyne README that mentioned an issue with
kpartx
and to try increasing the timeout ininferNetwork.sh
and deleting the scratch directory but neither seemed to resolve the issue.Is this the correct process for setting up the console?
Also of note, if I extract the firmware and re-build it again using the firmware-mod-kit, omiting the modification steps, the firmware loads up and runs properly.
The text was updated successfully, but these errors were encountered: