Ejemplo n.º 1
0
	def getCrd(self):
		if emud.getInfoProtocol()[:3].lower() == "sci":
			return True
		
		if emud.getInfoProtocol()[:4].lower() == "card":
			return True
			
		return False
Ejemplo n.º 2
0
    def getText(self):
        if self.type == self.SYSTEM:
            return "System: %s" % emud.getInfoSystem()
        elif self.type == self.CAID:
            return "CaID: %s" % emud.getInfoCaID()
        elif self.type == self.PID:
            return "Pid: %s" % emud.getInfoPid()
        elif self.type == self.PROTOCOL:
            return "Protocol: %s" % emud.getInfoProtocol()
        elif self.type == self.ADDRESS:
            return "Address: %s" % emud.getInfoAddress()
        elif self.type == self.PROVID:
            return "ProvID: %s" % emud.getInfoProvID()
        elif self.type == self.TIME:
            return "Delay time (ms): %s" % emud.getInfoTime()
        elif self.type == self.HOPS:
            return "Hops: %s" % emud.getInfoHops()
        elif self.type == self.CW0:
            return "CW0: %s" % emud.getInfoCW0()
        elif self.type == self.CW1:
            return "CW1: %s" % emud.getInfoCW1()
        elif self.type == self.NAME:
            return "Name: %s" % emud.getInfoName()
        elif self.type == self.NAME_SLIM:
            return emud.getInfoName()
        elif self.type == self.BASIC_INFO:
            return "%s %s:%s %s" % (emud.getInfoSystem(), emud.getInfoCaID(),
                                    emud.getInfoProvID(), emud.getInfoPid())
        elif self.type == self.CRYPT_INFO:
            return "CaID: %s Pid: %s" % (emud.getInfoCaID(), emud.getInfoPid())
        elif self.type == self.SYSTEM_VALUE:
            return str(emud.getInfoSystem())
        elif self.type == self.CAID_VALUE:
            return str(emud.getInfoCaID())
        elif self.type == self.PID_VALUE:
            return str(emud.getInfoPid())
        elif self.type == self.PROTOCOL_VALUE:
            return str(emud.getInfoProtocol())
        elif self.type == self.ADDRESS_VALUE:
            return str(emud.getInfoAddress())
        elif self.type == self.PROVID_VALUE:
            return str(emud.getInfoProvID())
        elif self.type == self.TIME_VALUE:
            return str(emud.getInfoTime())
        elif self.type == self.HOPS_VALUE:
            return str(emud.getInfoHops())
        elif self.type == self.CW0_VALUE:
            return str(emud.getInfoCW0())
        elif self.type == self.CW1_VALUE:
            return str(emud.getInfoCW1())
        elif self.type == self.NAME_VALUE:
            return str(emud.getInfoName())

        return "Error"
Ejemplo n.º 3
0
	def getText(self):
		if self.type == self.SYSTEM:
			return "System: %s" % emud.getInfoSystem()
		elif self.type == self.CAID:
			return "CaID: %s" % emud.getInfoCaID()
		elif self.type == self.PID:
			return "Pid: %s" % emud.getInfoPid()
		elif self.type == self.PROTOCOL:
			return "Protocol: %s" % emud.getInfoProtocol()
		elif self.type == self.ADDRESS:
			return "Address: %s" % emud.getInfoAddress()
		elif self.type == self.PROVID:
			return "ProvID: %s" % emud.getInfoProvID()
		elif self.type == self.TIME:
			return "Delay time (ms): %s" % emud.getInfoTime()
		elif self.type == self.HOPS:
			return "Hops: %s" % emud.getInfoHops()
		elif self.type == self.CW0:
			return "CW0: %s" % emud.getInfoCW0()
		elif self.type == self.CW1:
			return "CW1: %s" % emud.getInfoCW1()
		elif self.type == self.NAME:
			return "Name: %s" % emud.getInfoName()
		elif self.type == self.NAME_SLIM:
			return emud.getInfoName()
		elif self.type == self.BASIC_INFO:
			return "%s %s:%s %s" % (emud.getInfoSystem(), emud.getInfoCaID(), emud.getInfoProvID(), emud.getInfoPid())
		elif self.type == self.CRYPT_INFO:
			return "CaID: %s Pid: %s" % (emud.getInfoCaID(), emud.getInfoPid())
		elif self.type == self.SYSTEM_VALUE:
			return str(emud.getInfoSystem())
		elif self.type == self.CAID_VALUE:
			return str(emud.getInfoCaID())
		elif self.type == self.PID_VALUE:
			return str(emud.getInfoPid())
		elif self.type == self.PROTOCOL_VALUE:
			return str(emud.getInfoProtocol())
		elif self.type == self.ADDRESS_VALUE:
			return str(emud.getInfoAddress())
		elif self.type == self.PROVID_VALUE:
			return str(emud.getInfoProvID())
		elif self.type == self.TIME_VALUE:
			return str(emud.getInfoTime())
		elif self.type == self.HOPS_VALUE:
			return str(emud.getInfoHops())
		elif self.type == self.CW0_VALUE:
			return str(emud.getInfoCW0())
		elif self.type == self.CW1_VALUE:
			return str(emud.getInfoCW1())
		elif self.type == self.NAME_VALUE:
			return str(emud.getInfoName())
		
		return "Error"
Ejemplo n.º 4
0
	def getNet(self):
		if emud.getInfoProtocol()[:3].lower() == "net":
			return True
			
		if not self.getEmu() and not self.getCrd():
			return True
			
		return False
Ejemplo n.º 5
0
	def getFta(self):
		if emud.getInfoProtocol()[:3].lower() == "fta":
			return True
			
		if emud.getInfoCaID() == "":
			return True
			
		return False
Ejemplo n.º 6
0
	def getEmu(self):
		if emud.getInfoProtocol()[:3].lower() == "emu":
			return True
		
		return False