def portScanner(self, mode, ran):
        '''
        simple port scanner works with range of ports
        or with common ports (al-swisre idea)
        '''
        clearScr()
        print "[~] Scanning Ports"

        if mode == 1:
            a = ran.split('-')
            start = int(a[0])
            end = int(a[1])
            for i in range(start, end):
                do_it(self.serverip, i)
        elif mode == 2:
            for port in [80, 21, 22, 2082, 25, 53, 110, 443, 143]:
                do_it(self.serverip, port)

        simple port scanner works with range of ports
        or with common ports (al-swisre idea)
        
fsociety.py