Shakespeare In A Zip In A RAR, Hidden In An Image On Twitter

Steganography involves hiding data in something else — for example, encoding data in a picture. [David Buchanan] used polyglot files not to hide data, but to send a large amount of data in a single Twitter post. We don’t think it quite qualifies as steganography because the image has a giant red UNZIP ME printed across it. But without it, you might not think to run a JPG image through your unzip program. If you did, though, you’d wind up with a bunch of RAR files that you could unrar and get the complete works of the Immortal Bard in a single Tweet. You can also find the source code — where else — on Twitter as another image.

What’s a polyglot file? Jpeg images have an ICC (International Color Consortium) section that defines color profiles. While Twitter strips a lot of things out of images, it doesn’t take out the ICC section. However, the ICC section can contain almost anything that fits in 64 kB up to a limit of 16 MB total.

The ZIP format is also very flexible. The pointer to the central directory is at the end of the file. Since that pointer can point anywhere, it is trivial to create a zip file with extraneous data just about anywhere in the file.

Continue reading “Shakespeare In A Zip In A RAR, Hidden In An Image On Twitter” →

BitBench Helps Parse Binary Data

Maybe its a capture file from a network dump. Maybe it’s from an Arduino. Maybe it is a random file off the Internet. But there will be a time when you have a file full of seemingly meaningless numbers and you need to impose order. We usually resort to a printout and highlighter, but BitBench seems like a better option. That link will take you to the code, but if you want to play with a live instance, the author has one loaded with example data.

If you look at the live example, there’s an area up top with a lot of raw hex data. The area below that shows a format string. By default that’s:

hh ID:hh b CH3d TEMP_C:12d HUM:d CRC:8h | 8h 16h 16h

From the page, here’s the description of the format:

Use “h” for hex (default 4 bits), “b” for binary (default 1 bit), “d” for decimal (default 8 bits).
Use optional bit length prefix numbers. Use “~” to invert bits, use “^” to reverse LSB/MSB. Other characters are output as-is.

So in the example string, hh is an 8-bit hex number. ID: is just a label, followed by another 8-bit number.  Then the bottom displays the data formatted as you wish and gives you a way to pad the fields with extra bits and see the results. You can also invert or shift all the bits.

Continue reading “BitBench Helps Parse Binary Data” →

Better 3D Printing Through Magnets

Just like Goldilocks found some porridge too hot and some too cold, 3D printers often have beds that don’t stick well enough or stick too well. A few weeks ago I switched two of my three printers to use magnetic beds and thought I’d share with you how that worked out. Spoiler alert: like most things it has its plusses and minuses.

It isn’t a secret that 3D printing is not a plug-and-play operation, especially at the price most of us are willing to pay for printers. There are lots of variables to get right: temperature, speeds, bed leveling, and a bunch of other things. However, one of the things that vexes many people is the relationship between getting that first layer to stick and being able to get the print off the bed when you are done. It is hard to find a happy medium. If the first layer won’t stick, you print is doomed. If the first layer sticks too well, you are likely to damage the part or your fingers getting it removed. I switched to BuildTak surfaces long ago, and many people like PEI. But it is sometimes hard to get a big part removed. A few weeks ago, I took the plunge and bought some magnetic build surfaces for two of my printers. These were “no name” inexpensive affairs from Ali Express.

The idea is simple. There are two sheets that look like a rubberized plastic and have magnetic properties. One piece has some 3M adhesive on the back. The other has one surface that resembles BuildTak. Once you glue down the one sheet you leave it alone. Then you put the other sheet on top and print on it. When you are done, you can pull the sheet out and flex it to pop the print off. That’s the theory, anyway. Continue reading “Better 3D Printing Through Magnets” →

Teardown And Repair Of A Police Recorder

You should probably hope you haven’t seen [Techmoan’s] cassette recorder before. That’s because it is a Neal interview recorder that was mainly used by police to tape interrogations. This one was apparently used by the Royal Navy and was sold for parts. Turns out, the repair was simple, but the teardown and the analysis of the machine — you can see it in the video below — is pretty interesting if you’ve never seen one of these before.

