r/ExploitDev • • Sep 10 '23

Help with firmadyne

Hey everyone! I am trying to use firmadyne to emulate a tp-links router firmware. I am able to extract the firmware and manually go through the sqaush-fs filesystem. But when I try to emulate it and do some dynamic analysis i get this error:[ 6.520000] EXT2-fs (sda1): error: ext2_lookup: deleted inode referenced: 2570

[ 6.520000] EXT2-fs (sda1): error: ext2_lookup: deleted inode referenced: 2570

[ 6.520000] EXT2-fs (sda1): error: ext2_lookup: deleted inode referenced: 2570

[ 6.520000] EXT2-fs (sda1): error: ext2_lookup: deleted inode referenced: 2570

after doing some research I see that using the e2fsck binary would usually help in fixing the filesystem. The only issue is i am having trouble finding /dev/sda1 . any advice or resources i can look at to get a better understanding of the problem would be great :)! I am using Ubuntu 22.04 as a host OS.

thanks you

Edit: should probably add the firmware is MIPS32, LSB

5 Upvotes

12 comments sorted by

View all comments

Show parent comment

2

u/Nlbjj91011 Sep 11 '23

just tried using FAT but seems like its just a wrapper for firmadyne so im getting the same error :/ ill try your other suggestions. Thanks for the help!

2

u/feehley1 Sep 11 '23

The wrapper is great just because it takes care of some of the basics that firmadyne doesn’t imo.

Sometimes it takes care of the problem, sometimes it is the problem lol