Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
binwalk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
binwalk
Commits
a2accbb7
Commit
a2accbb7
authored
10 years ago
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor code formatting and comments
parent
9aae0758
master
…
v2.3.4
v2.3.3
v2.3.2
v2.3.1
v2.3.0
v2.2.0
v2.1.1
python27
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
binwalk
src/scripts/binwalk
+6
-1
No files found.
src/scripts/binwalk
View file @
a2accbb7
...
@@ -22,7 +22,10 @@ def display_status(m):
...
@@ -22,7 +22,10 @@ def display_status(m):
while
True
:
while
True
:
try
:
try
:
user_input
()
user_input
()
sys
.
stderr
.
write
(
"Progress:
%.2
f
%%
(
%
d /
%
d)
\n\n
"
%
(((
float
(
m
.
status
.
completed
)
/
float
(
m
.
status
.
total
))
*
100
),
m
.
status
.
completed
,
m
.
status
.
total
))
percentage
=
((
float
(
m
.
status
.
completed
)
/
float
(
m
.
status
.
total
))
*
100
)
sys
.
stderr
.
write
(
"Progress:
%.2
f
%%
(
%
d /
%
d)
\n\n
"
%
(
percentage
,
m
.
status
.
completed
,
m
.
status
.
total
))
except
KeyboardInterrupt
as
e
:
except
KeyboardInterrupt
as
e
:
raise
e
raise
e
except
Exception
:
except
Exception
:
...
@@ -43,6 +46,8 @@ def main():
...
@@ -43,6 +46,8 @@ def main():
try
:
try
:
if
len
(
sys
.
argv
)
==
1
:
if
len
(
sys
.
argv
)
==
1
:
usage
(
modules
)
usage
(
modules
)
# If no explicit module was enabled in the command line arguments,
# run again with the default signature scan explicitly enabled.
elif
not
modules
.
execute
():
elif
not
modules
.
execute
():
modules
.
execute
(
*
sys
.
argv
[
1
:],
signature
=
True
)
modules
.
execute
(
*
sys
.
argv
[
1
:],
signature
=
True
)
except
binwalk
.
ModuleException
as
e
:
except
binwalk
.
ModuleException
as
e
:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment