From faf028693bad1c6474abdce2e9c1babba8904060 Mon Sep 17 00:00:00 2001 From: Tib3rius <48113936+Tib3rius@users.noreply.github.com> Date: Sat, 21 Aug 2021 22:20:54 -0400 Subject: [PATCH] Create rsync.py Added rsync plugins. --- plugins/rsync.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 plugins/rsync.py diff --git a/plugins/rsync.py b/plugins/rsync.py new file mode 100644 index 0000000..84e3b53 --- /dev/null +++ b/plugins/rsync.py @@ -0,0 +1,27 @@ +from autorecon import ServiceScan + +class NmapRsync(ServiceScan): + + def __init__(self): + super().__init__() + self.name = 'Nmap Rsync' + self.tags = ['default', 'rsync'] + + def configure(self): + self.match_service_name('^rsync') + + async def run(self, service): + await service.execute('nmap {nmap_extra} -sV -p {port} --script="banner,(rsync* or ssl*) and not (brute or broadcast or dos or external or fuzzer)" -oN "{scandir}/{protocol}_{port}_rsync_nmap.txt" -oX "{scandir}/xml/{protocol}_{port}_rsync_nmap.xml" {address}') + +class RsyncList(ServiceScan): + + def __init__(self): + super().__init__() + self.name = 'Rsync List Files' + self.tags = ['default', 'rsync'] + + def configure(self): + self.match_service_name('^rsync') + + async def run(self, service): + await service.execute('rsync -av --list-only rsync://{address}:{port}', outfile='{protocol}_{port}_rsync_file_list.txt')