How to use the aioblescan.Byte function in aioblescan

To help you get started, we’ve selected a few aioblescan examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github frawau / aioblescan / aioblescan / plugins / eddystone.py View on Github external
def __init__(self, type=ESType.url, param="https://goo.gl/m9UiEA"):
        self.power = 0
        self.payload = []     #As defined in https://github.com/google/eddystone/blob/master/protocol-specification.md
        self.payload.append(aios.Byte("Flag Length",b'\x02'))
        self.payload.append(aios.Byte("Flag Data Type",b'\x01'))
        self.payload.append(aios.Byte("Flag Data",b'\x1a'))
        self.payload.append(aios.Byte("Length UUID services",b'\x03'))
        self.payload.append(aios.Byte("Complete List UUID Service",b'\x03'))
        self.payload.append(aios.Byte("Eddystone UUID",b'\xaa'))
        self.payload.append(aios.Byte("...",b'\xfe'))
        self.service_data_length = aios.IntByte("Service Data length",4)
        self.payload.append(self.service_data_length)
        self.payload.append(aios.Byte("Service Data data type value",b'\x16'))
        self.payload.append(aios.Byte("Eddystone UUID",b'\xaa'))
        self.payload.append(aios.Byte("...",b'\xfe'))
        self.type = aios.EnumByte("type",type.value,{ESType.uid.value:"Eddystone-UID",
                                               ESType.url.value:"Eddystone-URL",
                                               ESType.tlm.value:"Eddystone-TLM",
                                               ESType.eid.value:"Eddystone-EID"})
        self.payload.append(self.type)
        self.parsed_payload = b''
        self.type_payload=param
github frawau / aioblescan / aioblescan / plugins / eddystone.py View on Github external
def __init__(self, type=ESType.url, param="https://goo.gl/m9UiEA"):
        self.power = 0
        self.payload = []     #As defined in https://github.com/google/eddystone/blob/master/protocol-specification.md
        self.payload.append(aios.Byte("Flag Length",b'\x02'))
        self.payload.append(aios.Byte("Flag Data Type",b'\x01'))
        self.payload.append(aios.Byte("Flag Data",b'\x1a'))
        self.payload.append(aios.Byte("Length UUID services",b'\x03'))
        self.payload.append(aios.Byte("Complete List UUID Service",b'\x03'))
        self.payload.append(aios.Byte("Eddystone UUID",b'\xaa'))
        self.payload.append(aios.Byte("...",b'\xfe'))
        self.service_data_length = aios.IntByte("Service Data length",4)
        self.payload.append(self.service_data_length)
        self.payload.append(aios.Byte("Service Data data type value",b'\x16'))
        self.payload.append(aios.Byte("Eddystone UUID",b'\xaa'))
        self.payload.append(aios.Byte("...",b'\xfe'))
        self.type = aios.EnumByte("type",type.value,{ESType.uid.value:"Eddystone-UID",
                                               ESType.url.value:"Eddystone-URL",
                                               ESType.tlm.value:"Eddystone-TLM",
                                               ESType.eid.value:"Eddystone-EID"})
        self.payload.append(self.type)
        self.parsed_payload = b''
        self.type_payload=param
github frawau / aioblescan / aioblescan / plugins / eddystone.py View on Github external
def __init__(self, type=ESType.url, param="https://goo.gl/m9UiEA"):
        self.power = 0
        self.payload = []     #As defined in https://github.com/google/eddystone/blob/master/protocol-specification.md
        self.payload.append(aios.Byte("Flag Length",b'\x02'))
        self.payload.append(aios.Byte("Flag Data Type",b'\x01'))
        self.payload.append(aios.Byte("Flag Data",b'\x1a'))
        self.payload.append(aios.Byte("Length UUID services",b'\x03'))
        self.payload.append(aios.Byte("Complete List UUID Service",b'\x03'))
        self.payload.append(aios.Byte("Eddystone UUID",b'\xaa'))
        self.payload.append(aios.Byte("...",b'\xfe'))
        self.service_data_length = aios.IntByte("Service Data length",4)
        self.payload.append(self.service_data_length)
        self.payload.append(aios.Byte("Service Data data type value",b'\x16'))
        self.payload.append(aios.Byte("Eddystone UUID",b'\xaa'))
        self.payload.append(aios.Byte("...",b'\xfe'))
        self.type = aios.EnumByte("type",type.value,{ESType.uid.value:"Eddystone-UID",
                                               ESType.url.value:"Eddystone-URL",
                                               ESType.tlm.value:"Eddystone-TLM",
                                               ESType.eid.value:"Eddystone-EID"})
        self.payload.append(self.type)
