I currently have a program that scans for open ports on your computer, and appends them to a list (systemPorts). I want to compare systemPorts to another list (vulnerableports) and append those that match to a 3rd list called comparedPorts.
vulnerablePorts = ['21','22','110', etc]
systemPorts = ['22', '80']
comparedPorts = ['22']
I'm not new to python but I've never written something that searches a list for a list of items.
Thank you!