Exemplo n.º 1
0
def getSiteCredential(config, id, credentialId):
    getParameters = []
    code, data = _GET('/api/3/sites/' + str(id) + '/site_credentials/' +
                      str(credentialId) + '',
                      config,
                      getParameters=getParameters)
    return data
Exemplo n.º 2
0
def getWebAuthHTTPHeaders(config, id):
    getParameters = []
    code, data = _GET('/api/3/sites/' + str(id) +
                      '/web_authentication/http_headers',
                      config,
                      getParameters=getParameters)
    return data
Exemplo n.º 3
0
def getSiteSmtpAlert(config, id, alertId):
    getParameters = []
    code, data = _GET('/api/3/sites/' + str(id) + '/alerts/smtp/' +
                      str(alertId) + '',
                      config,
                      getParameters=getParameters)
    return data
def getAssetServiceVulnerabilities(config, id, protocol, port):
    getParameters = []
    code, data = _GET('/api/3/assets/' + str(id) + '/services/' +
                      str(protocol) + '/' + str(port) + '/vulnerabilities',
                      config,
                      getParameters=getParameters)
    return data
Exemplo n.º 5
0
def getWebAuthHtmlForms(config, id):
    getParameters = []
    code, data = _GET('/api/3/sites/' + str(id) +
                      '/web_authentication/html_forms',
                      config,
                      getParameters=getParameters)
    return data
Exemplo n.º 6
0
def getVulnerabilityCategoryVulnerabilities(config, id):
    getParameters = []
    code, data = _GET('/api/3/vulnerability_categories/' + str(id) +
                      '/vulnerabilities',
                      config,
                      getParameters=getParameters)
    return data
Exemplo n.º 7
0
def getVulnerabilityExceptionExpiration(config, id):
    getParameters = []
    code, data = _GET('/api/3/vulnerability_exceptions/' + str(id) +
                      '/expires',
                      config,
                      getParameters=getParameters)
    return data
Exemplo n.º 8
0
def getVulnerabilityReferenceVulnerabilities(config, id):
    getParameters = []
    code, data = _GET('/api/3/vulnerability_references/' + str(id) +
                      '/vulnerabilities',
                      config,
                      getParameters=getParameters)
    return data
def getVulnerabilityValidations(config, id, vulnerabilityId):
    getParameters = []
    code, data = _GET('/api/3/assets/' + str(id) + '/vulnerabilities/' +
                      str(vulnerabilityId) + '/validations',
                      config,
                      getParameters=getParameters)
    return data
Exemplo n.º 10
0
def getSiteScanSchedule(config, id, scheduleId):
    getParameters = []
    code, data = _GET('/api/3/sites/' + str(id) + '/scan_schedules/' +
                      str(scheduleId) + '',
                      config,
                      getParameters=getParameters)
    return data
Exemplo n.º 11
0
def getSupersedingSolutions(config, id, rollup=None):
    getParameters = []
    if rollup is not None:
        getParameters.append('rollup=' + rollup)
    code, data = _GET('/api/3/solutions/' + str(id) + '/superseding',
                      config,
                      getParameters=getParameters)
    return data
Exemplo n.º 12
0
def getTags(config, name=None, type=None):
    getParameters = []
    if name is not None:
        getParameters.append('name=' + name)
    if type is not None:
        getParameters.append('type=' + type)
    code, data = _GET('/api/3/tags', config, getParameters=getParameters)
    return data
Exemplo n.º 13
0
def getSiteScans(config, id, active=None):
    getParameters = []
    if active is not None:
        getParameters.append('active=' + active)
    code, data = _GET('/api/3/sites/' + str(id) + '/scans',
                      config,
                      getParameters=getParameters)
    return data
Exemplo n.º 14
0
def getAssetGroups(config, type=None, name=None):
    getParameters = []
    if type is not None:
        getParameters.append('type=' + type)
    if name is not None:
        getParameters.append('name=' + name)
    code, data = _GET('/api/3/asset_groups',
                      config,
                      getParameters=getParameters)
    return data