github frawau / aioblescan / aioblescan / plugins / eddystone.py View on Github external
def __init__(self, type=ESType.url, param="https://goo.gl/m9UiEA"):
        self.power = 0
        self.payload = []     #As defined in https://github.com/google/eddystone/blob/master/protocol-specification.md
        self.payload.append(aios.Byte("Flag Length",b'\x02'))
        self.payload.append(aios.Byte("Flag Data Type",b'\x01'))
        self.payload.append(aios.Byte("Flag Data",b'\x1a'))
        self.payload.append(aios.Byte("Length UUID services",b'\x03'))
        self.payload.append(aios.Byte("Complete List UUID Service",b'\x03'))
        self.payload.append(aios.Byte("Eddystone UUID",b'\xaa'))
        self.payload.append(aios.Byte("...",b'\xfe'))
        self.service_data_length = aios.IntByte("Service Data length",4)
        self.payload.append(self.service_data_length)
        self.payload.append(aios.Byte("Service Data data type value",b'\x16'))
        self.payload.append(aios.Byte("Eddystone UUID",b'\xaa'))
        self.payload.append(aios.Byte("...",b'\xfe'))
        self.type = aios.EnumByte("type",type.value,{ESType.uid.value:"Eddystone-UID",
                                               ESType.url.value:"Eddystone-URL",
                                               ESType.tlm.value:"Eddystone-TLM",
                                               ESType.eid.value:"Eddystone-EID"})
        self.payload.append(self.type)
        self.parsed_payload = b''
        self.type_payload=param
github frawau / aioblescan / aioblescan / plugins / eddystone.py View on Github external
def __init__(self, type=ESType.url, param="https://goo.gl/m9UiEA"):
        self.power = 0
        self.payload = []     #As defined in https://github.com/google/eddystone/blob/master/protocol-specification.md
        self.payload.append(aios.Byte("Flag Length",b'\x02'))
        self.payload.append(aios.Byte("Flag Data Type",b'\x01'))
        self.payload.append(aios.Byte("Flag Data",b'\x1a'))
        self.payload.append(aios.Byte("Length UUID services",b'\x03'))
        self.payload.append(aios.Byte("Complete List UUID Service",b'\x03'))
        self.payload.append(aios.Byte("Eddystone UUID",b'\xaa'))
        self.payload.append(aios.Byte("...",b'\xfe'))
        self.service_data_length = aios.IntByte("Service Data length",4)
        self.payload.append(self.service_data_length)
        self.payload.append(aios.Byte("Service Data data type value",b'\x16'))
        self.payload.append(aios.Byte("Eddystone UUID",b'\xaa'))
        self.payload.append(aios.Byte("...",b'\xfe'))
        self.type = aios.EnumByte("type",type.value,{ESType.uid.value:"Eddystone-UID",
                                               ESType.url.value:"Eddystone-URL",
                                               ESType.tlm.value:"Eddystone-TLM",
                                               ESType.eid.value:"Eddystone-EID"})
        self.payload.append(self.type)
        self.parsed_payload = b''
        self.type_payload=param
