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
52cf4db9
Commit
52cf4db9
authored
Mar 26, 2014
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated modules comments/docs
parent
feb1cce5
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24 additions
and
5 deletions
+24
-5
binvis.py
src/binwalk/modules/binvis.py
+5
-1
compression.py
src/binwalk/modules/compression.py
+1
-1
entropy.py
src/binwalk/modules/entropy.py
+2
-0
extractor.py
src/binwalk/modules/extractor.py
+4
-0
general.py
src/binwalk/modules/general.py
+2
-0
hashmatch.py
src/binwalk/modules/hashmatch.py
+7
-1
heuristics.py
src/binwalk/modules/heuristics.py
+1
-2
signature.py
src/binwalk/modules/signature.py
+2
-0
No files found.
src/binwalk/modules/binvis.py
View file @
52cf4db9
# Generates 3D visualizations of input files.
import
os
from
binwalk.core.compat
import
*
from
binwalk.core.common
import
BlockFile
...
...
@@ -135,7 +137,9 @@ class Plotter(Module):
for
point
in
sorted
(
data_points
,
key
=
data_points
.
get
,
reverse
=
True
):
plot_points
[
point
]
=
data_points
[
point
]
self
.
result
(
point
=
point
)
# Register this as a result in case future modules need access to the raw point information,
# but mark plot as False to prevent the entropy module from attempting to overlay this data on its graph.
self
.
result
(
point
=
point
,
plot
=
False
)
total
+=
1
if
total
>=
self
.
max_points
:
break
...
...
src/binwalk/modules/compression.py
View file @
52cf4db9
#
!/usr/bin/env python
#
Performs raw decompression of various compression algorithms (currently, only deflate).
import
os
import
binwalk.core.C
...
...
src/binwalk/modules/entropy.py
View file @
52cf4db9
# Calculates and optionally plots the entropy of input files.
import
os
import
math
import
binwalk.core.common
...
...
src/binwalk/modules/extractor.py
View file @
52cf4db9
# Performs extraction of data that matches extraction rules.
# This is automatically invoked by core.module code if extraction has been
# enabled by the user; other modules need not reference this module directly.
import
os
import
re
import
sys
...
...
src/binwalk/modules/general.py
View file @
52cf4db9
# Module to process general user input options (scan length, starting offset, etc).
import
os
import
sys
import
argparse
...
...
src/binwalk/modules/hashmatch.py
View file @
52cf4db9
# Performs fuzzy hashing against files/directories.
# Unlike other scans, this doesn't produce any file offsets, so its results are not applicable to
# some other scans, such as the entropy scan.
# Additionally, this module currently doesn't support certian general options (length, offset, swap, etc),
# as the libfuzzy C library is responsible for opening and scanning the specified files.
import
os
import
re
import
ctypes
...
...
@@ -110,7 +116,7 @@ class HashMatch(Module):
if
match
<
10
:
fname
=
' '
+
fname
self
.
result
(
percentage
=
match
,
description
=
fname
)
self
.
result
(
percentage
=
match
,
description
=
fname
,
plot
=
False
)
def
_compare_files
(
self
,
file1
,
file2
):
'''
...
...
src/binwalk/modules/heuristics.py
View file @
52cf4db9
#!/usr/bin/env python
# Routines to perform Monte Carlo Pi approximation and Chi Squared tests.
# Routines to perform Chi Squared tests.
# Used for fingerprinting unknown areas of high entropy (e.g., is this block of high entropy data compressed or encrypted?).
# Inspired by people who actually know what they're doing: http://www.fourmilab.ch/random/
...
...
src/binwalk/modules/signature.py
View file @
52cf4db9
# Basic signature scan module. This is the default (and primary) feature of binwalk.
import
binwalk.core.magic
import
binwalk.core.smart
import
binwalk.core.parser
...
...
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