def getVulnerabilityChecks(config,
                           search=None,
                           safe=None,
                           potential=None,
                           requiresCredentials=None,
                           unique=None,
                           type=None):
    getParameters = []
    if search is not None:
        getParameters.append('search=' + search)
    if safe is not None:
        getParameters.append('safe=' + safe)
    if potential is not None:
        getParameters.append('potential=' + potential)
    if requiresCredentials is not None:
        getParameters.append('requiresCredentials=' + requiresCredentials)
    if unique is not None:
        getParameters.append('unique=' + unique)
    if type is not None:
        getParameters.append('type=' + type)
    code, data = _GET('/api/3/vulnerability_checks',
                      config,
                      getParameters=getParameters)
    return data
Exemplo n.º 16
0
def getAssetGroup(config, id):
    getParameters = []
    code, data = _GET('/api/3/asset_groups/' + str(id) + '',
                      config,
                      getParameters=getParameters)
    return data
Exemplo n.º 17
0
def getScanTemplates(config):
    getParameters = []
    code, data = _GET('/api/3/scan_templates',
                      config,
                      getParameters=getParameters)
    return data
Exemplo n.º 18
0
def getScanTemplate(config, id):
    getParameters = []
    code, data = _GET('/api/3/scan_templates/' + str(id) + '',
                      config,
                      getParameters=getParameters)
    return data
Exemplo n.º 19
0
def getReport(config, id):
    getParameters=[]
    code, data = _GET('/api/3/reports/' + str(id) + '', config, getParameters=getParameters)
    return data
Exemplo n.º 20
0
def getReportTemplates(config):
    getParameters=[]
    code, data = _GET('/api/3/report_templates', config, getParameters=getParameters)
    return data
Exemplo n.º 21
0
def getReportFormats(config):
    getParameters=[]
    code, data = _GET('/api/3/report_formats', config, getParameters=getParameters)
    return data
Exemplo n.º 22
0
def getReportInstance(config, id, instance):
    getParameters=[]
    code, data = _GET('/api/3/reports/' + str(id) + '/history/' + str(instance) + '', config, getParameters=getParameters)
    return data
Exemplo n.º 23
0
def getScanEngineSites(config, id):
    getParameters = []
    code, data = _GET('/api/3/scan_engines/' + str(id) + '/sites',
                      config,
                      getParameters=getParameters)
    return data
Exemplo n.º 24
0
def getScanEnginePools(config):
    getParameters = []
    code, data = _GET('/api/3/scan_engine_pools',
                      config,
                      getParameters=getParameters)
    return data
Exemplo n.º 25
0
def getAssetGroupSearchCriteria(config, id):
    getParameters = []
    code, data = _GET('/api/3/asset_groups/' + str(id) + '/search_criteria',
                      config,
                      getParameters=getParameters)
    return data
def vulnerabilityCheck(config, id):
    getParameters = []
    code, data = _GET('/api/3/vulnerability_checks/' + str(id) + '',
                      config,
                      getParameters=getParameters)
    return data
def getAssetVulnerabilities(config, id):
    getParameters = []
    code, data = _GET('/api/3/assets/' + str(id) + '/vulnerabilities',
                      config,
                      getParameters=getParameters)
    return data
def getVulnerabilityCheckTypes(config):
    getParameters = []
    code, data = _GET('/api/3/vulnerability_checks_types',
                      config,
                      getParameters=getParameters)
    return data
def getVulnerabilityChecksForVulnerability(config, id):
    getParameters = []
    code, data = _GET('/api/3/vulnerabilities/' + str(id) + '/checks',
                      config,
                      getParameters=getParameters)
    return data
Exemplo n.º 30
0
def downloadReport(config, id, instance):
    getParameters=[]
    code, data = _GET('/api/3/reports/' + str(id) + '/history/' + str(instance) + '/output', config, getParameters=getParameters)
    return data