Review Article

DDoS-Capable IoT Malwares: Comparative Analysis and Mirai Investigation

Listing 11

The Reporting Server prints vulnerability results out to standard output.
root/mirai/tools/scanListen.go
Func  handleConnection(conn net.Conn)
  
     // …
      fmt.Printf("d.d.d.d:d s:sn", (
ipInt >> 24) & 0xff, (ipInt >> 16) & 0
xff, (ipInt >> 8) & 0xff, ipInt & 0xff
, portInt, string(usernameBuf), string
(passwordBuf))