Unlocking The Power Of the Magstripe
Acidus writes "While researching for an embedded systems project (a magstripe enabled Coke machine), I was shocked by the lack of magstripe information: Programs/code that would run on a modern OS were all but nonexistant, articles that were 6-10 years old, etc. Further research proved hard, because I had become google's authoritative source. So Stripe Snoop was born, and is now at 1.5 . Stripe Snoop is a suite of research tools that captures, modifies, validates, generates, analyzes, and shares magstripe data, with an ever-growing database of card formats. Decoding everything from driver's licenses to banking cards, its features can analyze non-standard cards, such as NYC's Metrocard."
The requested URL /acidus/coke.html was not found on this server.
There was also an interesting article in this summer 2600 magazine about magstrips. Some information and code were supplied...
The right to offend is far more important than the right not to be offended. (Rowan Atkinson)
Here's the real link to the article:
Linky.
It would be cool if it didn't suck.
whatz a sphellchekker vern??
I can imagine some card company out there will try and put a stop to this, purely to save their own skins for putting out fairly weak systems.
:)
Could be a useful tool though, I'd love to save car parking charges (place where I park sometimes uses magnetic cards)
Konqueror is nonexistant on Windows, no Safari on Windows either. Is this a hiddon OS troll?
When I was in college they had bar code scanners for the parking gates. That was easy enough to duplicate. But, right when I was leaving they switched to mag stripes. Now it's easy for a new generation to figure them out and make working cards.
Evolution or ID?
Hey all...
I have worked with developing Linux-based solutions with products from MagTek (manufacturer of hundreds of devices like stripe and card/check readers) and I have to point out that you may not find much information on the subject because the programming for such is so simplistic that a manual is not really needed. I am curious if other products from other providers work in a similar fashion.
MagTek devices will decode the stripes for you. The data contained within is sent to the computer in serialized format, so once the string of characters is received, you simply have to break the data into whatever pieces you need by looking for sentinal characters in ISO-defined positions. A dozen lines of code at most will handle this under most common programming languages.
When I was approached by my former employer to create a product with Linux and MagTek devices, (in mid-2000) I found absolutely no documentation on the devices whatsoever on the Net other than sales literature. The customer support personel did send me several pages of specs and such via FedEx Overnight, and when I received them, I saw that most of their then-current product line operated in a similar manner.
If possible, connect your reader device to some sort of I/O port and watch the data that is sent to the port with a terminal program (serial I/O in this case, similar methods used for parallel and USB-style interfaces...) Perform enough tests, and you should be able to get a more than adequate idea on how to parse the data sent.
In case you are really curious, go look at the older (now defunct?) Serial I/O HowTo at linux.org (or one of the mirrors). There are more than enough examples within to show you how to handle any type of serial-based interfacing project.
Hope this helps...
Brian
I't not like a federal offense or anything is it?
I have always been told to take the mag stripe keys from hotels I stay in and cut them up. I wonder what kind of personal info they actually do store on those cards.
Evolution or ID?
i was going post as AC but i dont want people not taking this seriously. i have had to research this technology deeply for legitimate and non legitimate applications for different clients. the reason there is little info or programs or source code -- as mentioned in an issue of 2600.
it is because that there is alot of poor win32 closed source software out there costing $1000 upwards!
all pooorly written in VB and the like by programmers whose pooor coding is more than obvious once a button is pressed or a menu selected.
ramcwin , rencode 2000 being obvious candidates.
it seems this is one of those few areas in software applications where even on the vast breadth of the internet a conspiracy of supression of knowledge . non open code. [not that the code is worth anything to learn from] in order to force the sale of ridiclous 1000 dollar licences for extremely poor code. my project i s free open source mag stripe oswftare compatible with as many reders and writesr as possible including portable code and libraries to embed in dumb terminals for people wanting to make thin open source terminal clients for EPOS systems.
i hate poor elite pricey specialised software.
for instance in a few months a large electronics chain has moved over to linux for their epos. i will make sure their "custom" software does not violate the gpl. [i just applied for a job !!]
Some newer card printers will actually write the magstripe as they print the card. The problem is that they're not too informative as to how you get the magstripe data into the printer to encode.
Usually this is achieved by a setting within the printer driver which defines which stripe (of the three) to write to and how to get the data out of the printing data. The sequence is usually marked out with start and stop character sequences (on Javelin printers these are usually "${n" and "}$" for start and stop, where n is the track number.)
This saves people the trouble of printing the cards and then writing them seperately.
Does anyone know how much data you can store on a typical strip?
It is "Et al." by the way, as it is an abbreviation of "et alii, aliae, or alia..
;)
Also, et al. means "and others" or "and elsewhere" in reference to people or places in text, not a further enumeration of similar entities in a list. I believe "etc." would be grammatically correct.
Turnabout is fair play
When I was at school, in the physics lab, we had a jar of very fine iron powder that was used to demonstrate ferromagnetic liquids properties. We used to pour a little on the backside of a credit card, lightly shake the credit card to spread it around, and we could see the patterns left by the magnetic record on the stripes (which, incidently, weren't located where the visible black stripes were).
I imagine you could do the same with any magnetic card and a little fine iron sawdust that you could make yourself with a grinder.
"A door is what a dog is perpetually on the wrong side of" - Ogden Nash
Maybe you were mildly suprised?
Support the First Amendment. Read at -1
Go do something worthwhile and interesting, like the OP did.
:)
Then you can come back here and bitch about grammar.
Having worked on retail apps, working with magstripes is a pretty trivial thing. Most magstripe readers are either RS-232 or keyboard wedge, and it's quite easy to tell where you have to look for the data you're interested in by just looking at what comes up when you swipe the kind of card you are interested in.
The biggest problem was dealing with keyboard wedge scanners - if your app expects some kind of event, or possibly a dedicated communication channel (like a serial port) you have to muck around with keyboard hooks to make it work.
Oolite: Elite-like game. For Mac, Linux and Windows
If cardreaders become just another peripheral, Bad Shit will take place. Security through obscurity is, or was, a valid tactic, because who in hell had a cardreader? Hopefully the banks will skip the "attempt to outlaw" phase and implement a fix right quick, because "in the meantime" isn't going to be pretty.
The only thing necessary for the triumph of evil is for good men to do nothing. --Edmund Burke
Do not underestimate the power of the magstripe of the force?
This project would open up to many more people if a more simplistic way of interfacing to the card reader was introduced. How 'bout via the soundcard?
I was poking around the links provided on the site, and found this: The simplest magnetic stripe reader. He wrote software to analyze the audio generated by the card when passed over the read head. This means that any old cassette player has a chance at being used to hack magstripes! Any comments on how accurate this method is, versus the F2F decoder chips?
I just got the idea of setting up a computer running Strip Snoop in a public place. Put a single board computer inside, a cheap LDC and card reader outside.
:-)
It should be made to look offical and be housed in an hard-to-destroy case. It would be bolted down on the sidewalk in the middle of the night, near an ATM or in a shopping center.
Have a big sign that says "what is REALLY on your magnetic cards?".
If you are an art student you could pull off doing something like that and get credit for doing instalation art.
...to forget how to program in original basic, I thank you.
Now, get to work on bar codes!
I'm going to go buy a card writer, and make a million selling counterfeit Kinkos cards. BWHAHAHA!
ad logicam Claiming a proposition is false because it was presented as the conclusion of a fallacious argument.
Acidus was recently on episode 56 of Binary Revolution Radio (http://radio.binrev.com/) where we discussed his 2600 article and went into detail about his stripesnoop project. If anyone is interested in learning about the tech behind it or hearing about the thought processes that went into it, they should check it out.
--- The revolution will be digitized! - http://www.binrev.com/ ---
Passports... Hmm?
Argument by analogy is like a bullfinch with seven testicles.
expect a gentle, yet authoritative tapping at the board beneath your lintel in the near future...the Secret Service, the Justice Dept. and the FBI all read /., ya know.
I just visited Singapore and those guys are like ten years into the future compared to us. Everything, and I mean everything, takes debit or credit cards.
From soda machines to subway ticket machines, etc.
It's strange that it's almost only credit cards that's used in the US. The only ones who gain from that is Visa and Mastercard. Debit cards without any fees is the future.
While researching for an embedded systems project (a magstripe enabled Coke machine)
In other words you wanted to get a Coke the other day and didn't have any spare change, right? :)
the green/yellow/red indicates the type of card used. student metrocards light up one color when they are used. if a 40 year old man sets off that color, arrest him for improper use of a student's metrocard (possibly stolen or purchased illegally).
this also indicates MTA employees and senior discounted metrocards.
if you're blacklisted, it will be similar to when you attempt to use an empty card or an expired unlimited card... "INSUFFICIENT FARE"
Couldn't access the site through the computer at work, it was blocked by the Internet filter, something about "Criminal skills". Only application that seemed to have anything to do with the Internet in the taskbar was a Symantec anti-virus/internet shield app. Now why is it a "criminal skill" to know about magcard readers?
Quality, performance, value; you get only two, and you don't always get to pick.
This could save me hassle and money, as well as be an interesting hobby :)
My debit-cards usually only last 6 months. I'm not rough with them. I take it out of my wallet, I swipe it, I put it back. I'm careful to put it between flat cards (with no raised numbers) so the strip doesn't get abused, but still, the stripe wears down. It's a week to 10 days and a nominal fee to get a new card. Imagine making card backups, reapplying some mag material, and re-magging my own card.
Rock on.
It's already been done in the NYC area. Some official looking guys would show up and either replace and existing working ATM or add an ATM to a store, but instead of contacting the banking institutions and dispensing cash, they would just record account and PIN data to be (ab)used later.
Because, you know, there are no syudents that are aged 40 or older.
Has an article about magstripes in the issue thats on newstands now....including sample code/diagrams for using readers and writing your own apps....fwiw
"The saddest words of mice and men, are not those which were, but should have been."
Call me ignorant but this is the first time I realized that the PIN number is stored directly on the magstripe on the card because I assumed no banking system would be that stupid. I assumed the bank system the PIN number and ATM or whatever terminal would simply transmit the PIN as entered. May as well take my money out of the bank and stuff it in coffee cans, it would be just as secure and I wouldn't be charged a service fee.
Have you been to a major US city not in the midwest or south recently?
There are debit card enabled things everywhere in NYC, Chicago, SF, etc...
--- I do not moderate.
Here is a way to make a lock for your front door that will solve the "is she 18?" problem
I always wondered that. I've examined the doors closely and haven't seen any way for them to power the locks or communicate with them. I presume communication would be necessary to invalidate the access previously granted to lost or compromised cards.
I've just assumed that the power is delivered via hinges and wires buried in the door (which would mean custom doors or some sophisticated drilling to retrofit). I suppose you could have induction powering and communication of the reader via the door jam (simplifying installs).
I won't use your info for nefarious purposes... really, I wont!
Cheers! I've been trying to research magstrip info for over 4 years. Most of the stuff that is out there is "commercial" information- anyone ever price the writers? A bit pricy for a hobby application.. Now if someone could just figure out how to add money to the Jillians Players Card...
I write software for kiosks, Internet, ad based etc. We deal with coin, bill, credit cards, pay per use cards etc.
All we ever needed to do was contact the companies that we wanted to support, and they would always supply is with documentation, and even source code.
All that we needed to say was, we want to support your and we need specifications. Within a few days we always get it...
The main thing with this type of hardware, is 9 out of 10 the manufacture only supplies them to companies that will be supplying their own type of interface to the bill validator, so they always have some type of spec sheet available to developers.
TruePunk | Games
Actually the just have to change out battery packs occasionally. It's kinda like the little automatic flushers on toilets. No wires - just occasionally the batteries have to be replaced.
slashdot username - at - email.domain.name
If the data on the card is at all encrypted, then the DMCA applies and all three of your acts are illegal
This post written under Gentoo-linux with an SCO IP license.
Asshat may have been coined by JEFFK of SA originally though.
(On Topic: Uhmmm, beowulf cluster of linux powered magstripe reading Tenchi Muyo realdolls, attacking Darl McBride!)
Don't worry, most ATM cards double as credit cards these days anyway. There's no PIN number to buy stuff with a credit card -- they make you sign your name. Scanning the PIN number off a card is difficult enough, but can you imagine the astronomical odds that your wallet will get stolen by a thief with the same name as you?
Breakfast served all day!
Actually, many access control card schemes incorporate an "issue code" as part of the data on the card. Once a card with a "later" issue code in a sequence is used, the lock recognizes that "earlier" issue codes are no longer valid. No communication back to a server is needed, although any other offline locks to which a given card has access of course won't be updated until the new card is used in them. The sequence of available numbers for issues codes is simpply made large enough to make it impractical/improbable for someone to manage to cycle through the entire series just to cause an older card to become valid again.
And, on the subject of communications - some locks are fully "online" (and the communications and power cables are very unobtrusive), and others are offline (and communications may be done either manually on a periodic schedule, uploading the data from a reader via a PDA and then to a server, or wirelessly through an RF transmitter). In either case for offline locks, power can be supplied by a 'pack' of several rechargeable or replaceable AA batteries. If the hardware/processor/etc., in the door is optimized enough for power consumption, a single set of 4 AAs can last several months, making the maintenance sufficiently cheap.
I've just assumed that the power is delivered via hinges and wires buried in the door (which would mean custom doors or some sophisticated drilling to retrofit).
That retrofitting expense is why some facilities choose the wireless or offline versions.
Once a card with a "later" issue code in a sequence is used, the lock recognizes that "earlier" issue codes are no longer valid.
Presumably they don't honor newer issue codes UNLESS the "open" code also matches. If they did honor newer issue codes even if the open code was wrong, I could just DoS room locks when I checked in by swiping my card in everyone's lock..
She said her manager swears by that method.
Any idea why this works? Does the plastic wrap just push the card a little closer to the reader?
(For the non-USians, Saran Wrap is a thin clear plastic wrap, usually used for wrapping food items.)
You are telling me a 40 year old man cannot
be a student???
student metrocards are intended for students still in high school or younger. college students pay full rate.
When the poster said "student," I'm sure he was talking about the Metrocards that the city issues to elementary and secondary students; there's no general "student" discount for Metrocards. They're usually valid for a maximum of three trips per day, and they're only valid on days that school is in session. And it's pretty unlikely that a 40-year-old would be in junior high.
Hmmm...
Pretty soon, we'll see a market of "Collision Protection" card swipers. Get into a vehicular incident (there are RARELY any "accidents", hence we need to get rid of that "ego assuaging" term and call it what it is... an incident) and drivers will be compelled by state vehicle code to swipe one another's stripes. But, imagine nefarios staging accidents to swipe targetted victim's information. This could become the newest form of fraud, theft and abuse (or, a tool of extortion, bribery, blackmail, and robbery).
==========
Back around 2000 or 2001 I was listening to NPR, I believe.
The topic was about identity cards or such, and there was somewhere in the conversation the mention that east coast bars/night clubs would swipe the entrants' driver's license, ostensibly for 2 main reasons:
1. keep out the underaged
2. keep out those previously ejected
However, someone mentioned having mysteriously received "Happy Birthday" and "Thank you for being a repeat customer... Here is a free pass..."
One club being interviewed (I think it was in New York or Massachussets) sternly claimed it was not violating privacy information, and that anyway it had a right to identify and screen its customers or those attempting to enter, mainly to avoid underage drinking and other issues. They claimed they were not abusing information.
That set off bells of wariness and anger in me.
NO club or bar has any business recording the information on a mag stripe. To my mind, that stripe should only be read by government agencies, such as law enforcement or SSA (Social Securty Administration) or Motor Vehicles Depts (after all, they are issuing it) and maybe the vehicle owner's or user's insurer, or by medical emergency units trying to save someones life.
But, I had resolved to NEVER patronize a club or entertainment venue that tries to swipe my card. My mind is set that when I show it, I hold it and tilt it for the hologram to reveal itself, and I ask what they are going to do with it or whether it is going to be mag-read.
It's just too goddam bad, but bars have no reason to see the stripe's contents. They only need to have read-only, not read-record-compile rights. Marketing and advertising are an abuse of the DL, and screening and rejecting is just a smoke screen to justify their acts with minimal rejection by a sheepish crowd that cannot give up clubbing but can give up their privacy information.
Before 9/11, it was illegal for anyone, and almost any non-person entity to read and record and use this information for non-government reasons. The SSN use to be afforded this level of privacy until companies and colleges began abusing the hell out of it.
Should I evern patronize a facility that later is the instigator behind mail campaigning me for anything, I will find some section of law to sue them out of existence (not to get rich, but to punish them for information abuse).
Anyway, at the time, west coast clubs were testing it, but were not reported to have been crazy about it. I guess clubs are just trying to streamline things for the bouncers, but maybe they need better-paid or commited bouncers.
Come to think of it, many clubs hire/rent cops who stand there in uniform, intimidating would-be troublemakers to leave or behave. Given the presence of uniformed police, THEY should be the ones inspecting and determining the validity of the driver's license when presented. But, usually, the bars will confiscate it and call the police.
David Syes
Previously: "Linux... Toward the Sunrise..." Now: "Linux... Toward the-- No, now, part of Every Sunrise"
At university (College for you Americans) we had photocopy cards. You could use the machines to load money onto them by inserting your card and the $$notes.
Some brigh cookie discovered you could scratch off one part of the mag strip, insert the card in the old reader on a photocopier and then your card has a $40 balance. Free photocopying for 1 year.
Feel bad about it now as it was theft.
The weathers here - Wish you were beautiful
From the site's FAQ:
Q: Why is keyboard based reader support so primitive?
A: Keyboard based readers, while cheap and easy to interface, have several problems. First off, The reader simply decodes each track that is present, from 1 to 3, appending each track to the next. No dividing characters are used, so it very difficult to detrimine where the decode for 1 track ends and the next begins. Not being able to reliably seperate the track data means we can't analyze it using our card database. For now, Keyboard based readers work best with cards that only have 1 track.
The keyboard-based reader I have, has dip-switches on it so you can put start and end markers around each track, and select which track you want. Sounds like the guy hasn't done much research on available card readers (or available card writers).
Also, the mag card format is an ISO standard so it isn't as if there is any mysterious behaviour going on here (apart from the non-standard card he mentioned).
Finally, in case anyone was under the wrong impression, having a mag card writer doesn't mean you can break anyone's bank account (bank cards don't contain security information). The worst you could do would be to copy someone else's card for a building security system, then rob it and try and blame the other guy (somehow I don't think this would be too successful).
I do a lot of kiosk and interactive exhibit work that utilizes magnetic stripe readers for a variety of purposes, from Fujitsu and NCR ATM machines, to POS systems from Symbol and @POS, to serial readers from MagTech to off the shelf keyboard wedge readers from ID Tech, and I never managed to run across Acidus' site when doing research. His app StripeSnoop looks fairly interesting as a tool. I wanted to point out that there is in fact a TON of information out there available from vendors and standards organizations from credit card track formatting, to ISO specs to you name it, they are all online. Its been said before, but you just need to spend a few minutes with google or talking to your hardware or software vendor and you can find what you need, you just need to dig around a bit. As an example, I recently spoke on the topic of Kiosks and Interactive exhibits at FlashForward 2004 in NY and along with some other things, I demonstrated an application for capturing track data from a keyboard wedge based card reader, and used the freely available specs from AAMVA (American Association of Motor Vehicle Administrators) http://www.aamva.org and their specs available here to decode drivers license information that conforms to their standard of encoding. I have used this in a couple of recent applications. I'm about to post up a version that decodes the most useful bits of credit card info (name, card number, expiration) that would be useful for integrating into POS systems, kiosks, etc. The source files (everything is done in Macromedia Flash Mx 2004 - yes not a lot of Flash fans on slashdot - but this is another example of how to use Flash for REAL applications) and more information can be found here: http://www.impossibilities.com/blog/entry_blog-155 .php - everything is released under Creative Commons Attribution-NonCommercial-ShareAlike 2.0 License - so have at it and start experimenting. It should be fairly simply to add in support for just about any type of track data you want to work with, at least data types that are compatible with keyboard wedge devices - its really just string manipulation and all you need to know are the rules for decoding the data. I use ID Tech's Omni Reader - a USB device that supports all three tracks and barcodes (including infrared barcodes) in one simple USB keyboard wedge device.
In the example I put together, youll also find an application for using off the shelf bar code scanners like Symbols - that also hook up via a keyboard wedge interface - to look up UPC info from the free UPC Internet Database. Enjoy! -Rob
I've had to program two different types of barcode readers that run on a modified version of original basic. A real nightmare to tie into a unified datacollection model.
ad logicam Claiming a proposition is false because it was presented as the conclusion of a fallacious argument.
Then how would one buy a new PC or other large appliance with a debit card issued by your bank? A $500 limit isn't "easy as Dell." Or can a customer call ahead and authorize a specific large debit?