Commit b3002561 by devttys0

Added explicit success return codes for gzip and 7z extraction rules

parent 850b32e4
#################################################################################################################
#######################################################################################################################################
# Default extraction rules, loaded when --extract is specified.
#
# <lower-case unique string from binwalk output text>:<desired file extension>:<command to execute>
# <lower-case unique string from binwalk output text>:<desired file extension>:<command to execute>:<successful command return codes>
#
# Note that %e is a place holder for the extracted file name.
#
......@@ -21,11 +21,11 @@
# o gzip
# o lzma
#
#################################################################################################################
#######################################################################################################################################
# Assumes these utilities are installed in $PATH.
^gzip compressed data:gz:gzip -d -f '%e'
^lzma compressed data:7z:7z e -y '%e'
^gzip compressed data:gz:gzip -d -f '%e':0,2
^lzma compressed data:7z:7z e -y '%e':0,1
^xz compressed data:tar:tar xJf '%e'
^bzip2 compressed data:bz2:bzip2 -d -f '%e'
^compress'd data:Z:gzip -d '%e'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment