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
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 | |
youtube-dl -F $url | |
# This gives list of available formats | |
youtube-dl -f 140 $url | |
# Say if file was downloaded as input.m4a |
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) |
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 win32com.client as c | |
vsApp = c.gencache.EnsureDispatch('Visio.Application') | |
vsApp.Visible = True | |
path = r'https://woodsideenergy-my.sharepoint.com/personal/ricardo_dapaz_woodside_com_au/Documents/Desktop/Compass Documents/XA0000DJ0020.0009 (RDP).vsd' | |
dwg = vsApp.Documents.Open(path) | |
pge = dwg.Pages('CPMS CER, FAR 1&2') | |
nodes = { | |
'DESC.1': 'CERDAS1', | |
'DESC.2': 'CEREWS1', |