Returns the current timestamp in a specific format.
(self)
| 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: |