Skip to content

Commit

Permalink
smbmap commandline changes (#208)
Browse files Browse the repository at this point in the history
* Update ldap-search.py

Removed extra quotes after <password> 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://<IP>:<PORT>

* Update smbmap.py

Some command line arguments have changed since the update to smbmap.
  • Loading branch information
45im committed Sep 3, 2023
1 parent 7584476 commit 1160474
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autorecon/default-plugins/smbmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async def run(self, service):
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')

0 comments on commit 1160474

Please sign in to comment.