Skip to playerSkip to main contentSkip to footer
  • 7/3/2024

Category

📚
Learning
Transcript
00:00So, welcome everyone.
00:02Today's lecture will generally be on the practical side.
00:06Yesterday, I gave you a task in which I provided the winner.
00:11It was the first time for all of you, so I thought of providing the material to everyone.
00:16I have a lot of material, but the winner, who wins and participates, can get that material.
00:25There are a lot of materials and a lot of different topics.
00:29I have at least 10-15 books on all the topics.
00:33So, if you want all these things, then participate in whatever task I am giving.
00:37Today's lecture is from the beginning of the task I gave yesterday.
00:41Before showing the practical side of it, because most of the things we will talk about today will be on the calligraphy.
00:46How shell scripting is done, what all things are there.
00:49Because we will have to understand a little bit.
00:51In theory, everyone understands, but now it is time to go a little practical.
00:56So, now we will keep increasing the practical with the lectures.
00:59So, as we talked yesterday, DNS will be taught.
01:03DNS will be touched, that is, it will be started.
01:06After starting DNS, some things will be shown to you.
01:09Some things will be taught in Kali, who is very fond of Kali.
01:12So, it will also be told about Kali.
01:14A little bit of the operating system will also be taught.
01:16Before starting the basics of Kali, we should have an idea of ​​the operating system.
01:22So, let's start.
01:23It is such that if we learn anything, we will learn it deeply.
01:26It is not that it will be left in the middle.
01:28If I am telling you a particular topic, then the new guy who does not know anything.
01:32For example, he is watching Kali for the first time.
01:34So, he also has to understand.
01:35For example, who has not installed Kali, I told you how to install Kali.
01:39Use any particular virtual box.
01:41If you are in Windows, then Oracle is best.
01:43If you are in Mac, then VM Fusionware is the best.
01:46VMware is also best for Windows.
01:49Otherwise, I will prefer the Oracle box more.
01:52Download any of these virtual boxes.
01:54Download the directory image of Kali.
01:58Execute it in Kali.
02:00Execute it in its files.
02:02See, my file is running here.
02:04I am showing the virtual machine here.
02:06It is also of Windows 11, but I have kept it closed.
02:08So, let's start today.
02:10The task of tomorrow's lecture will be completed today.
02:13This lecture will be more practical today.
02:16So, DNS.
02:17We have talked a lot now.
02:19Who has an IP address?
02:21What is an IP address?
02:24For example, IP address.
02:26We have seen a lot of IP addresses.
02:28192.168.14.0
02:31This is an IP address.
02:33But I also told you about HTTP.
02:35In the last lecture, on TCP IP application.
02:38And I also told you about FTP.
02:40And I also showed you by opening FTP.
02:42FTP is generally a file sharing transfer protocol.
02:45How was the file shared on FTP?
02:47How is FTP opened in Mozilla?
02:49Do you use HTTP or HTTPS?
02:51In the old days, FTP was used.
02:54By making a particular local area network server.
02:57FTP can also be used.
02:58You must have seen all these things in the previous lectures.
03:01And after that, in this lecture, you will understand.
03:03Why is DNS started now?
03:05What was the reason for starting DNS?
03:07So, what happened?
03:08When we read the previous networks.
03:10I told you that HTTP.
03:12And we have to search any IP address here.
03:15192.168.1
03:16Which is the IP address of that particular site.
03:18Then that site will open.
03:19But don't you think it will be difficult to remember everyone's IP address?
03:23It will be very difficult.
03:25Everyone's IP address is not remembered.
03:27That's why we said that we directly search for apple.com.
03:30Or we search directly for microsoft.com.
03:33Okay.
03:34I open any particular website.
03:36By name.
03:37Not with the IP address.
03:39Now this is for our use.
03:41But what does the computer know?
03:42Microsoft doesn't know what a computer is.
03:44What is Apple?
03:45What is Google?
03:46They know what is its IP address.
03:48So how does he know that IP address?
03:50Now how does he know this thing?
03:53How to understand the computer?
03:54How to understand the network?
03:55That thing should be understood.
03:57How do they understand?
03:58How does he create?
04:00So how does this name come?
04:02This is our main procedure to know DNS.
04:04So, like a navigation page, like a summary page.
04:07What to learn?
04:08DNS.
04:09Okay.
04:10Naming.
04:11Namespaces.
04:12Nameservers.
04:13Name resolution.
04:14DNS servers.
04:15CIFS.
04:16OVNs.
04:17Look.
04:18I will only do DNS search here.
04:19Only the first topic.
04:20Because we will do a little practical today.
04:21Okay.
04:22The rest of the next lecture will be at least.
04:24I try.
04:25One and a half hours.
04:26Or it will be two hours.
04:27It will be a little long.
04:28Run it.
04:29You have to study this much.
04:30If I am teaching for two hours, then what is the problem in studying for two hours?
04:35So I will try to complete so many topics in one lecture.
04:39That it is completed in one lecture only.
04:42Because doing three, three, four, four lectures.
04:45You must be feeling a little.
04:46A lot of people must be feeling bulky.
04:47So now let's try the two-hour one once.
04:50What is the response?
04:52So we will do DNS search today.
04:53The rest of this will be seen later.
04:56And DNS which is pre.
04:58What do you mean?
04:59Before our main network came.
05:01How did DNS work?
05:02Learn that.
05:03Okay.
05:04So let's start.
05:06So let's assume.
05:08A computer system.
05:10When the network was growing.
05:12There were only a few hundred, two hundred, three hundred, four hundred computers.
05:15Like there is a computer in a university.
05:17There is a computer in another university.
05:18The geeks of such universities had all these computers.
05:21Then there were three hundred, four hundred computers.
05:24Means a network was in a particular small box.
05:27Means a small box means it was very small.
05:30And the benefit of being very small is that we already had a number of computers.
05:34Now the numbers of computers were already there.
05:37So it was difficult to remember their IP address.
05:40Means there were two computers, three computers.
05:42Then it would be easy.
05:43But as soon as the list of computers reached two hundred, three hundred, four hundred.
05:46Then humans realized.
05:47That it is getting difficult to remember this IP address.
05:50Gradually for us.
05:51So as it gradually became difficult.
05:53By the way, what did we do?
05:54We thought why not give a name to this particular number.
05:57And that particular number is called DNS.
06:01Okay.
06:02Now what is full form?
06:03They will know everything well.
06:04But now I am just giving you an idea.
06:06As the number of computers increased, humans realized.
06:08That it is difficult for us to remember this particular IP address number.
06:11For computers it is difficult for us.
06:13So we made DNS.
06:14Now, for example, I have given the name of this particular IP address.
06:17Microsoft.
06:19Or I have given the name of Hush.
06:20Suppose I have given the name of Hush.
06:21So if I open www.hush.com.
06:24Or if I search for Direct Hush in search.
06:26So Direct Hush should be opened.
06:28Means if I searched for Hush.
06:30Then my website or Microsoft's website should be opened.
06:32Any website should be opened.
06:33Whose IP address is this.
06:35Okay.
06:36Easy thing.
06:37It became easy for us to remember.
06:38Okay.
06:40Now as it became easy for us.
06:41We thought.
06:43Okay, so the thing is good.
06:45So how did this particular thing happen?
06:47Now the main thing is how did it happen?
06:49Where was this name stored?
06:51How did we know this name?
06:52How did we know this name?
06:54So earlier there were 300-400 computers.
06:56How many were there?
06:57300-400.
06:58Maximum 300-400.
06:59Okay.
07:00So 300-400 computers.
07:01So you must be thinking that it is easy.
07:02What will I do?
07:03I will make a particular file.
07:05In a file there will be a list of all 400 computers.
07:09And I will give the name of that list of 400 computers.
07:11And it will be in every computer.
07:12That list will be in that list of 400 computers.
07:15Okay.
07:16Now the list of 400 computers.
07:17I have already pre-installed in a computer.
07:20What is the benefit of this?
07:21You know the name of the network.
07:22You know the name of the network.
07:23It is easily connected.
07:25And this particular file that I am talking about.
07:27This is called a host file.
07:29S.
07:30Host file.
07:32Not host.
07:33Host.
07:34Means S additional.
07:35Okay.
07:36I have a little difficulty in pronouncing S.
07:37No problem.
07:38So host file.
07:39Okay.
07:40So if you are called a host file.
07:41Not a host file.
07:42It is called a host file.
07:43It also has a full form.
07:44So don't miss S.
07:46Okay.
07:47So we found out that it is called a host file.
07:49Now what do we have to do?
07:51Now this particular file.
07:53Today there is a full practical on this.
07:55That we will understand the practical that I gave you.
07:58But for that we should have a very good idea of Kali.
08:01Very good means.
08:02The idea of which is important.
08:03I am going to give you today.
08:04Okay.
08:05So.
08:06The first thing we will talk about today is Shell.
08:11Who will we talk about?
08:12About Shell.
08:13Okay.
08:14Now.
08:15Before understanding Shell.
08:16I want to give you an idea of an operating system.
08:18If there is a lecture on our operating system.
08:19So in that.
08:20It will be very deep.
08:21All these things.
08:22Very deep.
08:23You must not have seen anywhere.
08:25Now what I am telling you.
08:26You will not even get it on YouTube.
08:27I am telling you before.
08:28The thing that I will discuss now.
08:29Host file.
08:30All these things.
08:31You will get it three years.
08:32Four years ago.
08:33All outdated.
08:34And whatever will remain.
08:35There is one way in it.
08:36I will tell you two or three ways.
08:37Okay.
08:38So be prepared.
08:39Now let's talk a little about Shell.
08:41To talk about Shell.
08:42I tell you.
08:43Now assume this is your operating system.
08:45As I made a diagram for the last time.
08:48This is your fan.
08:49Okay.
08:50This is your fan.
08:51Okay.
08:52These are all your batteries.
08:54These are all your batteries.
08:57And these are all your processors.
08:59I have made an easy diagram.
09:00Okay.
09:01This is all hardware.
09:03What is hardware?
09:05Now to run this hardware.
09:06You need something like this.
09:08That can integrate the hardware.
09:09I mean integration.
09:11That I have to send the file from one place to another.
09:14What is the job of the fan in it?
09:16The job of the fan will come when the file is very big.
09:18When the laptop starts heating.
09:20Then the fan will have to be turned on.
09:22In that, the job of the CPU is of the processor.
09:24Okay.
09:26So how did this hardware come to know?
09:28This tells kernel.
09:30Who tells?
09:31Kernel.
09:32You must have heard a lot of terms.
09:33What is kernel?
09:35So kernel is nothing.
09:36It is a software that helps to.
09:38Means which controls the hardware.
09:40Okay.
09:41Very good.
09:42But it tells you one thing.
09:44The kernel actually understands binary.
09:46What does it understand?
09:48Binary.
09:50We are kernel.
09:52You must be saying.
09:54Kernel is your terminal.
09:56We generally use kernel in it.
09:58What do you say?
10:00We use it in the terminal.
10:02So it is binary.
10:04We do not write.
10:06We write all the coding.
10:08So generally the code we write.
10:10The kernel understands.
10:12There is a layer outside.
10:14Whose name starts with U.
10:16I do not want to introduce it now.
10:18Utk comes ahead.
10:20I will not introduce it now.
10:22We will introduce it in the operating system.
10:24But understand what is important today.
10:26Who guides the hardware?
10:28Kernel.
10:30What does kernel understand?
10:32Binary.
10:34We do not know binary.
10:36What do we know?
10:38We know abcdefg.
10:40Okay.
10:42Binary means.
10:44The kernel guides the hardware.
10:46What will we do?
10:48We will write code in shell.
10:50Shell will guide the kernel.
10:52Then the kernel will guide the hardware.
10:54So this is the process of the operating system.
10:56There is a lot more process.
10:58But for now,
11:00We have to explain the terminology of shell.
11:02What is shell?
11:04Did you get the idea?
11:06We did not tell the kernel in binary.
11:08We made a shell.
11:10If I tell you to make a shell.
11:12That you make a particular document.
11:14Which will be converted to 01 later.
11:16Which the kernel will understand.
11:18This does not mean.
11:20Do you understand what shell is?
11:22You also know about host files.
11:24Okay.
11:26Let's do practical today.
11:28A lot of theory.
11:30A lot of people got bored.
11:32Okay.
11:34So let's start with something new.
11:36I do this.
11:38What do I do first of all?
11:40I search any IP address.
11:42Of any site.
11:44Okay.
11:46Now if you want to get the IP address of any computer.
11:48How will you get it?
11:50Everyone will be very big.
11:52Who will be ahead in Kali.
11:54That they knew how to use Kali.
11:56But they generally do not know the terminology.
11:59If I.
12:01What do I say?
12:03If I get the IP address of the outside.
12:05Maybe I will have a problem.
12:07If I change it to my host file.
12:09So I have a problem in my PC.
12:10What am I doing now?
12:12I am my terminal.
12:14Now I want to tell you a little bit about Mac OS.
12:17Okay.
12:19This is my terminal.
12:21This is the terminal of Mac OS.
12:23Tell you one thing.
12:25I tell you one thing.
12:28Mac OS terminal.
12:30That is Linux based.
12:33Means you will use the command in Kali Linux.
12:36You can do it here too.
12:38In Mac OS.
12:40But you can't do it in Windows.
12:42I'm telling you first.
12:44Some Kali Linux based commands.
12:46You can't run it in Windows.
12:48You can't run it in your command prompt.
12:50You can run it in Mac.
12:52But if I want to change my host file in Mac.
12:54Okay.
12:56But I'm not doing it.
12:58Why?
13:00Because I will do it in my Mac.
13:02Then to delete it.
13:04I have to do a lot of procedures to give it permission.
13:06Which I do not want to give.
13:08I mean, what are you saying?
13:10If I tell you, you will get an idea.
13:12What am I saying?
13:14So you must have got an idea about the host file.
13:16Host file is generally in your laptop.
13:18In Windows, anywhere.
13:20It is generally present at this particular location.
13:22ETC.
13:24Host.
13:26I mean, there will be a folder called ETC.
13:28There will be a folder called Extra.
13:30In which your host file is present.
13:32Okay.
13:34Before starting this particular demonstration.
13:36Which I gave you a task yesterday.
13:38I want to tell you one.
13:40If we talk about the file.
13:42Let's go into a little more detail.
13:44Because I will use a lot of commands in this.
13:46First command.
13:48Sudo.
13:50You must have used Sudo many times.
13:52Sudo apt.
13:54Sudo nano.
13:56Sudo win.
13:58Why is this Sudo used?
14:00First of all.
14:02Generally what happens.
14:04Every file has some permissions.
14:06For example.
14:08Some files are like this.
14:10Read only.
14:12For example, there is a particular file.
14:14In which Kali Linux.
14:16Working.
14:18I am just showing according to the example.
14:20Kali Linux's working is written in it.
14:22Kali Linux's working is written.
14:24So what will happen.
14:26If you change this particular file.
14:28Then your entire Kali operating system.
14:31The way of working will change.
14:33And generally.
14:35There will be no such system in default.
14:37Which you have to do this.
14:38But if you are using Kali.
14:40Then you should have a way to do this.
14:42That's why we use Sudo.
14:44This means.
14:46Sudo is a particular command.
14:48Which gives you administrative power.
14:50What does it give?
14:52Administrative power.
14:54Whichever command you are typing.
14:56I will type any command after this.
14:58So that particular command.
15:00Will get power.
15:02As a pseudo power.
15:04Administrative power.
15:06You can change it if you want.
15:08Whatever you want to do.
15:10I don't care.
15:12Then I wrote its file name.
15:14Which is the name of my command.
15:16For example, I will use nano.
15:18I will tell you what is nano.
15:20It is not a car.
15:22Then I will write its file name.
15:24Sudo nano and then file name.
15:26I got the idea of Sudo.
15:28Now let's go a little further.
15:30Next thing is nano.
15:32And vim.
15:34There are many more.
15:36Get catch.
15:38This is a text editor file.
15:40Text editor sorry.
15:42Text editor command.
15:44Means I have a particular file.
15:47And I opened it with nano.
15:49So what will happen you know.
15:51That file.
15:53I can change anything in that file.
15:55I can add anything new.
15:57Or I can remove anything from it.
15:59Then save the file again.
16:01So the file in which I made changes.
16:03It was saved with the same changes.
16:05The same is the case with vim.
16:06There are many such commands whose work is the same.
16:08So I will show you in both nano and vim.
16:11How it happens.
16:13There is a slightly different procedure in nano.
16:15There is a slightly different procedure in vim.
16:17We will see both today.
16:19You will not find it on YouTube.
16:21I am telling you first.
16:23So you will also get to know about nano and vim.
16:25It is a text editor command.
16:27After that I will tell you about cat.
16:29There is a particular command cat.
16:31Cat is a particular command.
16:33Which you have any file.
16:34There is a file.
16:36Without opening it.
16:38If you want to see what is written in it.
16:40If you want to see what is in it.
16:42If you want to see that.
16:44You write the name of the cat of that file.
16:46So whatever is written in that particular file.
16:48You will see everything.
16:50No problem.
16:52What is the idea of cat?
16:54Without opening it.
16:56If you want to see what is written in it.
16:58You put the name of the cat of the file.
17:00You will open it.
17:02The next thing is p-i-n-g command.
17:04By the way in TCP IP.
17:06Mostly I have focused on netstat.
17:08Netstat is r, netstat is a, netstat is n.
17:10I have focused on all this.
17:12But ping command.
17:14Packet internet grouper.
17:16This is its full form.
17:18Packet.
17:20I am still talking about the packet.
17:22Internet.
17:24Related to the network.
17:26Grouper.
17:28From a particular IP address.
17:30To which IP address.
17:32Which packet is going.
17:34Just.
17:36It shows that a particular command.
17:38Which is my particular IP address.
17:40Where is it.
17:42Executing your packets.
17:44Just shows this much.
17:46Do not understand where you are sending that particular.
17:48How to send it.
17:50No, no, no.
17:52A particular packet that you have assigned.
17:54Like I will write ping.
17:56And I have put apple.com here.
17:58Sorry.
18:00Its IP address.
18:02Whose?
18:04From this particular packet.
18:06From this particular site.
18:08It is going like this.
18:10It is coming in our system.
18:12Our system will be here.
18:14This particular site will be here.
18:16How many bytes are there.
18:18I will tell you what is coming and what is not.
18:20I am just giving an example.
18:22Do not understand this.
18:24Its working base.
18:26So you got the idea of ping command.
18:28You got the idea of shell.
18:30You got the idea of cat.
18:32You got the idea of nano.
18:34Write such a thing.
18:36Do such a thing.
18:38That I search a particular website.
18:40With my name.
18:42And that website opens with that name.
18:44I said this.
18:46Now what will the host file do.
18:48All IP addresses will be written in the host file.
18:50All IP addresses will be written.
18:52All names will be written.
18:54All websites names will be written.
18:56Now what I will do in this whole file.
18:58I will add one more name.
19:00My IP address which I want from that site.
19:02And I will put my name.
19:04If I open www.harsh.com
19:06Then this particular IP address will open.
19:08It was easy.
19:10It was easy.
19:12Now what I will do.
19:14First I want to show you the host file.
19:16Now I am using nano.
19:18I am using nano.
19:20I will also use vim.
19:22Why am I doing nano.
19:24What will happen with nano.
19:26I am not doing nano.
19:28I told you that nano is a text editor.
19:30I told you to open any file.
19:32If you want to open any file.
19:34Open any file.
19:36Ok.
19:38So this is a cat file.
19:40I have opened a particular cat file.
19:42What are the entries in my host file.
19:44Now you must be thinking.
19:46There are so many computers in the world.
19:48But there are 5 to 6 entries in this.
19:50How did this happen.
19:52So I will tell you.
19:54The host file.
19:56The host file is present in all computers today.
19:58But it is not used.
20:00Where is it used.
20:02I will tell you in the lectures.
20:04Ok.
20:06Today's main task is to execute it.
20:08Ok.
20:10So many people had difficulty in saving the file.
20:12Those who have tried to execute it.
20:14Many people had difficulty in saving it.
20:17How to save this file.
20:19The file is not being saved.
20:21What to do.
20:23So today I will clear their doubt.
20:25How to save a file.
20:27If you are using any text editor.
20:29And where to do that is also important.
20:31So we have learned all these basic things.
20:32So we have learned all these basic things.
20:34So that we can understand all these things.
20:36If I had brought you directly to kali.
20:38Then you would not have known.
20:40What is IPv6.
20:42After this lecture there is IPv6.
20:44You can see this IP address.
20:46From here to here.
20:48What is its network ID.
20:50What is this.
20:52We have its host ID.
20:54Very easy to understand.
20:56Ok.
20:58You have seen the file.
21:00Now I have to edit the test.
21:02You will open it.
21:04I have opened the file from the text editor.
21:06Now I have to add it.
21:08What will I add.
21:10I will add 192.168.
21:12I am adding randomly.
21:14I have no idea which IP address it is.
21:16192.168.23.4
21:18I have added it.
21:20I said save it in the name of Harsh.
21:22I told you to open it in the name of Harsh.
21:24You open it in your name.
21:26I am just giving an example.
21:28I have saved it in the name of Harsh.
21:30Here you can give the option of exit.
21:32I have pressed Y to save it.
21:34And I have pressed Enter.
21:36Here you will see error writing.
21:38Permission denied.
21:40Why permission denied.
21:42Now tell me this.
21:44I have told you earlier why permission denied.
21:46I have just told you.
21:48Some particular files are like this.
21:50Which has only read permission.
21:52Which is read only permission.
21:54Now if you want to see its execution.
21:56Is there really read only permission in the host file.
21:58I will show you.
22:00Ok.
22:02Let's start with the new terminal.
22:04No.
22:06I don't want to execute.
22:08Ok.
22:10So.
22:12What is our turn now.
22:14Is there read only permission in it.
22:16Confirm.
22:18I am using a new text editor.
22:20Which works on shell.
22:22Which text editor.
22:24Vim shell editor.
22:26Text editor.
22:28This works on shell.
22:30If you have no idea what shell is.
22:32You have to send it to the terminal.
22:34In our particular language.
22:36What is done in shell.
22:38Code is written.
22:40Which code we call scripting.
22:42What is called scripting.
22:44Code written in shell is called scripting.
22:46So whatever scripting we read is called vim.
22:48Whatever scripting is done in shell.
22:50Or code is written is generally called scripting.
22:52Ok.
22:54I will open it from vim.
22:56Ok.
22:58You have seen.
23:00It has changed completely.
23:02It is written on insert.
23:04Sorry.
23:06One second.
23:08I have added a lot of things in it.
23:10I won't be able to save it.
23:12You must be thinking that I have done it.
23:14But I won't be able to save it.
23:16Ok.
23:18It is written here.
23:20Read only option is set.
23:22Add.
23:24Exclamation mark to overwrite.
23:26It is read only permission.
23:28Did you understand that it is read only permission.
23:30Ok.
23:32Now you will think that why it is not quitting from here.
23:34I will tell you the reason for this in some time.
23:36Why I didn't quit there.
23:38I will tell you in vim.
23:40Ok.
23:42Now it is read only permission.
23:44As I told you it is read only permission.
23:46I have to edit anything in it.
23:48So what I will do.
23:50I will use sudo.
23:52What will sudo do.
23:54It will give me administrative power.
23:56I can put anything I want in it.
23:58I can remove anything I want.
24:00You saw there was an error in it.
24:02Ok.
24:04It hasn't been added yet.
24:06Now what I will do is sudo nano.
24:08I am using nano now.
24:10I will use vim also.
24:12I have put file name sudo nano.
24:14What will sudo do.
24:16It will give me administrative power.
24:18Whatever file you will use now.
24:20It will give you administrative power.
24:22You can change anything in it.
24:24Whatever you want.
24:26As soon as I pressed enter.
24:28It will ask for password.
24:30Because I have to give administrative power.
24:32Now I will show you.
24:34I can add anything in it.
24:36Now I will add 192.168.10.
24:38No problem.
24:40I don't even know what it is.
24:42I have put hash.
24:44Now what I have to do here.
24:46You can see the mark above me.
24:48It is of option.
24:50Sorry it is of control.
24:52Your control x will exit.
24:54It will show you below which key to use.
24:56I have exited control x.
24:58I have pressed y.
25:00And I have pressed enter.
25:02You will think why did you save.
25:04Because I have used sudo.
25:06I have used administrative power.
25:08Now what I will do generally.
25:10Now I will go to cat and see this.
25:12Word.
25:14See below it is writing.
25:16It is writing 192.168.12.3
25:18You got the thing.
25:20Your edit is done.
25:22Permission denied.
25:24You understood why it was coming.
25:26Because you were changing read only file.
25:28Read only file never changes.
25:30You can save it in any directory.
25:32Now let's talk.
25:34As I have shown you by changing.
25:36Now what I have done.
25:38I will tell you.
25:40I have put one more IP address in a particular file.
25:44Now this IP address can be of any website.
25:47Suppose I have to open apple.com in the name of hash.
25:55I have to open apple.com in the name of hash.
25:58So what I will do.
25:59I will write the IP address of apple.com here.
26:01And save the hash.
26:03Now I will do hash search on google.
26:05It will open apple.com.
26:07Okay.
26:09Now what does this mean.
26:11Now I want to explain you the opposite thing.
26:13By doing the opposite.
26:15Means if you get the summary.
26:17It is best.
26:19What do I mean by the opposite.
26:21I used to write apple.com.
26:23Pinch
26:25Apple.com
26:27So what did it give me.
26:29Pinch used to give the IP address of apple.com.
26:33Now what I have done.
26:35I have changed the host file in such a way that.
26:37That particular URL is now saved in the name of hash.
26:39Save on my computer.
26:41It is not that if another person in the world opens with hash, then apple will open.
26:44No, this has been changed for my file.
26:46Okay.
26:48What should happen if I write pinch hash.
26:51I have assigned the IP address of apple.
26:54So should it display the IP address of apple.
26:56Yes.
26:57If I write pinch hash.
26:59Or pinch apple.com
27:01The IP address of both will be the same.
27:03On my computer.
27:05Because I changed my host file.
27:07Now what will I do.
27:09Pinch hash.
27:11See what I am getting.
27:13192.168.12.3
27:15Easy.
27:17What else do you want.
27:19What I said.
27:21Now one more thing I said.
27:23Open on Google.
27:24Because I used to run on HTTP.
27:26So this file opens quickly.
27:28If I wanted to write hash.
27:30So it would generally open.
27:32But now this error will be shown.
27:34Okay.
27:36This error will be shown due to security reasons.
27:38But what we have done with pinch command.
27:40Verify this.
27:42Yes, this thing is working.
27:44So you got a working thing.
27:46Very good.
27:48Now what I do.
27:50Have a little more fun.
27:52It will not be fun like this.
27:54If you do not do everything a little hard.
27:56What is the fun in Kali.
27:58If you do not learn all these things.
28:00Then what is the point of learning.
28:02Now what I do.
28:04I open it again with the pseudo command.
28:06Okay.
28:08Now what I do.
28:10Now I remove what I have changed.
28:12Now why are you removing.
28:14Because I am going to do something with Vim.
28:16Okay.
28:18Now if I want to save this.
28:20It will be easy for me.
28:22Now if I read again.
28:24What is not written.
28:26Nothing is written.
28:28You can do it with pseudo.
28:30Now there will be something like this.
28:32The knowledge test.
28:34Something happens.
28:36I was also there.
28:38I will tell you first.
28:40How many people come in front.
28:42Because we are learning from whom.
28:44He should also come.
28:46If one way is coming, then okay.
28:48Anyone will tell one way.
28:50If two or three ways are told.
28:52Then it will be fun.
28:54Why did you do it.
28:56Now you will understand.
28:58Because you have to solve in two or three ways.
29:00By doing it in two or three ways.
29:02You get a lot of variety of command.
29:04Variety of different fields.
29:06Now I will use Vim command.
29:08You will not use pseudo in Vim command.
29:10Now we will use something else in Vim command.
29:12Now what to use and what not to do.
29:14We will see that later.
29:16I opened Vim.
29:18It opened in one shell.
29:20Now we will do scripting.
29:22Whatever we write, it will be called scripting.
29:24Now a shell has opened.
29:26If you want to write anything in it.
29:28To write anything in it, you have to press I.
29:30Insert mode.
29:32You will press I in your PC.
29:34It means insert mode.
29:36If you have studied BASH, it will be best for it.
29:38Who has studied BASH language.
29:40If you have not studied, you will learn.
29:42It is a scripting language.
29:44We will learn very well.
29:46Not in this particular course.
29:48In the coming courses.
29:50Now I am not able to insert anything.
29:52I have typed 192.
29:5410.5
29:56I have typed it from HERSH.
29:58Now I will tell you.
30:00What is the way to close scripting.
30:02If I want to close any script.
30:04So what to do.
30:06First press the ESC button of your computer.
30:10Then semicolon.
30:12There will be semicolon in your computer.
30:15Write it here.
30:17Then you write WQ here.
30:19What to do, write WQ.
30:21It is the command to save the file.
30:23Now this WQ came.
30:25QQ came.
30:27This is also a reason.
30:29But when we read BASH.
30:31So we will talk well.
30:33Why WQ only.
30:35So we will put WQ.
30:37That particular file will be saved.
30:39Let's do it.
30:41I pressed ESC.
30:43I put semicolon.
30:45I pressed ESC.
30:47I put semicolon WQ.
30:49Press ENTER.
30:50Read only option is set.
30:52Read only option is coming.
30:54Now what to do.
30:56Now what to do.
30:58Now the file is not being removed.
31:00It is not being saved.
31:02Now what to do.
31:04You can only see the visuals.
31:06You can't remove it.
31:08I will press I again.
31:10I will come to insert mode.
31:12I pressed ESC.
31:14I pressed ESC.
31:16Now I will type a command here.
31:18What will I type now.
31:20I will type a command here.
31:22I will type a command here.
31:24Read command again.
31:26Read command again.
31:28Read command again.
31:30Read command again.
31:32You will get the idea.
31:34Why T and percentage.
31:36We will talk about this in BASH.
31:38Why this.
31:40I will do one thing here.
31:42I will press ENTER.
31:44I will press ENTER again.
31:46I will press ENTER again.
31:48My shell will start.
31:50I have executed the shell.
31:52Now you will not save it with WQ.
31:55You will close it.
31:57And open a new terminal shell again.
32:00Open a shell means open a terminal.
32:02And here you will get your cat file again.
32:05Now what I changed below, you can see.
32:07I saved it from 5 here.
32:09168.10.5
32:11What I saved in Vim, you can see.
32:13You can go back and cross check.
32:15That is saved.
32:17That nano one is not saved.
32:18This Vim file is also saved.
32:20Now why did I exit, I will tell you.
32:22Not now.
32:24Because the reason is too long.
32:26I have to go to the operating system for a long time.
32:28When you understand the operating system.
32:30Then you will understand these things better.
32:32Why did I do networking, you are getting the idea.
32:34The main purpose of networking was that.
32:36You will slowly understand the command.
32:38You will slowly understand IP address, DNS, TCP, IP.
32:40IPv6 is coming now.
32:42How does Wi-Fi work.
32:44All protocols.
32:46You will understand all these things.
32:48If I do the operating system.
32:50Your scripting will end.
32:52Your pen testing.
32:54What do you say.
32:56It will end on the operating system.
32:58It will end on the architecture.
33:00Many things will be completed slowly.
33:02And you will feel that we were getting bored.
33:04But this thing was doing something like this.
33:06That our things were slowly clearing.
33:08You will feel that all these things are boring.
33:10But slowly all these things will clear you.
33:12So what did I do.
33:14I opened cat etc.
33:16I saw again on Vim.
33:18Now you do it.
33:20You have an idea how it happens.
33:22So I generally told you two ways.
33:24One is Vim.
33:26I told you from two text editors.
33:28There are two more.
33:30If you want to know that too.
33:32Then message me.
33:34I will tell you the method of two.
33:36One is Vim and the other is Nano.
33:38You got a good idea from Vim and Nano.
33:40I showed Nano with Pseudo.
33:42What did I tell you for scripting.
33:44What is the exclamation mark.
33:46Pseudo.
33:48So you got a very long idea.
33:50How to do scripting.
33:52You got to know a little bit of scripting.
33:54You just have to know.
33:56I just gave you the task of tomorrow.
33:58I had to take it in detail.
34:00So you got an idea.
34:02Okay, you got a good idea.
34:04So today's lecture.
34:06I think it was on a very practical basis.
34:08Lectures like this will come slowly.
34:10Because how will we do theory.
34:12There is a lot to do theory.
34:14I want you to do theory.
34:16But people will lose their mind.
34:18So what do I do for this.
34:20There is such a command in any lecture.
34:22I use all these things.
34:24So there is a good way to explain this.
34:26People understand easily.
34:28So you understood easily.
34:30For that we have done a lot of things for you.
34:32Yesterday I also gave a particular task.
34:34There will be a task in the next lectures.
34:36So you stay connected.
34:38Till then see you in the next lecture.
34:40If you are new in the lectures.
34:42You can access our portals here.
34:44And this is our WhatsApp group.
34:46You can join it.
34:48So see you in the next lecture.
34:50That's all for today's lecture.
34:52Bye.