From ad90ba0b0ac111a4f6754cea2e8469f379bd61f2 Mon Sep 17 00:00:00 2001 From: devttys0 <heffnercj@gmail.com> Date: Mon, 10 Nov 2014 12:29:08 -0500 Subject: [PATCH] Minor shebang signature changes --- src/binwalk/core/magic.py | 2 +- src/binwalk/magic/executables | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/binwalk/core/magic.py b/src/binwalk/core/magic.py index 7b5f882..077b124 100644 --- a/src/binwalk/core/magic.py +++ b/src/binwalk/core/magic.py @@ -744,7 +744,7 @@ class Magic(object): # Split at the first comment delimiter (if any) and strip the result line = line.split('#')[0].strip() # Ignore blank lines and lines that are nothing but comments. - # We also don't support the !mime style line entries. + # We also don't support the '!mime' style line entries. if line and line[0] != '!': # Parse this signature line sigline = SignatureLine(line) diff --git a/src/binwalk/magic/executables b/src/binwalk/magic/executables index d0867d0..c981075 100644 --- a/src/binwalk/magic/executables +++ b/src/binwalk/magic/executables @@ -477,13 +477,13 @@ >8 leshort <0x2911 {invalid} >8 leshort >0x2e92 {invalid} -0 string \x23!/ Executable script, +0 string \x23\x21/ Executable script, >6 byte !0x2F ->>7 byte !0x2F {invalid} ->2 string x shebang: "%s" +>>7 byte !0x2F {invalid} +>2 string x shebang: "%s" -0 string \x23!\x20/ Executable script, +0 string \x23\x21\x20/ Executable script, >7 byte !0x2F ->>8 byte !0x2F {invalid} ->3 string x shebang: "%s" +>>8 byte !0x2F {invalid} +>3 string x shebang: "%s" -- libgit2 0.26.0