ASA1(config)# crypto ikev1 policy 10
ASA1(config-ikev1-policy)# authentication pre-share
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
| .DS_Store |
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
| abbrevs = [ | |
| 'STP', | |
| 'TCP', | |
| 'TI', | |
| 'USB', | |
| 'UTP', | |
| 'VLAN', | |
| 'VLANs', | |
| 'VM', | |
| 'VMs', |
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
| import os | |
| import win32com.client | |
| import re | |
| import pprint | |
| def pretty_print(o): | |
| pp = pprint.PrettyPrinter(indent=4) | |
| pp.pprint(o) |
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
| $range_of_ports = 1500 .. 1505 | |
| $ip = "10.230.149.232" | |
| $range_of_ports | % { echo ((new-object Net.sockets.TCPClient).Connect($ip,$_)) (" Port $_ is open!") } 2>$null | |
| https://www.sans.org/blog/pen-test-poster-white-board-powershell-built-in-port-scanner/ |
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
| import os | |
| import re | |
| import sqlite3 | |
| from pathlib import Path | |
| def process(ary): | |
| conn = sqlite3.connect(db_path) | |
| cur = conn.cursor() | |
| sql = """CREATE TABLE IF NOT EXISTS objects_in_rules ( | |
| id integer primary key, |
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
| # Note to future self... | |
| # Preparatory Steps | |
| # ----------------- | |
| # pip3 install youtube-dl | |
| # sudo apt-get install ffmpeg | |
| url=https://www.youtube.com/watch?v=b9fUdJdlExU | |
| # | |
| yt-dlp -f 140 -x --audio-format m4a --no-playlist $url | |
| # Convert it to mp3 with: | |
| ffmpeg -i input.m4a music.mp3 |
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
| import ipaddress | |
| nw = ipaddress.IPv4Network('192.168.10.0/28') | |
| for ip in nw: | |
| print(ip) |