Pi.Alert 3.0

This commit is contained in:
pucherot
2021-04-21 21:37:34 +02:00
parent 6e1160968d
commit 7a41ab25e4
3 changed files with 4 additions and 3 deletions

View File

@@ -586,7 +586,8 @@ def save_scanned_devices (p_arpscan_devices, p_cycle_interval):
VALUES (?, 'Internet', ?, Null, 'queryDNS') """, (cycle, internet_IP) )
# #76 Add Local MAC of default local interface
local_mac_cmd = ["ifconfig `ip route list default | awk {'print $5'}` | grep ether | awk '{print $2}'"]
#local_mac_cmd = ["bash -lc ifconfig `ip route list default | awk {'print $5'}` | grep ether | awk '{print $2}'"]
local_mac_cmd = ["/sbin/ifconfig `ip route list default | awk {'print $5'}` | grep ether | awk '{print $2}'"]
local_mac = subprocess.Popen (local_mac_cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT).communicate()[0].strip()
local_ip_cmd = ["ip route list default | awk {'print $7'}"]

BIN
tar/pialert_3.00.tar Normal file

Binary file not shown.

BIN
tar/pialert_latest.tar Normal file

Binary file not shown.