text: #!/usr/bin/env python3
  
  #
  # MIT License
  #
  # Copyright (c) 2020 EntySec
  #
  # Permission is hereby granted, free of charge, to any person obtaining a copy
  # of this software and associated documentation files (the "Software"), to deal
  # in the Software without restriction, including without limitation the rights
  # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  # copies of the Software, and to permit persons to whom the Software is
  # furnished to do so, subject to the following conditions:
  #
  # The above copyright notice and this permission notice shall be included in all
  # copies or substantial portions of the Software.
  #
  # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  # SOFTWARE.
  #
  
  import os
  
  class load:
      def __init__(self, d3crypt):
          self.d3crypt = d3crypt
  
      def get_module(self, mu, name, folderpath):
          folderpath_list = folderpath.split(".")
          for i in dir(mu):
              if i == name:
                  pass
                  return getattr(mu, name)
              else:
                  if i in folderpath_list:
                      i = getattr(mu, i)
                      return self.get_module(i, name, folderpath)
  
      def import_modules(self, path):
          modules = dict()
  
          for mod in os.listdir(path):
              if mod == '__init__.py' or mod[-3:] != '.py':
                  continue
              else:
                  try:
                      md = path.replace("/", ".").replace("\\", ".") + "." + mod[:-3]
                      mt = __import__(md)
  
                      m = self.get_module(mt, mod[:-3], md)
                      m = m.d3cryptModule(self.d3crypt)
  
                      modules[m.details['name']] = m
                  except:
                      pass
          return modules
  
      def load_modules(self):
          target_commands = self.import_modules("modules")
          return target_commands
  