This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| This program uses a Raspberry Pi controlling 5 relays to brute force crack | |
| a VW Premium 4 or 5 radio. | |
| The radio allows two code entry attempts per hour. After each failed attempt, | |
| it writes the attempt count its onboard EEPROM. After two failed attempts, | |
| the radio displays "SAFE" and is locked out for an hour. The radio must | |
| remain powered on for an hour to unlock, which gives two more attempts. If the | |
| radio is powered off and then on again, it will read the attempt count from the | |
| EEPROM and stay locked out for an hour. The radio seems to track attempts only |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 -u | |
| import sys | |
| def bitdiffs(a, b): | |
| diffs = [] | |
| for bitnum, bitweight in enumerate([1, 2, 4, 8, 16, 32, 64, 128]): | |
| if (a & bitweight) != (b & bitweight): | |
| diffs.append(bitnum) | |
| return diffs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import sys | |
| import time | |
| from greatfet import GreatFET | |
| from greatfet.peripherals.gpio import J1, J2, J7, Directions | |
| port, pin = sys.argv[1].upper().strip().split('.') | |
| line = getattr(globals()[port], pin) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| from greatfet import GreatFET | |
| from greatfet.protocol import vendor_requests | |
| from greatfet.peripherals.gpio import J1, Directions | |
| LED1 = (3, 14) | |
| LED2 = (2, 1) | |
| LED3 = (3, 13) | |
| LED4 = (3, 12) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| with open("gpio-scu.txt") as f: | |
| lines = f.read().splitlines() | |
| D = {} | |
| for i, line in enumerate(lines): | |
| jp, lpc_pin, gpio, func = line.split() | |
| gpio_port, gpio_pin = [ int(x) for x in re.findall(r'GPIO(\d)\[(\d+)\]', gpio)[0] ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import os | |
| import subprocess | |
| import time | |
| from greatfet import GreatFET | |
| from greatfet.peripherals.gpio import J1, Directions | |
| line = J1.P3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ wget http://shop-pdp.net/_ftp/asxxxx/asxs5p30.zip | |
| $ unzip asxs5p30.zip | |
| $ cd asxv5pxx/asxmak/linux/build | |
| $ make | |
| $ ./asf2mc8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <!-- Based on https://github.com/jakeh12/atmel-ice-mac-driver --> | |
| <!-- This is a dummy driver which binds to Atmel ICE. It --> | |
| <!-- contains no actual code; its only purpose is to --> | |
| <!-- prevent Apple's USBHID driver from exclusively --> | |
| <!-- opening the device. --> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>CFBundleDevelopmentRegion</key> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| _SONY_MDX_C7900R = ''' | |
| 0x00: 0x01: 0x02: 0x03: 0x04: 0x05: 0x06: 0x07: | |
| ..... ..... ..... ..... ..... ..... ..... ..... | |
| ..... ..... ..... ..... ..... ..... ..... ..... | |
| ..... ..... ..... ..... ..... ..... ..... ..... | |
| ..... ..... ..... ..... ..... ..... ..... ..... | |
| ..... ..... ..... ..... ..... ..... ..... ..... | |
| ..... ..... ..... ..... ..... ..... ..... ..... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # Put a 1571 into double-sided (1571) or single-sided (1541) mode | |
| # using cbmctrl. | |
| if [ $# -lt 1 ]; then | |
| echo "Usage: $0 <unit number> <1541|1571>" | |
| exit 2 | |
| fi |