 So the other day I was watching a video on YouTube about current security issues with computers and it talked about somebody who Wrote some code to get information from air gap machines That's machines that aren't connected to any type of network through blinking LEDs on the computer I thought hey, I can do that. So I wrote a script and let me go ahead and Point my camera at the LED on top of my think pad laptop here Which we in the last video talked about how to control the LEDs will mine talks in Morris code now and it's about to say hello world Focus the camera here. There we go, and I'll hit enter. That was the H. That was the e here comes L L as space and then we have W Oh Wow, that was really slow. Okay. Now I could obviously make this faster now. I'm not a professional on Morris code But I'm gonna go over my script on how I made this I made just for fun I mean it would be a slow way to transfer data But you could do it and you can even transfer binary data is using base 64 And if you're not familiar with base 64 is base 64 is code that's used all the time in web browsers and in your email And all your attachments in your email are base 64. Basically base 64 will take any input You know a binary some sort of digital input There's gonna be an image or video or audio file or a PDF and it creates a string of text That it can be typable. It's all ASCII characters and it can encode basically anything and make it into typable characters and Then can be transferred as plain text now obviously Transferring any type of file this way would be painfully slow, but It's still fun to play around with so let's go ahead and have a quick look at my code here for this. Okay So what we're going to do here is I'm just going to Vim my LED message here And a long time ago. I talked about a program called Morris gen which should be in a repositories at least is for my Debian based system and I can say Morris gen and I can say Hello world and other People and it should no. No, that's right. It's looking for a file input. Sorry. So what I will do is Instead of a file I can pipe into Morris gen and give it a dash for standard input And now it gives me a string of text dots and dashes For hello world and other people. So that's in Morris code Let's go back into my script here because I utilize that so in my script here We have on my particular think pad This is the file that is actually the LED that I can turn on and off next We're going to get all the input arguments passed to the script and put them into message So that's why I can type as much as I want we check is message So if you don't give it any information you leave it blank it's going to run the read command and it's going to use the read command to To ask for a message if again, you don't put anything that's blank It's just going to exit with an error of one Okay, next it's going to take that message that you typed put it into Morris gen and Generate the Morris code. It's going to put that into a variable called string Then I will echo to the screen string just to make sure it generated it, right? And then we're going to turn off the LED and sleep for one second Now we're going to loop through each character of that string We're going to print it to the screen and I did that just so I can visualize on the screen a dash and I can look at the dot and see what happens So here it's checking each character. Okay, if the character being passed is a dot Then we're going to set the time delay to point two seconds If it's a dash then we're going to make it twice as long now again I I don't know a whole lot about Morris code I don't know about the timing on how much space each thing's goes supposed to take I mean it's dots and dashes and then I'm assuming a delay that's longer for Spaces in between words. So that's what I do here. So we're going to say, okay Once we set those timers. We're also going to check. Okay, is It a space if it's a space then we're saying it to a full second. So basically if it's a dot the lights going to be on for a Point two seconds if it's a dash point four and if it's space It's just going to keep the light off for one second and that's what it's going to do It's going to check that if it's a space set time to one the sleep time Then we're going to echo LED to turn it on turn it off and then sleep before we loop again to the next character at the end We're going to sleep for one second and then we're going to make sure the LED is back on that's a whole script I have this up on pace spin. I will share it with you guys There should be a link in the description of this video But I just thought this was a neat little concept and I thought after I heard that read there watch that video on that I'm like, I know how to turn LEDs on and off. I know how to make Morris code in the shell using tools Let's go ahead and see if I could do it. So it was just just to see if I could do it. So again, I Thank you for watching. Let me exit out of here and let me run it again. I'm going to say Films by I guess I should write this all as one word by Chris calm and I hope that you have a great day They're watching Phineas and Ferb Which I also agree is a very funny cartoon You should visit films by Chris calm as you can see it's spelt with the K There should be a link in the description of the video today. That's what I should have had the LED say