Basic:

Connact to a port if it's open return with 1 if not return with 0.......
and then just print out!