Slashdot Mirror


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."

60 of 224 comments (clear)

  1. Also in 2600 by Noryungi · · Score: 5, Interesting


    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)
    1. Re:Also in 2600 by pacc · · Score: 4, Informative

      Linked from the Stripe Snoop page:

      An article I wrote that is being published in the Summer 2004 issue of 2600 that is all about magstripe interfacing. This provided the basis for Stripe Snoop. Another application is this homebrew coke machine I built.

    2. Re:Also in 2600 by shepmaster · · Score: 4, Interesting

      I consider myself lucky, in that I have met Acidus in person, and have actually shared a class with him. It was an embedded programming class, and we each had to do a semester project. As mentioned in the blurb, his project was a Coke dispenser that worked off magstripe technology.

      What was far more interesting was the software backend he developed to run the system. It was very professional, and the software itself incorporated some intrigueing concepts, such as what to do when the system was cut off from the real world. I hope Acidus will care to chime in and explain some more of his higher-level ideas.

      One thing that I was impressed with was the security concerns that he evidently thought of. Unlike other programmers I know, security was not an afterthought, but incorporated into the design (this was also evidenced in his Blackboard dissection, previously discussed on Slashdot).

      I hope that Acidus has a chance to go far, he is one of those bright young Computer Scientists with a good future in front of him.

      Cheers!

    3. Re:Also in 2600 by brandonY · · Score: 3, Funny

      He was president of our theatre organization. Do you know how many times we had to swear that we wouldn't let him get near the buzzcard reader in order to get one?

  2. Working link by Zorilla · · Score: 5, Informative

    Here's the real link to the article:

    Linky.

    --

    It would be cool if it didn't suck.
  3. Re:Good link checking, well done the mods... by LiquidCoooled · · Score: 5, Informative
    --
    liqbase :: faster than paper
  4. How long before DMCA is used? by gilesjuk · · Score: 5, Insightful

    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) :)

    1. Re:How long before DMCA is used? by Anonymous Coward · · Score: 3, Insightful

      "Could be a useful tool though, I'd love to save car parking charges (place where I park sometimes uses magnetic cards) :)"

      Smiley noted, but it's comments like this that make people think of "hackers" as criminals. Another example: P2P could be a useful tool though, I'd love to save the cost of a CD.

      RIAA and the MPAA may be a bunch of wankers, but let's not encourage them. Let the same logic apply to smart & mag card manufacturers.

    2. Re:How long before DMCA is used? by t_allardyce · · Score: 5, Insightful

      I think its happened before - people calling up their bank etc and saying "hey, your card is insecure it stores your pin in plaintext" and the bank says "you shouldnt have a card reader! what do you think you're doing"

      Its the standard bullshit you'll get from clueless people and experience says most cards in your wallet are probably badly designed, so yep, its probably not worth it to try and help these people by explaining whats wrong and what they can do because they are more likely to try and sue you.

      Bu I think technically you have a legal right to see whats on the strip - its your personal data and would fall under the data-protection act?

      --
      This comment does not represent the views or opinions of the user.
    3. Re:How long before DMCA is used? by Anonymous Coward · · Score: 5, Interesting
      I can imagine some card company out there will try and put a stop to this

      I used to work for a company that produced access control devices, including card readers. We managed to reverse engineer all of our competitor's card formats (the one's that didn't use the well-documented Wiegand standard) and build support for them into our product to reduce the cost of getting customers to switch. Most competitor's just shrugged it off, half of them were doing the same thing anyway, but one company that relied on defence contracts for a lot of its business got its lawyers to write a letter threatening to report us to the NSA for "breaking their triple-DES level encryption scheme". We sent the lawyers back full documentation of their snakeoil and pointed out that they'd lose a lot of Government and defense business if the NSA got wind of the fact that what was being marketed as "triple-DES level encryption" was in fact an 4-bit XOR pattern.

    4. Re:How long before DMCA is used? by hackstraw · · Score: 2, Informative

      Magstrips are terribly insecure. They are a reprogramable single number on a card. Do you know why at retail stores that they scan your card, and then put in the last 4 digits manually? And wonder why those 4 digits are under a hologram? Its because its trivial to reprogram one of these with a new number. A magstripe writer new costs like $500 or $600. Trust me, I could get a pretty return on investment with that upfront cost. CC numbers all have some kind of checksumming algorithm with them, and if someone put a random valid number on a card, it still would not match the last 4 numbers. I've heard that phonecards in europe had to go with smartcards because people were getting fake magstrip cards.

      I'm actually shocked that magstripe reprogramming is not more common. Since CCs are taken everywhere now, and most of them are self swipe, hmm....

    5. Re:How long before DMCA is used? by byolinux · · Score: 2, Insightful

      Hacking - playful cleverness.
      Cracking - computer crime.

      I think trying to defraud a system would probably all under the Computer Misuse Act in the UK.

    6. Re:How long before DMCA is used? by Anonymous Coward · · Score: 4, Informative
      A magstripe writer new costs like $500 or $600.

      True. Some are even more. I worked at a security company a few years ago testing, among other things, mag-stripe cards/readers/interfaces. We used American Magnetics' (I believe) Model 700's - and that 700 was roughly equivalent to the base-model price. It depended, of course, on whether you bought the models that could read just one stripe, two stripes, or all three stripes on a standard card - the 3-stripers were more, of course, but for some purposes unnecessary. For example, another tester and I duplicated the first two stripes of his ATM card (ignoring the third because either we didn't know what character set it was encoded in, or else we didn't yet have access to a 3-stripe reader/writer, I forget which), and successfully used it in an ATM (just to do a balance inquiry - not to actually withdraw cash - we were too afraid of setting off some kind of alarm). We'd suspected that would work beforehand, since the first two stripes were in ABA (American Bankers' Association) 7-bit (or was it 5-bit? - it's been three years, and I've slept since then) and the third stripe wasn't, so therefore probably not used for banking applications. We were satisfied enough when it succeeded to not experiment further.

      But, with that in mind, it's immediately clear that you could earn back the initial hardware investment in a big hurry if you were of a black-hat kind of mind-set.

      One of the more interesting/cute little facts when you're working with mag-stripe cards is that, to determine where some failures lie, you can use a spray-can of very fine iron or iron-oxide dust (basically, rust) to spray on the stripe and actually SEE the encoded magnetic patterns. If the patterns are sharp, then it's the reader's fault; if the patterns aren't there, then it's the card's fault.

      Here's another project for someone with a bit more in-depth hardware knowledge than I have: figure out what encoding scheme is on the thin little cards used at some arcades where you buy credit on a proprietary card - I tried reading one of those in a 3-stripe reader and got unreadable, in consistent and totally unuseful results.

    7. Re:How long before DMCA is used? by Smidge204 · · Score: 4, Insightful

      The difference is, I'm not the one hacking the system. Therefore the person who has hacked the system should be a bit more responsible in putting out the information.

      In other words, not release it at all?

      Let's ban chemistry books, then, because the informatioon in there can be used to develop lethal toxins and explosives. Those publishers shold be a bit more responsible in putting out the information.

      Don't be an asshat. Information is information. He is not advokating it's use for illegal/immoral activities (quite the opposite, actually). If you choose to apply this knowledge to break the law, then you are responsible. Don't blame the publisher of the book if someone uses the information to build a bomb and don't blame the maintainer of the website if you use the information to commit fraud.
      =Smidge=

    8. Re:How long before DMCA is used? by Muad+Dweeb · · Score: 2, Funny

      Asshat? I detect a Farker.

    9. Re:How long before DMCA is used? by LookSharp · · Score: 2, Insightful

      I am not familiar with a time in my time as a banking customer or employee of a banking company when PINs were encoded on a magstrip. All ATM systems I have ever used compare an entered PIN with one on a secure, remote system.

      I agree you should be able to see what's on a strip, but let's not get less knowledgeable people excited here, OK?

    10. Re:How long before DMCA is used? by Telecommando · · Score: 3, Interesting

      Hmmm...
      So do you suppose that all those "high security" cards the government buys are actually low/no security cards?

      I feel safer already.

      --
      Beta sux! Join the Slashcott! http://hardware.slashdot.org/comments.pl?sid=4760465&cid=46173047
    11. Re:How long before DMCA is used? by raju1kabir · · Score: 2, Interesting
      Could be a useful tool though, I'd love to save car parking charges (place where I park sometimes uses magnetic cards) :)

      And I'd like to copy my ATM card's stripe over some old unused card like a library card from a city I don't live in anymore. Ought to add some useful security-through-obscurity to my wallet in case it's stolen. Who's going to stick a library card in an ATM?

      Has anyone done this? What sort of equipment do I need to write to a card?

      --
      "Patriotism is your conviction that this country is superior to all other countries because you were born in it." -- GBS
  5. parking gates by millahtime · · Score: 4, Funny

    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.

  6. Not Difficult At All by Anonymous Coward · · Score: 5, Interesting

    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

    1. Re:Not Difficult At All by wackysootroom · · Score: 4, Informative

      Here's a fine guide on serial port programming from none other than the guys who brought us the cups printing system:
      Serial Programming Guide for POSIX Operating Systems

    2. Re:Not Difficult At All by 1shooter · · Score: 4, Interesting

      I work with this stuff all the time. Mag stripes typically have up to 3 tracks of information encoded. Usually all the data is in tracks one and two and of the many millions of cards the company has encode and shipped, none have used track three. The hardest part about decoding data is writing the regular expression to parse in to 3 lines. Now what you do with the data is whole nother thing.

      --
      6F 9E A9 1E 96 9F 74 27 ED B8 81 6D 0C 4E 1E 78
      My other Sig is a 229.
  7. So wait, how do i hack my metrocard? by StingRayGun · · Score: 5, Funny

    I't not like a federal offense or anything is it?

    1. Re:So wait, how do i hack my metrocard? by bellevueGeek · · Score: 5, Informative

      Actually it is a federal offense since it would be considered counterfeiting, but what is even more interesting is the security that have in place to stop that.

      Remember when it first came out and the cards were blue? Apparently a bunch of people figured out that you could dupe 50$ of value to used ones, and sell them to idiots on the platform. They would swipe it to show the dope there was a value and get cash for it.

      I sat in on a security lecture once where the expert discussed the complexities of preventing unauthorized use in a system that big. Basically every time you swipe it writes back to your card and a log at that turnstyle. Every 5 minutes or so that log is uploaded to a regional center and that in turn is uploaded to a central location. They then can detect detect things like if a card is used in more than one location, or if more than once in n minutes. If one of these potentially illegal conditions exist the system can add your card to a blacklist and push it back out to the turnstyles all in under 11 minutes.

      The cooler thing is that then when you use a modified card that was blacklisted the little color lights on the opposite side flash yellow or red instead of green. Alerting the police who like to stand and watch people try to jujmp or squeeze by to pick you up.

      I thought it was a brilliant use of a relativly old and low-security technology.

      --

      All ye all ye outs in free!
    2. Re:So wait, how do i hack my metrocard? by mikeboone · · Score: 2, Interesting
      They then can detect detect things like if a card is used in more than one location, or if more than once in n minutes.

      This second one screwed me, a first-time visitor to NYC. We took the stairs down to the subway at a station somewhere near Times Square. I slipped my Metrocard through and entered, only to find out that in this particular station, you could only get to the other side of the tracks by going back up to the street, coming down another set of stairs, and reentering the gates. The card reader promptly informed us that we were reusing our cards too soon. It's not like I was trying to simultaneously use it halfway across the city or something. After an unpleasant conversation with a bitchy and hard-to-understand attendant, we were allowed to enter the correct platform. I think the Metrocards are too picky!

    3. Re:So wait, how do i hack my metrocard? by proj_2501 · · Score: 2, Interesting

      with the unlimited metrocard, the minimum time between swipes is 18 minutes, i think. you'll see a lot of guys who buy a few of those, then they'll swipe you through for a dollar instead of the usual two.

      mta doesn't like that much.

      2600 tried to do this without charging and they still got in trouble!

    4. Re:So wait, how do i hack my metrocard? by fishbowl · · Score: 2, Informative

      "Actually it is a federal offense since it would be considered counterfeiting"

      I'd expect it to be a forgery offense, against the State of New York (if you're talking about NYC Metrocards), but I hardly think the Federal Government has a case here, unless maybe you traffic in counterfeit metrocards across state lines or something. See, the NYC transportation department isn't a federal agency, and the card isn't a federal reserve note.

      Still a bad idea of course, New York's justice system being just as scary as federal...

      "They would swipe it to show the dope there was a value and get cash for it."

      You didn't mention whether or not it would get you on the train.

      --
      -fb Everything not expressly forbidden is now mandatory.
    5. Re:So wait, how do i hack my metrocard? by orac2 · · Score: 2, Interesting

      Every MetroCard *does* have a unique id, and if you used a credit or debit card to purchase it, the id and card # get stored in the MTA's database together.

      This allows a number of things: if your monthly card gets lost or stolen, you can call the MTA up, give them your credit card number and they'll blacklist the missing card and send you a new one for the remaining days left on your Metrocard.

      It's also been used by the NYPD for verifying alibis, when Metrocards found on suspects can be traced to specific stations at specific times. If you say "At the time, officer, I was commuting to work just like I do every day", and your card shows you actually using a completely different station than you normally use and which happens to be two blocks from the crime, well then Lucy, you got some 'splainin to do...

      And indeed, disabled and elderly Metrocard users can update their cards electronically without having to visit a machine, but it's not generally available, for logistical rather than technological reasons.

      --
      "Just once, I'd like to meet an alien menace that wasn't immune to bullets." -- The Brigadier, Dr. Who
    6. Re:So wait, how do i hack my metrocard? by djdavetrouble · · Score: 2, Interesting

      he said:
      I think the Metrocards are too picky!


      You may think so as a tourist, but new york city is the most crime ridden city in the USA. More than that, crime is organized. If there was a way to scam metrocards you could be sure that there would be a racket surrounding it. I remember early rumors of places in chinatown that would re-up your card for you, but never had them substantiated. Walk around manhattan... first floor windows are barred up, Gates have hardened steel padlocks, anything that may be worth more than a dollar is installed permanently, park benches are bolted to the ground. Why? if it can be stolen here it will. Hell, I have seen guys ripping the aluminum cores out of air conditioners because they fetch 20 bux at a scrap metal yard. This is the city where the mob had red boxes mass produced. My red box worked anywhere in the usa but NYC when i moved here. Can't get your quarter back from a pay phone? Some guy has wedged some shit up in the coin return slot so he can return later for a jackpot. This is a city of opportunity and crime is no exception. I think that tokens were obsoleted because they couldn't stay ahead of the slug manufacturers. I knew a girl that bought bags of fake tokens .... in chinatown.....

      --
      music lover since 1969
    7. Re:So wait, how do i hack my metrocard? by djdavetrouble · · Score: 2, Insightful

      Good stats, but I believe it is bullshit. Those stats are for things like murders, and other reported crimes. As far as unreported unrecorded crimes, who the hell can say, but I know what I have seen. I don't know any other place in the US where you can buy drugs at a bodega. What I am trying to say is crime is institutionalized and organized here, not to mention the staggering number of petty thefts and other crimes that go unreported (flashers, mashers, turnstile jumpers, shoplifters, etc.). NYC has been on a publicity campaign ever since giulliani 'cleaned up the streets' to show how little crime there is. The title of a book I love comes to mind: How to lie With Statistics.

      Cheers

      --
      music lover since 1969
  8. hotels by millahtime · · Score: 2, Interesting

    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.

    1. Re:hotels by rampant+poodle · · Score: 5, Interesting

      Normally none. The card will have a unique number, (usually room nr.), and some instructions telling the lock the validity periiod of the guest key. If you just checked in it will also invalidate all previous guest keys. In some cases the card will also have additional information about your entitlements such as health club, meal plans, etc. Note that the ID number on the card is very likely linked to the hotel's property management system -- which has all of the information you gave when you made your reservation.

    2. Re:hotels by GuyFawkes · · Score: 4, Interesting

      Speaking today at the holiday inn chain of motels in the room cards definitely record the time and date the card is used, eg every time you use it to enter your room, and every wrong room you try it in.

      HTH etc

      (PS, this hotel chain still relies on PC's running windows 95b for all the booking / reservation / billing stuff.)

      --
      http://slashdot.org/~GuyFawkes/journal
    3. Re:hotels by 4of12 · · Score: 4, Insightful

      PS, this hotel chain still relies on PC's running windows 95b for all the booking / reservation / billing stuff.

      An important and practical lesson that what is good enough to get the job done gets used and used and used. No matter that it smells bad to those of us on the bleeding edge of technology.

      --
      "Provided by the management for your protection."
  9. epos by che.kai-jei · · Score: 5, Interesting

    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 !!]

    1. Re:epos by dasmegabyte · · Score: 4, Informative

      Okay. Really quick: the reason niche software is expensive and yet poorly written is not because it is considered "elite." It is because there is not a lot of money in the niche. See, if you need to bring in $100k with a program, and you have an audience of 2000 people, you can easily charge $50 for it. But if your audience is only 100 people...you have to charge $1000. In a niche, you really have no way to increase the size of the market, and your market often has little choice but to pay the high cost for what's essentially one step down from custom software.

      And if you're one of the 100 people, that software might save you hours and hours of work, tens of thousands of dollars on custom software, and maybe even save you having to hire somebody. All that for $1000 is a pretty sweet deal, and doesn't seem ridiculous at all. Granted, if you could get the same thing for $50, you'd take it. But on a business scale, $1000 is fucking chump change.

      Furthermore, many niche software companies use the cheapest programmers and cheapest practices to get the job done. This means VB, which is a powerful tool when you want to make a program in less than an hour. Sloppy code is sometimes the fault of bad programmers (what do you expect, offering 35% or less than the going rate) but just as often is the fault of high pressure development. Customers paying $1000 for software are VERY insistant and many times their complaints will almost completely drive development. If Customer A asks for some feature unique to their business flow, you have to put it in, even if it doesn't make any damn sense. Our old software (which I had nothing to do with or it'd be all objects) is 20% functionality and 80% stupid business logic (if company = "company a" then ...).

      Incidentally, with Linux gaining ground in a lot of these market niches, expect to see a lot of really shitty TCL or VB code showing up in closed source Linux packages. It's lack of money that creates stupid software...

      --
      Hey freaks: now you're ju
  10. Writing the stripe by DrStrangeLug · · Score: 5, Interesting

    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.

  11. Storage capacity by Anonymous Coward · · Score: 5, Interesting

    Does anyone know how much data you can store on a typical strip?

    1. Re:Storage capacity by Orne · · Score: 5, Informative
      Here's a summary, but to recap:

      There are three tracks on the magstripe. Each track is .110-inch wide. The ISO/IEC standard 7811, which is used by banks, specifies:

      Track one is 210 bits per inch (bpi), and holds 79 six-bit plus parity bit read-only characters.

      Track two is 75 bpi, and holds 40 four-bit plus parity bit characters.

      Track three is 210 bpi, and holds 107 four-bit plus parity bit characters.

  12. Do it the good ole way by Rosco+P.+Coltrane · · Score: 4, Interesting

    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
    1. Re:Do it the good ole way by xsbellx · · Score: 4, Interesting

      Buddy, when I started working we used to do this on a daily basis to get data off of damaged magenetic tapes for input to a billing system. There was a product called "Visimag" or something similar. Essentially, it was the same sutff as you used in your physics lab, iron powder suspension in some type of alcohol.

      For those who are old enough to remember such things, the tapes were 100bpi/7 track used on a Univac III. And this was the upgrade from 4 inch wide punched paper tape.

      --
      If VISTA is the answer, you didn't understand the question
    2. Re:Do it the good ole way by dbc · · Score: 2, Interesting

      I recall a product called "Magna-See" or some such. This was in the GCR tape era -- strictly 9 track, nobody was using less dense than 800 BPI in those days, in fact 800 BPI was hard to find, most were doing either 1600 BPI or GCR. I guess I am exposing myself as a youngster.

      OH, BTW -- ssg r00lz! (ssg may have been called sgr back in the Univac III days...)

  13. HOKY SHIT! THERE'S LIKE NO MAGSTRIPE INFORMATION! by Chess_the_cat · · Score: 4, Funny
    I was shocked by the lack of magstripe information.

    Maybe you were mildly suprised?

    --
    Support the First Amendment. Read at -1
  14. MSR by Alioth · · Score: 4, Informative

    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.

  15. Better interface? by no_such_user · · Score: 5, Informative

    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?

  16. What is REALLY on your card? by commonchaos · · Score: 5, Interesting

    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. :-)

    1. Re:What is REALLY on your card? by plover · · Score: 2, Insightful
      And how can I, the gullible public, tell your beneficial kiosk from Tony Soprano's clone-a-card scheme?

      I can't.

      Of course, I can't tell if Tony Soprano is behind the cash register at the local pizza joint, either. So how do I know who is cloning my Visa card, and who is a legitimate merchant?

      I can't.

      But, I still wouldn't trust this simply for the purpose of viewing my data. And I would hope that the public wouldn't, either.

      --
      John
    2. Re:What is REALLY on your card? by zempf · · Score: 5, Informative

      This was done by an art museum in Pittsburgh: see this article at Wired for details.

  17. More detailed tech discussion on BRR episode 56 by StankDawg · · Score: 2, Interesting

    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/ ---
  18. Btw by Anonymous Coward · · Score: 2, Informative

    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.

    1. Re:Btw by flabbergast · · Score: 2, Interesting

      The parent poster is spot on that debit cards without charges is the future. About a year ago or so either Newsweek/Times/WSJ etc did an article about the fleecing of America when it came to check cards, especially when you consider it against the debit card. What's the big deal?

      The costs involved in the back end. Debit cards don't cost nearly as much as check cards do. Why? Because check cards are locked into the credit card system, that's why. It costs the store significantly more to process a credit card than it does to process your debit transaction ($1 versus $.10). Its a matter of using the Visa/MC credit processing or a regional ATM network (Cirrus, Tyme etc) to process funds. Look at this Kiplinger article about it. So why do we use it?

      Because Visa has made a HUGE push in the US to convince us that the Visa check card rocks! All those commercials with Marion Jones or the rabbits etc where using your Visa check card is better than using checks. Why? Because its more profitable, until they pissed off Wal-Mart.

      Me? I don't use a debit or check card. I use credit cards so I don't have my checking account drained it someone gets a hold of my check card number.

      As for using a debit card to pay for a coke? Ehhh...the US is still attached to dollar bill so what hope do getting people to change? =D As for the SMS, I don't think SMS is nearly as big as SMS in Europe/the rest of the world because we get locked into $40 a month plans, so we might as well use our minutes.

  19. "Researching an embedded systems project..." ? by El+Kevbo · · Score: 3, Funny

    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? :)

  20. Blocked! by W2k · · Score: 4, Interesting

    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.
  21. Re:Security Nightmare by t_allardyce · · Score: 2, Interesting

    Anyone has been able to pick up a card reader cheaply for years, most office supply places sell them and that monster-battle toy had one. Or if you cant find one in a skip you could probably make something crude from an old tape-recorder (i guess?). Infact you can pick up an old ATM too! Most people wouldnt have a clue what to do with them, even if you get to the point where you can see the bits/bytes on a computer you still have to have some basic engineering knowledge and instinct to figure out each system or know who to ask. The problem is a quick fix is never quick, most systems will be proprietry code that was written years ago and editing even the slightest thing would require a whole lot of work and money. Hopefully most systems were designed well - its not like its hard, just make sure you understand the premise that anything on a strip is like anything written in pencil on the front of the card: it can be seen and changed by anyone.

    --
    This comment does not represent the views or opinions of the user.
  22. OT: How do they power/commnuicate with the locks? by swb · · Score: 2, Interesting

    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).

  23. Re:OT: How do they power/commnuicate with the lock by Yewbert · · Score: 2, Informative
    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.

    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.

  24. Re:OT: How do they power/commnuicate with the lock by swb · · Score: 2, Insightful

    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..

  25. Some misinformation here by Old+Wolf · · Score: 2, Interesting

    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).

  26. Tons of documentation available by rhall_impossibilitie · · Score: 2, Interesting

    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

  27. Re:Added layer of security by PCM2 · · Score: 2, Interesting

    Yes, I've been to Europe a few times over the last several years and was interested to see those portable credit card terminals that they bring to your table at restaurants. We have nothing of the like in the U.S. (unless you're talking some really large, fancy place that has developed its own wireless handsets for waitstaff).

    The way it was once explained to me is that it has everything to do with the ... ready for it? ... telephone system.

    In the United States, local telephone calls are essentially free. There are local points-of-presence for all the major credit card validation services, so restaurants can use a standard business phone line to call out to validate an infinite number of credit card transactions at a flat rate for phone service. Because of this, credit card infrastructure in the U.S. has been built up around automatic verification of all credit card transactions. Our credit cards don't come with smart chips or the like, because there's simply no real reason for them. The perception by industry is that it's much easier to just call up and verify your credit directly with the bank than to rely on some "unproven" technology like a smart chip.

    And so, given no smart chips, there are no "advanced" authentication schemes like the ones you mention. There are a couple of cards that have rolled out devices like you describe that you can use at home for Internet transactions, but I've never heard of a place of business that supports them. And so, it's a chicken-and-egg problem ... fancy, smart-chipped credit cards never really take off when the banks try them, because who wants a credit card that you can't count on at most restaurants etc.?

    It's much easier to launch an entire new credit card product (like Discover, which is still not accepted in Europe but was rolled out in the U.S. maybe 10 years ago) than it is to add a smart chip to Visa cards, because the new card can ostensibly use the same magnetic stripe readers with just a firmware upgrade or something.

    The other thing is, I think the cost for the credit card companies to insure themselves against fraud is a lot less than it is to implement new technology. Right now, if somebody steals your credit card in the U.S., walks into a store and purchases something with it, the merchant is going to be the one who comes up liable, nine times out of ten. The merchat will get back neither the merchandise nor the funds from the fraudulent transaction, and the credit card company goes on about its business. So where's the incentive for the credit card industry to reform its security?

    --
    Breakfast served all day!