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

Function decorateAddress

security_monitor/functions.js:143–151  ·  view source on GitHub ↗
(label, mac)

Source from the content-addressed store, hash-verified

141
142// pretty print a MAC depending if it's an IP endpoint or WiFi access point
143function decorateAddress(label, mac) {
144 if( mac in db.endpoints ) {
145 return label + ":\n" + decorateEndpoint(db.endpoints[mac], ' ');
146 } else if( mac in db.aps ) {
147 return label + ":\n" + decorateAP(db.aps[mac], ' ');
148 } else {
149 return label + ': ' + mac + "\n";
150 }
151}
152
153// triggered when a WiFi deauthentication frame is detected
154function onDeauthentication(event) {

Callers 2

onDeauthenticationFunction · 0.85
onHandshakeFunction · 0.85

Calls 2

decorateEndpointFunction · 0.85
decorateAPFunction · 0.85

Tested by

no test coverage detected