WEBVTT
Kind: captions
Language: en

00:00:00.425 --> 00:00:06.000
[Music] Wi-Fi hacking is awesome. Here, for&nbsp;
example, I have my Flipper Zero with a Wi-Fi&nbsp;&nbsp;

00:00:06.000 --> 00:00:12.080
devboard that can kick any device out of any 2.4&nbsp;
GHz network indefinitely. And the best part is&nbsp;&nbsp;

00:00:12.080 --> 00:00:16.560
that you don't need the Wi-Fi password to do a&nbsp;
thing like that. It can also generate a lot of&nbsp;&nbsp;

00:00:16.560 --> 00:00:21.920
bogus SSIDs, so you can have the time of your life&nbsp;
trying to find your home Wi-Fi. And tell me about&nbsp;&nbsp;

00:00:21.920 --> 00:00:26.400
finding a needle in a haststack. If you wanted,&nbsp;
you could also make an evil twin of a network that&nbsp;&nbsp;

00:00:26.400 --> 00:00:31.760
tries to steal user information once they join&nbsp;
and a bunch of other stuff that like kind of scare&nbsp;&nbsp;

00:00:31.760 --> 00:00:36.720
me. Not because of what they do, but really more&nbsp;
because anyone could do it. I'm not even kidding.&nbsp;&nbsp;

00:00:36.720 --> 00:00:42.400
You can pull all this off with a $10 device you&nbsp;
can buy from Amazon. So yeah, anyone could do it,&nbsp;&nbsp;

00:00:42.400 --> 00:00:47.200
but not everyone understands it. That's why&nbsp;
they end up in jail. But not you, though,&nbsp;&nbsp;

00:00:47.200 --> 00:00:51.920
because no subscriber of mine is ever going&nbsp;
to jail for cyber crimes. And if you're here,&nbsp;&nbsp;

00:00:51.920 --> 00:00:56.560
it's because you want to learn. So let's&nbsp;
get you ahead of 95% of people and learn&nbsp;&nbsp;

00:00:56.560 --> 00:01:01.360
networking basics. So let's say you looked for&nbsp;
cute kittens on the internet, for example. First,&nbsp;&nbsp;

00:01:01.360 --> 00:01:06.240
you'll make a request to your router. Then then&nbsp;
turns into a local packet that amongst a lot of&nbsp;&nbsp;

00:01:06.240 --> 00:01:12.400
information has two important things, IP address&nbsp;
and MAC address. A MAC address is an identifier&nbsp;&nbsp;

00:01:12.400 --> 00:01:17.680
that's burned into your network card and looks&nbsp;
like this. It's like your name inside your local&nbsp;&nbsp;

00:01:17.680 --> 00:01:22.880
network and helps your router know who you are.&nbsp;
But this only works inside your local network.&nbsp;&nbsp;

00:01:22.880 --> 00:01:27.440
So if it were to get leaked to someone outside,&nbsp;
you probably shouldn't worry unless you're like a&nbsp;&nbsp;

00:01:27.440 --> 00:01:32.480
journalist or something. IPs, on the other hand,&nbsp;
can be either public or private. Every single&nbsp;&nbsp;

00:01:32.480 --> 00:01:37.360
device you connect to the internet has a private&nbsp;
IP address that your router uses to locate the&nbsp;&nbsp;

00:01:37.360 --> 00:01:42.960
device. With that private IP, your router knows&nbsp;
where to send all of those unholy things you watch&nbsp;&nbsp;

00:01:42.960 --> 00:01:48.000
on internet. Now, don't get it twisted. Private&nbsp;
IPs and MAC addresses have a lot in common,&nbsp;&nbsp;

00:01:48.000 --> 00:01:52.720
but they are not the same. Take it like this. If&nbsp;
we were in a house, right, and I told you to bring&nbsp;&nbsp;

00:01:52.720 --> 00:01:57.920
me the Red Bull from the attic, the MAC address&nbsp;
would be the identifier of what I want. And the&nbsp;&nbsp;

00:01:57.920 --> 00:02:03.520
private IP address would be where to find what I&nbsp;
want. But now, let's say we are out of town and&nbsp;&nbsp;

00:02:03.520 --> 00:02:07.920
I told you to bring me the same red ball from&nbsp;
the attic. How are you supposed to know what&nbsp;&nbsp;

00:02:07.920 --> 00:02:13.280
house I'm talking about? Well, the funny thing is&nbsp;
that just like everything inside Linux is a file,&nbsp;&nbsp;

00:02:13.280 --> 00:02:18.160
every device connected to the internet has an&nbsp;
IP address, including your router. That's right.&nbsp;&nbsp;

00:02:18.160 --> 00:02:23.360
Your router has a public IP address with which&nbsp;
it connects to the outside world. That public&nbsp;&nbsp;

00:02:23.360 --> 00:02:28.720
IP address is a global identifier to where your&nbsp;
router is. So if you wanted to make a request&nbsp;&nbsp;

