MCPcopy Create free account
hub / github.com/bettercap/scripts / decorateMac

Function decorateMac

security_monitor/functions.js:56–61  ·  view source on GitHub ↗
(label, mac, vendor)

Source from the content-addressed store, hash-verified

54
55// pretty print mac and vendor when available
56function decorateMac(label, mac, vendor) {
57 if(vendor.length) {
58 return label + ": " + mac + " ( " + vendor + " )";
59 }
60 return label + ": " + mac;
61}
62
63// pretty print endpoint
64function decorateEndpoint(endpoint, padding) {

Callers 3

decorateEndpointFunction · 0.85
decorateAPFunction · 0.85
onNewAPFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected