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

Function pentest_beacon_track

webapp_modern.py:12751–12770  ·  view source on GitHub ↗

Start beacon tracking

()

Source from the content-addressed store, hash-verified

12749 'count': 0
12750 }), 400
12751
12752 # Run both scans
12753 arp_hosts = run_arp_scan_localnet(interface)
12754 nmap_hosts = run_nmap_ping_scan(network)
12755
12756 # Combine results, preferring ARP data when available
12757 combined_hosts = {}
12758
12759 # Start with nmap results
12760 for ip, data in nmap_hosts.items():
12761 combined_hosts[ip] = {
12762 'ip': ip,
12763 'mac': data.get('mac', ''),
12764 'hostname': data.get('hostname', ''),
12765 'status': data.get('status', 'up'),
12766 'vendor': data.get('vendor', ''),
12767 'source': 'nmap'
12768 }
12769
12770 # Overlay ARP results (more reliable for MAC addresses)
12771 for ip, data in arp_hosts.items():
12772 if ip in combined_hosts:
12773 # Update existing entry with ARP data

Callers

nothing calls this directly

Calls 3

start_beacon_trackingMethod · 0.80
errorMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected