def serverSecureSettings(self): nessusConverter = NessusConverter(self.nessusClient.securesettings()) nessusConverter.secureSettingsListToStructure() print "[*] Nessus Secure Settings Updated" tableNessusSecureSettings = PrettyTable(["Preferences"]) tableNessusSecureSettings.padding_width = 1 tableNessusSecureSettings.add_row([nessusConverter.nessusStructure.secureSettings.preferences]) print tableNessusSecureSettings
def serverSecureSettings(self): nessusConverter = NessusConverter(self.nessusClient.securesettings()) nessusConverter.secureSettingsListToStructure() print "[*] Nessus Secure Settings Updated" tableNessusSecureSettings = PrettyTable(["Preferences"]) tableNessusSecureSettings.padding_width = 1 tableNessusSecureSettings.add_row( [nessusConverter.nessusStructure.secureSettings.preferences]) print tableNessusSecureSettings
def serverSecureSettingsList(self): nessusConverter = NessusConverter(self.nessusClient.securesettingsList(method="POST")) nessusConverter.secureSettingsListToStructure() print "[*] Nessus Secure Settings" tableNessusSecureSettings = PrettyTable(["Proxy Password", "Proxy Port", "Custom Host", "Proxy Username", "User Agent", "Proxy"]) tableNessusSecureSettings.padding_width = 1 tableNessusSecureSettings.add_row([nessusConverter.nessusStructure.secureSettings.proxyPassword, nessusConverter.nessusStructure.secureSettings.proxyPort, nessusConverter.nessusStructure.secureSettings.customHost, nessusConverter.nessusStructure.secureSettings.proxyUserName, nessusConverter.nessusStructure.secureSettings.userAgent, nessusConverter.nessusStructure.secureSettings.proxy]) print tableNessusSecureSettings
def serverSecureSettingsList(self): nessusConverter = NessusConverter( self.nessusClient.securesettingsList(method="POST")) nessusConverter.secureSettingsListToStructure() print "[*] Nessus Secure Settings" tableNessusSecureSettings = PrettyTable([ "Proxy Password", "Proxy Port", "Custom Host", "Proxy Username", "User Agent", "Proxy" ]) tableNessusSecureSettings.padding_width = 1 tableNessusSecureSettings.add_row([ nessusConverter.nessusStructure.secureSettings.proxyPassword, nessusConverter.nessusStructure.secureSettings.proxyPort, nessusConverter.nessusStructure.secureSettings.customHost, nessusConverter.nessusStructure.secureSettings.proxyUserName, nessusConverter.nessusStructure.secureSettings.userAgent, nessusConverter.nessusStructure.secureSettings.proxy ]) print tableNessusSecureSettings