Portscaning Program
Hey guys, this is Mac Head Zone One with a video on how to run a port scan on any computer.
Now, a port scan is something that checks for all the open ports. Like, um, 5900 is a port on the computer that um, VNC runs through normally. So, um, there are two ways to run a port scan on a um, on an IP address to check what ports are open. My favorite is using Network Utility on the Mac.
You can just quick look it or, um, open it up in your Utilities folder in the Applications folder. I'm right here at the top. There's a tab called Port Scan, and you can just type 192.168.1.103 and it'll show you all the open ports pretty fast.
It even tells you what some of them do. Like, 22 it tells you it's SSH and 80 it tells you it's HTTP and, um, so on and so on. But, um, sometimes it feels kind of like this.
Um, basically this is kind of inaccurate and it doesn't scan every port, um, and stuff like that. So, just now, Kids 101 wrote our open source port scanner. Right here it is; you can download it in the description of this video, or, um, you can simply um, download it on our Mac's download page.
Since this is open source, this is actually just a Perl script, so it'll download as a zip file and you unzip it. Here it is, and in order to run this, you can just go into your Terminal application, whatever you use for Terminal, and type Perl space.
Then drag in the um, file unzipped file, and then it'll ask you for an output file. You just want to type um, the name of a file. I'll just do desktop slash file.txt, and the IP address, and I'll just scan this IP. Now, I'll scan my router, and it'll start scanning right here.
It's a console, and when it's done, this file.txt will have all the open ports written right into it. Um, there are… this is open source, but that's in the way that the scan.pl file… I'll just make a copy of it and show it to you.
If you open it with something other than your Terminal application, like um, Vim, and just open it with Vim text editor, um, you will see the source code because it's not compiled at all. It's all open source. If you're opening it with TextEdit, for instance, it will show you the source code.
Through here, if you know enough Perl, you can mess around with the source code a little bit. Um, so that's cool. So, um, that's our open source port scanner, and it looks like um, my router doesn't have that many ports open.
Um, but so now I'll just delete this file. Um, so basically this is our um, our port scanner, our open source port scanner. You will be able to download this on our downloads page, um, as well as get it in the link in the description of this video.
This will scan any port on your network. The cool thing about this is you can put it on your Linux console on your cell phone. Like, if you have an iPhone and you want to put this Perl script on your iPhone, you can do that as well.
So this is a great, um, a great Perl script. So that's our video on how to um, how to port scan someone to check if VNC is open, etc. Um, I will, in the description of this video, have um, a list of different ports and what they do.
Like, Port 22 is SSH, Port 5900 is VNC, Port 21 is FTP, stuff like that. So, I'll also have that in the description of this video.
So thank you for watching Mac Heads On, subscribe, and goodbye!