Skip to content

Instantly share code, notes, and snippets.

View blubbll's full-sized avatar
🔷

B͈̤̖̪̪̱ͅl̯̯̮̼͎̬͚̳̩̖̲u̜̼͉͈̠b͙̬̘̙̱̗̲͙b͍̞̬̬͓̼l̰̪͖̯̼̟̟͈̖͕̜̱̜ͅl̻̗͔̝̭̰͚͇̯̥ blubbll

🔷
View GitHub Profile
@blubbll
blubbll / md5.min.js
Last active March 5, 2019 13:22
md5 in js
//string zu md5
var md5 = function (r) { function n(r, n) { var t = r[0], f = r[1], i = r[2], a = r[3]; f = c(f = c(f = c(f = c(f = e(f = e(f = e(f = e(f = o(f = o(f = o(f = o(f = u(f = u(f = u(f = u(f, i = u(i, a = u(a, t = u(t, f, i, a, n[0], 7, -680876936), f, i, n[1], 12, -389564586), t, f, n[2], 17, 606105819), a, t, n[3], 22, -1044525330), i = u(i, a = u(a, t = u(t, f, i, a, n[4], 7, -176418897), f, i, n[5], 12, 1200080426), t, f, n[6], 17, -1473231341), a, t, n[7], 22, -45705983), i = u(i, a = u(a, t = u(t, f, i, a, n[8], 7, 1770035416), f, i, n[9], 12, -1958414417), t, f, n[10], 17, -42063), a, t, n[11], 22, -1990404162), i = u(i, a = u(a, t = u(t, f, i, a, n[12], 7, 1804603682), f, i, n[13], 12, -40341101), t, f, n[14], 17, -1502002290), a, t, n[15], 22, 1236535329), i = o(i, a = o(a, t = o(t, f, i, a, n[1], 5, -165796510), f, i, n[6], 9, -1069501632), t, f, n[11], 14, 643717713), a, t, n[0], 20, -373897302), i = o(i, a = o(a, t = o(t, f, i, a, n[5], 5, -701558691), f, i, n[10], 9, 38016083), t, f, n
@blubbll
blubbll / md5.js
Created March 7, 2019 06:00
md5 in js
//string zu md5
$3.md5 = function (r) { function n(r, n) { var t = r[0], f = r[1], i = r[2], a = r[3]; f = c(f = c(f = c(f = c(f = e(f = e(f = e(f = e(f = o(f = o(f = o(f = o(f = u(f = u(f = u(f = u(f, i = u(i, a = u(a, t = u(t, f, i, a, n[0], 7, -680876936), f, i, n[1], 12, -389564586), t, f, n[2], 17, 606105819), a, t, n[3], 22, -1044525330), i = u(i, a = u(a, t = u(t, f, i, a, n[4], 7, -176418897), f, i, n[5], 12, 1200080426), t, f, n[6], 17, -1473231341), a, t, n[7], 22, -45705983), i = u(i, a = u(a, t = u(t, f, i, a, n[8], 7, 1770035416), f, i, n[9], 12, -1958414417), t, f, n[10], 17, -42063), a, t, n[11], 22, -1990404162), i = u(i, a = u(a, t = u(t, f, i, a, n[12], 7, 1804603682), f, i, n[13], 12, -40341101), t, f, n[14], 17, -1502002290), a, t, n[15], 22, 1236535329), i = o(i, a = o(a, t = o(t, f, i, a, n[1], 5, -165796510), f, i, n[6], 9, -1069501632), t, f, n[11], 14, 643717713), a, t, n[0], 20, -373897302), i = o(i, a = o(a, t = o(t, f, i, a, n[5], 5, -701558691), f, i, n[10], 9, 38016083), t, f, n[
@blubbll
blubbll / base64.js
Created March 7, 2019 06:01
base64 encode in js
!function (e) { var t = "object" === typeof exports && exports, r = "object" === typeof module && module && module.exports === t && module, o = "object" === typeof global && global; o.global !== o && o.window !== o || (e = o); var n = function (e) { this.message = e; }; (n.prototype = new Error).name = "InvalidCharacterError"; var a = function (e) { throw new n(e); }, c = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", d = /[\t\n\f\r ]/g, h = { encode: function (e) { e = String(e), /[^\0-\xFF]/.test(e) && a("The string to be encoded contains characters outside of the Latin1 range."); for (var t, r, o, n, d = e.length % 3, h = "", i = -1, f = e.length - d; ++i < f;)t = e.charCodeAt(i) << 16, r = e.charCodeAt(++i) << 8, o = e.charCodeAt(++i), h += c.charAt((n = t + r + o) >> 18 & 63) + c.charAt(n >> 12 & 63) + c.charAt(n >> 6 & 63) + c.charAt(63 & n); return 2 === d ? (t = e.charCodeAt(i) << 8, r = e.charCodeAt(++i), h += c.charAt((n = t + r) >> 10) + c.charAt(n >> 4 & 63) + c.charAt(n << 2
@blubbll
blubbll / token.cs
Created March 11, 2019 14:30
simple token generator c#
//Rextester.Program.Main is the entry point for your code. Don't change it.
//Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Text;
using System.Collections;
@blubbll
blubbll / objecthash.cs
Created March 14, 2019 07:11
c# get hashcode of object (bound to instance / c# run) (idk why tho)
using System;
public class Program
{
public class muffin{
}
public static void Main()
{
var Muffin = new muffin();
@blubbll
blubbll / timejs
Created March 17, 2019 19:42
some time stuff backup
var newVer = function(){
return crc.crc16(Buffer.from(`${new Date().toJSON().slice(0,16).replace(/-/g, '').replace('T','').replace(':', '').substring(2)}`, 'utf8')).toString('hex');
}
@blubbll
blubbll / domparser.polyfill.js
Created March 20, 2019 05:59
domparser polyfill
//domparser polyfill
!function (t) { "use strict"; var e = t.prototype, r = e.parseFromString; try { if ((new t).parseFromString("", "text/html")) return; } catch (t) { console.error(t); } e.parseFromString = function (t, e) { if (/^\s*text\/html\s*(?:;|$3)/i.test(e)) { var n = document.implementation.createHTMLDocument(""); return t.toLowerCase().indexOf("<!doctype") > -1 ? n.documentElement.innerHTML = t : n.body.innerHTML = t, n; } return r.apply(this, arguments); }; }(DOMParser);
@blubbll
blubbll / navitype.js
Created March 22, 2019 12:42
get window navigation type js (https://stackoverflow.com/a/55087265)
setTimeout(function () {
$3.navigationType = function () {
var result;
var p;
if (window.performance.navigation) {
result = window.performance.navigation;
if (result === 255) { result = 4; }
}
@blubbll
blubbll / cookie.link.html
Created March 22, 2019 13:31
cookie link
@blubbll
blubbll / toomuchwork.js
Created March 24, 2019 07:55
mitm-test fail
/* mastodon auth&key backend
© by Blubbll */
let //imports
express = require('express'),
app = express(),
bodyParser = require('body-parser'),
urlencodedParser = bodyParser.urlencoded({
extended: false
}),
//https://medium.com/@asimmittal/using-jquery-nodejs-to-scrape-the-web-9bb5d439413b