Skip to content

Instantly share code, notes, and snippets.

View GarnetSunset's full-sized avatar
🥌
Hack the roomba

James Duarte GarnetSunset

🥌
Hack the roomba
  • Rapid7
  • East Coast
View GitHub Profile
// ==UserScript==
// @namespace https://github.com/garnetsunset
// @name Websense Archiver
// @description If a page is blocked, archive it for us.
// @copyright 2019, GarnetSunset (https://github.com/garnetsunset)
// @license MIT
// @version 1.0.1
// @author GarnetSunset
// @grant none
// @include https://*
curl -s https://api.github.com/repos/gentilkiwi/mimikatz/releases/latest \
| grep "mimikatz_trunk.7z" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
function Invoke-Mimidogz
{
[CmdletBinding(DefaultParameterSetName="DumpCred")]
Param(
[Parameter(Position = 0)]
[String[]]
$ComputerName,
// ==UserScript==
// @name Disable Websockets
// @match *://*/*
// @grant none
// ==/UserScript==
(function() {
if (window) {
delete window.WebSocket;
if ('WebSocket' in window) {
@GarnetSunset
GarnetSunset / chromeDriver.py
Last active June 28, 2019 14:21
Downloads the latest chrome webdriver, works on all platforms.
import os, platform, requests, zipfile
import xml.etree.ElementTree as ET
cwd = os.getcwd()
getArch = platform.architecture()
xmlUrl = "https://chromedriver.storage.googleapis.com/"
zipName = []
XML = requests.get(xmlUrl, stream=True)
tree = ET.parse(XML.raw)
import requests
id = 1
while id < 1000:
headers = {
'authority': 'smashstages.com',
'upgrade-insecure-requests': '1',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36',
'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3',
// ==UserScript==
// @name Bypass Blue Media Redirector Links
// @namespace https://greasyfork.org/en/users/85671-jcunews
// @description Bypass Blue Media redirector links
// @author jcunews
// @version 1.0.2
// @license GNU AGPLv3
// @match *://*/*
// @include https://igg-games.com/*
// @grant none
@GarnetSunset
GarnetSunset / comboBreaker.ps1
Created October 29, 2019 15:40
Script to autoupdate various pieces of software. based on lords-carlos' nvidia updater.
# Installer options
param (
[switch]$clean = $false, # Will delete old drivers and install the new ones
[string]$folder = "$env:temp" # Downloads and extracts the driver here
)
$scheduleTask = $false # Creates a Scheduled Task to run to check for driver updates
$scheduleDay = "Sunday" # When should the scheduled task run (Default = Sunday)
$scheduleTime = "2pm" # The time the scheduled task should run (Default = 12pm)
@GarnetSunset
GarnetSunset / websenseBruteforce.py
Last active November 8, 2019 00:34
Bruteforcing Websense to find unprotected pac files that can be used to get info about internal networks and exfiltration angles.
# GarnetSunset
## Websense bruteforcing script
import requests
import rstr
regex = r"^(([b-df-hj-np-tv-z2346789]{8})\2?(?!\2))+$"
pacUrl = "http://pac.webdefence.global.blackspider.com/proxy.pac?p="
success = open("successful.txt","a+")
@GarnetSunset
GarnetSunset / rotInHellSpamBot.py
Created May 24, 2020 16:32
Wrote this in a fit of rage for spam emails I was getting.
import requests, names, random
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
'Accept-Language': 'en-US,en;q=0.5',
'Content-Type': 'application/x-www-form-urlencoded',
'Origin': 'http://clubaaa.xyz',
'DNT': '1',
'Connection': 'keep-alive',