MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / get_current_timestamp

Method get_current_timestamp

actions/scanning.py:629–633  ·  view source on GitHub ↗

Returns the current timestamp in a specific format.

(self)

Source from the content-addressed store, hash-verified

627 # Fill DNS hostname gaps and persist discovered MACs to the host DB.
628 for h in hosts:
629 if not h.get('hostname'):
630 h['hostname'] = self.resolve_hostname(h['ip'])
631 mac = (h.get('mac') or '').lower().strip()
632 if mac and mac != '00:00:00:00:00:00':
633 if self.blacklistcheck and (
634 mac in self.mac_scan_blacklist or h['ip'] in self.ip_scan_blacklist):
635 continue
636 try:

Callers 1

__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected