Package modules :: Package packages :: Module zip :: Class Zip
[hide private]
[frames] | no frames]

Class Zip

source code

                  object --+    
                           |    
lib.common.abstracts.Package --+
                               |
                              Zip

Zip analysis package.

Instance Methods [hide private]
 
extract_zip(self, zip_path, extract_path, password)
Extracts a nested ZIP file.
source code
 
is_overwritten(self, zip_path)
Checks if the ZIP file contains another file with the same name, so it is going to be overwritten.
source code
 
get_infos(self, zip_path)
Get information from ZIP file.
source code
 
start(self, path)
Run analysis package.
source code

Inherited from lib.common.abstracts.Package: __init__, check, enum_paths, execute, finish, get_path, get_path_glob, init_regkeys, move_curdir, package_files, set_pids

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from lib.common.abstracts.Package: PATHS, REGKEYS

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

extract_zip(self, zip_path, extract_path, password)

source code 

Extracts a nested ZIP file.

Parameters:
  • zip_path - ZIP path
  • extract_path - where to extract
  • password - ZIP password

is_overwritten(self, zip_path)

source code 

Checks if the ZIP file contains another file with the same name, so it is going to be overwritten.

Parameters:
  • zip_path - zip file path
Returns:
comparison boolean

get_infos(self, zip_path)

source code 

Get information from ZIP file.

Parameters:
  • zip_path - zip file path
Returns:
ZipInfo class

start(self, path)

source code 

Run analysis package.

Raises:
  • NotImplementedError - this method is abstract.
Overrides: lib.common.abstracts.Package.start
(inherited documentation)