safespray

command module
v0.0.0-...-aee2851 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 8 Imported by: 0

README

SafeSpray

A simple smb login password spraying tool written in go that aims to prevent account lockouts.
The difference between this tool and others is that it will only perform password spraying on accounts that meet the following criteria:

  1. has a badpwdcount equal to 0
  2. has a username that is present in the provided userlist flag
  3. does not end in $ (computer accounts usually though this should not ever be hit since it only queries user objects)
  4. is not an account in ignoreArray (see isIgnorable function)

Also, to get this information it will query all ldap users at the time the password spray is performed, therefore a valid user account is needed (in most environments).

Obviously this will not be applicable to all types of engagements, but it should work great on internal (non-stealth) pentesting engagements.

This way you really shouldn't need to worry about the password policy as long as it allows more than 1 failed login attempt.

All this said, test it on your own first, I am not responsible for account lockouts.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL