From 0e3accecb7924bab02092835f557b872000dcebd Mon Sep 17 00:00:00 2001 From: Asim Aziz <41350723+45im@users.noreply.github.com> Date: Sat, 19 Aug 2023 13:27:26 +0100 Subject: [PATCH] Update smbmap.py Some command line arguments have changed since the update to smbmap. --- autorecon/default-plugins/smbmap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autorecon/default-plugins/smbmap.py b/autorecon/default-plugins/smbmap.py index de500f7..e2ab572 100644 --- a/autorecon/default-plugins/smbmap.py +++ b/autorecon/default-plugins/smbmap.py @@ -14,7 +14,7 @@ class SMBMap(ServiceScan): if service.target.ipversion == 'IPv4': await service.execute('smbmap -H {address} -P {port} 2>&1', outfile='smbmap-share-permissions.txt') await service.execute('smbmap -u null -p "" -H {address} -P {port} 2>&1', outfile='smbmap-share-permissions.txt') - await service.execute('smbmap -H {address} -P {port} -R 2>&1', outfile='smbmap-list-contents.txt') - await service.execute('smbmap -u null -p "" -H {address} -P {port} -R 2>&1', outfile='smbmap-list-contents.txt') + await service.execute('smbmap -H {address} -P {port} -r 2>&1', outfile='smbmap-list-contents.txt') + await service.execute('smbmap -u null -p "" -H {address} -P {port} -r 2>&1', outfile='smbmap-list-contents.txt') await service.execute('smbmap -H {address} -P {port} -x "ipconfig /all" 2>&1', outfile='smbmap-execute-command.txt') await service.execute('smbmap -u null -p "" -H {address} -P {port} -x "ipconfig /all" 2>&1', outfile='smbmap-execute-command.txt')