Addd subprocess timeout into Pholus + cleanup

This commit is contained in:
Jokob-sk
2023-01-26 23:44:54 +11:00
parent 14cb0f46f3
commit 43c2084e15
2 changed files with 79 additions and 56 deletions

View File

@@ -1664,6 +1664,7 @@ def performPholusScan (timeoutSec):
# the scan always lasts 2x as long, so the desired user time from settings needs to be halved
adjustedTimeout = str(round(int(timeoutSec) / 2, 0))
# python3 -m trace --trace /home/pi/pialert/pholus/pholus3.py eth1 -rdns_scanning 192.168.1.0/24 -stimeout 600
pholus_args = ['python3', '/home/pi/pialert/pholus/pholus3.py', interface, "-rdns_scanning", mask, "-stimeout", adjustedTimeout]
# Execute command