Skip to content

Instantly share code, notes, and snippets.

Dear Mr. Harman,

Thank you for contacting me regarding digital security and encryption policy. I appreciate hearing your views on this complex subject, which involves multiple competing security interests.

While the debate over government access to encrypted communications has long been a contentious subject, the issue has received increased attention and scrutiny in the wake of the terrorist attacks in Paris and San Bernardino and, more recently, the ongoing legal battle between Apple Inc. and the Federal Bureau of Investigation (FBI) over access to the iPhone of one of the alleged perpetrators of the terrorist attack in San Bernardino, California. As these attacks showed us, terrorists have become increasingly sophisticated in their use of technology. Social media platforms have become prominent tools for recruitment and radicalization. And when individuals show interest in terrorists' cause, they move their communications to encrypted applications and other secure platforms to evade detection. This pre

@warewolf
warewolf / move.pl
Created February 21, 2016 07:51
Because malware.
#!/usr/bin/perl
use strict;
use warnings;
use Getopt::Long qw(:config pass_through);
use File::Path qw(make_path);
use File::Copy;
use File::Spec;
my $opts = {
@warewolf
warewolf / thoughts.txt
Created February 15, 2016 00:17
Have a data model/query queston
Okay, so I have a set of ranges. In the end these will be dates, but for sake of simplicity they're just numbers here. I think I'll be storing epoch dates.
10-100
30-40
35-60
47-80
12-90
Somebody is going to say "GRAPH DATABASE", but reall what I want is something akin to an index in a SQL db that I can query against ala a where clause.
@warewolf
warewolf / etc_dracut.conf.d_crypto.conf
Last active January 9, 2016 15:44
rotating keys on boot
install_items="/.luks.key"
TERMS AND CONDITIONS
IMPORTANT - PLEASE READ
Terms and Conditions of End-User License Agreement
This software upgrade program provided herewith (the "Software") is proprietary to DENON, a division of D&M Holdings, Inc. ("DENON") and has been made available to you only in accordance with and subject to the terms and conditions of this License Agreement. By installing or using the Software, you will be confirming your acceptance of the Software and your agreement to be bound by all of the following terms and conditions, including, without limitation, the disclaimers which are a part thereof: IF YOU DO NOT AGREE TO THE FOLLOWING TERMS AND CONDITIONS DO NOT INSTALL OR USE THE SOFTWARE.
1. Title.
The Software is the property of DENON. No title or ownership therein or thereto is transferred to you hereunder. This License only provides you with certain prescribed rights to use the Software, subject always to the terms and conditions herein set forth. All rights in and to the Software a
@warewolf
warewolf / prank.pl
Created November 20, 2015 04:58
What I used to punk @da_667
#!/usr/bin/perl
use strict;
use warnings;
use LWP::UserAgent;
use HTTP::Request::Common;
use Data::Dumper;
use IO::Socket::SSL;
use Time::HiRes qw(usleep);
#!/bin/bash -x
# backup wrapper
EMAIL="you@yourdomain.com"
CONFIG=$1
CONFIG_DIR=/mnt/rdiffbackup/configs/
EMAIL_SUBJ="readynas backup: "
# I forget why this is here
@warewolf
warewolf / openocd-make-ida-happy.diff
Created July 16, 2015 22:14
Hacks to make IDA Pro happy w/ OpenOCD's GDB stub - applies against against 79fdeb37f486f74658f1eaf658abac8efb3eba6a
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c
index 4a33a30..aa6ef53 100644
--- a/src/server/gdb_server.c
+++ b/src/server/gdb_server.c
@@ -2196,7 +2196,8 @@ static int gdb_get_target_description_chunk(struct target *target, struct target
else
transfer_type = 'l';
- *chunk = malloc(length + 2);
+ // *chunk = malloc(length + 2);
> targets
TargetName Type Endian TapName State
-- ------------------ ---------- ------ ------------------ ------------
0* WD10EACS.cpu0 feroceon little WD10EACS.cpu0 halted
1 WD2500BS.cpu0 feroceon little WD2500BS.cpu0 halted
> targets WD10EACS.cpu0
> reg pc
pc (/32): 0x000001A8
> targets WD2500BS.cpu0
> reg pc
$ grep md12. /proc/mdstat
md126 : active raid6 sdu1[6](S) sdq1[7] sdi1[0] sde1[2] sdy1[5] sdm1[4]
md125 : active raid6 sdc[8](S) sdh1[10] sdl1[5] sdp1[9] sdx1[6] sdt1[7]
md124 : active raid6 sdd1[6](S) sdk1[1] sdg1[2] sdw1[4] sds1[5] sdo1[0]
md127 : active raid6 sdj1[1] sdf1[5] sdz1[6] sdv1[7] sdr1[8](S) sdn1[4]
# for foo in md12{4,5,6,7}; do mdadm --detail /dev/$foo | grep Array\ Size;done
Array Size : 5860146432 (5588.67 GiB 6000.79 GB)
Array Size : 5860147200 (5588.67 GiB 6000.79 GB)
Array Size : 2929889280 (2794.16 GiB 3000.21 GB)
Array Size : 5860134912 (5588.66 GiB 6000.78 GB)