Prank your friends with Terminal
Hey guys, this is Ma Heads 101, and um, we made um, videos about Max having viruses. A lot of people say that Max don't have viruses, and um, Alex actually um, coded something that he was not going to send to anyone, which is very dangerous. Basically, it's something that if they open, he has complete um, SSH control over anyone's computer. So, you can um, have Unix control over their computer. So, um, that's just saying that can of viruses, and um, Alex has actually demonstrated that before and explained to me how it works.
But now, um, a lot of people ask me to make a virus for them and then send it so they can send their friends, and I don't know why anyone would do like that to them, to do that. So, I'm just going to be showing you a little prank that's not harmful at all, but fun to play on your friends.
So first off, what this does is it makes it so they can't open Safari or IAT, and the worst snarl that you can do with this prank is make them have to reboot their computer. So the first thing you do is you CD to your desktop. Okay, and so now that you're on your desktop, um, if you're going to make a new file, 'cause they're going to have to open this file for the prank to work. So, you're going to want to say, "Nano space" and then whatever you want to call your name of your um, file, or prank that you want them to open. So, I'll just say "Nano space prank."
Now, you're going to see I'm in Nano, and so I can type up the code for the prank. So first off, we're going to want to make this prank loop, so that way, if they um, kill Safari, it just doesn't kill it once; they can't actually open it. So, you say "while space open parentheses true do," basically that means true is always true, is always true, and so that means it's always going to do it.
So first thing you want to do is, um, this prank is going to run through terminal when they first open it, but you don't want it to run through terminal, CU then it'll just stop when they quit terminal. So we're going to make it run in bash. So to do that, we say "kill all terminal" with the capital T. Now, we can choose two things for it to work, for it to do. I'll just say um, "kill all finder," and um, yeah, that's good enough for now.
And then I'll say "done." You have to say "done" for it to work. Then when you think it's good, you press control C and then say um, "press enter" or press I, I mean, I'm sorry, press CR X. It's going to ask you if you want to save. Say yes. It's going to ask you what you want to call it; just press ENTER, and you'll have a new file on your desktop called prank.
But here's if you send this to them, it won't work ’cause this is what it does: It just opens text edit and shows you the code. So, you're going to want to make it open with terminal. So what you want to do is type "CH mod plus"—really can't type today—"plus X space," and then you can either type the name of the file or drag it in. So I'll just type prank. Oh yeah, it's 'cause I misspelled prank the first time. There we go.
So um, now you're going to see it's a terminal application. But um, so if I open it, you'll see it kills all finder. And so the only application I have open is screen flow, and so if I open finder, you're going to see it instantly quits.
So yeah, how does this work? But I can't open any application, I can open Safari, and yeah. So um, basically, it constantly quits finder. So um, to kill this, you open activity monitor, and like I said, it runs in bash. So you're going to kill bash. So I'm just going to search for bash, kill one of the processes; it'll automatically kill the other, and you're going to see finder is now open. I can open finder.
So if you want to send this to your friend, that's what you should do. First off, um, I'm going to show you a couple things in activity monitor, or you can kill whatever you want, and you can also type more than one line of code. Okay, and I'm going to show you how to know if your friends sending this to you.
So um, one of them that you really don't that you really um, login window will like make them have to re-log in. So if um, I can't demonstrate that to you. And then the other one is launch D. Oh, you can kill Spotlight so they can't um, search anything. You can kill launchd; launchd will make them have to restart their computer. Or if you want, you can kill um, um, you can kill Dock constantly. You can kill um, one of them that's really not going to make them have any idea what's going on is keyboard. That's what that is, is their copy content, so if they copy anything, you won't be able to paste it.
Okay, so but if you send them something with this icon, your friends are obviously not going to open it because they're going to be afraid. So this is what you should do: take a picture on your desktop by pressing Apple Shift 4, as you can see I got my picture right there. So now press Apple I on both of these and then drag the bottom one to the top; it'll have the picture icon now. Now, you can delete this; you don't need that anymore and rename that picture one.
Now, before you do this to your friends, there is something really important you have to do. You have to compress it first and send them the compressed copy or the zipped copy, and there's a reason for that. And that is, first off, um, as you can see, okay, if I unzip it, see, it looks like the other one, but if I didn't zip it and I sent it to them, first off, they wouldn't have the icon, and second off, it would open with text edit. So that line of code that we did before wouldn't work.
But if it's zipped, it's kind of like if it's in a folder because it zips up a folder and deletes it, kind of. I don't know if you got that, but basically, you just have to zip it because otherwise they won't have the—they'll have the other icon and um, it'll open with text edit. Actually, no, they won't have the other icon, CU it will open with text edit. So, it will anyways; it won't have the picture icon. That's what I'm trying to say.
So if someone sends you this, first off, beware. If someone sends you zip, but if someone's going to send you something through IAI, it's probably going to be a zip because it goes faster. So um, I'm not saying don't accept any zips, but I'm what I'm saying is even if it has this icon, just press space bar, and if it says Unix exe executable file, that means it'll run through terminal or Unix.
So to see what they're trying to do to you, say um, right-click on it, say open with, and then do any text editor. So I'll just say text edit, and here we got all the code for what they were trying to do to us.
So now your friends can't mess with you, and you can mess with your friends and um, not actually do any actual permanent damage to their computer. So thank you for watching Mac Head 11, subscribe, and goodbye.