This code scans ports from start_port to end_port on the specified target.
that port scanning on remote systems without permission from the system owner may violate security laws. Use this code only for testing on your own systems or with appropriate permission.