This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
=pod | |
=head1 SUMMARY | |
auto-dnsbl.py - add DNSBL entries to /etc/hosts.deny automatically | |
=head1 DESCRIPTION |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""Download conversations, customers, and attachments from a Help Scout mailbox | |
Written by Jonathan Kamens ([email protected]). | |
Released into the public domain. | |
Email me patches if you have enhancements you'd like me to incorporate. Don't | |
bother emailing me bug reports or suggestions; this script does exactly what I |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying I am +jik on my passcard. https://onename.com/jik |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# Cron wrapper script for phonepower-usage.pl. | |
# | |
# Copyright (c) 2014 Jonathan Kamens <[email protected]>. You can do | |
# whatever you want with this script, as long as you give me credit | |
# and don't make any money from it. | |
# | |
# The home page of this script is http://blog.kamens.us/2014/04/20/using-selenium-to-monitor-phone-power-international-call-usage/. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <assert.h> | |
#include <openssl/evp.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <time.h> | |
#include <unistd.h> | |
/* Proof of concept for brute-forcing LastPass passwords from the | |
user's login key (sent at login from client to server) or from the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gc | |
import gevent | |
import greenlet | |
import multiprocessing | |
import os | |
""" | |
Gevent doesn't cope well with forking. The child process after the | |
fork ends up with all the same greenlets running as the parent | |
process, which is almost certainly not what you wanted. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import binascii | |
from Crypto.Cipher import AES | |
from Crypto.Random.random import getrandbits | |
from hashlib import md5 | |
from schematics.types import StringType | |
import struct | |
class DecryptionException(Exception): | |
pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# CGI script for generating an RSS feed of the comment on a Hacker | |
# News posting. | |
# | |
# Copyright (c) 2013 Jonathan Kamens <[email protected]>. | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or |
NewerOlder