コード例 #1
0
ファイル: packets.py プロジェクト: RCayre/mirage
	def __init__(self,sequenceNumber=1,destAddr=0xFFFF,destPanID=0xFFFF,srcAddr=0x0,srcPanID=0x1234,data=b""):
		super().__init__(sequenceNumber=sequenceNumber)
		self.name = "Zigbee - Application Data Packet"
		self.srcAddr=helpers.convertAddress(srcAddr)
		self.destAddr=helpers.convertAddress(destAddr)
		self.destPanID=destPanID
		self.data = data
コード例 #2
0
 def __init__(self,
              sequenceNumber=1,
              destAddr=0xFFFF,
              destPanID=0xFFFF,
              srcAddr=0x0,
              frameCounter=0,
              keyType=None,
              securityLevel=None,
              source=None,
              keySequenceNumber=None,
              data=b"",
              mic=b""):
     super().__init__(sequenceNumber=sequenceNumber)
     self.name = "Zigbee - Application Encrypted Data Packet"
     self.srcAddr = helpers.convertAddress(srcAddr)
     self.destAddr = helpers.convertAddress(destAddr)
     self.destPanID = destPanID
     self.frameCounter = frameCounter
     self.keyType = ZigbeeApplicationEncryptedData.keyTypes.index(
         keyType
     ) if keyType in ZigbeeApplicationEncryptedData.keyTypes else keyType
     self.securityLevel = ZigbeeApplicationEncryptedData.securityLevels.index(
         securityLevel
     ) if securityLevel in ZigbeeApplicationEncryptedData.securityLevels else securityLevel
     self.source = helpers.convertAddress(source)
     self.keySequenceNumber = keySequenceNumber
     self.data = data
     self.mic = mic
コード例 #3
0
ファイル: packets.py プロジェクト: RCayre/mirage
	def __init__(self,sequenceNumber=1,destAddr=0xFFFF,srcAddr=0x0,destPanID=0x1234,srcPanID=0x0):
		super().__init__(sequenceNumber=sequenceNumber)
		self.name = "Zigbee - Data Request Packet"
		self.srcAddr=helpers.convertAddress(srcAddr)
		self.destAddr=helpers.convertAddress(destAddr)
		self.destPanID=destPanID
		self.srcPanID=srcPanID
コード例 #4
0
ファイル: packets.py プロジェクト: RCayre/mirage
	def __init__(self,sequenceNumber=1,destAddr=0xFFFF,destPanID=0xFFFF,srcAddr=0x0,srcPanID=0x1234,assignedAddr=0xFFFF,status=None):
		super().__init__(sequenceNumber=sequenceNumber)
		self.name = "Zigbee - Association Response Packet"
		self.srcAddr=helpers.convertAddress(srcAddr)
		self.destAddr=helpers.convertAddress(destAddr)
		self.destPanID=destPanID
		self.assignedAddr=assignedAddr
		self.status=status
コード例 #5
0
ファイル: packets.py プロジェクト: RCayre/mirage
	def __init__(self,sequenceNumber=1,destAddr=0xFFFF,destPanID=0xFFFF,srcAddr=0x0,srcPanID=0x1234,assignedAddr=0xFFFF,reason=None):
		super().__init__(sequenceNumber=sequenceNumber)
		self.name = "Zigbee - Disassociation Notification Packet"
		self.srcAddr=helpers.convertAddress(srcAddr)
		self.destAddr=helpers.convertAddress(destAddr)
		self.srcPanID=srcPanID
		self.destPanID=destPanID
		self.reason=reason
コード例 #6
0
ファイル: packets.py プロジェクト: RCayre/mirage
	def __init__(self,sequenceNumber=1,destAddr=0xFFFF,destPanID=0xFFFF,srcAddr=0x0,srcPanID=0x1234,counter=0,unknown=0,data=b""):
		super().__init__(sequenceNumber=sequenceNumber)
		self.name = "Zigbee - XBee Data Packet"
		self.srcAddr=helpers.convertAddress(srcAddr)
		self.destAddr=helpers.convertAddress(destAddr)
		self.destPanID=destPanID
		self.counter = counter
		self.unknown = unknown
		self.data = data
コード例 #7
0
ファイル: packets.py プロジェクト: RCayre/mirage
	def __init__(self,sequenceNumber=1,destAddr=0xFFFF,destPanID=0xFFFF,srcAddr=0x0,srcPanID=0xFFFF,allocateAddress=False,securityCapability=False,receiverOnWhenIdle=False,powerSource=False,deviceType=False,alternatePanCoordinator=False):
		super().__init__(sequenceNumber=sequenceNumber)
		self.name = "Zigbee - Association Request Packet"
		self.srcAddr=helpers.convertAddress(srcAddr)
		self.destAddr=helpers.convertAddress(destAddr)
		self.destPanID=destPanID
		self.srcPanID=srcPanID
		self.allocateAddress = allocateAddress
		self.securityCapability = securityCapability
		self.receiverOnWhenIdle = receiverOnWhenIdle
		self.powerSource = powerSource
		self.deviceType = deviceType
		self.alternatePanCoordinator = alternatePanCoordinator
コード例 #8
0
ファイル: packets.py プロジェクト: RCayre/mirage
	def __init__(self,sequenceNumber = 1, srcAddr=0x0,srcPanID=0xFFFF,assocPermit=False,coordinator=False,payload=False,routerCapacity=None,endDeviceCapacity=None,extendedPanID=None):
		super().__init__(sequenceNumber=sequenceNumber)
		self.name = "Zigbee - Beacon Packet"
		self.srcAddr=helpers.convertAddress(srcAddr)
		self.srcPanID = srcPanID
		self.assocPermit = assocPermit
		self.coordinator = coordinator
		self.payload = payload
		self.routerCapacity = routerCapacity
		self.endDeviceCapacity = endDeviceCapacity
		self.extendedPanID = extendedPanID
コード例 #9
0
 def __init__(self, sequenceNumber=1, destAddr=0xFFFF, destPanID=0xFFFF):
     super().__init__(sequenceNumber=sequenceNumber)
     self.name = "Zigbee - Beacon Request Packet"
     self.destAddr = helpers.convertAddress(destAddr)
     self.destPanID = destPanID