Skip to content

Instantly share code, notes, and snippets.

View t94j0's full-sized avatar
🤠
Breaking something or building something. It's all the same anyways

Max Harley t94j0

🤠
Breaking something or building something. It's all the same anyways
View GitHub Profile
import ipaddress
import requests
from argparse import ArgumentParser
def load_iprange() -> list[str]:
data = requests.get('https://ip-ranges.amazonaws.com/ip-ranges.json').json()
return [data['ip_prefix'] for data in data['prefixes']]
def check_ip(ip: str) -> bool:
target = ipaddress.ip_address(ip)
@t94j0
t94j0 / bbot.cypher
Last active June 7, 2024 18:58
Cool BBOT Queries
# Get all domain names, the IP associated, ASN, and open ports
MATCH (dns:DNS_NAME)
OPTIONAL MATCH (dns)-[r2]->(ip:IP_ADDRESS)
OPTIONAL MATCH (ip)-[r3]->(asn:ASN)
OPTIONAL MATCH (dns)-[r4]->(port:OPEN_TCP_PORT)
RETURN
dns.data AS Domain,
ip.data AS IPAddress,
asn.data AS ASN,
collect(DISTINCT TAIL(SPLIT(port.data, ':'))[0]) AS AssociatedPorts
@t94j0
t94j0 / rpc_discovery.ps1
Last active February 25, 2024 20:57
Some discovery scripts
Set-GlobalSymbolResolver -DbgHelpPath 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\dbghelp.dll'
function Process-RpcProcedure {
param (
[string]$Path
)
$dllHash = (Get-FileHash -Path $Path).Hash
$rpcs = Get-RpcServer -Path $Path
@t94j0
t94j0 / smb-webclientenum.nse
Created September 28, 2022 19:24
Nmap NSE port of webclientenum
local smb = require "smb"
local stdnse = require "stdnse"
local string = require "string"
description = [[
Port of @zyn3rgy's webclientenum
]]
-- nmap --script=smb-webclientenum.nse --script-args=smbuser=<username>,smbpass=<password>,smbbasic=1,smbsign=force <host>
@t94j0
t94j0 / ss14_macOS_instruments.md
Created November 6, 2021 20:32
Because listening to audio shitposts is fun

Using Instruments in Space Station 14 on macOS

SS14 uses [FluidSynth] as a backend for playing MIDI files. The FluidSynth dylib is not included as a resource in the game, so we must add it ourselves. Luckily, [HomeBrew] has formula for this.

Installation

  1. Install fluid-synth
brew install fluid-synth
@t94j0
t94j0 / .htaccess
Created April 14, 2021 17:55 — forked from curi0usJack/.htaccess
FYI THIS IS NO LONGER AN .HTACCESS FILE. SEE COMMENTS BELOW. DON'T WORRY, IT'S STILL EASY.
#
# TO-DO: set |DESTINATIONURL| below to be whatever you want e.g. www.google.com. Do not include "http(s)://" as a prefix. All matching requests will be sent to that url. Thanks @Meatballs__!
#
# Note this version requires Apache 2.4+
#
# Save this file into something like /etc/apache2/redirect.rules.
# Then in your site's apache conf file (in /etc/apache2/sites-avaiable/), put this statement somewhere near the bottom
#
# Include /etc/apache2/redirect.rules
#
@t94j0
t94j0 / monitor.py
Last active May 28, 2019 19:00
nick <3
from pypsrp.exceptions import AuthenticationError
from pypsrp.client import Client
HOST = '10.0.128.100'
MY_PASSWORD = 'abc123!!!'
client = None
def connect(username: str, password: str):
global client
import System.IO
import Data.Dates
import Data.List.Split
data ShadowEntry = ShadowEntry {
username :: String,
hash :: String
} deriving (Show)
parseShadowEntryString :: String -> ShadowEntry
@t94j0
t94j0 / test
Last active November 11, 2017 15:50
<?XML version="1.0"?>
print("Hello World!");
]]>
</scriptlet>
@t94j0
t94j0 / Brewfile
Last active November 10, 2017 03:03
My Brewfile if I get a new Mac
tap "osx-cross/avr"
tap "sidaf/pentest"
tap "t94j0/security"
tap "homebrew/core"
tap "homebrew/bundle"
tap "homebrew/services"
tap "acrogenesis/macchanger"
tap "caskroom/cask"
cask "java"
brew "afl-fuzz"