How lsof -i can be useful during the privilege escalation phase?


Reading some privilege escalation script I found that one of the enumeration command is lsof -i. How the output could be exploited to privilege escalate?