pr0v3rbs / FirmAE

Towards Large-Scale Emulation of IoT Firmware for Dynamic Analysis
MIT License
610 stars 117 forks source link

IP address of emulated firmware is the same as host's default gateway #8

Open ghost opened 3 years ago

ghost commented 3 years ago

I emulate a firmware of dlink which has a default ip address of 192.168.1.1, so firmAE created a tap and assign 192.168.1.0/24 to this interface. Howerver, my host Ubuntu's network is also 192.168.1.0/24 and I am not allowed to configure my host network. Hence, I can not access web interface of the firmware. Is there any solution?

0xdkay commented 3 years ago

Could you specify your execution environment? This is one of the reasons that we use 'Docker' and containerize each execution environment.

pr0v3rbs commented 3 years ago

Docker mode can make an emulated firmware image be isolated by ignoring the host network environment.

I updated the code which debugging in the Docker container.

Please check 1b320250bcba162763d5e5a003bdc144ef83281b.

ghost commented 3 years ago

I ran it on my Ubuntu 16.04 LTS. I'll check Docker mode. Thank you anyway.