Skip to content

Instantly share code, notes, and snippets.

View michaelrinderle's full-sized avatar
👽
at least i know how to exit vim!

michael michaelrinderle

👽
at least i know how to exit vim!
View GitHub Profile
@michaelrinderle
michaelrinderle / DomParser.cs
Last active August 1, 2021 22:48
Html Page Dom Parse
using HtmlAgilityPack;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
namespace HtmlParser
{
public class DomParser : IDisposable
scriptencoding utf8
" system clipboard (requires +clipboard)
" Set clipboard^=unnamed,unnamedplus
" additional settings
set modeline " enable vim modelines
set hlsearch " highlight search items
set incsearch " searches are performed as you type
set number " enable line numbers
@michaelrinderle
michaelrinderle / masscan-exclusion.txt
Last active August 18, 2024 11:00
Masscan Exclusion List (NO SCAN THESE PORTS | DoD, Government, Law Enforcement Ranges)
6.0.0.0/8
7.0.0.0/8
11.0.0.0/8
21.0.0.0/8
22.0.0.0/8
24.198.0.0/16
25.0.0.0/8
26.0.0.0/8
29.0.0.0/8
30.0.0.0/8
@michaelrinderle
michaelrinderle / OpenCanaryLogParser.py
Last active January 13, 2024 09:29
Python script to parse OpenCanary log file with broken JSON structure
import json
import socket
CANARY_FILE = "opencanary.log"
INFORMATION_LOG = 1001
BRUTE_FORCE_LOG = 6001
PORT_SCAN_LOG = 5001
HTTP_SCAN_LOG = 3000
# Boxstarter options
$Boxstarter.RebootOk=$true # Allow reboots?
# OS Options
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Enable-MicrosoftUpdate
Disable-GameBarTips
Disable-BingSearch
Disable-InternetExplorerESC
Set-TaskbarOptions -Size Small
@michaelrinderle
michaelrinderle / Encrypted Arch Base Install
Last active November 4, 2019 02:43 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
wifi-menu
cgdisk /dev/nvme0n1
1 - 100MB EFI partition # Hex code ef00
2 - 250MB Boot partition # Hex code 8300
3 - 100% size partiton # (to be encrypted) Hex code 8300
mkfs.vfat -F32 /dev/nvme0n1p1
mkfs.ext2 /dev/nvme0n1p2
@michaelrinderle
michaelrinderle / rust2python.md
Last active May 3, 2016 23:20
Extending Python with Rust calls

What is Rust?

'A systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety.' So think of it as C/C++ with out all the scariness, and we can extend Python for all our critical computation.

Install Rust

yaourt -S rust

Build new Rust library with cargo