So, yeah, what are we going to do? Quick intro barcodes. I'm going to talk about encoding, decoding, scanners. Some simple tricks, some more simple tricks. Some backend stuff, and some unsolved cases and stuff. So this is actually all not really hard, so relax. You don't need your brain, or at least the left side of it. What about history of barcodes? Like, they got developed in 1948 by two people. And the first usage attempt, and that's actually really funny, was the American Railroad people that tried to barcode all the cars that they have. It took them 17 years to label all the cars, and then the system didn't work. It never did. At that point in time, people figured barcodes. Barcodes are useless. However, in 1966, the National Association of Food Chains started to require having barcodes on products to speed up the checkout process so they could make more money. And that usually tends to be a really good driver for technology, either making more money or porn. So in 69, the same requested an industry standard, which later became the UPC code. The UPC code is the code that you all have on your grocery products and stuff here in the States. And since 81, the U's Department of Defense required a code 39 barcode on all products that are sold to the military. And you will see why that is a bad idea. So in barcode speech, the little barcodes, the thing that we just call barcodes, are called symbologies. And we have one-dimensional symbologies and two-dimensional symbologies. Here you see a few samples, and the smarter ones of you will actually start to notice that the R in the samples, it's probably just hard to read. Some of the samples contain only numbers. Some of the samples actually contain letters. So we can actually have letters in barcodes. Here's some more symbologies. We will talk about a few of those. In more detail in the talk. This is just an overview. So there's a bunch of different symbology standards out there. And they differ mostly in error correction, and they differ also in what resolution you can print them in, and all kinds of other stuff. So it's really like with protocols, everyone invents his own. Then you have really weird barcodes. Like this, the upper one, you've probably seen on YouTube. This is actually a post-net barcode. This is actually a routing information for letters. The British, always being very separate of island folks, of course had to invent their own postal barcode that roughly looks the same, but it's the British one. And then we have two-dimensional barcodes. Now if you look at this graphic, and then you look at your batch, who can tell me what type of barcode you have? What do you have on your batch? Data metrics. That is right. And you will probably notice that this data matrix here looks a bit different. It actually has like a cross in the middle. This is because you can cluster them. So you can actually extend the amount of information that goes into a data matrix code. That is true for most two-dimensional barcodes. You often see at stake barcodes on UPS parcel. I've rarely seen maxi code, except for on stuff that Cisco sent me. Once in a mail. And PDF barcodes are widely used in Europe for ticketing systems, and we're going to go into those later. Now when you see a barcode, and you need to decode it, how many people raise your hands if you actually decoded the barcode on your batch? Yeah, you kind of like were sitting next to me. Okay, cool. So some people actually did it. Now, are you interested in it? In knowing what's on there? It's a URL, and I'm not telling you which. Yeah, it seems to be part of like a scavenger hunt kind of thing. So essentially if you want to decode a barcode, there are two ways. One is you just take a scanner, and go like beep, and see what's on your computer screen. And the other one is decoding software. This is what I use. Some decoding software is free. Other decoding software comes for the cost of like a few hundred dollars, or the modification of two bytes. And I'm like really lazy, so I went the capitalist way and actually bought one that was really expensive, but it's really good. Most scanners actually output the stuff directly into your keyboard loop. That's the older scanners. You also have USB. So they're actually seen as input devices by the computer. And that makes it really easy. You don't need any special software. So assume we want to generate barcodes. How do we do that? There is a very good for one dimensional barcode, so it's a very, very good generator, which is surprising because it is called GNU, and it's actually good, and like it even compiles. So... This GNU barcode is actually decent. And you can, like, generate a lot of barcodes with it. You can online generate barcodes. There are many PHP scripts and stuff to do that. They're an uncountable commercial solution. Many of them actually ship as TrueType fonts, which I find kind of weird, but you can do that. You can write your own generator really easily. The fun part is you need the specs. And the specs actually... I don't know. They come in a very, very fucked up form. I was actually buying the specs for the AdState code, and the way you get them is you get a skinned-in printout that was written on a typewriter way back that has, like, hand corrections in it, and this is what you pay 20 US dollars for. So go figure. But it's really easy. Generation is really easy, as with everything. So in general, barcodes are used for, like, three different things. And I have to excuse the German in this slide, but there's just no other way to say it. Either they're used as tags and IDs, so you're just putting a number on something and tag it, or the two-dimensional ones are actually used as virtual data transport or virtual to physical, because barcodes have this unique property that you can send them by email and then print them out, and you get a physical data carrier in your hand that you call email. And this is what people actually use. It's used in Europe a lot. I don't know how much it's used here. The third application they're used for is other bullshit, and we will cover some of that as well. So now we're coming to the first interesting thing about barcodes. The scanners, the scanners that, like, face outside to a potentially hostile barcode are actually configured by barcodes. So you have a scanner. The one side faces to an attacker. And the other side faces to an attacker. And the other one is connected to a computer. And you actually configure it from the attacker side, which is really stupid. So what happens is this. You have a special, like, enter configuration mode barcode that ships with every scanner. You scan this enter configuration barcode thingy, and then he goes in config mode. And then you can scan other barcodes that, like, change the configuration, like the output character set to Japanese or something. And then you send a... You scan an end of configuration. And it gets saved to the scanner. This is really not a good idea. I mean, you really change how this device works. I've actually seen a scanner that offered software update over barcode, which was scary. What the hell? So this is essentially what you do. You go to the vendor's page, and, like, many vendors actually post the configuration barcodes on their web page. You can just, like, call up the dealer that, like, sells those barcode scanners. And then you reconfigure it. You can change the supported barcode types, which means that the system that formerly thought it's only accepting, let's say, UPC barcodes, now suddenly accepts all types of barcodes. Because one thing that you need to know is all the scanners support all the barcode types. Like you don't buy a separate scanner for UPC or something. The chipsets became so easy and cheap that, like, all the scanners support all the barcodes. And you have to actually configure them away. So the system that used to only accept UPC with a simple configuration will suddenly accept pretty much everything you feed it. Not good. Some scanners actually support special key codes. This is cool when you have a cash register system that still runs on MS-DOS, for example. It's a good thing. There are many of those because they're really stable in contrast to modern operating systems. The thing is, with the special barcode that, like, has a special key code, you can actually go and scan an escape key. And since it's looped into the keyboard, it actually has the same effect as someone hitting escape on the keyboard, which means it's going to exit the cash register application. Quite nicely, you can pretty much shut down entire shopping centers. Yeah. So the easiest hack in quotes with barcodes is, in most cases, actually just copying them. If the barcode actually transports the information that you want already, get a good camera and get a printer, make a picture, print it out, have a copy of the barcode, and use that one as well. Happens. So there is a stand-up. Come on. Yeah. There is this person who actually, like, at ph-neutral, we have those badges. And some of those badges are the alcoholic badges. Like, you can actually get free beer with them. And this guy didn't want to pay beer but get free beer. So he actually took a picture of someone's get-free-beer badge and then went to the copy shop and got it printed out and laminated and, like, got free beer. Which is why we now have chip cards. Another thing, like, I don't know how common that is here. Much of this is European-centric. So many parking systems, like, parking garage payment systems, actually use barcodes nowadays in our areas. And for the residents, they have, like, special barcodes. And so I ended up in a hotel. And they gave me for a parking place in a city in Germany, they gave me a long-term pass because I was staying at the hotel and so I didn't have to pay for the parking. Now, this long-term pass is just a simple encoded number. And I don't need to actually know what this number means because I can just copy it and then, like, distribute around, like, free parking passes for the city center, which I actually did. So you guys don't do any of that recycling bullshit. Now, it's really, really bad in Europe. So they make you actually come back, like, bring back your empty bottles and then they make you stand in front of a machine and feed them individually into this machine until you are done. The whole process actually takes longer than drinking the beer. So this is really retarded. And they are using barcodes that come out of the machine. They get printed out of the machine. And you walk up to the register. And you get your refund for the recycling, right? So getting paid for drinking beer. The thing is, in those systems, they actually have no connection between the recycling machine and the cash register. That means all the information has to be on the barcode. Like, there is no other way to transport the information. And the vouchers that they use that come out of the machine are EAN13, which is, like, our version of UPC. It's just a bit longer. And this EAN13 is actually the super standard that UPC is under. And your UPC is actually missing a leading digit, a zero. That's why it's not printed. All other countries have a leading digit that says from which country this product comes. And there are special use digits, too. For example, it's used for store internal use. Now, what I did was, like, I actually went, actually, I didn't do that. Someone else did that for me. Went to this store and gave back two bottles. And so you see, I'm getting back, like, 55 cents, euro, which is about $2. And when you're checking down here, nah, those are all fixed, yeah, I cannot walk around. When you're checking down at the barcode, it actually ends with this. 0555. Now if you happen to know that the last digit is actually a checksum, so it's not part of the transported data, it suspiciously looks like the amount of money that you get back. Now we got a second bottle checked in, and that was 25 cents, and it exhibited the same pattern. So you can actually, like, count it and see that you can get up to 999 euros in refund for, like, returning stuff. Which is actually pretty decent. The thing is, Berlin is full of people that don't like to work but to drink a lot of alcohol. And so when they introduced the systems, people immediately realized that this is cool, because they didn't even read the barcode, but they did what I told you earlier. They just copied them in masses and, like, went into stores and got money. And to prevent this, the stores... The stores actually started to use, like, special paper, so they would recognize their own paper. But the thing is, if you stick the barcode under your six-pack, which is heavy, and the lady at the cash register doesn't like to, like, lift it up, so they just scan it over. So if you stick something under this and you are not too greedy, you actually get paid for drinking beer. Another thing that people use barcodes for is access control. 0555. More often than you would actually expect, the access control system only verifies that the structure of the data is nice, which means that it can read a barcode. Like it will not look at the content. Not at all. It's a really easy test. Like when you have an access system that uses barcodes, just take your pack of cigarettes or whatever you currently have on you with a UPC and just scan it and see if the door opens. Don't be too surprised if it does. Because that's, like, really irregular. Regular case. Other than that, you can just, like, get the right number of digits on your barcode and scan it, and it will open the door. That frequently works. So a tag, in quotes, because that's all really silly stuff that I used, actually, is this. So desynchronization. The thing is, people do not realize that the barcode and the numbers that are going to be the digits that are actually printed below the barcode do not have anything to do with each other except for your assumption that this number is what the barcode says. Like this is an assumption. And many people have that assumption, which can be exploited. So what you do is you can just change it. Like you can change the number or the barcode and leave the other one intact. And then, yeah, do stuff with it. Other people do that as well. Like this is, we had a company trip to the zoo. Don't even ask. So this is the tickets we got. And of course, I collected them all and scanned the barcodes. And this is what they do as well. The numbers that they show next to the barcode are the shorter ones. And when you decode the barcodes, you see the longer numbers there. And deleting digit actually says if you need to pay or not. Everything else is pretty much useless. So. Desynchronization can be used for property tracking. Now let us assume you work as a contractor at this company. And your fellow co-contractor working next to you has this nice laptop. So let's assume you have a Mac and you're like really finally understanding that they're crap and you want his IBM. This is what you do. In this company that I'm contracting there, they actually do property checking by, you go and you get a barcode and stick it on your laptop. And then they say this barcode belongs to this guy. So this is FX's laptop. And when you check out, they scan the barcode and they see if that's yours. So what you do is you replace the barcode on your badge. Just the barcode, not the number, temporarily with the barcode on the badge of the legitimate owner. Now, how do you know the value? Well, it's printed below. So you can just generate it. You don't need the barcode. You don't need any magic. Now you stuck that on, go out, check it out, like check your new IBM laptop out. Go back in, because right now he's not at work, but he's about to leave. So that is not good, right? So you have to go back in, fix your badge again, and then remove it, and then check out and go home and have two laptops. Easy as that. You can also use that. You can use that for changing the identity of your laptop. Many companies actually use the barcodes that are below your machine that actually contain the MAC address. They use that for port access security, for example. So you bring your laptop, then you scan the barcode, and then they know your MAC address and stuff. Of course, you can put a different MAC address in there. So one of the ideas I had was putting the broadcast MAC address in there, like all F. And so when they put it into the network access code, you can put the broadcast MAC address control system. It's going to fuck up the network. The thing about barcodes is it's a really simple technology, but you actually have to get your procedure right. This is what happens when you're really lucky. This is actually a picture of the place, the apartment building I live in, and they put in a store, an automated DVD rental system unattended, right there. It had a barcode scanner. It had a barcode scanner at the door, and I walked right in there and asked them for an account and figured out that they're actually using biometric authentication. They wanted my fingerprint, and I'm like, yeah, you're going to get my fingerprint this side. I only go for the PIN. Now this is really cool because it's unattended and it's in my house, so I can go at night and play with their systems. Here's this. Here's the rental procedure and the pickup procedure. The rental procedure is you go in, you swipe your card, you enter your PIN, you select the movie you want, you log out. You can do the same thing on their website. The pickup procedure to actually get to the physical data carrier, the DVD, is you swipe your card, you get the DVD from the machine. Is anyone seeing an issue here? The second doesn't ask for a PIN. The card that you get actually has a barcode on it. It's not a PIN. The barcode is actually highly complicated. Over there, the top, it actually has four digits and one character. The one character is actually pretty much static. It is the first letter of your last name, and then the numbers just increase, which means you can just guess who just rented a movie. Then print the barcode with this number, swipe it, and if they ordered it over the web, you get it. Their problem is they cannot prove that they don't have it, so they have to pay for it. You get to watch DVDs and even keep them. This is what I did. Also what's really funny, on this website where you can pre-order this stuff, they will actually tell you if it's rented out or not. It will actually look a little bit different if it's already taken out or just reserved, so you already know what movies are rented and are pre-ordered, so you're not picking up, I don't know, Disney crap. It's good. The next class that we have is injections and multi-decoding. Most barcode readers, as I mentioned, actually don't know how to decode. They don't know how to decode. They don't read everything, like every possible type of barcode, and they're usually left in their factory setting because nobody cares. Even if they're not, we have learned already, we have configured barcodes, we can make them so again. The back-end application, however, will in many cases only expect the barcode type it's written for. How surprise. Ever hear of people forgetting input validation? It is the same deal. Using a very powerful barcode, like code 128. You can inject arbitrary characters. That brings us to actually having SQL injections and format string attacks in barcodes. You will be surprised how good this works. The really interesting part of that is, the older the application, the less likely that you actually succeed, because people back in the days called actually code, and the later the application, like the latest PHP written shit, is going to fail all over you, if you have a SQL injection barcode. This is actually I had the pleasure of professionally playing with barcodes as well. This is actually from a medical system, which is really important because it tests your blood for HIV. You can actually, you see barcodes over there? I found the injection in that system. You could actually make test results go away. It is a good thing. This is scary. You don't want to do that. I mentioned that people use barcodes for utter bullshit. It's called QR codes. The idea is this. You have a newspaper, like a paper newspaper. For us hackers, we probably don't have seen those in years. A physical RSS. The idea is they print barcodes on the newspaper. It is a two-dimensional barcode. Then there is commercial decoder software for your mobile phone. Nokia actually ships with one, I think, later. That will scan the barcode, decode the barcode automatically, and point your browser right at the URL this is pointing to. This is actually a really, really bad idea. I'm sorry. Here are some more of them. The German newspapers, they actually started off with using them and said everyone else is using them now. The thing is this. We took one of those commercial software thingies and looked at it and realized that it's actually not even going to the newspaper's website, but it's just going to some Web 2.0 marketing bullshit company. The problem is the picture. When you brood force the numbers you can see who else is using the service. Which is kind of nice, but it's not really barcode related. The problem really is this. People can actually print arbitrary content in newspapers. We call this advertisement. This is how the newspapers actually make their money. Most people, especially most suit-and-tie-wearing people do actually trust their physical newspaper. Not only do they believe what they read in there, but they also do not think it could be evil content. You're pointing your browser to a not-to-you-known URL automatically with your newspaper. Is that potentially a bad idea? Anyone? Have you ever heard of a vulnerable browser before? You get to cross-site script people with your newspaper. You put a cross-site scripting attack in a newspaper, he's logged into Gmail, he's against this shit, you delete all his email. It's a no-brainer. It's like cross-site scripting 101. How about just renting very little advertisement space and then pointing it to an ice pack or MP3? Or whatever exploitation framework you use against browsers and owning mass-owning managers. We have now to tell our CEOs they should not click on images in their fucking morning newspaper. Thank you. There is another great property of barcodes. This is the density thing. The barcodes are actually designed to have a variety of density. The thing is, some of them are arbitrary length, so you can print as much as you want. If you have a really long reader, that's not a problem. But the programs, the software that is going to handle the barcode that you're just giving it, is actually written for this fixed amount of digits that it was expecting. So, even in the same space, physical space that you probably need, like when you print it on a card or on a slip here in Vegas, you can actually print a lot more digits. Ever hear of buffer overflows before? Like, have you noticed that putting more stuff into something that it was expecting is actually something that hackers really like? So, yes, it does happen. Like, we did find buffer overflows with barcodes simply by just, like, printing more. It is a lot less common than the injection attacks. But your tool of choice here is the code 128 because it's full 7-bit ASCII character set, and you can chain them together. Like, you print multiple of them, and they end with a control code, FC4, and that says, watch, there's more coming. And the barcode reader is actually caching that. So the barcode reader is actually, like, buffering all the barcodes you're scanning, and then you send the final one and say, go! And then you finally scan, like, a 1K big barcode, which is kind of cool. I mean, really cool. It breaks shit. Warning, it is, I have to warn you, it is a pain to develop shell code on barcodes. I can tell you from experience. Yeah, and coming back to this QR thing, like taking pictures in your newspaper and then routing your browser to it, yeah, you put it into a disassembler, right away you find a place where they have a percent S that they later on pass to a Wsprintf. You'll find, like, some phone number that is undocumented and, like, funny statements, and you'll find their username and their password for, like, some HP OpenView looking glass in their software. I don't actually know what that is, but, like, it was too cool to pass on. It has nothing to do with barcodes, but, like, if you want to own some fucked up Web 2.0 company, there it is. We actually tested a lot of stuff that didn't break. So this is something we have in Germany. It's called the PAX station. You get a barcode in your mail. It's an EN13, and then you walk up to the station, and then you scan it, and it spits out the delivery that you got, because the UPS guy, again, didn't find the door or something. So wait a second. So what I'm spending my weekends with sometimes is going to public barcode scanners and then fuzzing them. And this is how that looks like. So you have a few numbers. You have a few more numbers. More numbers. Then you end up at some point with very dense barcodes. And SQL injection should be in here as well. Yeah, you have special character sets. And you just go there and scan them and see what happens. This thing actually didn't crash, quite disappointing. I also tried IKEA because they use Interleave 205, which is a bit more powerful. You get more digits in, and all their scanners accept almost all one-dimensional barcodes, but their application is actually well written. It's one of these MS-DOS written programs, and it actually didn't crash. Then we have what I call recreation attacks, which means, can I predict what the barcode is going to contain for a specific scenario that I want? If so, I can just print it out. It's that simple. The most obvious target is postal codes. Postal codes are used instead of stamps, so they're actually worth money. They use... Postal codes use two-dimensional barcodes now because they can automate the process. They don't have to have an intern leaking stamps and placing them on letters, but they print the barcodes on the letters, and it goes a lot faster. Some of the postal systems, as we've seen in the intro, actually use different systems, but most actually use data matrix. I got just simple letters from companies that write me invoices and stuff, and decoded them and checked out what's in there. What can you actually verify? This is one thing that I got. It has the Australian post barcode over there, and I decoded it, and it is literally this line of zeros. That's it. How do you actually verify that someone paid for this letter with a bunch of zeros? How do you do that? Probably not at all. If you want to send mail in Austria, get a bunch of zeros and put them in there. If you want to send mail to Austria, you probably need to put some tens of them in a barcode. They also had real barcodes, but those were postal system barcodes and interleaved, and they just had nothing to do with the payment. Then we have the U.S. postal system. This is probably going to get me in trouble. They have this labeling system that's called Intelligent Mail. I assume it got this name because compared to the other ones that I've seen, it's basically author, the system was actually written there. Not getting there. It uses code 128 labels. I actually found the specs on the internet, literally like the doc file specs on the internet on how this works. Here you see how big this thing has to be and stuff. What's in the barcode? They have the spec in the barcode. It says, here's the zip code. That kind of makes sense here. Where should this go? Oh, and mind you, this only works for crates and big stuff, not for small letters. You have the zip code where it goes. You have a CIN. You have a label source, so it says where that came from or what type. You have a mailer ID, which is unique, and I'm coming to that in a minute, and a unique identifier for the shipment. You have a label type, and that is about it. I don't see any authentication. I don't see any way you can prove that this is your mail or this wasn't your mail. This unique identifier could be a problem because we're not able to predict it, but then in the same specs it says, to maintain the uniqueness of the barcode, the data for these label types must be unique for 30 to 45 days. Mailers are asked to check with their postal service marketing representative. To confirm the requirement for uniqueness. It's absolutely random. It doesn't really care. Now on the other hand, I'm trying to get ... On the other hand, I compared that to another spec that at first sight has nothing to do with it. This is the Pentagon Building Security Emergency Procedures Guide that also has a guide on how to handle mail and recognize letter bombs. It has all those things. It has foreign mail or excessive postage. It actually has pre-tuning wires and tin foil. Whoever wrote that probably never built a bomb. It does not contain ... You get a large shipment of a crate that has a sender ID of the Pentagon, and in that is actually the bomb. You can send pretty much everything anywhere for free. And it will be trusted because the center ID says, like, this is the Department of Defense. Do you guys use barcodes for boarding tickets, airline boarding tickets here in the States? Yeah? Okay. You're going to love this. So this is the latest trend. So the security on our biggest hub, Frankfurt Main Airport, of course our capital doesn't have a large airport, relies on the boarding ticket. They don't actually have anything anymore except for the scanner that goes red or green. And if it goes green, you can go in. And if it's red, then no. The security checkpoint is central. Therefore, it's not airline specific, right? Now, on the other hand, the security, like, this implies that the security checkpoint may not know everyone who's already checked in because that would mean everything else is rewired with each other. And I don't think that is the case. So the validity. The validity must be in a barcode. I fly a lot. So this is, like, barcodes from trips all over the place. Here's some more. So I got all those, and then I decoded them. And this is a tool I wrote myself for this barcode research so I can, like, color hex dumps and stuff. So this is what I found in the barcode. It has a passenger number. It has a last name, first name, booking code. From where you're flying to where you're flying, which flight number, the day of the year, in which class you're flying. Interesting. Important. What seat you have, what your ticket number is, and a security check number. However, like, the last row, the last column here is the security check number. Do we notice a pattern? Yes, we do. Everything else changes. Security check number stays the same. Bad. Turns out that thing is static. Now, what's really scary is the two red ones that I have in there are actually online check-in boarding passes. So you check in on the website instead of at the counter. And they don't have anything in the second column. The second column is what is called the passenger record number. And everything, like, literally everything in airline security routing. And whatnot. Depends on a PNR being there and correct and unique. Like, all the airline software. Everything works with PNR. Now, they don't have a PNR. Which means we don't have any piece of information we cannot predict. So we can say from where to where we want to fly. What our name is. What flight we want to be on. What class we want to be on. And we are going to be, like, checked in. And they will, like, bring us to the gate. On the other hand, luggage tagging actually works by logically attaching a one-dimensional barcode to your trip and to you. So baggage is actually routed in the airport delivery system depending on this barcode. And with online boarding, you can actually connect any piece of luggage that you have to your boarding pass. Simply by dropping it off at the counter. Like, when you online check-in, right? You check-in online. Then you got a bag. Yeah. Like, a big trolley. You go, like, drop it at the counter. Show them your online check-in boarding pass. And they're connected logically to your trip. Which may not necessarily be yours. So here's the scenario. We have this person that is considered a potential terrorist because just he wears blankets. And then we have his boarding pass. We have this other person. Who strangely looks like a government official in our country. Who actually has an agent and wants to make this innocent blanket-wearing person look like a real terrorist. So he actually creates, recreates a boarding pass on the name of the other fellow. And drops some luggage in with some extras. Gets x-rayed. Evil security Finds a terrorist This is how it works You can totally do that So, recommendation I mean, they made water illegal in flights They can actually make luggage illegal as well For security and anti-terror reasons Because the same concept as with the water Is going to apply here You buy a bottle of water before you go to the airport It's like $1 You buy it at the airport, it's like $5 They can do that with luggage too I don't see why we should be allowed to have luggage For security reasons There are some unsolved cases One thing that I find really interesting Is this US visit immigration thing That they used to have It kind of like no longer is in use So, for a period of time You actually got this huge barcode over there That looks like an enter When you checked out Of the barcode Of the United States Like literally when you left the country And I decoded those And they're like entirely crypto And so, I decoded those And they're entirely crypto And I decoded like a few train tickets in Germany And they're actually done right They actually have a crypto certificate In the 2D barcode This is how you do it Like, consider your barcode Like a browser cookie Whoever you give it to Is going to fuck with it If you give it to me I'm going to fuck with it Let's put it this way And so, everything that people will do to their cookies They will potentially also do to their barcodes If you can only use one-dimensional barcodes Make really sure it is like a one-time pad Like you draw a random number Out of a non-Debian random number generator And then you post it on whatever you want to tag And then you have a central database Where you put the barcode in And then you put the stuff together And you don't tell anyone Do not try to put information into one-dimensional barcodes If you have a two-dimensional Use real crypto Like, the German systems Like the railway system and everything They have done it right They have actual crypto on the barcode And it may actually provide for non-repudiation In both ways anyway And make sure your process works Like, do not what my video store did Make really sure that, like The people cannot do something with the barcode And just because you don't want to do it You're implicitly trusted Do not trust a printed number I hope that was somewhat entertaining If you have barcodes that you want to play with Generate barcodes or scan barcodes And decode them We have on this funny URL We have set up a wiki That contains all the decoding software that we know And all the free decoding software And everything else And has some war stories Of people Like, what went wrong with barcodes And actually people contributing content there So, it's actually pretty cool Yeah, thank you Right on time Any questions? Any barcodes? No, actually the slides are not on a disk Because I was, like Getting myself into this talk Tuesday, something But I will post them up They should be up the Phenolite website Oh, this is really funny You're going to love this If you have seen the Port Bunny talk That I gave together with Fabs This system is actually Like the backend Is the other side Like the victim system That he tested His firewall detection Packet storm shit against So, the system is actually broken right now Because Fabs killed it And it's going to be back up in a few days Okay, thank you very much See you at the next party