From 320d6ab3f00f6d749cd722add0ad423fbe51007e Mon Sep 17 00:00:00 2001 From: blockomat2100 Date: Tue, 9 Nov 2021 14:48:28 +0100 Subject: [PATCH] remove test plugins --- autorecon/test-plugins/__init__.py | 0 autorecon/test-plugins/http_server2.py | 40 -------------------------- 2 files changed, 40 deletions(-) delete mode 100644 autorecon/test-plugins/__init__.py delete mode 100644 autorecon/test-plugins/http_server2.py diff --git a/autorecon/test-plugins/__init__.py b/autorecon/test-plugins/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/autorecon/test-plugins/http_server2.py b/autorecon/test-plugins/http_server2.py deleted file mode 100644 index 0913306..0000000 --- a/autorecon/test-plugins/http_server2.py +++ /dev/null @@ -1,40 +0,0 @@ -from autorecon.plugins import ServiceScan - - -class DirectoryListing(ServiceScan): - - def __init__(self): - super().__init__() - self.name = "Directory Listing" - self.tags = ['default', 'safe', 'http', 'test'] - - def configure(self): - self.match_service_name('^http') - self.match_service_name('^nacn_http$', negative_match=True) - self.add_pattern('

Directory listing for', description='Directory Listing enabled', - plugin_names=["Directory Listing Verify"]) - - async def run(self, service): - await service.execute('curl {http_scheme}://{addressv6}:{port}') - - -class DirectoryListingVerify(ServiceScan): - """ - this is a useless plugin that is only run, if directory listing was found. - """ - - def __init__(self): - super().__init__() - self.run_standalone = False - self.name = "Directory Listing Verify" - self.tags = ['default', 'safe', 'http', 'test'] - - def configure(self): - self.match_service_name('^http') - self.match_service_name('^nacn_http$', negative_match=True) - - async def run(self, service): - await service.execute('curl {http_scheme}://{addressv6}:{port}/?id=1') - - def get_previous_plugin_names(self): - return ["Directory Listing"]