Exemplo n.º 1
0
def run(PluginInfo):
    Content = plugin_helper.Requestlink_list(
        'Passive Analysis Results',
        get_resources('PassiveRobotsAnalysisHTTPRequests'), PluginInfo)
    Content += plugin_helper.resource_linklist(
        'Online Resources', get_resources('PassiveRobotsAnalysisLinks'))
    # Try to retrieve the robots.txt file from all defined resources
    Count = 0
    for Name, Resource in get_resources('PassiveRobots'):
        URL = Resource  # Just for clarity
        # Preparing link chunks for disallowed entries
        LinkStart, LinkFinish = URL.split('/robots.txt')
        LinkStart = LinkStart.strip()
        LinkFinish = LinkFinish.strip()
        # Use the cache if possible for speed
        Transaction = requester.get_transaction(True, URL)
        if Transaction is not None and Transaction.found:
            Content += plugin_helper.ProcessRobots(
                PluginInfo, Transaction.get_raw_response_body(), LinkStart,
                LinkFinish, 'robots%s.txt' % str(Count))
            Count += 1
        else:  # Not found or unknown request error
            Message = "Could not be retrieved using resource: %s" % Resource
            logging.info(Message)
        Content += plugin_helper.TransactionTableForURLList(True, [URL])
    return Content
Exemplo n.º 2
0
def run(PluginInfo):
    resource = get_resources('PassiveSearchEngineDiscoveryCmd')
    resource_online = get_resources('PassiveSearchEngineDiscoveryLnk')
    Content = plugin_helper.CommandDump('Test Command', 'Output', resource,
                                        PluginInfo, [])
    Content += plugin_helper.resource_linklist('Online Resources',
                                               resource_online)
    return Content
Exemplo n.º 3
0
def run(PluginInfo):
    mapping = [['All', 'CMS_FingerPrint_All'],
               ['WordPress', 'CMS_FingerPrint_WordPress'],
               ['Joomla', 'CMS_FingerPrint_Joomla'],
               ['Drupal', 'CMS_FingerPrint_Drupal'],
               ['Mambo', 'CMS_FingerPrint_Mambo']]
    # Vuln search box to be built in core and reused in different plugins:
    Content = plugin_helper.VulnerabilitySearchBox('')
    resource = get_resources('PassiveFingerPrint')
    Content += plugin_helper.resource_linklist('Online Resources', resource)
    Content += plugin_helper.SuggestedCommandBox(
        PluginInfo, mapping, 'CMS Fingerprint - Potentially useful commands')
    return Content
Exemplo n.º 4
0
def run(PluginInfo):
    resource = get_resources('ExternalCookiesAttributes')
    Content = plugin_helper.resource_linklist('Online Hash Cracking Resources',
                                              resource)
    return Content
Exemplo n.º 5
0
def run(PluginInfo):
    resource = get_resources('PassiveSSIDiscoveryLnk')
    Content = plugin_helper.resource_linklist('Online Resources', resource)
    return Content
Exemplo n.º 6
0
def run(PluginInfo):
    resource = get_resources('PassiveErrorMessagesLnk')
    Content = plugin_helper.resource_linklist('Online Resources', resource)
    return Content
Exemplo n.º 7
0
def run(PluginInfo):
    resource = get_resources('ExternalFileExtHandling')
    Content = plugin_helper.resource_linklist('Online Resources', resource)
    return Content
Exemplo n.º 8
0
def run(PluginInfo):
    resource = get_resources('PassiveOldBackupUnreferencedFilesLnk')
    return plugin_helper.resource_linklist('Online Resources', resource)
Exemplo n.º 9
0
def run(PluginInfo):
    resource = get_resources('PassiveAdminInterfaceLnk')
    Content = plugin_helper.resource_linklist('Online Resources', resource)
    return Content
Exemplo n.º 10
0
def run(PluginInfo):
    # Vuln search box to be built in core and resued in different plugins:
    resource = get_resources('PassiveSSL')
    Content = plugin_helper.resource_linklist('Online Resources', resource)
    return Content
Exemplo n.º 11
0
def run(PluginInfo):
    resource = get_resources('ExternalDefaultGuessableUserAccount')
    Content = plugin_helper.resource_linklist('Online Resources', resource)
    return Content
Exemplo n.º 12
0
def run(PluginInfo):
    # Vuln search box to be built in core and resued in different plugins:
    resource = get_resources('PassiveMethods')
    Content = plugin_helper.resource_linklist('Online Resources', resource)
    logging.info("Passive links generated for target")
    return Content
Exemplo n.º 13
0
def run(PluginInfo):
    resource = get_resources('ExternalCredentialsTransport')
    Content = plugin_helper.resource_linklist('Online Resources', resource)
    return Content
Exemplo n.º 14
0
def run(PluginInfo):
    resource = get_resources('ExternalWebAppFingerprint')
    Content = plugin_helper.resource_linklist('Online Resources', resource)
    return Content
Exemplo n.º 15
0
def run(PluginInfo):
    resource = get_resources('WSPassiveSearchEngineDiscoveryLnk')
    return plugin_helper.resource_linklist('Online Resources', resource)
Exemplo n.º 16
0
def run(PluginInfo):
    resource = get_resources('PassiveCrossSiteScripting')
    Content = plugin_helper.resource_linklist('Online Resources', resource)
    return Content
Exemplo n.º 17
0
def run(PluginInfo):
    resource = get_resources('PassiveSQLInjectionLnk')
    Content = plugin_helper.resource_linklist('Online Resources', resource)
    return Content
Exemplo n.º 18
0
def run(PluginInfo):
    resource = get_resources('ExternalBypassingAuthenticationSchema')
    Content = plugin_helper.resource_linklist('Online Resources', resource)
    return Content
Exemplo n.º 19
0
def run(PluginInfo):
    resource = get_resources('ExternalCrossSiteFlashing')
    Content = plugin_helper.resource_linklist('Online Resources', resource)
    return Content
Exemplo n.º 20
0
def run(PluginInfo):
    resource = get_resources('ExternalXMLInjection')
    Content = plugin_helper.resource_linklist('Online Resources', resource)
    return Content
Exemplo n.º 21
0
def run(PluginInfo):
    resource = get_resources('ExternalErrorCodes')
    Content = plugin_helper.resource_linklist('Online Resources', resource)
    return Content
Exemplo n.º 22
0
def run(PluginInfo):
    Content = plugin_helper.VulnerabilitySearchBox('')
    resource = get_resources('ExternalCAPTCHA')
    Content += plugin_helper.resource_linklist('Tools', resource)
    return Content
Exemplo n.º 23
0
def run(PluginInfo):
    resource = get_resources('ExternalSessionManagement')
    Content = plugin_helper.resource_linklist('Online Resources', resource)
    return Content
Exemplo n.º 24
0
def run(PluginInfo):
    resource = get_resources('ExternalRememberPasswordAndReset')
    Content = plugin_helper.resource_linklist('Online Resources', resource)
    return Content