# Check the return value to see if extraction was successful or not
ifrvalincodes:
retval=True
...
...
@@ -935,7 +935,33 @@ class Extractor(Module):
binwalk.core.common.warning("Extractor.execute failed to run external extractor '%s': %s, '%s' might not be installed correctly"%(str(cmd),str(e),str(cmd)))
retval=None
iftmpisnotNone:
tmp.close()
return(retval,'&&'.join(command_list))
defshell_call(self,command):
# Fork a child to drop privs
child_pid=os.fork()
ifchild_pidis0:
# Switch to unprivileged user, if one has been set