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-gitdep
binwalk
Commits
4e7d4aa7
Commit
4e7d4aa7
authored
9 years ago
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added python3 compatibility string conversion to ubivalid.py plugin
parent
e3d1a55c
fix-entropy-graph-legend
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ubivalid.py
src/binwalk/plugins/ubivalid.py
+2
-2
No files found.
src/binwalk/plugins/ubivalid.py
View file @
4e7d4aa7
import
struct
import
binascii
import
binwalk.core.plugin
import
binwalk.core.compat
class
UBIValidPlugin
(
binwalk
.
core
.
plugin
.
Plugin
):
'''
...
...
@@ -56,7 +56,7 @@ class UBIValidPlugin(binwalk.core.plugin.Plugin):
# Seek to and read the suspected UBI erase count header
fd
=
self
.
module
.
config
.
open_file
(
result
.
file
.
name
,
offset
=
result
.
offset
)
ec_header
=
fd
.
read
(
1024
)
ec_header
=
binwalk
.
core
.
compat
.
str2bytes
(
fd
.
read
(
1024
)
)
fd
.
close
()
result
.
valid
=
self
.
_check_crc
(
ec_header
[
0
:
64
])
...
...
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