Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8" ?>
<feedback>
<report_metadata>
<org_name>google.com</org_name>
<email>noreply-dmarc-support@google.com</email>
<extra_contact_info>http://support.google.com/a/bin/answer.py?answer=2466580</extra_contact_info>
<report_id>9045660581431307587</report_id>
<date_range>
<begin>1424563200</begin>
<end>1424649599</end>
<?xml version="1.0" encoding="UTF-8" ?>
<feedback>
<report_metadata>
<org_name>google.com</org_name>
<email>noreply-dmarc-support@google.com</email>
<extra_contact_info>http://support.google.com/a/bin/answer.py?answer=2466580</extra_contact_info>
<report_id>9543506933766744640</report_id>
<date_range>
<begin>1424476800</begin>
<end>1424563199</end>

Keybase proof

I hereby claim:

  • I am mjg59 on github.
  • I am mjg59 (https://keybase.io/mjg59) on keybase.
  • I have a public key whose fingerprint is 3453 B5A2 F406 03D7 FF9F FAF0 7E0A 399D B24B 3B15

To claim this, I am signing this object:

Copyright (c) <YEAR>, <OWNER>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice
and this list of conditions.
2. Redistributions in binary form must reproduce the above copyright
notice and this list of conditions in the documentation and/or other
materials provided with the distribution.
Package | Core | CPU 0 CPU 2
| | C0 active 4.5% 8.9%
| | POLL 0.5% 2.4 ms 0.0% 0.8 ms
| | C1E-SKL 0.9% 0.4 ms 0.2% 0.5 ms
C2 (pc2) 34.2% | |
C3 (pc3) 17.6% | C3 (cc3) 0.3% | C3-SKL 0.3% 0.4 ms 0.2% 0.6 ms
C6 (pc6) 0.0% | C6 (cc6) 1.2% | C6-SKL 1.2% 0.4 ms 0.8% 1.0 ms
C7 (pc7) 0.0% | C7 (cc7) 58.7% | C7s-SKL 0.1% 2.1 ms 0.0% 0.0 ms
C8 (pc8) 0.0% | | C8-SKL 18.6% 3.3 ms 31.3% 3.6 ms
#!/usr/bin/python
import os
import socket
def encode_packet(data):
output = bytearray()
for i in range(0, len(data)):
tmpoutput = bytearray([0, data[i]])
output.extend(tmpoutput)
#!/usr/bin/python
import os
import socket
def encode_packet(data):
output = bytearray()
for i in range(0, len(data)):
tmpoutput = bytearray([0, data[i]])
output.extend(tmpoutput)
0x26, 0x00, 0xa0, 0x00, 0x97, 0x91, 0x13, 0x0e, 0x13, 0x0e, 0x13, 0x0e, 0x13, 0x0d, 0x13, 0x0e, 0x13, 0x2f, 0x13, 0x0e, 0x13, 0x0e, 0x13, 0x0e, 0x13, 0x0e, 0x12, 0x0e, 0x13, 0x0f, 0x12, 0x0e, 0x13, 0x0f, 0x12, 0x0f, 0x12, 0x0d, 0x13, 0x91, 0x13, 0x2f, 0x13, 0x2f, 0x13, 0x2e, 0x13, 0x0f, 0x12, 0x0f, 0x12, 0x0f, 0x12, 0x0e, 0x13, 0x0e, 0x13, 0x0e, 0x13, 0x0e, 0x12, 0x0f, 0x12, 0x0f, 0x12, 0x2f, 0x13, 0x2f, 0x13, 0x2e, 0x13, 0x2f, 0x13, 0x2f, 0x13, 0x30, 0x12, 0x2e, 0x13, 0x2f, 0x13, 0x00, 0x07, 0x58, 0x96, 0x91, 0x13, 0x0e, 0x13, 0x0e, 0x13, 0x0e, 0x13, 0x0f, 0x12, 0x0e, 0x13, 0x2e, 0x13, 0x0f, 0x12, 0x0e, 0x13, 0x0e, 0x12, 0x0f, 0x13, 0x0e, 0x13, 0x0e, 0x13, 0x0e, 0x12, 0x0f, 0x12, 0x0e, 0x13, 0x0e, 0x13, 0x90, 0x14, 0x2e, 0x13, 0x2f, 0x13, 0x2f, 0x13, 0x0e, 0x13, 0x0e, 0x13, 0x0d, 0x13, 0x0f, 0x12, 0x0e, 0x13, 0x0f, 0x12, 0x0e, 0x13, 0x0e, 0x13, 0x0e, 0x13, 0x2e, 0x13, 0x2f, 0x13, 0x2f, 0x13, 0x2f, 0x13, 0x2e, 0x13, 0x2f, 0x13, 0x2f, 0x13, 0x2e, 0x13, 0x00, 0x0d, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
#!/usr/bin/env python
# Copyright 2016 Mike Ryan
# Copyright 2016 Matthew Garrett
#
# This code will connect to a Bluetooth nuLock and reset the password to 123456
#
# This file is part of PyBT and is available under the MIT license. Refer to
# LICENSE for details.
#!/usr/bin/python
import os
import socket
import sys
def encode_packet(data):
output = bytearray()
for i in range(0, len(data)):
tmpoutput = bytearray([0, data[i]])