Understanding networking is a circle for any inspiring Keiko in many situations, you will be taking
sometimes something over a network and the good hacker needs to know how to connect to and interact
with that network.
For example, you may need to connect to a computer with your internet protocol address hidden from
view.
Or you may need to redirect their target's domain name system DNS queries to your system.
These kinds of tasks are relatively simple, but require a little Linux network.
Know how.
So this lecture shows you some essential installs for analyzing and managing networks during your network
hacking adventures.
So analyzing networks with if!
Conquering the cash?
Yeah, if conflict comes.
If conflict, if conflict, as you can see here.
So.
Actually, uh, I will.
Uh.
Stop my network here for now.
It you to kind of see here for more understanding here.
So the if coming, if conflict common is one of the most basic tools for examining and interacting with
active network interfaces.
Uh, you can use it, uh, to cure your active network connections by simply entering if something in
the terminal.
Try it yourself and you should see output like similar to this, uh, if not you.
This means you have more Ethernet adapters or, uh, you have velan adapters as well.
There's no problem.
It's a usual thing.
So as you can see here, the uh, ifconfig commands show off some useful information about the active
network interfaces on the system at the top of the at.
What is the name of the first detected interface?
A T zero?
And, uh, which is, uh, sort of short for eternity.
Zero years just means eternity.
Zero.
So then you start counting at zero rather than one as some programming languages.
Actually, the wide range of programming languages.
So this is the first we are wired connected network connection.
And so this means zero.
So if there were no more wired ethernet interface, team, uh, would show up in the output using the
same format here.
Like that?
Eighty one or eighty two like that or eighty three.
So.
And so on.
So the type of network being used, Ethernet, yeah, here, um.
He's list next, followed by hardware on the dash and an address.
So this is the globally unique address and stamped on every piece of network hardware.
In this case, the network interface card and I see usually referred to as the media access control
Mac.
As you can see here, this is the Mac address of my Ethernet adapter, so this Mac address can be changeable,
but it's usually unique for every network interface controls.
So now the second line contains information on the IP address currently assigned to the NAT, that network
interface in this case 109 to a two one hundred eight two six eight six two eight fifty eight and one
hundred twenty nine here.
And, uh, we have the broadcast here as well, broadcast IP address, which is the address used to
send out information to all IP, is on the subnet.
Finally, we have a network mask netmask here, which is used to determine what part of the IP address
is connected to the local network.
You will also find more technical information in the section of the output, but it's beyond the scope
of the Linux networking basics section.
Here you will learn later about this.
So the next section of the article shows another network connection called Load.
Uh, so.
Which is, uh, short of the low back, low back otherness and is sometimes called local mosque.
And this is special software at the that connects to your own system, software and services not running
on your system can't use it.
We will use the law to test something on your system, such as your own web server, so the localhost
is localhost is generally represented.
With the iPad is one hundred twenty eight point zero point zero point flyer.
As you can see.
So let's not confront it because it will not show anything I'd put here that the third section of our
interface, if you're using, uh.
And notebook and you have a real then adaptive wireless adapter.
Uh, this, uh, will appear you'll only if you have a wireless adapter interface or rather there.
But in my case, I have not wireless set up there because this is a virtual machine here I'm using.
And uh, if you install to your laptop computer here, it will show you will see like that land zero.
So um, we have checked, uh, we can check the wireless network devices with the eye w Conkling.
If you have a wireless adapter and you can use them i w conflict coming together.
Circular information for wireless hacking such as adapters IP address here, I mean and check.
So such as a wireless adapter IP address here.
Um, its Mac address, uh, what mode it's seen and more.
So the information you can glean from this command is particularly important when you are using violence
hacking tools like a crack in a crack and you hear like that.
Uh, so using the term, will it?
Now let's look at some wireless devices with E W conflict here.
He don't believe conflict.
So you can see it.
We have no wireless extensions.
So the output here tells us that the only network interface with wireless extension is VLANs zero.
If you have it on zero battery, in my case, I have not because it's a virtual machine.
We can change network information as well.
So being able to change your IP address and other network information is a useful skill because it helps.
It will help you access other networks while appearing as a trusted device on those networks.
For example, in a denial of service, the or else attack, you can support your IP so that the attack
appears to come from another source who is helping you evade IP capture during forensic analysis.
That is the relatively simple tasks in Linux.
So and it's done with the ifconfig command.
Um, changing your IP address to change your IP address, you enter.
If config, if config followed by the interface you want to reassign and the new IP unrest you want
to assign to the interface.
So in my case, for example, to assign IP address, uh, some IP address eight three zero here, uh,
and then enter your IP address 128.
Uh, what was, uh, our first IP address here?
As you can see, our default IP address one hundred twenty eight and twenty nine twenty nine.
They changed it to, uh, one hundred twenty one hundred fifteen.
Yeah.
Uh, here.
Uh, and fifty eight.
One hundred and twenty, actually one hundred fifteen.
As you can see, the operation is not planned for.
Or doing this door here, collar and password, as you can see it.
Linux will not return anything to us.
When you do this correctly, Linux will simply return to command, prompt and see nothing.
So this is a good thing here.
And then you can again check your network connections with new config here and use.
You should see.
Um, see that your IP address has changed to new IP address, as you can see here, I.
All right.
This is was to a last um number was one hundred twenty nine and this is now one hundred fifteen.
So you can also change your network masks and net netmask and broadcast ad broadcast address with Eve
Ifconfig Command.
For instance, if you want to assign the same 80 zero interface with internet masks, two hundred fifty
five point two hundred fifty five point zero point zero and the broadcast address to one hundred ninety
two point one hundred eighty eight to six and four point one point.
Two hundred fifty five.
Um, then your shoulder Typekit this in your tunnel, for example, cornflake and that's a sign our
I Ethernet adapter here and the first out.
IP address here.
Uh, here.
One hundred twenty one hundred sixty eight.
Want her?
One point one hundred fifteen.
One, 230 point, for example.
There's just no one hundred fifteen here.
And we showed you sudo for the second month and actually let's change the next month as well here.
Netmask two hundred fifty five point two hundred fifty five point zero point zero As you can see here,
we have the latest for the last 255, and part of from our common was learn all about this what, uh,
what is netmask and what is broadcast?
I will just show you how it is done and, uh, broadcast here.
One hundred twenty nine to two point one hundred sixty eight point one point two hundred fifty four.
Yes, the country I see here now, we changed our IP address once again.
If you're done correctly, everything collected the next response with a new command prompt here.
So now enter ifconfig command again to verify the huge of the parameters has been changed accordingly.
Here, as you can see here, we changed all of that.
So.
In Linux, we can spoil the IPA as well.
Um, actually, in next lecture, we will do it, so I am waiting you in next lecture.