1
00:00:00,270 --> 00:00:03,190
Okay so the network is setup.

2
00:00:03,360 --> 00:00:06,820
Now let's use this python script.

3
00:00:06,840 --> 00:00:10,910
Basically what this python script does is it imports pi shock.

4
00:00:11,280 --> 00:00:20,400
So I'm gonna run Python 3 run a script that imports pi shock creates a variable called Capture that

5
00:00:20,400 --> 00:00:28,920
calls this a life capture option in PI shock and captures traffic directly from Ethan at zero.

6
00:00:28,950 --> 00:00:38,290
Now there's actually a fantastic application that you can use through your console when checking things

7
00:00:42,550 --> 00:00:43,260
in Python.

8
00:00:43,300 --> 00:00:52,600
And that's a python I Python is a nice interactive shell for Python rather than having to use an IDC

9
00:00:53,170 --> 00:00:56,400
or integrated development environment on a gooey.

10
00:00:56,470 --> 00:01:00,100
You can do something similar directly through the console.

11
00:01:00,100 --> 00:01:04,480
Now I'm going to connect the boon to client back to the ether switch so that this installs properly

12
00:01:04,920 --> 00:01:08,800
so as a three install Python

13
00:01:11,860 --> 00:01:15,450
and that's if I can spell right looks right

14
00:01:18,190 --> 00:01:19,120
so that's installed.

15
00:01:19,120 --> 00:01:23,070
So let's see what we get when we run a Python 3.

16
00:01:23,140 --> 00:01:26,670
Notice we are running Python three top five.

17
00:01:26,750 --> 00:01:34,790
I made a mistake earlier of installing Python for Python 2 not 4.

18
00:01:34,870 --> 00:01:42,410
So I want to run I Python 3 because I want to use Python 3 here not Python 2.

19
00:01:42,550 --> 00:01:52,450
So I Python 3 runs Python 3 to find the T and gives us a nice interactive enhanced Python interface.

20
00:01:52,600 --> 00:01:57,100
So what I'll do actually is move this connection back to the aether switch.

21
00:01:57,100 --> 00:02:03,190
This is just a problem in Jena 3 if I try and download software through the net cloud via the Cisco

22
00:02:03,190 --> 00:02:03,910
switch.

23
00:02:03,910 --> 00:02:10,790
It's extremely slow so I want to connect directly to the ether switch module ingenious three.

24
00:02:10,840 --> 00:02:17,000
Okay so going back to our script import pi shock.

25
00:02:17,680 --> 00:02:24,960
Notice that works and then I can say capture equals pi shock and notice what happens when I press tab

26
00:02:26,020 --> 00:02:27,700
I get a lot of options here.

27
00:02:27,880 --> 00:02:33,600
Capture config file capture life capture t shock packet etc..

28
00:02:33,760 --> 00:02:36,000
So if I say live and press tab.

29
00:02:36,160 --> 00:02:46,330
Notice all the options were available to me and now I can specify my interface something like that and

30
00:02:46,330 --> 00:02:59,740
then I could write code or simply paste it in notice it's nice and color coded so let's say if I was

31
00:02:59,740 --> 00:03:00,820
P.F. and package

32
00:03:03,990 --> 00:03:09,210
print the 0 SPF password and I'll press enter again.

33
00:03:09,210 --> 00:03:10,250
Now that's actually running.

34
00:03:10,260 --> 00:03:14,020
So it should pick up any 0 SPF passwords.

35
00:03:14,040 --> 00:03:24,240
Notice the 0 SPF password is 0 SPF pos if I go on to the router and I change the password at the moment

36
00:03:24,270 --> 00:03:31,350
it's configured as 0 SPF POS on this interface but I could change that so once again on the interface

37
00:03:31,380 --> 00:03:36,960
ip SPF authentication key Cisco.

38
00:03:37,140 --> 00:03:45,240
We should see that the password changes to Cisco dynamically in our script and there you go.

39
00:03:45,240 --> 00:03:47,110
Notice it's done that here.

40
00:03:47,550 --> 00:03:49,520
Now this is through an interactive shell.

41
00:03:49,530 --> 00:03:52,060
You may not want to do it that way.

42
00:03:52,140 --> 00:03:55,830
Now this is again an issue with PI shock.

43
00:03:55,870 --> 00:03:57,430
I'm not going to worry too much about it.

44
00:03:58,790 --> 00:04:09,820
But notice I'm back in Ubuntu now basically in the boot to Shell you name all shows us that we're running

45
00:04:09,820 --> 00:04:22,620
Linux Ubuntu here what I'm gonna do is copy this entire script some to say nano 0 SPF P Y and paste

46
00:04:22,620 --> 00:04:23,290
my script in.

47
00:04:24,630 --> 00:04:34,140
So rather than doing it interactively I've created a script and what that will allow me to do is use

48
00:04:34,140 --> 00:04:38,410
Python 3 0 SPF pi and run the script.

49
00:04:38,760 --> 00:04:44,160
So you could schedule the script to run rather than printing the output to the screen you could save

50
00:04:44,160 --> 00:04:45,560
it to a file as an example.

51
00:04:46,810 --> 00:04:56,940
So back on my rota I'll change the password will clear the OSP off process so it happens quicker so

52
00:04:56,950 --> 00:05:05,520
process yes we should see the output on the on our script unless I've done something wrong.

53
00:05:05,830 --> 00:05:11,380
Let me go onto the interface type IP o SPF authentication key.

54
00:05:11,950 --> 00:05:19,470
Who is P.F. pass clear IPO SPF process.

55
00:05:19,580 --> 00:05:21,390
Okay so some things going wrong there

56
00:05:26,430 --> 00:05:34,910
let me run T short and make sure that we actually seeing captures sometimes in June 3 things can go

57
00:05:34,910 --> 00:05:35,450
wrong.

58
00:05:35,480 --> 00:05:40,940
So notice at the moment we're not seeing any traffic that's a problem so I paying the broadcast address

59
00:05:41,690 --> 00:05:43,550
no traffic is being seen.

60
00:05:43,550 --> 00:05:45,300
That's probably an issue on genus 3.

61
00:05:45,650 --> 00:05:53,270
It's not a script issue it's a problem in my genus 3 network.

62
00:05:53,420 --> 00:05:57,660
That's one of the problems using genus 3 rather than say physical equipment for this.

63
00:05:57,710 --> 00:06:07,100
Okay so I'm still having problems what I'll do is stop my network and start it up again and let's see

64
00:06:07,100 --> 00:06:08,150
if that solves the problem.
