This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## TTP ASA Template | |
| ## Published 2021.10.12 | |
| ## Jimmy Taylor | |
| ## | |
| ## Template for Cisco ASA configurations that organizes objects, object-groups, and ACLs | |
| ## for JSON using TTP Project | |
| ## | |
| ## TTP Project: https://github.com/dmulyalin/ttp | |
| ## | |
| ## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "source": "https://www.cisco.com/c/en/us/td/docs/security/asa/asa96/configuration/general/asa-96-general-config/ref-ports.html#ID-2120-000002b8", | |
| "tcp": { | |
| "aol": "5190", | |
| "bgp": "179", | |
| "chargen": "19", | |
| "cifs": "3020", | |
| "citrix-ica": "1494", | |
| "cmd": "514", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select * | |
| from device_port as dp | |
| join device as d | |
| on dp.ip = d.ip | |
| where | |
| d.model = '38xxstack' and | |
| dp.descr ~ '(Giga|TenGiga)' and | |
| dp.ip << '10.0.0.0/8' | |
| order by dp.ip desc; |
We can't make this file beautiful and searchable because it's too large.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| # Jimmy Taylor | |
| # https://www.consentfactory.com/python-threading-queuing-netmiko/ | |
| # This method will spin up threads and process IP addresses in a queue | |
| # Importing Netmiko modules | |
| from netmiko import Netmiko | |
| from netmiko.ssh_exception import NetMikoAuthenticationException, NetMikoTimeoutException |