00:02:28.720 --> 00:02:34.160
to youtube.com to subscribe to my channel, the&nbsp;
site would know where the request was sent. But&nbsp;&nbsp;

00:02:34.160 --> 00:02:39.440
please have in mind your router isn't just the&nbsp;
box that shoots Wi-Fi everywhere. It's basically&nbsp;&nbsp;

00:02:39.440 --> 00:02:44.240
your gateway. It's like your main door between&nbsp;
your private network and the big old internet.&nbsp;&nbsp;

00:02:44.240 --> 00:02:48.720
Basically, everything that has to go in or out&nbsp;
your network has to go through it. Kind of like&nbsp;&nbsp;

00:02:48.720 --> 00:02:53.520
an airport security for data packets. So, if&nbsp;
your packets don't have the right documentation,&nbsp;&nbsp;

00:02:53.520 --> 00:02:58.800
they're not going anywhere. Now, there's also&nbsp;
this thing called DHCP, which basically it's&nbsp;&nbsp;

00:02:58.800 --> 00:03:03.600
the system that gives every device its own IP&nbsp;
address automatically because imagine if we&nbsp;&nbsp;

00:03:03.600 --> 00:03:09.520
manually had to put IP addresses for every phone,&nbsp;
television, smart fridge, and smart toilet we had.&nbsp;&nbsp;

00:03:09.520 --> 00:03:14.480
There are also subnets. Think about them as the&nbsp;
neighborhoods of your local network. They keep&nbsp;&nbsp;

00:03:14.480 --> 00:03:19.680
all of your devices organized and prevent traffic&nbsp;
from turning into complete chaos. That's why most&nbsp;&nbsp;

00:03:19.680 --> 00:03:28.400
of your little IPs at home start with 192.168 or&nbsp;
10.0 or something. Your router also does something&nbsp;&nbsp;

00:03:28.400 --> 00:03:34.320
called net. Think of it as the post office in&nbsp;
our little scenario. Many private IP addresses&nbsp;&nbsp;

00:03:34.320 --> 00:03:39.840
get sent under one public IP address. So when&nbsp;
Google replies to it, packets are sent to your&nbsp;&nbsp;

00:03:39.840 --> 00:03:45.440
router's public IP address and then the router&nbsp;
forwards them back to the correct device inside&nbsp;&nbsp;

00:03:45.440 --> 00:03:51.840
your house. And DNS, the hero we never thank. It's&nbsp;
basically like the phone book for the internet. It&nbsp;&nbsp;

00:03:51.840 --> 00:03:56.880
turns google.com into the actual IP address&nbsp;
your computer needs to find it. Without it,&nbsp;&nbsp;

00:03:56.880 --> 00:04:02.800
you'd have to remember long chains of numbers just&nbsp;
to watch cat videos. So yeah, DNS is basically the&nbsp;&nbsp;

00:04:02.800 --> 00:04:08.480
one thing standing between you and total insanity.&nbsp;
Now, I know these are a lot of terms and it feels&nbsp;&nbsp;

00:04:08.480 --> 00:04:13.120
like I'm just throwing them around, but we'll get&nbsp;
more in depth in future videos. And in case you&nbsp;&nbsp;

00:04:13.120 --> 00:04:18.880
didn't understand, you can Google them. I mean,&nbsp;
just investigate. Okay, you can put the tomatoes&nbsp;&nbsp;

00:04:18.880 --> 00:04:23.840
down. Now, the thing is, anyone can get your IP&nbsp;
address, and it's not that hard either. Private&nbsp;&nbsp;

00:04:23.840 --> 00:04:28.640
IPs, for example, are the easiest to pull off.&nbsp;
You just have to type this into the command line,&nbsp;&nbsp;

00:04:28.640 --> 00:04:34.320
and look, there it is. Your IP could also be&nbsp;
dynamic or static. A dynamic IP gets assigned&nbsp;&nbsp;

00:04:34.320 --> 00:04:39.760
automatically when you connect to a network and&nbsp;
can change with time. And a static IP, you guessed&nbsp;&nbsp;

00:04:39.760 --> 00:04:46.880
it, gets assigned manually and never changes. But&nbsp;
there's this little tiny problem. See, we kind of&nbsp;&nbsp;

00:04:46.880 --> 00:04:53.680
ran out of IP addresses in like 2015. The thing is&nbsp;
that this set of numbers only has like 4.3 billion&nbsp;&nbsp;

00:04:53.680 --> 00:04:59.440
combinations, which sounded like a lot in the&nbsp;
1980s, but nowadays the human population almost&nbsp;&nbsp;

00:04:59.440 --> 00:05:04.880
doubles that. And as more and more continents&nbsp;
ran out of IP addresses, we as the ever evolving&nbsp;&nbsp;

00:05:04.880 --> 00:05:11.040
creatures we are invented a new breed of IP&nbsp;
addresses called IPv6. Now this bad boy over&nbsp;&nbsp;

00:05:11.040 --> 00:05:17.600
here has over 340 undesilient combinations.&nbsp;
So we will never face this problem again. This&nbsp;&nbsp;

