(self)
| 20 | self.sd = sk.socket(sk.AF_INET, sk.SOCK_STREAM) |
| 21 | |
| 22 | def run(self): |
| 23 | try: |
| 24 | # connect to the given host:port |
| 25 | self.sd.connect((self.host, self.port)) |
| 26 | print "%s:%d OPEN" % (self.host, self.port) |
| 27 | self.sd.close() |
| 28 | except: pass |
| 29 | |
| 30 | class pyScan: |
| 31 | def __init__(self, args=[]): |