Hi,
I am using binwalk to calculate the entropy of two files. When I do this, it acts as if I have passed the --verbose switch.
It does this from command-line and the API,
In addition, using the API only the entropy of the last file is calculated.
As you can see, no --verbose switch has been passed, yet it produces significantly more entropy offsets.
Example using the API:
import binwalk, shutil
from glob import glob
scan_results = binwalk.scan(*["file1.png", "file2.png"], entropy=True, quiet=True, nplot=True)
for module in scan_results:
for result in module.results:
print(result.file.name, result.entropy)
Hi, I am using binwalk to calculate the entropy of two files. When I do this, it acts as if I have passed the
--verbose
switch. It does this from command-line and the API, In addition, using the API only the entropy of the last file is calculated.Single file operations
binwalk -E file1.png --nplot
:binwalk -E file1.png --nplot --verbose
Multiple file operation
binwalk -E file1.png file2.png --nplot
As you can see, no
--verbose
switch has been passed, yet it produces significantly more entropy offsets.Example using the API:
Output:
The output is verbose and there are no results for file1.png. I tried adding the
verbose=False
but it makes no difference.Thanks.