echo -n "Password" | md5sum | tr -d " -" >> target_hashes.txt
echo -n "HELLO" | md5sum | tr -d " -" >> target_hashes.txt
echo -n "MYSECRET" | md5sum | tr -d " -" >> target_hashes.txt
echo -n "Test1234"| md5sum | tr -d " -" >> target_hashes.txt
| import win32com.client as c | |
| vsApp = c.gencache.EnsureDispatch('Visio.Application') | |
| vsApp.Visible = True | |
| path = r'<file and path>.vsd' | |
| dwg = vsApp.Documents.Open(path) | |
| # TODO this range gets changed depending on the guides which need to be dragged and dropped on the sheet | |
| guides = [f'Sheet.{x}' for x in range(1474, 1492)] | |
| print(guides) | |
| print(dwg.Pages('<TheSheet>').Name) | |
| refShape = 'REFGUIDE' |
| 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/ABB Transmittal-AU-33220002-AUABB-WSE-00001/LNADs/VA6000DJ0076.XXX1~.vsd' | |
| dwg = vsApp.Documents.Open(path) | |
| pge = dwg.Pages('Drawing') | |
| x_diff = 144.64 | |
| x_steps = 24.0 | |
| x_step_diff = float(x_diff/x_steps) | |
| x_start_step = 9.84 |
| 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', |
| import ipaddress | |
| nw = ipaddress.IPv4Network('192.168.10.0/28') | |
| for ip in nw: | |
| print(ip) |
| # 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 |
| 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, |
| $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/ |