Skip to content

Instantly share code, notes, and snippets.

View Will-Beninger's full-sized avatar

Will Beninger Will-Beninger

  • Houston, Texas, USA
View GitHub Profile
@Will-Beninger
Will-Beninger / pihole-update-gravity-lists.sh
Created May 15, 2023 17:21
Script to update pihole gravity list from firebog.net and automatically add/remove entries. Runs on cronjob weekly without additional addons. Based on a Reddit comment with small tweaks, source: https://www.reddit.com/r/pihole/comments/mxf6rp/comment/gvq1rn3/
#!/bin/bash
#This will pull the list of ticked from firebog, removes outdates lists, and then updates the sqlite db before updating gravity
#Based on this Reddit Comment with a slight fix to the if logic as default behaviour was space breaking:
#https://www.reddit.com/r/pihole/comments/mxf6rp/comment/gvq1rn3/
#
#This is being run from crontab by root (required for pihole command)
#Command: crontab -u root -e
#Runs on Satuday morning at 3:34am
#34 3 * * 6 /opt/pihole-custom/update-lists.sh > /opt/pihole-custom/updatelist.log 2>&1
# Author: Will-Beninger
# Very minor changes to the script from lunasec to make a safe/reliable scanner
# Original Python Code from here: https://github.com/lunasec-io/Spring4Shell-POC
# Based off the work of @Rezn0k
# Based off the work of p1n93r
# Based off the work of colincowie
# https://github.com/colincowie/Safer_PoC_CVE-2022-22965
import requests
import argparse
@Will-Beninger
Will-Beninger / craftsman-shopvac-to-x.scad
Last active February 26, 2023 19:03
A short openscad file to create adapters for the Craftsman 5.5HP 12Gal ShopVac to the various tools that I have around my shop. This uses the vacuum-host-adapter project by ostat over here: https://github.com/ostat/vacuum-hose-adapter-openscad which also depends on the dotSCAD project here: https://github.com/JustinSDK/dotSCAD
// Connectors for Craftsman 5.5HP 12Gal ShopVac
// version 2023-02-26
//
// Craftsman Hose Measurements are:
// 58.5mm->56mm (2.5mm taper) over 53mm
// For this project we need to select the middle of these numbers as the taper is divided by 2 and distributed to both sides (see line 998 in modules)
// So we choose a diameter of 57.25mm & taper of 2.5mm
// For whatever reason, the taper is backwards, so we need to apply a negative taper to both ends
// Dependencies:
@Will-Beninger
Will-Beninger / Still Alive.fmf
Last active June 12, 2023 23:18
Still Alive Music from the video game Portal formatted for the Flipper Zero
Filetype: Flipper Music Format
Version: 0
BPM: 120
Duration: 4
Octave: 6
Notes: 8G, 8F#, 8E, 8E, F#, 4P, 2P, 4P, 8P, 8A5, 8G, 8F#, 8E, E, 8F#, P, D, 8E, 8A5, 2P, P, 8P, 8A5, E, 8F#, 3G, 8E, C#, 3D, E, 8A5, A5, F#, 8P, 2P, 2P, 8G, 8F#, 8E, 8E, F#, 4P, 2P, 4P, 8P, 8A5, 8G, 8F#, 8E, 8E, 4P, 8F#, 8D, 4P, 8E, 8A5, 1P, E, 8F#, 3G, 8E, 4C#, 8D, 8E, 8P, 8A5, 8D, 8E, 8F, 8E, 8D, 8C, 4P, 8A5, 8A#5, C, F, 8E, 8D, 8D, 8C, 8D, 8C, C, C, 8A5, 8A#5, C, F, 8G, 8F, 8E, 8D, 8D, 8E, F, F, 8G, 8A, 8A#, 8A#, A, G, 8F, 8G, 8A, 8A, G, F, 8D, 8C, 8D, 8F, 8F, E, 8E, 8F#, 3F#, 8F#, 8D, 8B5, 8D, 8F#, 8D, 8A5, 8D, 8F#, 8D, 8B5, 8D, 8F#, 8D, 8A5, 8D, 8F#, 8D, 8B5, 8D, 8F#, 8D, 8A5, 8D, 8F#, 8A5, 8G, 8F#, 8E, 3E, F#, 8P, 2P, 2P, 8G, 8F#, 8E, 3E, 8F#, D, E, 3A5, 4P, 2P, E, 8F#, 3G, E, C#, 8D, 3E, 8A5, 3A5, F#, 8P, 2P, 4P, 8P, 8A5, 8G, 8F#, 8E, 8E, F#, 4P, 4P, 8P, 8P, 4P, 8P, 8A5, 8G, 8F#, 8E, 8E, 4P, 8F#, 8D, 4P, 8E, 8A5, 1P, E, 8F#, 3G, E, C#, 8D, 8E, 8P, 8A5, 8D, 8E, 8F, 8E, 8D, 8C, 4P, 8A5, 8A#5, C, F, 8E, 8D, 8D, 8C, 8D, 8C, C, C, 8A5,
@Will-Beninger
Will-Beninger / ping.py
Created June 12, 2021 01:08
Python3 /24 CIDR scanner using system ping
#! /usr/bin/python3
import subprocess
import re
cmd = ['ping','-c1','-w1']
for i in range (1,255):
address="10.11.1."+str(i)
runcmd=cmd+[address]
result = subprocess.Popen(runcmd,stdout=subprocess.PIPE)
output = str(result.stdout.read())
@Will-Beninger
Will-Beninger / zonetransfer.py
Created June 12, 2021 01:05
Doing an extremely quick & dirty zone transfer python script
#!/usr/bin/python2
# Borrowing heavily from https://github.com/internetwache/Python-AXFR-Test
import argparse
import sys
import dns.resolver
import dns.query
import dns.zone
parser = argparse.ArgumentParser(description='Perform Zone Transfer')
parser.add_argument('-d', '--domain', type=str, nargs=1, help="Domain to zone transfer")
@Will-Beninger
Will-Beninger / publicScanners.csv
Created November 21, 2019 08:05
List of Public Internet Scanners
ip owner link
192.241.168.14 BinaryEdge https://api.binaryedge.io/v1/minions
104.131.210.81 BinaryEdge https://api.binaryedge.io/v1/minions
165.22.212.143 BinaryEdge https://api.binaryedge.io/v1/minions
85.159.213.139 BinaryEdge https://api.binaryedge.io/v1/minions
167.71.37.141 BinaryEdge https://api.binaryedge.io/v1/minions
172.104.8.179 BinaryEdge https://api.binaryedge.io/v1/minions
172.105.79.174 BinaryEdge https://api.binaryedge.io/v1/minions
192.241.182.161 BinaryEdge https://api.binaryedge.io/v1/minions
172.105.93.108 BinaryEdge https://api.binaryedge.io/v1/minions