We are doing a Special subject related to penetration testing with Kali 2.0 and spoofing https traffic was the thing that I wanted to achieve. First things first – I had to find out a bit more about MITM attacks, how to initiate them, how they work, etc. Establishing a MITM attack on the same network might be fairly easy, but it is too noisy and you might get caught if the administrators monitor the network. That’s why I decided to combine the MITM with my own hotspot
Author: Victor
Use Junos-PyEZ to upload a configuration to FTP
You can use Python for set, save a rescue, show, upgrade the Junos version and a few other commands, but we couldn’t find a way to remotely execute a command which saves a configuration to an FTP server. We failed in finding an example of such script so a little research and 1 hour later I managed to assemble one. This script actually copies an existing .conf file from the Juniper device to the FTP server.
Enable SNMPv1 & SNMPv2 on Juniper
The lab that we are currently making is starting to look really good, in the past week we decided to use an Observium server for our management server and set it up on a BananaPi which is currently up and running. The thing that we are lacking now is an SNMP and Security configuration on our devices.
Reinstall Junos from Loader with a USB
So as we were playing around with Ansible on our SRX’s we ended up breaking one of them. The status light became red and we got stuck at the db> prompt. We tried different commands from that prompt and nothing worked, the device was rebooting and a ‘file system full’ error was showing up and after 30-40 seconds we were again at the db> prompt.
Prepare Juniper’s SRX240 for Ansible
According to Juniper’s official documentation regarding Ansible, SRX240 is not a supported device. The Junos-PyEZ python module that is used to remotely configure Juniper devices is the same for all the devices, so since we have some of those SRX’s in our lab we decided to give it a shot and see what happens.
Continue reading
Controlling a Junos Device Remotely with Ansible
This is a basic guide to establish a connection to a Junos device with Ansible. First make sure that you have SSH access enabled on the Junos device and that you are able to connect through any SSH client.