Skip to content
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

nvram show command returns nothing #10

Open
AndrewFasano opened this issue Apr 30, 2024 · 3 comments
Open

nvram show command returns nothing #10

AndrewFasano opened this issue Apr 30, 2024 · 3 comments

Comments

@AndrewFasano
Copy link

~ # LD_PRELOAD=/igloo/utils/libnvram.so nvram show
size: 20 bytes (131052 left)

~ # LD_PRELOAD=/igloo/utils/libnvram.so nvram set foo=zoo

~ # LD_PRELOAD=/igloo/utils/libnvram.so nvram show
size: 20 bytes (131052 left)

~ # LD_PRELOAD=/igloo/utils/libnvram.so nvram get foo
zoo

After setting a value into nvram, I think nvram show should return it (along with all other set values?)

@be32826
Copy link

be32826 commented Apr 30, 2024

Where can I get access to the nvram command?

@AndrewFasano
Copy link
Author

It's a pretty common binary in lots of firmware, I can send you a specific example

@AndrewFasano
Copy link
Author

AndrewFasano commented Apr 30, 2024

Also, in testing with another firmware it seems to work fine. This probably could be caused by different library calls being present in different nvram binaries?

~ # LD_PRELOAD=/igloo/lib_inject.so nvram set foo=1
~ # LD_PRELOAD=/igloo/lib_inject.so nvram get foo
1
~ # LD_PRELOAD=/igloo/lib_inject.so nvram show
foo=1
_upgrading=
size: 0X26 bytes (0X7DA left)

This was with DIR-615_REVE_FIRMWARE_5.14.B01.ZIP with a sha1sum of f5cdc2e346c618b8faa348826ebb445829638fc9

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