Skip to content

do you think that changing the mac address while emulating possible? #23

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

Open
minanagehsalalma opened this issue Mar 30, 2020 · 6 comments

Comments

@minanagehsalalma
Copy link

image

hg531s1.zip

@kvalakuzhyzp
Copy link
Contributor

I'm unable to extract the files from the hg531s1.BIN dbase file. Please inform me on how to extract these files or provide output from a run of zelos that attempts to reference the mac address.

@minanagehsalalma
Copy link
Author

I'm unable to extract the files from the hg531s1.BIN dbase file

dbase file ? i was able to extract the files from the bin using 7 zip.

@kvalakuzhyzp
Copy link
Contributor

We tried unzipping the .BIN file inside multiple ways, we weren't able to extract the file system inside. What version of 7zip are you using?
image

If their are any special instructions for extracting, let us know. Otherwise, I see the options as

  • Try to rezip the files
  • Zip using another tool
  • Upload output from zelos instead

Another option is identifying how the binary is finding the MAC address.

  • If the binary is accessing the mac address through the ioctl syscall, this can be addressed using a syscall hook.
  • If the binary is accessing the mac address through reading the file /sys/class/net/*/address, a file of that name could be added using the --mount config option.

If you give some output from zelos that attempts to access the mac address, we can pinpoint which of these methods are being used.

@minanagehsalalma
Copy link
Author

We tried unzipping the .BIN file inside multiple ways, we weren't able to extract the file system inside.

@kvalakuzhyzp
I got an error too... but the files are there.

Binwalk works just fine for extracting.

I don't think that the mac address is in the firmware file.

@kvalakuzhyzp
Copy link
Contributor

We have not created a unified interface for setting hardware information such as the mac address. However, there are work-arounds to control what the emulated program perceives the mac address to be. We'll update this issue when such an interface is created.

In order to know how to control the mac address, you need to know how the emulated program attempts to access the mac address (or address all possible ways). If you want more information on these workarounds (ioctl an/sys/class/net/*/address), I can provide that in the meantime.

@minanagehsalalma
Copy link
Author

I can provide that in the meantime.

We'll update this issue when such an interface is created.

@kvalakuzhyzp no problem i will be waiting for that :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants