firmware-analysis-toolkit icon indicating copy to clipboard operation
firmware-analysis-toolkit copied to clipboard

Network interface not working and no IP assigned.

Open r00tb3 opened this issue 6 years ago • 12 comments

I'm getting the following error:--

     __           _   
                              / _|         | |  
                             | |_    __ _  | |_ 
                             |  _|  / _` | | __|
                             | |   | (_| | | |_ 
                             |_|    \__,_|  \__|                    
                    
                Welcome to the Firmware Analysis Toolkit - v0.2
    Offensive IoT Exploitation Training  - http://offensiveiotexploitation.com
                  By Attify - https://attify.com  | @attifyme
    
[?] Enter the name or absolute path of the firmware you want to analyse : /home/r00tb3/Desktop/dir-816/firmware/AP699E8C.CW125A-5-DLINK-R1B011D81870(0519085924)(1).img
[?] Enter the brand of the firmware : dlink
[+] Now going to extract the firmware. Hold on..
[+] Firmware : /home/r00tb3/Desktop/dir-816/firmware/AP699E8C.CW125A-5-DLINK-R1B011D81870(0519085924)(1).img
[+] Brand : dlink
[+] Database image ID : 1
[+] Identifying architecture
[+] Architecture : mipsel
[+] Storing filesystem in database
[+] Building QEMU disk image
[+] Setting up the network connection, please standby
[+] Network interfaces : []
[+] Running the firmware finally
[+] command line : sudo /home/r00tb3/re-tools/firmware-analysis-toolkit/firmadyne/scratch/1/run.sh
[*] Press ENTER to run the firmware...^CTraceback (most recent call last):

Why isn't it enabling any network interface?

How do I get this working and get and IP assigned to it?

Waiting for replies!!

r00tb3 avatar Apr 03 '18 06:04 r00tb3

Unfortunately, not all firmware image work out of the box with firmadyne. Looks like the inferNetwork.sh script failed to detect any interface. Try increasing the timeout value in inferNetwork.sh which is a part of upstream firmadyne.

Steps here

extremecoders-re avatar Apr 03 '18 08:04 extremecoders-re

@extremecoders-re The problem is that Init crashes:--

nvram_get_buf: Unable to open key: /firmadyne/libnvram/RESET_TAG!
nvram_get_buf: WebInit
sem_get: Key: 4110002a
sem_get: Key: 4110002a
nvram_get_buf: Unable to open key: /firmadyne/libnvram/WebInit!
nvram_clear: Clearing NVRAM...
sem_lock: Already initialized!

I think I'll have to recompile the libnvram but I don't know how to do it.

Pls, help me with this.

Thanks for the reply!!

r00tb3 avatar Apr 03 '18 14:04 r00tb3

You can include additional entries by modifying config.h.

extremecoders-re avatar Apr 04 '18 04:04 extremecoders-re

@extremecoders-re

What additional entries do I have to add?

I'm figuring that out.

r00tb3 avatar Apr 04 '18 05:04 r00tb3

Check the error messages nvram_get_buf: Unable to open key:

extremecoders-re avatar Apr 04 '18 05:04 extremecoders-re

@r00tb3 Have you solved this problem? How did you do?

DerZc avatar Jan 09 '19 13:01 DerZc

Is anyone able to solve this problem?

ghost avatar Feb 24 '19 15:02 ghost

No i haven't solved the problem yet.

r00tb3 avatar Feb 25 '19 06:02 r00tb3

did you get the solution of it @r00tb3 ?

anindya14 avatar Apr 29 '21 11:04 anindya14

Is anyone able to solve this problem now?

mark0519 avatar Mar 21 '22 07:03 mark0519

@mark0519 are you able to solve this problem?

devika6001 avatar Nov 14 '23 17:11 devika6001

@mark0519 @extremecoders-re @anindya14 @r00tb3 @DerZc @mark0519 Anyone solve this problem?!!!

sdahiasdba avatar Apr 02 '24 10:04 sdahiasdba