Plugin updates.

Added an NTP nmap plugin.
Updated SIP plugin.
This commit is contained in:
Tib3rius 2021-10-06 11:49:11 -04:00
parent 5a12fff6ae
commit ee3dc91668
4 changed files with 17 additions and 4 deletions

View File

@ -92,6 +92,19 @@ class NmapNNTP(ServiceScan):
async def run(self, service):
await service.execute('nmap {nmap_extra} -sV -p {port} --script="banner,nntp-ntlm-info" -oN "{scandir}/{protocol}_{port}_nntp_nmap.txt" -oX "{scandir}/xml/{protocol}_{port}_nntp_nmap.xml" {address}')
class NmapNTP(ServiceScan):
def __init__(self):
super().__init__()
self.name = "Nmap NTP"
self.tags = ['default', 'safe', 'ntp']
def configure(self):
self.match_service_name('^ntp')
async def run(self, service):
await service.execute('nmap {nmap_extra} -sV -p {port} --script="banner,(ntp* or ssl*) and not (brute or broadcast or dos or external or fuzzer)" -oN "{scandir}/{protocol}_{port}_ntp_nmap.txt" -oX "{scandir}/xml/{protocol}_{port}_ntp_nmap.xml" {address}')
class NmapPOP3(ServiceScan):
def __init__(self):

View File

@ -8,7 +8,7 @@ class NmapSIP(ServiceScan):
self.tags = ['default', 'safe', 'sip']
def configure(self):
self.match_service_name('^asterisk')
self.match_service_name(['^asterisk', '^sip'])
async def run(self, service):
await service.execute('nmap {nmap_extra} -sV -p {port} --script="banner,sip-enum-users,sip-methods" -oN "{scandir}/{protocol}_{port}_sip_nmap.txt" -oX "{scandir}/xml/{protocol}_{port}_sip_nmap.xml" {address}')
@ -21,7 +21,7 @@ class SIPVicious(ServiceScan):
self.tags = ['default', 'safe', 'sip']
def configure(self):
self.match_service_name('^asterisk')
self.match_service_name(['^asterisk', '^sip'])
def manual(self, service, plugin_was_run):
if service.target.ipversion == 'IPv4':

View File

@ -17,7 +17,7 @@ from autorecon.io import slugify, e, fformat, cprint, debug, info, warn, error,
from autorecon.plugins import Pattern, PortScan, ServiceScan, Report, AutoRecon
from autorecon.targets import Target, Service
VERSION = "2.0.3"
VERSION = "2.0.4"
if not os.path.exists(config['config_dir']):
shutil.rmtree(config['config_dir'], ignore_errors=True, onerror=None)

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "autorecon"
version = "2.0.3"
version = "2.0.4"
description = "A multi-threaded network reconnaissance tool which performs automated enumeration of services."
authors = ["Tib3rius"]
license = "GNU GPL v3"