Commit 86cdf0ec by devttys0

Added comments to example scripts

parent 23c3c121
...@@ -2,4 +2,6 @@ ...@@ -2,4 +2,6 @@
import binwalk import binwalk
# Since no options are specified, they are by default taken from sys.argv.
# Effecitvely, this duplicates the functionality of the normal binwalk script.
binwalk.Modules().execute() binwalk.Modules().execute()
...@@ -4,6 +4,7 @@ import sys ...@@ -4,6 +4,7 @@ import sys
import binwalk import binwalk
try: try:
# Perform a signature scan against the files specified on the command line and suppress the usual binwalk output.
for module in binwalk.Modules().execute(*sys.argv[1:], signature=True, quiet=True): for module in binwalk.Modules().execute(*sys.argv[1:], signature=True, quiet=True):
print ("%s Results:" % module.name) print ("%s Results:" % module.name)
for result in module.results: for result in module.results:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment