Skip to content

Instantly share code, notes, and snippets.

View mehaase's full-sized avatar

Mark E. Haase mehaase

View GitHub Profile
https://www.homedepot.com/p/Delta-4-Spray-Patterns-with-1-75-GPM-8-in-Wall-Mount-Fixed-Shower-Head-with-H2Okinetic-UltraSoak-Spray-in-Lumicoat-Chrome-52488-PR/317915428
https://www.homedepot.com/p/KOHLER-Fordra-3-Spray-Patterns-6-817-in-Wall-Mount-Fixed-Shower-Head-in-Polished-Chrome-K-R27513-G-CP/316451294#overlay
https://www.homedepot.com/p/GROHE-Vitalio-5-spray-7-in-Dual-Shower-Head-and-Handheld-Shower-Head-in-Chrome-26520000/304097377#overlay
https://www.amazon.com/Moen-S6320-Two-Function-Rainshower-Showerhead/dp/B004ZP97BO/ref=sr_1_60?crid=1KCC31VUKQHGC&keywords=chrome%2Bshowerhead&qid=1663694971&sprefix=chrome%2Bshowerhead%2Caps%2C52&sr=8-60&th=1
@mehaase
mehaase / gist:f527922dd56e75ea08e82b01c4ab1253
Created September 2, 2022 17:00
Alternat ATT&CK Powered Suit search form
<div class="gray-box">
<p class="text-muted small">
Select the types of objects to include in search results:
</p>
<div class="row">
<div class="col">
<div class="form-check form-switch">
<input
id="tactics"
type="checkbox"

Mermaid Test

Making a Markdown file that has embedded mermaid graph.

flowchart
  classDef action color:black,fill:pink
  classDef asset color:black,fill:lightblue
  classDef property color:black,fill:lightgreen
@mehaase
mehaase / checkpoint.py
Created December 9, 2021 17:51
Checkpoint iterators
class CheckpointIter:
def __init__(self):
self.checkpoints = list()
def every(self, n_items, do_this):
self.checkpoints.append((n_items, do_this))
def iter(self, iterable):
i = 1
for item in iterable:
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mehaase
mehaase / sshtranger_things.py
Last active March 5, 2024 18:43
SSHtranger Things Exploit POC
'''
Title: SSHtranger Things
Author: Mark E. Haase <mhaase@hyperiongray.com>
Homepage: https://www.hyperiongray.com
Date: 2019-01-17
CVE: CVE-2019-6111, CVE-2019-6110
Advisory: https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt
Tested on: Ubuntu 18.04.1 LTS, OpenSSH client 7.6p1
We have nicknamed this "SSHtranger Things" because the bug is so old it could be
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mehaase
mehaase / iosmap.tcl
Created September 2, 2017 17:38
IOSmap rewritten so that it can be used in memory, not written to permanent storage.
set timeout 1
set timeoutms 500
set waittime 4000
set svcarraymax 4096
set reasoncode 0
set reason "NULL"
proc syntaxhelp {} {
puts stdout "\7================================================================"
puts stdout "IOScan 0.1"
@mehaase
mehaase / winecho.py
Last active September 2, 2017 16:04
For writing a file to windows over a command shell.
import sys
if len(sys.argv) < 3:
print('Usage: {} <DEST FILE> <INPUT FILE>'.format(sys.argv[0]))
sys.exit(1)
dest_path = sys.argv[1]
in_path = sys.argv[2]
def escape(line):