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

Function updateAP

security_monitor/functions.js:37–48  ·  view source on GitHub ↗
(ap)

Source from the content-addressed store, hash-verified

35
36// update last_seen timestamp and meta values of a known access point
37function updateAP(ap) {
38 var known = db.aps[ap.mac];
39
40 known.last_seen = ap.last_seen;
41 for( var name in ap.meta.values ) {
42 if(!(name in known.meta.values)) {
43 known.meta.values[name] = ap.meta.values[name];
44 }
45 }
46
47 db.aps[ap.mac] = known;
48}
49
50// create a new access point in the database
51function createAP(ap) {

Callers 1

onNewAPFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected