I hereby claim:
- I am pyllyukko on github.
- I am pyllyukko (https://keybase.io/pyllyukko) on keybase.
- I have a public key whose fingerprint is B284 21D6 03DE 0A1D 17AE 4415 78C2 DF2D 1A17 0CC6
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
################################################################################ | |
# file: rc4.sh | |
# created: 15-05-2011 | |
# modified: 2014 Sep 04 | |
# | |
# https://secure.wikimedia.org/wikipedia/en/wiki/RC4 | |
# | |
# NOTES: | |
# - ord() & chr() from http://mywiki.wooledge.org/BashFAQ/071 |
#!/bin/bash | |
# simple format string exploit calculator for wargames etc. | |
declare -a values=() | |
declare -i dpa=6 | |
function calculate_fmt() { | |
local result | |
if [ ${1} -le ${2} ] |
#!/bin/bash | |
################################################################################ | |
# hetu.sh - finnish personal identity code calculator/generator | |
# | |
# by pyllyukko - https://github.com/pyllyukko | |
# | |
# more info: | |
# https://secure.wikimedia.org/wikipedia/en/wiki/National_identification_number#Finland | |
# | |
################################################################################ |
#!/bin/bash | |
# dnssec_root_keys.sh | |
# | |
# mostly copied from https://calomel.org/dns_bind.html, but with different verification and trusted-keys (vs. managed-keys) | |
export PATH="/usr/sbin:/sbin:/usr/bin:/bin" | |
for PROGRAM in \ | |
dnssec-dsfromkey \ | |
gpgsm \ |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <ctype.h> | |
#define C "0123456789ABCDEFHJKLMNPRSTUVWXY" | |
#define X(y, z) y*10+z-48-y | |
#define Y(z) (!(z%4)&&(z%100)||!(z%400)) |
#!/usr/bin/gawk -f | |
# https://www.gnu.org/software/gawk/manual/gawk.html#Nondecimal_002dnumbers | |
# | |
# https://www.gnu.org/software/gawk/manual/gawk.html#Ordinal-Functions | |
# | |
# TODO: | |
# - truncate static bytes | |
# - padding |
#!/bin/sh | |
################################################################################ | |
# ftp.sh 0.2.1 -- pyllyukko # | |
# # | |
# - needs a few hundred more error checks=) # | |
# - works nicely as a poc though # | |
# - uses only 2 external programs, # | |
# cat for downloading and bc for unit conversion (e.g. B->KiB), # | |
# which is unnecessary anyway=) # | |
# # |
#!/bin/bash | |
################################################################################ | |
# check PGP secret key(s) expiration | |
# | |
# created: 17-06-2014 | |
################################################################################ | |
if [ ${BASH_VERSINFO[0]} -ne 4 ] | |
then | |
echo -e "error: bash version != 4, this script might not work properly!" 1>&2 | |
echo " you can bypass this check by commenting out lines $[${LINENO}-2]-$[${LINENO}+2]." 1>&2 |
#!/usr/bin/ruby | |
# Print random tweet from Tweet archive | |
require "csv" | |
tweets = CSV.read('/home/pyllyukko/Documents/twitter-20161205/tweets.csv') | |
i = rand(1..tweets.count-1) | |
puts tweets[i][5] |