I'm targeting a program that tries to open a file in /sys that doesn't exist. Is there a way to create that file so the program continues? (Normally you can't create flies in sysfs.)
Asked
Active
Viewed 166 times
1 Answers
2
Instead of creating a file, you can hook the open/read functions in the binary and make them return the data it needs. For example, using LD_PRELOAD
:

Igor Skochinsky
- 36,553
- 7
- 65
- 115