 Hello and welcome again. We're doing comments on basically the same topic. We did comments on before well I put out that video about you know showing a script that I did where I basically embedded a NES ROM into a shell script and then lately I did a tutorial showing how to do that So I'm going to be reading the comments on the video of me explaining how to do that. So Let's get started Marcus Marcus says that is very cool. By the way, the second script the one with the ock could be simpler You know, I loved a nitpick and he shows me a simple set command where my script I did a said command to get the line number of where the archive starts or the ROM starts or if I or wherever you want to call it And then I use tail to get everything after that. He does it all in just the said command Thank you so much because I actually looked how to do this only for a couple minutes And I tried a few different commands and you know when you're looking for commands like that it's you got to know exactly what to search and I was finding things on how to grab everything after an instance of something and the first script I found I was grabbing Nice actual said line in the script. So I needed to find the one that starts with that So I tried doing that But then I think what I did it was grabbing the end line character because it was getting the archive below And then getting everything after that so it was basically making my zip files start with a new line character Which messes it up so but I already had notes on how to do it with art with said and then tail So I went with that but that's exactly what you showed in this comment here is exactly what I was trying to do Thank you so much for that. I appreciate it as far as formatting code in the comments on YouTube I don't think you can that's what pay spin is for or some other service similar to that Let's see the next comment. That's actually pretty cool a game on pay spin by the way for Which is the name of my desktop computer? Which is this whole thing where I have Fort and then my servers Rook and my goats were all those names which is actually a Chess reference, but it's actually a reference to old Punisher comics from the 80s and early 90s where Microchip and Frank Castle would talk to each other in newspapers and whatnot and use and he was Charles Ford Anyway, little side note there That's why my computer's name note for it because I like naming things after stuff like that and I'm a huge Punisher fan Anyway, yeah pretty cool. It really would be really cool if I embedded everything into the script Including the emulator which could be done again. I don't know the Character limit on pay spin so I might run out of space there, but but yeah, thank you again This is just to play around and there's a lot of reasons why you probably wouldn't actually do this for something like this But having being able to embed stuff into a script is very useful. So thank you Next comment That's getting the security question. Do you trust that ROM not to contain any exploits? For the emulator it's running on and I replied to this and I'm about to give you the basic concept of the reply I gave but then he applied after that day was partially joking, but to answer that question Yeah, it's not 100% secure. So I'm pretty sure I saw an article and I doubt I read the whole thing But basically I think it was within the last year or two Someone was able to write a ROM and I don't remember if it was for a main system or an NES system But it was able to break out of the emulator So that could definitely be a possibility. I always thought that could be a possibility But I'd never heard anyone doing it. So I think it's unlikely in most cases again I didn't read the article so I don't know if it was emulator specific It was against one particular emulator if that emulator has been patched I would assume that if it breaks out of the emulator it now has whatever Rights that that user has and so What targeted it did it you know what system did it target Mac Windows Linux Android because they all have you know, they all have wrong but really once you break out of the emulator It doesn't matter as long as you take into account what it's for so Theorically if you could break out of the emulator you're gonna have to check what operating system is this run this function You know as an attack that being said that's a modified run That's wrong that either someone created from scratch or modified an NES run or I again I don't even know if it was an NES run If but an actual run from the 80s obviously or 90s or whatever isn't gonna do that because they weren't expecting people to have Emulators so it's not like I'm gonna rip a game from an actual cartridge that existed 20 30 years ago, and it's gonna attack my system now. This is something that someone's modified Which again, I don't know the details seems very Low level for me Which is mean that the person that did this is very advanced, but that doesn't mean he couldn't make it easier for other people again I don't know if it was emulator specific what type of ROM it was But it's definitely a possibility definitely definitely you can download ROM And there is possibility that it could break out of the emulator and attack your system It's just highly unlikely Again, as I said in the last video what you decide to run on your system is up to you, you know My view is pretty much don't trust anything I very rarely trust anything and when you're unsure actually someone commented on my other video and I commented back That basically that's what virtual machines are for virtual machines Or if you have a machine like I have my my laptop here, which is just for fun You know you can pull the hard drive out of that and then just use a live CD or a live USB Yes, you call them. I always call them live CDs been live DVDs now that you know now they're on flash drive So you call them live systems live USBs, but but the image can also work. That's confusing anyway So here's a question. I should have been clearer in the tutorial Does echoing a bunch of stuff into a zip file such as you did two different times in the video And then he gives the example that I have the ROM and I'm decoding it base 64 into a zip file Actually zip the data or is it just an ordinary binary file that Arbitrarily has a zip extension is having a zip extension all as required for a file to recognize a zip file Let's work through this backwards Extensions mean pretty much nothing to the computer most time extensions are there just for the user so that you know This is a zip file so that you know that this is a text file. You know, this is a PNG file depending on how the application that's using that Reads it some are particular about the files So if you use I'm pretty sure if you use the standard unzip application that you'll find in your repositories If the file does not have a dot zip extension, it's gonna go. I don't know what this is And I don't know why because most other extraction, you know like you know Tar files, which isn't a compression, but it's it's a package It's like they don't care what the extension is and it really doesn't matter That's why you have the file command if you run file name of a file It's going to tell you what to follow is because the very first part of any file will tell you what type of file is the computer In most cases does not care about the extension It might use the extension as a quick way to know what application open But if you open up most image files will open up any image Regardless of the extensions, but then I've also had image viewing applications that if it's a PNG and the extension is JPEG So all depends on how the user writes it Going a little farther. No, just Echoing or catting stuff into a file does not make it a zip file because there's actually compression on a zip file Now you could echo a bunch of files into one file or cat a bunch files into one file and then somehow separate them out later But that's not a zip file So no doing that does not the thing is and I should be clear about this most of time when you get a rom file for an NES system it comes in a zip file inside that zip file is a dot NES file Which is the actual rom file, but most emulators if not all emulators for the NES system Will just if you give it the zip file it knows to look inside and find the NES file But I'm pretty sure if you extract the NES file It also knows how to play those in this particular case the rom file already was inside a zip file and the emulator knows How to read so I'm just dumping the zip file not actually zipping anything. It's already a zip file to answer that question This question Michael asks why not just use act image and In my response to this in the comments. I I kind of yell at him, but in a joking way. I hope that that's clear probably not My first response to that is because that's not what this tutorial is about and I've complained about this before and I've talked to other YouTubers who do similar type tutorials I believe Luke Smith when I was talking to him or he commented on one of my videos where I talked about this About how I'll do a tutorial on something and then some will come and say why did you do it this way not use this program? For example, I know that I've done tutorials on gimp and I'll have comments on Why didn't you use inkscape or inkscape would be a better option for this and the reason is because I'm showing you how to Do it in gimp that is what the tutorials about is accomplishing this task in gimp And my response to him was that's like going to a python story I'll be like why didn't you do it in pearl because I'm trying to show you how to do it in python So in this case why not use an apt image? Well number one that wasn't the point of this story The point of the tutorial was to do this of the shell script Secondly, the other point of my of my tutorial in this project was to and I said this multiple times in the video to make a plain text thing that could be posted on pasting and contain the The game or at least the ROM it doesn't contain the emulator, but it contains the ROM Pretty sure you can't do that with an apt image because it's going to be a binary file I would then have to convert that to base 64 and put that into a shell script, which is just Silliness we're now going in circles Beyond that my next point of that is I know almost nothing about apt images or docker images if you call them images or snap packs and why do I not know much about them because I Pretty sure I understand the basic concept of what they are and I hate the idea. I think the concept is just I Don't want to say idiotic that's a little extreme and there are cases where you want to do something that but in most cases I think the concept of Packages like that are a bad idea and I could do a whole video on that Maybe I will the basic concept is we have package managers that that will pull down packages and any dependencies for it these image files basically in a very loose sense make kind of like a virtual environment and they have all these all the Dependencies so basically if you have a python script from my understanding if you're making some sort of image like this a Docker app image and correct me if I'm wrong I Have a python script instead of just installing the python script and any modules are needed It's going to package up the python script any modules that are needed Python any Dependencies that any of those things need all in one package So now I know you have that now you download our program instead of going oh these are already installed on my system It's going to package them all again making the package bigger making it's just a horrible idea It's great for You know Preservation you know ten years from now having everything packaged together that way you know you have one file But right now for current usage That's what my package manager is designing for that's why we have linked libraries So you don't have repeat stuff and I get storage spaces You know cheat these days that isn't an excuse to be sloppy about how you package things or how you code things and you can completely Disagree you could not care at all but And my thought you know in this case I did a shell script You know that's you know very very small using bash which is probably installed on your system already or really I'm not sure if my script is even bash Specific it probably could have used almost any shell But if I was to put it in app image now I'm packaging all this stuff that's already on my system just for a small little script and again the whole embedding the ROM Into the script isn't a great idea It was just playing around experimenting to see it you know with this work Could I post this on pasting again? I wanted to see if I could put something like that and fit in the in the character limit of pasting Which I still I should look up and see what it is So that's my answer to that and again I kind of all capitals because that's not what this tutorial is about in the comments and yeah I am yelling at the guy But in a joking way just because it it is a little obnoxious to go to a tutorial on a particular subject and say Why did you do tutorial on this subject enough this subject because that's not what this tutorial is about anyway? I do thank you for watching and I hope that you have a great day