Documentation
¶
Index ¶
- Variables
- func Connect(driverName string, dataSourceName string, timeout time.Duration) (ok bool, err error)
- func ConnectMongoDB(addr string, c model.Credential, timeout time.Duration) (ok bool, err error)
- func ConnectMssql(addr string, c model.Credential, timeout time.Duration) (bool, error)
- func ConnectMysql(addr string, c model.Credential, timeout time.Duration) (bool, error)
- func ConnectPostgres(addr string, c model.Credential, timeout time.Duration) (bool, error)
- func ConnectRedis(addr string, c model.Credential, timeout time.Duration) (ok bool, err error)
- type MongoDB
- type Mssql
- type Mysql
- type Postgres
- type Redis
Constants ¶
This section is empty.
Variables ¶
var ( MongoDBName = "mongo" AuthMechanism = "auth_mechanism" )
var (
MssqlName = "mssql"
)
var (
MysqlName = "mysql"
)
var (
PostgresName = "postgres"
)
var (
RedisName = "redis"
)
Functions ¶
func ConnectMongoDB ¶
ConnectMongoDB connects to mongodb srvs https://docs.mongodb.com/manual/reference/connection-string/
func ConnectMssql ¶
ConnectMssql connects to maria or mysql srvs
func ConnectMysql ¶
ConnectMysql connects to maria or mysql srvs
func ConnectPostgres ¶
ConnectPostgres connects to a db and checks if the credentials are valid or not
func ConnectRedis ¶
ConnectRedis connects to maria or Redis srvs
Types ¶
type MongoDB ¶
type MongoDB struct { //stuff Host string Port int // Options StopIfSuccess bool StopIfNetErr bool LogFailedAttempts bool // contains filtered or unexported fields }
func NewMongoDB ¶
func NewMongoDB(host string, port int, sleep time.Duration, timeout time.Duration, logAttempts bool) *MongoDB
NewMongoDB creates a new MongoDB Bruter
func (*MongoDB) Add ¶
func (bruter *MongoDB) Add(cred model.Credential)
Add uses a credential pair for the connection blocking !
type Mssql ¶
type Mssql struct { //stuff Host string Port int // Options StopIfSuccess bool StopIfNetErr bool LogFailedAttempts bool // contains filtered or unexported fields }
Mssql is the bruter
func NewMssql ¶
func NewMssql(host string, port int, sleep time.Duration, timeout time.Duration, logAttempts bool) *Mssql
NewMssql creates a new Mssql Bruter
func (*Mssql) Add ¶
func (bruter *Mssql) Add(cred model.Credential)
Add uses a credential pair for the connection blocking !
type Mysql ¶
type Mysql struct { //stuff Host string Port int // Options StopIfSuccess bool StopIfNetErr bool LogFailedAttempts bool // contains filtered or unexported fields }
Mysql defines config for a specific target, which can be checked with credentials
func NewMysql ¶
func NewMysql(host string, port int, sleep time.Duration, timeout time.Duration, logAttempts bool) *Mysql
NewMysql creates a new Mysql Bruter
func (*Mysql) Add ¶
func (bruter *Mysql) Add(cred model.Credential)
Add uses a credential pair for the connection blocking !
type Postgres ¶
type Postgres struct { //stuff Host string Port int // Options StopIfSuccess bool StopIfNetErr bool LogFailedAttempts bool // contains filtered or unexported fields }
Postgres is the bruter
func NewPostgres ¶
func NewPostgres(host string, port int, sleep time.Duration, timeout time.Duration, logAttempts bool) *Postgres
NewPostgres creates a new Postgres Bruter
func (*Postgres) Add ¶
func (bruter *Postgres) Add(cred model.Credential)
Add uses a credential pair for the connection blocking !
type Redis ¶
type Redis struct { //stuff Host string Port int // Options StopIfSuccess bool StopIfNetErr bool LogFailedAttempts bool // contains filtered or unexported fields }
Redis defines config for a specific target, which can be checked with credentials
func NewRedis ¶
func NewRedis(host string, port int, sleep time.Duration, timeout time.Duration, logAttempts bool) *Redis
NewRedis creates a new Redis Bruter
func (*Redis) Add ¶
func (bruter *Redis) Add(cred model.Credential)
Add uses a credential pair for the connection blocking !