github frawau / aioblescan / aioblescan / plugins / eddystone.py View on Github external
def __init__(self, type=ESType.url, param="https://goo.gl/m9UiEA"):
        self.power = 0
        self.payload = []     #As defined in https://github.com/google/eddystone/blob/master/protocol-specification.md
        self.payload.append(aios.Byte("Flag Length",b'\x02'))
        self.payload.append(aios.Byte("Flag Data Type",b'\x01'))
        self.payload.append(aios.Byte("Flag Data",b'\x1a'))
        self.payload.append(aios.Byte("Length UUID services",b'\x03'))
        self.payload.append(aios.Byte("Complete List UUID Service",b'\x03'))
        self.payload.append(aios.Byte("Eddystone UUID",b'\xaa'))
        self.payload.append(aios.Byte("...",b'\xfe'))
        self.service_data_length = aios.IntByte("Service Data length",4)
        self.payload.append(self.service_data_length)
        self.payload.append(aios.Byte("Service Data data type value",b'\x16'))
        self.payload.append(aios.Byte("Eddystone UUID",b'\xaa'))
        self.payload.append(aios.Byte("...",b'\xfe'))
        self.type = aios.EnumByte("type",type.value,{ESType.uid.value:"Eddystone-UID",
                                               ESType.url.value:"Eddystone-URL",
                                               ESType.tlm.value:"Eddystone-TLM",
                                               ESType.eid.value:"Eddystone-EID"})
        self.payload.append(self.type)
        self.parsed_payload = b''
        self.type_payload=param
github frawau / aioblescan / aioblescan / plugins / eddystone.py View on Github external
def __init__(self, type=ESType.url, param="https://goo.gl/m9UiEA"):
        self.power = 0
        self.payload = []     #As defined in https://github.com/google/eddystone/blob/master/protocol-specification.md
        self.payload.append(aios.Byte("Flag Length",b'\x02'))
        self.payload.append(aios.Byte("Flag Data Type",b'\x01'))
        self.payload.append(aios.Byte("Flag Data",b'\x1a'))
        self.payload.append(aios.Byte("Length UUID services",b'\x03'))
        self.payload.append(aios.Byte("Complete List UUID Service",b'\x03'))
        self.payload.append(aios.Byte("Eddystone UUID",b'\xaa'))
        self.payload.append(aios.Byte("...",b'\xfe'))
        self.service_data_length = aios.IntByte("Service Data length",4)
        self.payload.append(self.service_data_length)
        self.payload.append(aios.Byte("Service Data data type value",b'\x16'))
        self.payload.append(aios.Byte("Eddystone UUID",b'\xaa'))
        self.payload.append(aios.Byte("...",b'\xfe'))
        self.type = aios.EnumByte("type",type.value,{ESType.uid.value:"Eddystone-UID",
                                               ESType.url.value:"Eddystone-URL",
                                               ESType.tlm.value:"Eddystone-TLM",
                                               ESType.eid.value:"Eddystone-EID"})
        self.payload.append(self.type)
        self.parsed_payload = b''
        self.type_payload=param
github frawau / aioblescan / aioblescan / plugins / eddystone.py View on Github external
def __init__(self, type=ESType.url, param="https://goo.gl/m9UiEA"):
        self.power = 0
        self.payload = []     #As defined in https://github.com/google/eddystone/blob/master/protocol-specification.md
        self.payload.append(aios.Byte("Flag Length",b'\x02'))
        self.payload.append(aios.Byte("Flag Data Type",b'\x01'))
        self.payload.append(aios.Byte("Flag Data",b'\x1a'))
        self.payload.append(aios.Byte("Length UUID services",b'\x03'))
        self.payload.append(aios.Byte("Complete List UUID Service",b'\x03'))
        self.payload.append(aios.Byte("Eddystone UUID",b'\xaa'))
        self.payload.append(aios.Byte("...",b'\xfe'))
        self.service_data_length = aios.IntByte("Service Data length",4)
        self.payload.append(self.service_data_length)
        self.payload.append(aios.Byte("Service Data data type value",b'\x16'))
        self.payload.append(aios.Byte("Eddystone UUID",b'\xaa'))
        self.payload.append(aios.Byte("...",b'\xfe'))
        self.type = aios.EnumByte("type",type.value,{ESType.uid.value:"Eddystone-UID",
                                               ESType.url.value:"Eddystone-URL",
                                               ESType.tlm.value:"Eddystone-TLM",
                                               ESType.eid.value:"Eddystone-EID"})
        self.payload.append(self.type)
        self.parsed_payload = b''