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==
// @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 / vulkanUpdate.py
Last active April 11, 2020 13:33
vulkanUpdate
registryFront = "Windows Registry Editor Version 5.00\n\n[HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\Drivers]\n\"C:\\\\Windows\\\\System32\\\\DriverStore\\\\FileRepository\\\\"
registryEnd = "\\\\nv-vk64.json\"=dword:00000000\n\n"
import os, time
cwd = os.getcwd()
os.chdir("C:/Windows/System32/DriverStore/FileRepository")
all_subdirs = [d for d in os.listdir('.') if os.path.isdir(d) and "nv_dispi.inf_amd64_" in d ]
@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',
@GarnetSunset
GarnetSunset / p5SWEBMRandomizer.py
Last active February 20, 2021 21:44
Automated Shitpost Machine
import os,glob,random
from shutil import copyfile
# Garnet's automated shitpost machine for Persona 5 Scramble
## Drop webms and mp4s in the input folder that gets created upon running this once.
## run it and put it in the romfs folder
### NOTE!!! There are two MP4s, used for the phones UI, so try to find two vertical videos, or a bunch, who cares
try:
os.makedirs("random/pd/videos")
rd %temp% /s /q
md %temp%
del C:\Users\James\Desktop\*.* /s /q
spicetify backup apply
npm audit fix --force
cd /d F:\Documents\Programming\Python\WinGvcci\
F:\Documents\Programming\Python\WinGvcci\WinGvcci.py