This file is indexed.

/usr/lib/python3/dist-packages/binwalk/plugins/ziphelper.py is in python3-binwalk 2.1.1-16.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
import binwalk.core.plugin

class ZipHelperPlugin(binwalk.core.plugin.Plugin):
    '''
    A helper plugin for Zip files to ensure that the Zip archive
    extraction rule is only executed once when the first Zip archive
    entry is encountered. This resets once and end of zip archive is
    found.
    '''
    MODULES = ['Signature']

    extraction_active = False

    def scan(self, result):
        if result.valid and result.display:
            if result.description.lower().startswith('zip archive data'):
                if self.extraction_active:
                    result.extract = False
                else:
                    self.extraction_active = True
            elif result.description.lower().startswith('end of zip archive'):
                self.extraction_active = False