News for hackers. Stuff that matters.
Re:Scripts I wrote that I use all the time by nullgeo on Thursday October 23, 2025 @02:07PM (#45684923)
One I use a lot is kp, it kills a process listening to a particular TCP port.

  kp () {
           if [ -z "$1" ] then
                   echo "Usage: kp <port>"
                   return 1
           fi
           lsof -nP -iTCP:"$1" -sTCP:LISTEN | awk 'NR>1 {print $2}' | xargs kill -9
   }

There are no comments on this comment yet.