MCPcopy Create free account
hub / github.com/beefproject/beef / checkHosts

Method checkHosts

modules/network/ping_sweep_java/pingSweep.java:74–82  ·  view source on GitHub ↗
(List<InetAddress> inetAddresses)

Source from the content-addressed store, hash-verified

72 }
73
74 private static String checkHosts(List<InetAddress> inetAddresses) throws IOException {
75 String alive = "";
76 for (InetAddress inetAddress : inetAddresses) {
77 if (inetAddress.isReachable(timeout)) {
78 alive += inetAddress.toString() + "\n";
79 }
80 }
81 return alive;
82 }
83}

Callers 1

getAliveHostsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected