def load_pip_requirements(self, files_map=None, freeze=True):
        if files_map is None:
            files_map = self.default_pip_files
        for group, requirements_txt in files_map.items():
            path = Path(requirements_txt)
            if not path.exists() and group.lower() == "all" and freeze:
                cmd = envoy.run("pip freeze")
                self[group].loads(cmd.std_out)
            elif path.exists():
                self[group].load(path)
def _getFileContent(self, file_path):
        try:
            f = open(file_path, 'rb')
            data = f.read()
            f.close()
            sys.stdout.write("[+]\tFile '%s' was loaded for exfiltration.\n" % file_path)
            return data
        except IOError, e:
            sys.stderr.write("[-]\tUnable to read file '%s'.\n%s.\n" % (file_path, e))
            return 1