Category Archives: Security

Security configurations such as from ASA, IPS, NACS, ISR zone base firewall, VPN etc will be posted here.

[python]Netmiko on Cisco ASA

The ASA i am using to test is a ASAv version 952-204, netmiko supports the device type cisco_asa. I am testing on the time taken to finish the script, and also send command and send command from file features of … Continue reading

Posted in ASA/PIX, Python | Tagged , , , | Leave a comment

[python]Keeping encryption key and decrypt the file anytime

This is a follow up from the previous post of this code in https://cyruslab.net/2019/08/17/pythonsample-encrypting-and-decrypting-the-dictionary/ The code snippet is a sample to demonstrate encrypting and decrypting the entire dictionary in a file, however there is a problem with this snippet. if … Continue reading

Posted in Python, Security | Tagged , , | Leave a comment

[python]Sample encrypting and decrypting the dictionary

I am preparing for a credential in dictionary data type to be used in later projects, the entire credential has to be encrypted including username. First I generate the key for the Fernet cipher, then I get the credential if … Continue reading

Posted in General stuffs, Python, Security | Tagged , , , , | Leave a comment

[python]Capturing username and password from http login

Clear text site Nowadays it is quite rare to find http login page, because http is insecure, information sent towards the http site is all clear text, if there is a man in the middle sniffing packets to reveal the … Continue reading

Posted in Python, Security | Tagged , , | 2 Comments

[python]Listing items with iControl API without using F5 SDK

After I have discovered that F5 SDK could not do certain things, I have decided to learn how to call the REST APIs using request and parse the json response. The first step i am learning is to use GET … Continue reading

Posted in F5, Python, Scripting | Tagged , , , , | Leave a comment

[python]Using F5 iControl API without F5-SDK

I am experimenting myself, I have not worked with json type before, I worked frequently with the xml type, I will need to learn how to parse json type data to get meaningful output.. here’s the sample code to test … Continue reading

Posted in F5, Python, Scripting | Tagged , , | Leave a comment

[python]resolve hostnames to ip address using pydns module

I wrote another script to change the desired nameserver. previously i used socket module to do resolution but i did not know how i can change the nameserver so i downloaded pydns. This script can be extended to be used … Continue reading

Posted in F5, Python, Scripting | Tagged , | Leave a comment