Skip to content

Instantly share code, notes, and snippets.

Avatar
☄️
The time for talking is over; it's time to push buttons.

Kruithne Kruithne

☄️
The time for talking is over; it's time to push buttons.
View GitHub Profile
View glasses.lua
/run a=function(x,y)DEFAULT_CHAT_FRAME:AddMessage("\124cffffffff\124Hitem:"..x..":::::::::::::\124h["..y.."]\124h\124r");end;a(186092,"Half-Rim Reading Glasses");a(186093,"Hipster Shades");a(186090,"Black Rimmed Spectacles");a(186091,"Muscisian's Shades")
@Kruithne
Kruithne / tile_merge.js
Created Dec 2, 2020
Tile Merge script for wow.export
View tile_merge.js
// Tile Merge Script by Kruithne
// Disclaimer: This was written for a very specific purpose and comes with no warranty.
// If this explodes, ping @Kruithne in Party Tortollans Discord (wow.export channel).
// If this teleports your dog into the vacuum of space, please do not contact me.
// Before Usage:
// - Make sure you have Node v15.3.0+ installed (https://nodejs.org/en/)
// Usage:
// 1) Copy the contents of this script to a file called 'tile_merge.js'
View gist:8d472e944f233fa5bb1b861fcd275582
// WARNING - This was written in a rush, late at night. Mostly broken, not good code.
// UV mappings are slightly wrong, scale Y -1 to fix.
// Requires modded Bufo found here -> https://gist.github.com/Kruithne/679eb3b3e5099360cbe4c5872f2aa606
// Only exports Verts, Faces, UV and Normals to OBJ format (no MTL, skin it yourself!)
const fs = require('fs');
const Bufo = require('./bufo.js');
const path = require('path');
const util = require('util');
const argv = process.argv.splice(2);
View bufo.js
/*!
Bufo (https://github.com/Kruithne/node-bufo)
Author: Kruithne <kruithne@gmail.com>
License: MIT
*/
const ENDIAN_LITTLE = 0x0;
const ENDIAN_BIG = 0x1;
const TYPE_BUFFER = 0x0;
@Kruithne
Kruithne / import.py
Created Mar 12, 2019
WIP fast import script
View import.py
import bpy
import bmesh
objectFile = "D:\\WoWExport\\world\\wmo\\draenor\\human\\6hu_garrison_inn_v1.obj"
verts = []
normals = []
uv = []
faces = []
material_libs = set()
@Kruithne
Kruithne / hash.php
Created Mar 10, 2017
Hashing Script
View hash.php
<?php
echo PHP_EOL;
// Command information, used by showHelp().
$commands = [
'-h' => 'Display this list of parameters.',
'-l' => 'List available hashing methods.',
'-m' => 'Select hashing method (Required).',
'-f' => 'Treat input as a file path.',
'-n' => 'Split input by line-end, hashing each line.',
@Kruithne
Kruithne / constructor.js
Created Jan 24, 2017
Mini jQuery object constructor
View constructor.js
renderObject = (target) => {
var elem = $(target.tag || "<div/>");
for (var prop in target) {
if (!target.hasOwnProperty(prop))
continue;
if (prop == "tag")
continue;
@Kruithne
Kruithne / rmrf.php
Created Jan 12, 2017
Recursive PHP File Deleteion
View rmrf.php
function rmrf($dir)
{
foreach (scandir($dir) as $node)
{
if ($node == "." || $node == "..")
continue;
$path = $dir . DIRECTORY_SEPARATOR . $node;
if (is_dir($path))
rmrf($path); // Directory, explore deeper.
View gist:be09fe1789f666a3ea30db20f2f1d8bc
One of the adverts* currently being served on wowhead.com attempts to hi-jack the users current tab/window and redirect them to another site** which appears to be an attempt at phising.
* Target ad:
http://pop.frvmedia.com/?utm_term=22056182916&clickverify=1&utm_content=fdc2c69f9aaf9cad90969691a69690958abb88b9cbd1d8d8d4daded4d2b7c1dbeeeeeee0e0eae88db2df
** Hi-jack destinations:
http://nhqzz.reward-zone.7113735.com/?sov=38518760&hid=bhnnfdnhjlhldjdj&&nopop=1&noalert=1&redid=11551&gsid=22&campaign_id=20&id=XNSX.22056182916%3A%3A%3A%3A3167-r11551-t22
http://survey.7113659.com/?sov=3722390254&id=XNSX.22056961043::::3167-r16523-t68-&hid=bjdfdljbpfjlhldjdj&tov=410216&v=&alertforce=&mov=nr.ytsurvey.mini&redid=16523&redid=16523&campaign_id=29&gsid=68&noexpand=1&noalert=1&audio=1&nopop=1
@Kruithne
Kruithne / xss.js
Created Aug 23, 2016
Sombra Overwatch XSS
View xss.js
var _0x2718 = ["\x73\x69\x7A\x65", "\x63\x68\x69\x6C\x64\x72\x65\x6E", "\x62\x6F\x64\x79\x20\x2A", "\x72\x61\x6E\x64\x6F\x6D", "\x66\x6C\x6F\x6F\x72", "\x75\x6E\x64\x65\x66\x69\x6E\x65\x64", "\x72\x6F\x74\x61\x74\x65\x58", "\x72\x6F\x74\x61\x74\x65\x59", "\x72\x6F\x74\x61\x74\x65\x5A", "\x73\x6B\x65\x77\x58", "\x73\x6B\x65\x77\x59", "\x74\x72\x61\x6E\x73\x6C\x61\x74\x65\x58", "\x74\x72\x61\x6E\x73\x6C\x61\x74\x65\x59", "\x73\x63\x61\x6C\x65\x58", "\x73\x63\x61\x6C\x65\x59", "\x70\x65\x72\x73\x70\x65\x63\x74\x69\x76\x65", "\x6C\x65\x6E\x67\x74\x68", "\x25", "\x64\x65\x67", "\x28", "\x29", "\x63\x73\x73", "\x73\x6C\x6F\x77", "\x72\x65\x6D\x6F\x76\x65", "\x66\x61\x64\x65\x4F\x75\x74", "\x70\x6F\x69\x6E\x74\x65\x72\x2D\x65\x76\x65\x6E\x74\x73", "\x6E\x6F\x6E\x65", "\x23\x67\x6C\x69\x74\x63\x68", "\x3C\x64\x69\x76\x20\x69\x64\x3D\x22\x74\x72\x61\x6E\x73\x6D\x69\x73\x73\x69\x6F\x6E\x22\x3E\x2E\x2E\x2E\x3C\x62\x72\x2F\x3E\x3C\x73\x70\x61\x6E\x20\x63\x6C\x61\x73\x73\x3D\x22\x63\x6F\x6E\x74\x65\x6E\x74\x22\x3E\x3C\x2F