I hereby claim:
- I am auscompgeek on github.
- I am auscompgeek (https://keybase.io/auscompgeek) on keybase.
- I have a public key ASAl9lrYfmjshIR18YSkAOi3xRAdZR43EU4as9IsAvDZmwo
To claim this, I am signing this object:
| #!/usr/bin/env python3 | |
| import binascii | |
| import enum | |
| import typing | |
| class Mode(enum.IntEnum): | |
| RAIL = 0 | |
| FERRY = 1 |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python3 | |
| import hashlib | |
| import sys | |
| f = open(sys.argv[1], 'rb') | |
| ce_version = f.read(4) | |
| assert ce_version == b'CE01' |
| #!/usr/bin/env python3 | |
| """ | |
| Utility to change settings on the OpenMesh OM5P-AN and OM5P-AC running FRC OpenWrt. | |
| One can flash the radio firmware using ap51-flash <https://github.com/ap51-flash/ap51-flash>. | |
| This is also what the official utility uses to flash the radio firmware. | |
| You'll need to download the official utility to grab a copy of the firmware. | |
| """ |
| pkgbase = indicator-kdeconnect | |
| pkgdesc = Integrate KDEConnect on desktop environments that use AppIndicators (e.g. Unity) | |
| pkgver = 0.9.1 | |
| pkgrel = 1 | |
| epoch = 1 | |
| url = https://github.com/bajoja/indicator-kdeconnect | |
| arch = any | |
| license = GPL | |
| makedepends = cmake | |
| depends = libappindicator-gtk3 |
Writeup by @auscompgeek.
Disclaimer: I did not participate in CySCA 2017. I simply saw this challenge (and a number of people struggling over it) and found it interesting. As such, I do not have the full description of the challenge.
Competitors were provided with a file tree.py. I have attached it for prosperity.
Before attempting to solve this challenge, it should be noted (from the shebang line) that this is a Python 2 program.
| #!/usr/bin/env python3 | |
| digits = '0123456789' | |
| decrement_map = dict(zip(digits[1:], digits)) | |
| def solve(N: str): | |
| m = N[0] | |
| for i, x in enumerate(N): | |
| if m <= x: |
| Delivered-To: [email protected] | |
| Received-SPF: Pass (zoho.com: domain of [email protected] designates 65.54.190.187 as permitted sender ) client-ip: 65.54.190.187 | |
| Received-SPF: pass (zoho.com: domain of hotmail.com designates 65.54.190.139 as permitted sender) client-ip=65.54.190.139; [email protected]; helo=BAY004-OMC3S1.hotmail.com; | |
| Authentication-Results: mx.zoho.com; | |
| spf=pass (zoho.com: domain of hotmail.com designates 65.54.190.139 as permitted sender) [email protected]; | |
| Received: from BAY004-OMC3S1.hotmail.com (bay004-omc3s1.hotmail.com [65.54.190.139]) by mx.zohomail.com | |
| with SMTPS id 147922693688124.64277573519496; Tue, 15 Nov 2016 08:22:16 -0800 (PST) | |
| Received: from EUR01-VE1-obe.outbound.protection.outlook.com ([65.54.190.187]) by BAY004-OMC3S1.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); | |
| Tue, 15 Nov 2016 08:22:15 -0800 | |
| Received: from VE1EUR01FT016.eop-EUR01.prod.protection.outlook.com |
Opal is the public transport smartcard ticketing system in Sydney, Australia.
Opal cards are MIFARE DESFire EV1 cards, with the application ID 0x314553.
All files are restricted except for file 7, which is freely readable.
The [official Android app][Opal Travel] can interpret this free read data. Much of the information here was derived by reverse engineering this app.
| [core] | |
| # git default is 7 | |
| # kernel devs like 12 | |
| abbrev = 10 | |
| [alias] | |
| lg = log --graph --pretty=format:'%C(auto)%h%d %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' | |
| id = rev-parse --verify HEAD |