zgrab2/lib/ssh/config.go
2017-10-22 21:19:49 -04:00

12 lines
361 B
Go

package ssh
func MakeXSSHConfig() *ClientConfig {
ret := new(ClientConfig)
ret.DontAuthenticate = true // IOT scan ethically, never attempt to authenticate
ret.ClientVersion = pkgConfig.ClientID
ret.HostKeyAlgorithms = pkgConfig.HostKeyAlgorithms.Get()
ret.KeyExchanges = pkgConfig.KexAlgorithms.Get()
ret.Ciphers = pkgConfig.Ciphers.Get()
return ret
}