Skip to content

Instantly share code, notes, and snippets.

[Sat Aug 27 00:39:55 2011] [error] [client 127.0.0.1] Premature end of script headers: OpenAccess.exe
[Sat Aug 27 00:39:55 2011] [error] [client 127.0.0.1] Content-Type: text/html\r\r
[Sat Aug 27 00:39:55 2011] [error] [client 127.0.0.1] \r\r
[Sat Aug 27 00:39:55 2011] [error] [client 127.0.0.1] \r
[Sat Aug 27 00:39:55 2011] [error] [client 127.0.0.1] ("C:\\Projects\\OpenAccess-build-desktop\\debug\\OpenAccess.exe") \r
[Sat Aug 27 00:39:55 2011] [error] [client 127.0.0.1] File does not exist: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/favicon.ico
[Sat Aug 27 00:45:23 2011] [error] [client 127.0.0.1] Premature end of script headers: OpenAccess.exe
[Sat Aug 27 00:45:23 2011] [error] [client 127.0.0.1] This is OpenAccess! \r
[Sat Aug 27 00:45:23 2011] [error] [client 127.0.0.1] ("C:\\Projects\\OpenAccess-build-desktop\\debug\\OpenAccess.exe") \r
[Sat Aug 27 00:45:24 2011] [error] [client 127.0.0.1] File does not exist: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/f
#include <QtGui>
#include <QDebug>
#include <QStringList>
#include <QFile>
#include <QString>
#include <QByteArray>
#include <QTextStream>
#include <cstdio>
Oyster, Student ID and TAT UltraLight
tysonkey@ubuntu:~$ lsnfc
device = ACS ACR122U 00 00 / ACR122U103 - PN532 v1.6 (0x07)
UID=7c5249e4
Several possible matches:
* NXP MIFARE Classic 4k
* NXP MIFARE Plus 4k
UID=04c743ba342380
* NXP MIFARE UltraLight
@vmlemon
vmlemon / gist:1208504
Created September 10, 2011 16:40
A list of files and applications contained on an Oyster card
tyson@UmBongo:~/nfc-tools-read-only/libfreefare/examples$ lsnfc
device = ACS ACR122U 00 00 / ACR122U103 - PN532 v1.6 (0x07)
UID=048b1ff1ad2680
Several possible matches:
* NXP MIFARE DESFire EV1 2k
* NXP MIFARE Plus 1k
* NXP MIFARE Plus 4k
* NXP JCOP31 or JCOP41
1 tag(s) on device.
@vmlemon
vmlemon / mifare-desfire-oyster-info.c
Created September 10, 2011 16:49
Code for reading the application directory, and obtaining a list of files from an Oyster card. Based on code from LibFreeFare.
/*-
* Copyright (C) 2010, Romain Tartiere.
* Copyright (C) 2011, Tyson Key.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
package DemoProject.Demo;
import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;
import android.view.View.OnClickListener;
import android.view.View;
import android.os.Bundle;
import android.widget.*;
import android.app.Dialog;
tyson@UmBongo:~$ nfc-list
nfc-list uses libnfc 1.5.0 (r1122)
Connected to NFC device: ACS ACR122U 00 00 / ACR122U103 - PN532 v1.6 (0x07)
2 ISO14443B passive target(s) found:
PUPI: 34 ab 02 00
Application Data: 30 00 2b e0
Protocol Info: 77 21 71
PUPI: a2 a6 02 00
Application Data: 30 00 2b e0
InListPassiveTarget
|
Reader | ------ Number of tags
to | | ?
PC | | |---|
--------- | | | | Protocol Info
| | | | | | |
0000 d5 4b 01 01 50 34 ab 02 00 30 00 2b e0 77 21 71
(6:27:04 PM) The topic for #puredarwin is: Welcome to #puredarwin | http://www.puredarwin.org/
(7:19:22 PM) rascharles [827f0523@gateway/web/freenode/ip.130.127.5.35] entered the room.
(7:20:14 PM) rascharles: hello. I was reading an article about Steve Jobs and open source...which led me to pure darwin site
(7:20:38 PM) rascharles: most recent news on the site is from 2009...is puredarwin alive?
(7:40:01 PM) rascharles: anybody really here?
(7:57:01 PM) vmlemon_: Hi rascharles
(9:01:15 PM) rascharles left the room (quit: Ping timeout: 252 seconds).
(9:10:14 PM) rascharles [827f0523@gateway/web/freenode/ip.130.127.5.35] entered the room.
(9:10:33 PM) rascharles: vmlemon_, sorry I got preoccupied troubleshooting a problem
(9:10:46 PM) vmlemon_: No problem.
@vmlemon
vmlemon / gist:1307488
Created October 23, 2011 15:39
Oyster File Settings - Brute-force method
Attempting to read File Settings
===> 0000 90 f5 00 00 01 00 00 |....... |
<=== 0000 00 03 ff 3f 10 00 00 91 00 |...?..... |
Attempting to read File
===> 0000 90 f5 00 00 01 00 00 |....... |
<=== 0000 00 03 ff 3f 10 00 00 91 00 |...?..... |
===> 0000 90 bd 00 00 07 00 00 00 00 00 00 00 00 |............. |
<=== 0000 91 ae |.. |