Skip to content

This Repository is a collection of different ethical hacking tools and malware's for penetration testing and research purpose written in python, ruby, rust, c++, go and c.

521 B
Raw Blame
package brute

import (
	"strconv"
	"time"

	"github.com/multiplay/go-ts3"
)

func BruteTeamSpeak(host string, port int, user, password string, timeout time.Duration) (bool, bool) {
	portstr := strconv.Itoa(port)
	hoststr := host + ":" + portstr
	c, err := ts3.NewClient(hoststr, ts3.Timeout(timeout))
	if err != nil {
		return false, false
	}
	defer c.Close()

	err = c.Login(user, password)
	if err != nil {
		return false, true
	}

	if _, err := c.Version(); err != nil {
		return false, true
	}

	return true, true
}