1 00:00:00,210 --> 00:00:00,540 Okay. 2 00:00:00,540 --> 00:00:02,580 So the network is set up. 3 00:00:03,210 --> 00:00:06,210 Now let's use this Python script. 4 00:00:06,750 --> 00:00:10,590 Basically, what this Python script does is it imports py shock. 5 00:00:11,130 --> 00:00:13,530 So I'm going to run python three. 6 00:00:13,740 --> 00:00:22,350 Run a script that imports py shock creates a variable called CAPTCHA that calls this a live CAPTCHA 7 00:00:22,800 --> 00:00:28,260 option in py shock and captures traffic directly from Ethernet zero. 8 00:00:28,770 --> 00:00:33,450 Now there's actually a fantastic application that you can use. 9 00:00:34,310 --> 00:00:35,900 Through your console. 10 00:00:36,860 --> 00:00:38,510 When checking things. 11 00:00:42,450 --> 00:00:44,610 In Python and that's I Python. 12 00:00:44,610 --> 00:00:48,990 I Python is a nice interactive shell for Python. 13 00:00:50,190 --> 00:00:57,540 Rather than having to use an I.D. or integrated development environment on a gooey, you can do something 14 00:00:57,540 --> 00:00:59,430 similar directly through the console. 15 00:00:59,940 --> 00:01:04,680 Now I'm going to connect the client back to the ether switch so that this installs properly. 16 00:01:04,800 --> 00:01:09,000 So when I say pip three install I python. 17 00:01:11,750 --> 00:01:14,590 And that's if I can spell right. 18 00:01:14,600 --> 00:01:15,650 Looks right. 19 00:01:17,990 --> 00:01:19,100 So that's installed. 20 00:01:19,100 --> 00:01:21,410 So let's see what we get when we run it. 21 00:01:21,440 --> 00:01:26,840 Python three notice we are running Python 3.5 now. 22 00:01:26,840 --> 00:01:31,940 I made a mistake earlier of installing I Python four. 23 00:01:32,930 --> 00:01:34,640 Python 2.4. 24 00:01:34,670 --> 00:01:42,330 So I want to run I Python three because I want to use python three here, not Python two. 25 00:01:42,350 --> 00:01:51,920 So I Python three runs Python 3.5 to 2 and gives us a nice interactive enhanced Python interface. 26 00:01:52,430 --> 00:01:57,080 So what I'll do actually is move this connection back to the ether switch. 27 00:01:57,110 --> 00:01:58,910 This is just a problem in Genesis three. 28 00:01:59,120 --> 00:02:05,120 If I try and download software through the net cloud via the Cisco switch, it's extremely slow. 29 00:02:05,390 --> 00:02:08,600 So I want to connect directly to the Ether Switch module. 30 00:02:08,810 --> 00:02:09,979 In June is three. 31 00:02:10,789 --> 00:02:11,030 Okay. 32 00:02:11,030 --> 00:02:18,410 So going back to our script import py shock notice that works. 33 00:02:18,410 --> 00:02:21,800 And then I can say captcha equals py shock. 34 00:02:23,200 --> 00:02:25,150 And notice what happens when I press tab. 35 00:02:25,870 --> 00:02:27,400 I get a lot of options here. 36 00:02:27,730 --> 00:02:35,680 Capture config file, capture live, capture t, shark packet, etc. So if I say live and press tab, 37 00:02:36,010 --> 00:02:45,400 notice all the options are available to me and now I can specify my interface, something like that. 38 00:02:45,970 --> 00:02:48,070 And then I could. 39 00:02:49,850 --> 00:02:52,400 Write code or simply paste it in. 40 00:02:54,200 --> 00:02:56,060 Notice it's nice and color coded. 41 00:02:56,730 --> 00:03:01,020 So let's say if OSPF and packet. 42 00:03:03,880 --> 00:03:08,970 Print the OSPF password and I'll press enter again. 43 00:03:08,980 --> 00:03:13,920 Now that's actually running, so it should pick up any OSPF passwords. 44 00:03:13,930 --> 00:03:16,660 Notice that OSPF password is ospf pos. 45 00:03:17,500 --> 00:03:27,580 If I go on to the router and I change the password at the moment it's configured as OSPF pass on this 46 00:03:27,580 --> 00:03:28,360 interface. 47 00:03:28,900 --> 00:03:29,920 But I could change that. 48 00:03:29,920 --> 00:03:38,770 So once again on the interface IP, OSPF authentication key Cisco, we should see that the password 49 00:03:38,770 --> 00:03:42,610 changes to Cisco dynamically in our script. 50 00:03:44,230 --> 00:03:45,160 And there you go. 51 00:03:45,190 --> 00:03:46,570 Notice it's done that here. 52 00:03:47,380 --> 00:03:49,490 Now this is through an interactive shell. 53 00:03:49,510 --> 00:03:51,040 You may not want to do it that way. 54 00:03:52,000 --> 00:03:55,720 Now this is again an issue with py shock. 55 00:03:55,750 --> 00:03:57,490 I'm not going to worry too much about it. 56 00:03:58,740 --> 00:04:02,400 But notice I'm back in ubuntu now. 57 00:04:02,550 --> 00:04:05,790 Basically in the ubuntu shell. 58 00:04:07,960 --> 00:04:11,380 You name all shows us that we're running linux ubuntu here. 59 00:04:12,840 --> 00:04:16,140 What I'm going to do is copy this entire script. 60 00:04:17,410 --> 00:04:20,230 So I'm going to say nano OSPF. 61 00:04:20,680 --> 00:04:23,470 Copy and paste my script in. 62 00:04:24,460 --> 00:04:28,390 So rather than doing it interactively, I've created a script. 63 00:04:28,990 --> 00:04:38,170 And what that will allow me to do is use Python three ospf py and run the script. 64 00:04:38,590 --> 00:04:43,600 So you could schedule the script to run rather than printing the output to the screen. 65 00:04:43,600 --> 00:04:45,730 You could save it to a file as an example. 66 00:04:46,640 --> 00:04:49,640 So back on my radar. 67 00:04:50,690 --> 00:04:55,550 I'll change the password or clear the SPF process so it happens quicker. 68 00:04:56,690 --> 00:04:57,740 So process. 69 00:04:57,740 --> 00:04:58,490 Yes. 70 00:04:59,090 --> 00:05:04,820 We should see the output on the on our script unless I've done something wrong. 71 00:05:05,810 --> 00:05:17,690 Let me go onto the interface type IP OSPF Authentication key ospf pos clear ip ospf process. 72 00:05:19,760 --> 00:05:21,590 So some things going wrong there. 73 00:05:26,380 --> 00:05:30,610 Let me run to shock and make sure that we actually seeing captures. 74 00:05:31,350 --> 00:05:35,360 Sometimes in DNA, three things can go wrong. 75 00:05:35,370 --> 00:05:37,290 So notice at the moment we're not seeing any traffic. 76 00:05:37,290 --> 00:05:38,070 That's a problem. 77 00:05:38,070 --> 00:05:43,230 So if I paying the broadcast address, no traffic is being seen. 78 00:05:43,410 --> 00:05:45,450 That's probably an issue on genius three. 79 00:05:45,480 --> 00:05:47,250 It's not a script issue. 80 00:05:47,280 --> 00:05:50,160 It's a problem in my Janus three network. 81 00:05:53,310 --> 00:05:57,210 That's one of the problems using three rather than, say, physical equipment for this. 82 00:05:57,630 --> 00:05:57,900 Okay. 83 00:05:57,900 --> 00:05:59,520 So I'm still having problems. 84 00:06:00,970 --> 00:06:06,430 What I'll do is stop my network and start it up again. 85 00:06:06,430 --> 00:06:08,350 And let's see if that solves the problem.