Ejemplo n.º 1
0
 def initPlugin(self, info):
     version = AjaxTelemetry().getPluginVersion(info, 'officeonline')
     if version:
         Exploits().verifExploit(info[1], version)
     else:
         print(
             chalk.white('\t[-] Version not found : ', bold=True) +
             chalk.yellow(Config.GLPI_URL + info[0], bold=True))
 def initPlugin(self, info):
     version = AjaxTelemetry().getPluginVersion(info, 'cleanarchivedemails')
     if not version:
         version = self.getVersion(info)
     if version:
         Exploits().verifExploit(info[1], version)
     else:
         print(
             chalk.white('\t[-] Version not found : ', bold=True) +
             chalk.yellow(Config.GLPI_URL + info[0], bold=True))
Ejemplo n.º 3
0
 def checkVersion(self):
     if Config.DEBUG:
         print("[DEBUG] GET : " + Config.GLPI_URL)
     if not Config.VERSION:
         if not AjaxTelemetry().getGLPIVersion():
             r = requests.get(Config.GLPI_URL, verify=False, proxies=Config.PROXY, headers=Config.HEADERS)
             Config.VERSION = self.getVersion(r.content.decode('utf-8')).strip()
         if not Config.VERSION:
             print(chalk.white('[!] Cannot find GLPI Version', bold=True))
             return False
     print(chalk.white('[+] Version of GLPI : ', bold=True) + chalk.yellow(Config.VERSION, bold=True))
     Exploits().verifExploit('GLPI', Config.VERSION)