Skip to content

Instantly share code, notes, and snippets.

View roycewilliams's full-sized avatar
💭
:cheeeeeese:

Royce Williams roycewilliams

💭
:cheeeeeese:
View GitHub Profile
@roycewilliams
roycewilliams / sha512crypt_autotune_demo.php
Last active October 8, 2023 22:43
sha512crypt PHP autotune demo
<?php
//------------------------------------------------------------------------
// Name: sha512crypt_autotune_demo.php v1.1
// Purpose: demo of tuning sha512crypt rounds to match platform speed
// Author: Royce Williams - royce@techsolvency.com
// License: MIT
// Source: https://gist.github.com/roycewilliams/09ddd10504d560c02b28049759cd666f
//
// To test, SSH to your system, fetch the file, and then run it as PHP.
@roycewilliams
roycewilliams / malign.pl
Created January 18, 2022 17:59
malign.pl - align code blocks in context (called from vim)
# /usr/bin/perl
#-----------------------------------------------------------------------
# $Id: malign,v 1.2 2018/06/16 22:25:40 root Exp root $
# Created: 2010-02-08
# Description: Determine the narrowest left margin in passed text,
# then pad the output of align with this pad (less 1, align's left margin).
#-----------------------------------------------------------------------
use strict;
use warnings;
@roycewilliams
roycewilliams / amazon-terms-GLSBYFE9MGKKQXXM.txt
Last active July 20, 2021 01:27
amazon-terms-GLSBYFE9MGKKQXXM.txt
Conditions of Use
Last updated: May 3, 2021
Welcome to Amazon.com. Amazon.com Services LLC and/or its affiliates ("Amazon") provide website features and other products and services to you when you visit or shop at Amazon.com, use Amazon products or services, use Amazon applications for mobile, or use software provided by Amazon in connection with any of the foregoing (collectively, "Amazon Services"). By using the Amazon Services, you agree, on behalf of yourself and all members of your household and others who use any Service under your account, to the following conditions.
Please read these conditions carefully.
We offer a wide range of Amazon Services, and sometimes additional terms may apply. When you use an Amazon Service (for example, Your Profile, Gift Cards, Amazon Video, Your Media Library, Amazon devices, or Amazon applications) you also will be subject to the guidelines, terms and agreements applicable to that Amazon Service ("Service Terms"). If these Conditions of Use are inconsistent with th
@roycewilliams
roycewilliams / mtgox-yubikey.txt
Last active October 16, 2024 01:36
mtgox-yubikey.txt
#-----------------------------------------------------------------------------
# File: https://gist.github.com/roycewilliams/72b5531b2f855e63f19e612001ddc2e4
# A mirror of:
# https://jenda.hrach.eu/f2/mtgox-yubikey.txt
# http://www.sendspace.com/file/in4ss6
#-----------------------------------------------------------------------------
# If you have a Mt Gox YubiKey and want to turn it into a generic YubiKey ...
# ... don't!
#
# I am motivated to trade you two standard modern YubiKeys of your choosing
@roycewilliams
roycewilliams / KPM-char-frequency.txt
Last active July 9, 2021 08:45
KPM-char-frequency.txt
#------------------------------------------------------------------------------
# Character frequency of @RealEnderSec's 5-year window (315 million) of
# Kaspersky Password Manager (KPM) passwords.
# Ref: https://twitter.com/RealEnderSec/status/1412796282188484617
# Rough graph: https://twitter.com/TychoTithonus/status/1413305845924864006
#
# Frequency order: Q w W q x g X k K G U u 1 V v z Z m M j y ! p ~ Y P J f @
# 2 c o i # O h b $ 0 F I e s % S ^ H d 3 & C * E + - 4 B / { , . D 5 t n T
# N l 6 } L [ a 7 ] ( A 8 : 9 ) r ; R
#------------------------------------------------------------------------------
@roycewilliams
roycewilliams / strip-mbox-attachments.py
Created June 22, 2021 02:31
strip-mbox-attachments.py
#!/bin/env python
# Strips attachments from mbox, writes to new mbox.
# Does not load entire old mbox into memory first - useful for very large mboxes.
# Ref: https://ask.slashdot.org/story/11/12/04/1754257/ask-slashdot-handling-and-cleaning-up-a-large-personal-email-archive
# Ref: https://ask.slashdot.org/comments.pl?sid=2557794&cid=38260428
from __future__ import print_function
from mailbox import mbox, mboxMessage
@roycewilliams
roycewilliams / hashcat-benchmark_3080ti_v6.2.1_opencl_2021-06-04.txt
Last active June 5, 2021 19:28
hashcat-benchmark_3080ti_v6.2.1_2021-06-04.txt
#
# From an anoymous contributor - thanks!
#
hashcat (v6.2.1) starting in benchmark mode...
Benchmarking uses hand-optimized kernel code by default.
You can use it in your cracking session by setting the -O option.
Note: Using optimized kernel code limits the maximum supported password length.
To disable the optimized kernel code in benchmark mode, use the -w option.
@roycewilliams
roycewilliams / bindify.py
Created February 3, 2021 19:55 — forked from gmr/bindify.py
Convert tinydns zone files to bind
#!/usr/bin/env python
import collections
import datetime
from os import path
import pickle
import sys
if len(sys.argv) < 2:
print('Usage: bindify.py zonefile')
@roycewilliams
roycewilliams / security-key-u2f-support.txt
Created November 23, 2020 23:06
security-key-u2f-support.txt
# Based on data from https://www.dongleauth.info/
# Located at: https://gist.github.com/roycewilliams/397c9151b4136b8adb46e0bab2515e97
# Last updated 2020-11-23
name: 1Password u2f: Yes multipleu2f: Yes
name: Amazon Web Services u2f: Yes
name: Authelia u2f: Yes
name: Bitbucket u2f: Yes
name: Bitfinex u2f: Yes
name: bitwarden u2f: Yes multipleu2f: Yes
name: Boxcryptor u2f: Yes
@roycewilliams
roycewilliams / softpaq-ia-list.txt
Created September 16, 2020 01:46
softpaq-ia-list.txt
# Comparison of my local early Softpaq archive (0000-1500)
# with the Internet Archive's (https://archive.org/download/ftp.compaq.com/2014.06.ftp.compaq.com.tar.txt)
#
$ sdiff -w80 <(grep sp[01]...\- paqs-local.list|egrep -v /unpack/ | lc) <(grep sp[01]...\- paqs-ia.list | lc)
sp0000-0500 | sp0000-0500/
sp0000-0500/0000.txt sp0000-0500/0000.txt
sp0000-0500/sp0001.zip <
sp0000-0500/sp0002.zip <
sp0000-0500/sp0003.zip <
sp0000-0500/sp0004.zip <