Some tasks are hanging when monitoring active TCP dumps compared to Nmap scans.
Example for monitoring ongoing Nmap tasks:
while true;
do
ps -eo command | grep nmap | grep -v grep
sleep 2; echo ""; echo ""
done
One use case:
If the task list is manipulated through an editor, the cleanup script changes the file, and the user changes are overwriting what the script is changing.
Second use case:
Tasks are hanging without manipulating the tasklist.
The tasks are enlisted as completed in the task list.
Examples:
Possible solution:
Check the number of running tasks (iterate through processes matching tcpdump), and if the number is one, this process should be terminated.
Some tasks are hanging when monitoring active TCP dumps compared to Nmap scans. Example for monitoring ongoing Nmap tasks:
One use case: If the task list is manipulated through an editor, the cleanup script changes the file, and the user changes are overwriting what the script is changing. Second use case: Tasks are hanging without manipulating the tasklist. The tasks are enlisted as
completed
in the task list. Examples:It should look something like this (with both the
ssh tcpdump
process and thenmap
process):This error makes the worker busy for some time until the task is finally killed.