INNER CODE UNIT · Go
len
darama22/Malware-Research-Hub · collections/RamadhanAmizudin-malware/Mirai/mirai/cnc/main.go:97
for tl < len(buf) {
n, err := conn.Read(buf[tl:])
if err != nil {
return err
}
if n <= 0 {
return errors.New("Connection closed unexpectedly")
}
tl += n
}
return nil
}
func netshift(prefix uint32, netmask uint8) uint32 {
return uint32(prefix >> (32 - netmask))
}