Skip to content

Instantly share code, notes, and snippets.

View asifmallik's full-sized avatar

Asif Mallik asifmallik

  • Dhaka, Bangladesh
View GitHub Profile
@tbiehn
tbiehn / m01415_a0.cl
Last active August 24, 2019 01:50
HashCat unoptimized OpenCL kernel for sha256(sha256($pass).$salt) (XenForo SHA-256)
/**
* Author......: See docs/credits.txt
* License.....: MIT
* 1415 sha256(sha256($pass).$salt)
KERN_TYPE_SHA256_PW_SHA256_SLT
static const char *HT_01415 = "sha256(sha256($pass).$salt)";
DISPLAY_LEN_MIN_1411 = 64 + 1 + 0,
DISPLAY_LEN_MAX_1411 = 64 + 1 + SALT_MAX,
DISPLAY_LEN_MIN_1411H = 64 + 1 + 0,
DISPLAY_LEN_MAX_1411H = 64 + 1 + (SALT_MAX * 2),

Keybase proof

I hereby claim:

  • I am tbiehn on github.
  • I am tbiehn (https://keybase.io/tbiehn) on keybase.
  • I have a public key whose fingerprint is 2A49 E991 DD86 E1CD 1117 4C65 0C79 92C6 3856 CEAB

To claim this, I am signing this object:

@addyosmani
addyosmani / LICENSE.txt
Last active April 8, 2024 20:15 — forked from 140bytes/LICENSE.txt
Offline Text Editor in < 140 bytes (115 bytes). Powered by localStorage & contentEditable
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Copyright (C) 2014 ADDY OSMANI <addyosmani.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
@mathiasbynens
mathiasbynens / md5-collision.js
Last active October 22, 2021 23:36
Verify the most famous MD5 collision example in JavaScript, using nothing but built-in Node libraries.
#!/usr/bin/env node
// Verify the most famous MD5 collision example in JavaScript, using nothing but
// built-in Node modules.
var crypto = require('crypto');
var ucs2encode = require('punycode').ucs2.encode;
var assert = require('assert');
var md5 = function(string) {
@simonw
simonw / gist:104413
Created April 30, 2009 11:19
Turn a BeautifulSoup form in to a dict of fields and default values - useful for screen scraping forms and then resubmitting them
def extract_form_fields(self, soup):
"Turn a BeautifulSoup form in to a dict of fields and default values"
fields = {}
for input in soup.findAll('input'):
# ignore submit/image with no name attribute
if input['type'] in ('submit', 'image') and not input.has_key('name'):
continue
# single element nome/value fields
if input['type'] in ('text', 'hidden', 'password', 'submit', 'image'):