MCPcopy Index your code
hub / github.com/bettercap/scripts / decorateAP

Function decorateAP

security_monitor/functions.js:81–93  ·  view source on GitHub ↗
(ap, padding)

Source from the content-addressed store, hash-verified

79
80// pretty print access point
81function decorateAP(ap, padding) {
82 var msg = padding + "ESSID: " + ap.hostname + "\n" +
83 padding + decorateMac("BSSID", ap.mac, ap.vendor) + "\n";
84
85 if( ap.meta.values.length > 0 ) {
86 msg += "\n" + padding + "Info:\n";
87 for( var name in ap.meta.values ) {
88 msg += padding + name + ' : ' + ap.meta.values[name] + "\n";
89 }
90 }
91
92 return msg;
93}
94
95// triggered when a new IPv4 or IPv6 endpoint is detected on the LAN
96function onNewEndpoint(event) {

Callers 1

decorateAddressFunction · 0.85

Calls 1

decorateMacFunction · 0.85

Tested by

no test coverage detected