Skip to content

Instantly share code, notes, and snippets.

View Kruithne's full-sized avatar
🚀
Go as far as you can take it

Kruithne Kruithne

🚀
Go as far as you can take it
View GitHub Profile
@Kruithne
Kruithne / xss.js
Created August 23, 2016 22:42
Sombra Overwatch XSS
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
@Kruithne
Kruithne / bob.php
Created August 22, 2016 19:13
BOB for PHP
<?php
/* CONFIGURATION */
$projectName = "Rad Project";
$outputDir = "packaged_builds";
$versions = ["x86-win32", "x86-linux", "x86-darwin"];
/* END CONFIGURATION */
function do_match($pattern, $target) {
@Kruithne
Kruithne / build.js
Last active March 18, 2016 01:21
Mini element builder
$.build = function(params)
{
if (!params.hasOwnProperty("type"))
return null;
var element = $("<" + params.type + "/>");
for (var propKey in params)
{
if (params.hasOwnProperty(propKey))
{
@Kruithne
Kruithne / time-machine.js
Last active January 22, 2016 18:16
Time Machine!
var timeMachine =
{
minute: 60,
hour: 3600,
day: 86400,
week: 604800,
month: 2419200,
year: 29030400,
negMinute: -60,
negHour: -3600,
@Kruithne
Kruithne / services.js
Last active January 22, 2016 17:23
Tiny ickle filter for remote endpoint services
$.poke = function(endpoint, parameters, callback)
{
var errorResponse = {
success: false,
error: "Internal Error"
};
var doAjax = false;
var doPost = false;
@Kruithne
Kruithne / gist:10331f989f1a9b21279c
Created February 9, 2015 21:10
Last Man Standing
function t_copy (t) -- shallow-copy a table
if type(t) ~= "table" then return t end
local meta = getmetatable(t)
local target = {}
for k, v in pairs(t) do target[k] = v end
setmetatable(target, meta)
return target
end
local world = World:new('lms');
if (ogre.isItching())
{
if (ogre.getItchStage() == 0)
{
boolean done = true;
if (rightarm.rotateAngleX > -2.96706F)
{
done = false;
rightarm.rotateAngleX -= 0.1F;
}
@Kruithne
Kruithne / gist:3160045661a31a1d5d9d
Created June 21, 2014 20:12
GoneFishing confi
stepCount: 6
stepLength: 600
startingMessage: '&3The fishing tournament at spawn is starting in <time> minutes!'
startedMessage: '&aThe fishing tournament at spawn has started! The first player to
catch 30 Tastyfish at spawn will win!'
eventLength: 3600
concludeNoWinnerMessage: '&3The fishing tournament has ended with no winner!'
concludeMessage: <player> &ahas won the fishing tournament!
lootDropChance: 1
eventDropChance: 70
<!DOCTYPE html>
<html>
<head>
<title>Result</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css"/>
</head>
<body>
<img src="http://bit.ly/NnVbxt"/>
</body>
</html>
function t_copy (t) -- shallow-copy a table
if type(t) ~= "table" then return t end
local meta = getmetatable(t)
local target = {}
for k, v in pairs(t) do target[k] = v end
setmetatable(target, meta)
return target
end
local world = World:new('survival_tournament');