MCPcopy Create free account
hub / github.com/AutoRecon/AutoRecon / NmapOracle

Class NmapOracle

autorecon/default-plugins/nmap-oracle.py:3–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1from autorecon.plugins import ServiceScan
2
3class NmapOracle(ServiceScan):
4
5 def __init__(self):
6 super().__init__()
7 self.name = "Nmap Oracle"
8 self.tags = ['default', 'safe', 'databases']
9
10 def configure(self):
11 self.match_service_name('^oracle')
12
13 def manual(self, service, plugin_was_run):
14 service.add_manual_command('Brute-force SIDs using Nmap:', 'nmap {nmap_extra} -sV -p {port} --script="banner,oracle-sid-brute" -oN "{scandir}/{protocol}_{port}_oracle_sid-brute_nmap.txt" -oX "{scandir}/xml/{protocol}_{port}_oracle_sid-brute_nmap.xml" {address}')
15
16 async def run(self, service):
17 await service.execute('nmap {nmap_extra} -sV -p {port} --script="banner,(oracle* or ssl*) and not (brute or broadcast or dos or external or fuzzer)" -oN "{scandir}/{protocol}_{port}_oracle_nmap.txt" -oX "{scandir}/xml/{protocol}_{port}_oracle_nmap.xml" {address}')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected