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
0988b2e2
Commit
0988b2e2
authored
Sep 05, 2021
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup
parent
cc5cf9b2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
extractor.py
src/binwalk/modules/extractor.py
+2
-6
No files found.
src/binwalk/modules/extractor.py
View file @
0988b2e2
...
@@ -49,9 +49,6 @@ class Extractor(Module):
...
@@ -49,9 +49,6 @@ class Extractor(Module):
# squashfs-root-0).
# squashfs-root-0).
UNIQUE_PATH_DELIMITER
=
'
%%
'
UNIQUE_PATH_DELIMITER
=
'
%%
'
# Unprivileged user account to execute external extraction utilities
UNPRIVILEGED_USER_NAME
=
'binwalk_safe_user_69'
TITLE
=
'Extraction'
TITLE
=
'Extraction'
ORDER
=
9
ORDER
=
9
PRIMARY
=
False
PRIMARY
=
False
...
@@ -323,8 +320,7 @@ class Extractor(Module):
...
@@ -323,8 +320,7 @@ class Extractor(Module):
# Update the last directory listing for the next time we
# Update the last directory listing for the next time we
# extract a file to this same output directory
# extract a file to this same output directory
self
.
last_directory_listing
[
self
.
last_directory_listing
[
extraction_directory
]
=
directory_listing
extraction_directory
]
=
directory_listing
def
append_rule
(
self
,
r
):
def
append_rule
(
self
,
r
):
self
.
extract_rules
.
append
(
r
.
copy
())
self
.
extract_rules
.
append
(
r
.
copy
())
...
@@ -575,7 +571,7 @@ class Extractor(Module):
...
@@ -575,7 +571,7 @@ class Extractor(Module):
else
:
else
:
output_directory
=
self
.
extraction_directories
[
path
]
output_directory
=
self
.
extraction_directories
[
path
]
# Make sure runas user can access this directory
# Make sure run
-
as user can access this directory
os
.
chown
(
output_directory
,
self
.
runas_uid
,
self
.
runas_gid
)
os
.
chown
(
output_directory
,
self
.
runas_uid
,
self
.
runas_gid
)
return
output_directory
return
output_directory
...
...
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