This is a fix for #457 - binwalk can hang with rar archives.
binwalk calls unrar with e, which does not extract paths, and without -y, meaning files won't be overwritten. The tool asks the user if it shall overwrite a file, but given it's called from binwalk without interaction it just hangs.
This changes two things:
use x instead of e to extract paths (so an archive with multiple files with the same name in different subdirectories can be properly extracted)
Pass -y which will answer "yes" to all questions by the tool
This is a fix for #457 - binwalk can hang with rar archives.
binwalk calls unrar with e, which does not extract paths, and without -y, meaning files won't be overwritten. The tool asks the user if it shall overwrite a file, but given it's called from binwalk without interaction it just hangs.
This changes two things: