This is a simple network scanner written in python. In order to run this script you need to have installed the scapy module and if you want to use it on windows you need to install npcap too.
To change the ports that you want to scan, you have to edit the ports.txt file.