00:05:17.600 --> 00:05:22.560
entire video I've been talking about the previous&nbsp;
generation of IP addresses called IPv4 because&nbsp;&nbsp;

00:05:22.560 --> 00:05:28.400
they are not that different. However, they are not&nbsp;
the same. IPv6 offers an enormous address space,&nbsp;&nbsp;

00:05:28.400 --> 00:05:33.040
so it doesn't need NAT. And it also supports&nbsp;
automatic address configuration and privacy&nbsp;&nbsp;

00:05:33.040 --> 00:05:39.040
extensions. In plain words, reduces tracking. So&nbsp;
yeah, it's basically like an IPv6, but with way&nbsp;&nbsp;

00:05:39.040 --> 00:05:44.560
more addresses, built-in privacy, and no need for&nbsp;
that. But unfortunately, not all ISPs or routers&nbsp;&nbsp;

00:05:44.560 --> 00:05:50.000
fully use IPv6 yet, so we're still stuck with&nbsp;
this. Now, a lot of people will be wanting your&nbsp;&nbsp;

00:05:50.000 --> 00:05:59.760
public IP address because with the right tools&nbsp;
and info, they can do port scanning, service,

00:05:59.760 --> 00:06:05.120
and well, sad enough, there are a lot of ways&nbsp;
your public IP address can get exposed. Tools like&nbsp;&nbsp;

00:06:05.120 --> 00:06:11.600
Grabify or IP Logger makes fake URLs that grab&nbsp;
your public IP address. You could also get malware&nbsp;&nbsp;

00:06:11.600 --> 00:06:16.800
that does it. But let's be honest, if you were to&nbsp;
get malware, having your IP address leaked would&nbsp;&nbsp;

00:06:16.800 --> 00:06:22.400
be the least of your concerns. You could fall for&nbsp;
fishing, expose your IP while downloading torrent&nbsp;&nbsp;

00:06:22.400 --> 00:06:27.840
because I know you. And you could get a VPN, but&nbsp;
not everyone can afford it. And let's be honest,&nbsp;&nbsp;

00:06:27.840 --> 00:06:32.560
if something is free, it's because you're the&nbsp;
product. So, my advice for this is the usual.&nbsp;&nbsp;

00:06:32.560 --> 00:06:37.360
Avoid peer-to-peer connections. Don't connect&nbsp;
on suspicious links. Don't download malware. And&nbsp;&nbsp;

00:06:37.360 --> 00:06:42.160
don't eat anything from the floor. But let's just&nbsp;
say you woke up stupid and your IP address got&nbsp;&nbsp;

00:06:42.160 --> 00:06:47.760
leaked. What now? Well, I'm going to be honest,&nbsp;
kid. There's no hope for you. Now you'll need to&nbsp;&nbsp;

00:06:47.760 --> 00:06:52.560
fake your own death, move to North Korea, and&nbsp;
live the rest of your life looking above your&nbsp;&nbsp;

00:06:52.560 --> 00:06:58.960
shoulder. I mean, it is what it is. Nah, for&nbsp;
real though, the worst thing that can happen&nbsp;&nbsp;

00:06:58.960 --> 00:07:05.760
is that the attacker now knows what your ISP is&nbsp;
and a rough idea of your city/ region. Sometimes,&nbsp;&nbsp;

00:07:05.760 --> 00:07:12.320
very rarely, an approximate location. It may also&nbsp;
reveal online services your home connects to,&nbsp;&nbsp;

00:07:12.320 --> 00:07:18.320
but a single IP address alone rarely gives a&nbsp;
full identity or a street address. And have in&nbsp;&nbsp;

00:07:18.320 --> 00:07:23.520
mind that what I said can only be done if they&nbsp;
observe your traffic, which in most cases they&nbsp;&nbsp;

00:07:23.520 --> 00:07:29.120
can't. The real danger appears when an IP address&nbsp;
is combined with open services, default passwords,&nbsp;&nbsp;

00:07:29.120 --> 00:07:35.040
or malware. Fix those and now an IP address alone&nbsp;
won't hurt you. So if a script kitty sends you&nbsp;&nbsp;

00:07:35.040 --> 00:07:40.080
your IP address alone without anything else to&nbsp;
threaten you, you tell them congratulations.&nbsp;&nbsp;

00:07:40.080 --> 00:07:45.440
Now tell me the definition of a MAC address. And I&nbsp;
know it might be intimidating at first. But let's&nbsp;&nbsp;

00:07:45.440 --> 00:07:50.480
be honest, that guy would have to nuke half your&nbsp;
country if you wanted to end you. So yeah, just&nbsp;&nbsp;

00:07:50.480 --> 00:07:55.520
block them. But yeah, I hope you learned something&nbsp;
with this video because next one is going to be a&nbsp;&nbsp;

00:07:55.520 --> 00:08:01.360
lot more complex. First, your request turns into&nbsp;
your right. First, you make a request payment.

