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.
JavaScript algorithmsartificial-intelligencebugbountycryptographycyber-threat-intelligencecybersecurity-projectsethical-hackinghacking-toolsmalwarenessusnetwork-monitoringnetwork-securitynmapportscannerpythonpythonprojectsthreat-intelligencevirus-scanning
package brute
import (
"strconv"
"time"
"github.com/jlaffaye/ftp"
)
func BruteFTP(host string, port int, user, password string, timeout time.Duration) (bool, bool) {
conn, err := ftp.Dial(host+":"+strconv.Itoa(port), ftp.DialWithTimeout(timeout))
if err != nil {
return false, false
}
defer func() {
if err := conn.Quit(); err != nil {
_ = err
//fmt.Printf("Failed to send QUIT command: %v\n", err)
}
}()
err = conn.Login(user, password)
if err != nil {
return false, true
}
return true, true
}