Skip to content

acortiana/various

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

various scripts

Various scripts I share on my blog posts https://www.ifconfig.it

unpatchable.py

Read this blog post for details https://www.ifconfig.it/hugo/post/unpatchable

TL:DR;

This script reads via SNMP how many days passed since last status change to identify candidate ports for disconnection/unpatching.

o3652asa.py

Read this blog post for details https://www.ifconfig.it/hugo/post/2016-06-11-asaoffice365/

Why? Permit Office 365 public url/addresses on Cisco ASA firewall.

How? Download XML file from Microsoft and use it as source to create objects on ASA CLI.

Usage: download xml file from Microsoft webiste

wget https://support.content.office.net/en-us/static/O365IPAddresses.xml

and run the script:

python o2652asa.py

Copy&paste the output on ASA CLI, create an object group, allow http and https from inside network to internet. Office 365 should work.

Remember to check if the XML from Microsoft is updated from time to time (or even better, automate it).

provision2ios.py

Read this blog post for details https://www.ifconfig.it/hugo/post/2017-08-07-python-hp-to-cisco-switchport-migration/

DISCLAMER

I take no responsibility for any damage you may do running the scripts I provide here. Use it at your own risk, alway test before running in production.

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%