So in the first lecture we just complete our sync SDK scan which was readable to right here which was
giving the version and the important thing over here was open ports.
So we just clicked the open port from our Python code.
So let's do for our UDP scan now.
So that will be in Elif part.
So I'll say Elif this response that these given from the user is.
And you know that is what we do with sort of this string because we get the response is the input which
is obviously in the form of the string.
So next thing I want to scan or basically print is the words and again I'll just copy pasted right here
and the next thing is to scan as always so I'll just say scanner that is scan.
So if you just remember this is the Europe is canceled first of all let's say IP address and the next
thing is to port.
So Port will be one two one two four and the next one here would be the argument.
So if you just remember in the case of this essay and we just did the verbose and we did something like
this which was the case of this DCP scan what this is now UDP scan.
So first of all we'll do the verbose scan and the next one is yes you.
So if you see a series for the UDP scan.
So now next thing is to print again the scan in.
So I'll just say a scanner dot scanning info is the method that is going to give us a decent idea again
about the methods and the next one is to print the IP status swells gather everything of it.
So it will be same for protocols and for the IP state if it is up and down.
So I've got the DCP protocols.
So in this case it will be the protocols and the next thing I want to take is the open port.
So now let me print again.
The open ports and in this case I want to this use a scanner method again.
And in this case it will be IP address if you see in the case of these say yes where you scan it we
have done the same.
But this was DCP.
Now the second option is for UDP.
So we have to put the UDP here and just get the keys.
That is the number that we want to get from this port.
That means we just get them open port from these UDP so if I just sit on this again.
So if I just run from here then let me just grab this.
So it is saying the IP address so it would be same.
And 168 or one or 14.
And now if I just press two then it is also going to have the Uribe scan literally to wait for a moment.
It will do it stocks.
It is only given day and members and so it is more gold here or it will take more time than that.
This way and we're just seeing attack.
So let's give it time to have this scanning process.
So now we have successfully found open fought for this sinking our scanning process so you can see the
IP is up and running and the method over here is UDP now.
So this was the next step which was basically for our UDP scan.
So the next one is a comprehensive scan.
So let's do this.
The last one which is obviously ultra comprehensive in the response would be let me say if the user
press 3.
Then I'm going to get this comprehensive scan.
So let's do something for this comprehensively scan same as before that is getting these print which
is saying that this is the end my version which will be obviously the seven point seven Oh and next
thing is I want the scanner to scan in that IP address that is entered by the user.
And now it has to the scan every report from 1 2 1 2 0 4 so basically this is the range.
So every year we type with the second argument is the reigns of the port to be scanned and the next
one is are women.
So if you get any confusion about this port you can simply Google saying that the argument for the and
maybe scan so you'll get this document getting all of these detections argument so you can see we have
the host discovery arguments over here.
We have the descriptive scan arguments over here.
Always detects any scan over here.
So we are going to use this OIS detection now in this comprehensive scan.
So let's do this.
So first of all it's always will just do the work with the scan.
So next next one would be yes yes attack which is obviously to see for the DCP attack or basically to
CPS way in the scanning process and the next one I want easy as a V and it is yes and B.
So this one is to take the port to determine the service in this and the Virgin in for optimising the
next one I want D Yes C and what this does is let me this type real quick yes see if you see the Capitol
and this is equivalent to the script of being the default and let B type then another one which is very
important this e in the capital D in it was the way as detection virgin takes in any script is scanning
so basically will we get the Virgin in ways with these are women and the next one I want is or for the
waste detection.
So if you one do this again the more knowledge about this argument you can simply starts here.
So if I see or we have this added over here which is right here.
So this all argument is saying that this is to enable lowest detection so we can see and map has bundles
of these are women.
But just remember if we add more and more of these arguments to your programming it will be more time
consuming this time is scanning or basically scanning process will be more time consuming if you add
more and more ups and if you add something like let me say if you want to do these debugging level you
increase that if big label then you can see simply add this small team but I am not going to do that
because this will be perfectly for this comprehensive scan.
So next thing I want to do here is the same as before to take these scanning for so first of all as
you this is scanner object again and I want to get these scanning for which will give the dishonesty
about the methods and the next one is to check for the IP status same as before and to check for the
protocols.
Let me just copy this and pasted over here.
So this IP status is going to sue us if the IP or the machine is up or down and this will give us that
DCP protocol and the next one is I want to take for the open ports so let's do that.
So here in this comprehensive scan I want to do this DCP open borders cancel let me just copy this paste
it over here.
So we have completed our Lexis so if user presses able three let me see if it is greater recall to four
then what we need to do is simply print Invalid please enter valid option
so this will be the result of basically masses to the user.
Now we have completed our court here.
So first of all let me just sit on this real quick and is good.
This message saying into the IP address you want to scan same as for you can simply take your IP address
by just going to the common terminal and just typing IP config and you will see this is wireless LAN
Adapter having this IP address I have just copy it over here and now I want this comprehensive scan
which is at number three.
Let me just sit into and do this to do now the comprehensive scan lets you give it time.
It will take more time than these two scanning process.
So it's way an attack was so simple that it did give the result within the minute or less UDP scan took
about one minute.
Now comprehensive will take maybe more than one minute later to give a time I suppose and give you the
result.
So we get all of these open port now and you can see that we get the same result over here which was
done in the case of sink.
But it is more comprehensive than that of saying scanning.
So we made our a year and maybe scan over here which will get us open bought the IP status they scanner
result and all of this information that we just see over here.
So you can also see the command line over there so you can do this by your own way.
So we just made our route completely and map ports scanner using this in map module.
So this will be there for this lecture in the upcoming leg.
So we'll see more interesting part of the python in the hope item can be used for more hacking purposes.