Skip to content

Instantly share code, notes, and snippets.

View matts0613's full-sized avatar
💭
Cowrie

Xs matts0613

💭
Cowrie
  • USA
  • 08:34 (UTC -12:00)
View GitHub Profile
function harvestData(url) {
let subdomains = [];
let endpoints = [];
// This is a basic example.
try {
fetch(url)
.then(response => response.text())
.then(html => {
// parsing
// not a userscript, but i modified a previous version i was working on that works 100% in the devtools console and obfuscated it
function _0x5724(_0x4d21a2,_0x3733cb){const _0x5a1ced=_0x5a1c();return _0x5724=function(_0x572415,_0x56e9d2){_0x572415=_0x572415-(0x9*0x115+0x23ec+-0x2c17*0x1);let _0x1f4b33=_0x5a1ced[_0x572415];return _0x1f4b33;},_0x5724(_0x4d21a2,_0x3733cb);}(function(_0x41a38a,_0x141be5){const _0x340161=_0x5724,_0x630244=_0x41a38a();while(!![]){try{const _0x426d7b=-parseInt(_0x340161(0x1b3))/(0x1*0xc56+-0x2*0xc83+0xcb1)+parseInt(_0x340161(0x1b6))/(0xadf*-0x1+0x1641+-0xb60)*(-parseInt(_0x340161(0x19c))/(-0x10a5*0x1+-0x73e+0xbf3*0x2))+-parseInt(_0x340161(0x1a0))/(-0x305*0x7+-0xa87+0x2*0xfd7)*(-parseInt(_0x340161(0x1a3))/(0x11ec+0x19d1+-0x2bb8))+parseInt(_0x340161(0x1c8))/(0x148*0x1+-0x1*-0x1727+-0x1869*0x1)*(parseInt(_0x340161(0x199))/(-0xe*0x33+0x25e9+0x2*-0x118c))+-parseInt(_0x340161(0x19d))/(-0x1a35*-0x1+0x728*0x3+-0x2fa5)*(parseInt(_0x340161(0x1ae))/(0x245c+-0x1b4+-0x229f))+-parseInt(_0x34016
// ==UserScript==
// BEWARE - this actually saves your keypresses on a webpage to a file like a legitimate keylogger - nothing is hidden or obfuscated, but I wanted to see if it was possible using the boundaries of userscripts and the developer console.
// @name Keylog3
// @namespace https://localhost
// @version 0.2
// @description Logs keystrokes to a file 6 seconds after the last keypress.
// @author matts0613
#!/bin/bash
google() {
search=""
echo "Googling: $@"
for term in $@; do
search="$search%20$term"
done
xdg-open "http://www.google.com/search?q=$search"
}
@matts0613
matts0613 / full_SISwimsuit_images.user.js
Last active April 29, 2026 08:59
Auto loads the original full size image from swimsuit.si.com instead of the scaled version they serve you by default
// ==UserScript==
// @name Full SI Swimsuit images
// @match https://swimsuit.si.com/*
// @grant none
// @version 1.1
// @author https://github.com/matts0613
// @description Auto opens the original/full size image on swimsuit.si.com.
// @namespace https://swimsuit.si.com/*
// @license MIT
// ==/UserScript==
#requirement - pip3 install pillow
#Usage: python3 exif.py
#simple script that prints exif information for a user
#prompted image name in the same directory as this script
from PIL import Image
from PIL.ExifTags import TAGS
#prompt user for name of image
imagename = input("Enter name of the image: ")
@matts0613
matts0613 / systemInfo.py
Created May 20, 2020 05:55
py3 script that displays information about IP, geolocation, network interfaces, etc.
#script that displays public info about IP, network, and hardware
#python3 systemInfo.py
import socket
from urllib.request import urlopen
import re
import json
import sys, getopt
import psutil
@matts0613
matts0613 / paypalOpener.js
Created May 8, 2020 13:02
PayPal Dispute Opener Bookmarklet
javascript:(function()%7Bvar Login %3D alert("Please make sure you are logged into PayPal before using this.")%3Bvar caseID %3D prompt("Please enter the case ID")%3Bwindow.open("https%3A%2F%2Fwww.paypal.com%2Fresolutioncenter%2Fbilling%2Fentry%3Faction%3Dview%26caseId%3D"%2BcaseID%2B"%23%2FcaseDetails"%2C "_blank")%3Bwindow.onhashchange %3D alert("Case successfully opened")%7D)()
@matts0613
matts0613 / Googler.js
Created May 8, 2020 13:01
Bookmarklet that opens a search and then searches google based on your entry
javascript:(function()%7B(function google() %7B%0A var search%3D prompt("Please enter your search terms:")%3B%0A window.open("https%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3D" %2B search)%3B%0A%7D)()%7D)()%3B
#quick little IP geolocation script I threw together. Gives your public IP, region of world/country, country, city, and org.
#usage is just 'python ipgeo.py' and you are all set, assuming you have the imported modules.
import re
import json
from urllib2 import urlopen
url = 'http://ipinfo.io/json'
response = urlopen(url)
data = json.load(response)