From 21aa9616a9023e1fd895646ce2b16c10eee4fc1b Mon Sep 17 00:00:00 2001 From: Steawth <99520694+steawth@users.noreply.github.com> Date: Sat, 26 Aug 2023 15:35:11 +0000 Subject: [PATCH] Fix smbmap recursive flag case Case of smbmap recursive option is not lowercase --- 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')