# 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
...
@@ -143,8 +140,8 @@ class Extractor(Module):
...
@@ -143,8 +140,8 @@ class Extractor(Module):
# Don't run as root, unless explicitly instructed to
# Don't run as root, unless explicitly instructed to
ifuser_info.pw_uid==0:
ifuser_info.pw_uid==0:
raiseModuleException("Binwalk extraction uses many third party utilities, which may not be secure. If you wish to have extraction utilities executed as the current user, use '--run-as=%s' (binwalk itself must be run as root)."%user_info.pw_name)
raiseModuleException("Binwalk extraction uses many third party utilities, which may not be secure. If you wish to have extraction utilities executed as the current user, use '--run-as=%s' (binwalk itself must be run as root)."%user_info.pw_name)
# Run external applications as the current user
# Run external applications as the current user
self.runas_uid=user_info.pw_uid
self.runas_uid=user_info.pw_uid
self.runas_gid=user_info.pw_gid
self.runas_gid=user_info.pw_gid
else:
else:
...
@@ -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