Okay.
So the network is set up.
Now let's use this Python script.
Basically, what this Python script does is it imports py shock.
So I'm going to run python three.
Run a script that imports py shock creates a variable called CAPTCHA that calls this a live CAPTCHA
option in py shock and captures traffic directly from Ethernet zero.
Now there's actually a fantastic application that you can use.
Through your console.
When checking things.
In Python and that's I Python.
I Python is a nice interactive shell for Python.
Rather than having to use an I.D. or integrated development environment on a gooey, you can do something
similar directly through the console.
Now I'm going to connect the client back to the ether switch so that this installs properly.
So when I say pip three install I python.
And that's if I can spell right.
Looks right.
So that's installed.
So let's see what we get when we run it.
Python three notice we are running Python 3.5 now.
I made a mistake earlier of installing I Python four.
Python 2.4.
So I want to run I Python three because I want to use python three here, not Python two.
So I Python three runs Python 3.5 to 2 and gives us a nice interactive enhanced Python interface.
So what I'll do actually is move this connection back to the ether switch.
This is just a problem in Genesis three.
If I try and download software through the net cloud via the Cisco switch, it's extremely slow.
So I want to connect directly to the Ether Switch module.
In June is three.
Okay.
So going back to our script import py shock notice that works.
And then I can say captcha equals py shock.
And notice what happens when I press tab.
I get a lot of options here.
Capture config file, capture live, capture t, shark packet, etc. So if I say live and press tab,
notice all the options are available to me and now I can specify my interface, something like that.
And then I could.
Write code or simply paste it in.
Notice it's nice and color coded.
So let's say if OSPF and packet.
Print the OSPF password and I'll press enter again.
Now that's actually running, so it should pick up any OSPF passwords.
Notice that OSPF password is ospf pos.
If I go on to the router and I change the password at the moment it's configured as OSPF pass on this
interface.
But I could change that.
So once again on the interface IP, OSPF authentication key Cisco, we should see that the password
changes to Cisco dynamically in our script.
And there you go.
Notice it's done that here.
Now this is through an interactive shell.
You may not want to do it that way.
Now this is again an issue with py shock.
I'm not going to worry too much about it.
But notice I'm back in ubuntu now.
Basically in the ubuntu shell.
You name all shows us that we're running linux ubuntu here.
What I'm going to do is copy this entire script.
So I'm going to say nano OSPF.
Copy and paste my script in.
So rather than doing it interactively, I've created a script.
And what that will allow me to do is use Python three ospf py and run the script.
So you could schedule the script to run rather than printing the output to the screen.
You could save it to a file as an example.
So back on my radar.
I'll change the password or clear the SPF process so it happens quicker.
So process.
Yes.
We should see the output on the on our script unless I've done something wrong.
Let me go onto the interface type IP OSPF Authentication key ospf pos clear ip ospf process.
So some things going wrong there.
Let me run to shock and make sure that we actually seeing captures.
Sometimes in DNA, three things can go wrong.
So notice at the moment we're not seeing any traffic.
That's a problem.
So if I paying the broadcast address, no traffic is being seen.
That's probably an issue on genius three.
It's not a script issue.
It's a problem in my Janus three network.
That's one of the problems using three rather than, say, physical equipment for this.
Okay.
So I'm still having problems.
What I'll do is stop my network and start it up again.
And let's see if that solves the problem.