The unit looks like a heavy-duty piece of industrial electronics from the 1980s. Unlike a commercial tape deck, this one is made to do one thing: record. You can’t even rewind a tape in it. Also unlike a consumer recorder, the Neal has a few special features aimed at making sure you didn’t miss some important confession on tape. First, it beeps if there’s no microphone plugged in. When [Techmoan] showed the recording head, we noticed it looked like it was split in half. Towards the end of the video, we found out why. In addition, the unit records two tracks: one audio track and another with a voice reading the elapsed time every 10 seconds — pretty high tech for its day.

Continue reading “Teardown And Repair Of A Police Recorder” →

FT8: Saving Ham Radio Or Killing It?

It is popular to blame new technology for killing things. The Internet killed newspapers. Video killed the radio star. Is FT8, a new digital technology, poised to kill off ham radio? The community seems evenly divided. In an online poll, 52% of people responding says FT8 is damaging ham radio.  But ham operator [K5SDR] has an excellent blog post about how he thinks FT8 is going to save ham radio instead.

If you already have an opinion, you have probably already raced down to the comments to share your thoughts. I’ll be honest, I think what we are seeing is a transformation of ham radio and like most transformations, it is probably both killing parts of ham radio and saving others. But if you are still here, let’s talk a little bit about what’s going on in ham radio right now and how it relates to the FT8 question. Oddly enough, our story starts with the strange lack of sunspots that we’ve been experiencing lately. Continue reading “FT8: Saving Ham Radio Or Killing It?” →

Hands On With The Arduino FPGA

All of the tools you need to work with the FPGA Arduino — the Vidor — are now in the wild!

We reported earlier that a series of French blog posts finally showed how all the pieces fit together to program the FPGA on the Arduino MKR4000 Vidor board. Of course, I wasn’t content to just read the Google translation, I had to break out the board and try myself.

I created a very simple starter template, a tool in C to do the bitstream conversion, required, and bundled it all together in one place. Here’s how you can use my starter kit to do your own FPGA designs using the Vidor. I’m going to assume you know about FPGA basics and Verilog. If you don’t, why not check out the FPGA boot camps first?

The first thing you’ll want to do is grab my GitHub repo. You’ll also need the Arduino IDE (a recent copy) and Intel’s Quartus software. Inside, you’ll find three directories, two of which contain slightly modified copies of original Arduino files. But before you start digging in, let’s get the high-level overview of the process.

Continue reading “Hands On With The Arduino FPGA” →

Ask Hackaday: What Are Your Less Extreme Brain Hacks?

Kahn — perhaps Star Trek’s best-hated villain — said: “Improve a mechanical device and you may double productivity, but improve man and you gain a thousandfold.” In fact, a lot of hacking effort goes into doing just that. Your phone has become an extension of your memory, for example. We use glasses, cameras, and hearing aids to shore up failing senses or even give us better senses than normal. But hacking your body — or someone else’s — has always been controversial. While putting an RFID chip in your finger is one thing, would you consider having a part of your brain removed? That sounds crazy, but apparently, there is a growing interest in having your amygdala removed.

To be clear: we think this is a terrible idea. The science is shaky, at best, and we certainly wouldn’t want to be among the first to try something so radical. But why is anyone even talking about it?

The amygdala is part of your brain that causes at least some of your fear and anxiety. Get rid of your amygdala, get rid of anxiety? What’s even stranger is this the procedure — an amygdalectomy — has been going on since the 1960s! Injections of oil and wax destroy the tissue and this treatment is used for some forms of epilepsy and to manage certain aggressive behavior problems in mentally ill patients. In modern times, the procedure is not very common although it appears that it does still occur in some places. But the technology to do it does exist. There have also been documented cases where people lose their amygdala from natural causes that gives us some clues of what life would be like without one.

However, it is hard to say if these people lost fear. Most of the surgical patients were already suffering from a variety of problems. There is some evidence that the naturally occurring amygdalaless patients experienced less fear in some situations, but may experience more fear in others. They also may have other problems such as difficulty understanding social cues or making eye contact. We’re not 100% sure what the amygdala does, even disregarding potential side effects.

Continue reading “Ask Hackaday: What Are Your Less Extreme Brain Hacks?” →