Kali 2.0 Access point + Man in the middle

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

Continue reading

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.

Continue reading

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.

Continue reading