1
00:00:00,950 --> 00:00:05,720
Welcome everyone to our bonus video where we are going to see how we can create the program that will

2
00:00:05,720 --> 00:00:07,850
brute force far less password.

3
00:00:07,880 --> 00:00:08,240
OK.

4
00:00:08,450 --> 00:00:11,870
So you'll be surprised how short this program is.

5
00:00:12,260 --> 00:00:14,050
So let's get straight into it.

6
00:00:14,060 --> 00:00:16,950
This would be the shortest program that we code by now.

7
00:00:17,120 --> 00:00:20,050
We need to go to the past for crack or entry can you.

8
00:00:20,060 --> 00:00:22,370
We select the python file and let's call it

9
00:00:25,070 --> 00:00:31,600
wireless dot B why we're going to use a library that will most likely need to download but let's import

10
00:00:31,600 --> 00:00:32,180
it first.

11
00:00:32,180 --> 00:00:40,690
We're going to import it like this from wireless import wireless with capital W.

12
00:00:40,730 --> 00:00:42,200
You can see this red underlined.

13
00:00:42,320 --> 00:00:43,640
So let's pip install it.

14
00:00:43,640 --> 00:00:47,540
So three install wireless

15
00:00:50,890 --> 00:00:54,790
it will download the library for us and we are good to go right now.

16
00:00:55,000 --> 00:01:02,620
All we need to do is we need to define an object called wire to be equal to wireless and then opened

17
00:01:02,680 --> 00:01:10,380
and closed brackets once we do that we can enter the for loop and use our past for list for each and

18
00:01:10,380 --> 00:01:16,570
every tried to connect to divide this access point so we first need to open that file with open

19
00:01:19,930 --> 00:01:21,370
let's open it with name

20
00:01:24,190 --> 00:01:32,350
pastoralist released the steep we to open it for reading we are open and it has a file so as file then

21
00:01:32,350 --> 00:01:33,940
we enter the for loop.

22
00:01:34,180 --> 00:01:38,920
So for line in filed all three lines

23
00:01:42,710 --> 00:01:47,120
all we need to do specify if wire object dot connect

24
00:01:50,240 --> 00:01:51,330
to the SSI I.D..

25
00:01:51,410 --> 00:01:53,960
And these are the two parameters that you will need to specify.

26
00:01:54,140 --> 00:01:59,960
So as this I.D. and password and now we will put equal right here password will be equal to line that

27
00:01:59,960 --> 00:02:00,470
strip

28
00:02:03,320 --> 00:02:08,750
while as the SSA I.D. can be anything that you specify in my case my wireless access point is called

29
00:02:09,110 --> 00:02:15,680
like this yours will be called different so you will specify different thing right here.

30
00:02:15,680 --> 00:02:19,550
And then if this is all equal to true we can print

31
00:02:22,480 --> 00:02:28,710
let's add the plus sign meaning that we successfully entered department's access point Whoops.

32
00:02:29,230 --> 00:02:41,270
So right here and we could simply specify plus line that strip and also add

33
00:02:43,730 --> 00:02:52,120
success OK in any other case we didn't manage to connect therefore will print

34
00:02:55,630 --> 00:02:56,890
plus line that strip

35
00:03:01,160 --> 00:03:10,190
fail or failed whatever we want and believe it or not this is the entire program.

36
00:03:10,240 --> 00:03:16,000
And keep in mind in most of the cases if you tried to run it right now in clinics this would not work

37
00:03:16,810 --> 00:03:19,820
especially if you don't have a wireless connector connected.

38
00:03:19,870 --> 00:03:25,270
Therefore I would advise you to run this either on windows or on some other Linux environment where

39
00:03:25,270 --> 00:03:30,960
you have your wireless adapter working and not in clinics where we are connected over cable.

40
00:03:30,960 --> 00:03:35,300
This will not work but you have the code for the program right here.

41
00:03:35,320 --> 00:03:40,870
You will also have it in the resources of this lecture so you can try it on your Windows machine or

42
00:03:40,870 --> 00:03:43,600
on your different laptop or your bond machine.

43
00:03:43,600 --> 00:03:48,970
It doesn't even matter as long as there is a wireless adapter that is up and running correctly.

44
00:03:48,970 --> 00:03:53,860
Make sure that you do have this bathroom based on the steep you can add a few passwords right here just

45
00:03:53,860 --> 00:03:54,760
to test it.

46
00:03:54,760 --> 00:03:58,920
Which one will work and you can then run this program.

47
00:03:58,940 --> 00:03:59,590
Another thing.

48
00:03:59,620 --> 00:04:03,910
If you're running this on a different machine don't forget to install the violence library.

49
00:04:04,510 --> 00:04:04,930
OK.

50
00:04:04,990 --> 00:04:07,660
So thank you for watching this bonus lecture.

51
00:04:07,750 --> 00:04:13,090
I hope you enjoyed this program and I will see you in the next bigger project.

52
00:04:13,090 --> 00:04:15,020
Thanks for watching and take care.

53
00:04:15,070 --> 00:04:15,360
Bye.
