From 1160474b2331879ee9de6c101026abb4d63cadd4 Mon Sep 17 00:00:00 2001 From: Asim Aziz <41350723+45im@users.noreply.github.com> Date: Sun, 3 Sep 2023 23:03:46 +0100 Subject: [PATCH] smbmap commandline changes (#208) * Update ldap-search.py Removed extra quotes after in manual command * Update ldap-search.py Hi Tib3rius ldapsearch has updated syntax. -h and -p have been Deprecated in favor of -H New syntax is -H ldap://: * 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')