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
--- cryptroot.dist 2011-12-24 16:50:11.000000000 -0800 | |
+++ cryptroot 2011-12-24 17:07:33.000000000 -0800 | |
@@ -211,7 +211,7 @@ | |
fi | |
# We have all the basic options, let's go trough them | |
- OPTIONS="target=$target,source=$source,key=$key" | |
+ OPTIONS="target=$target,source=$source" | |
local IFS=", " | |
unset HASH_FOUND |
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 | |
# Configuration | |
COMMAND="/usr/bin/openssl" | |
PRE_ARGS="" | |
POST_ARGS="-passin env:PASSWD" | |
ECHO=1 | |
# Add any needed execution environment setup code here | |
PASSWD=`get_passphrase.sh` |
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
# Add to the bottom of ~/.profile | |
# Check if this is being called from an interactive shell | |
case "$-" in | |
*i*) | |
# Great, it's an interactive shell. Is this shell being stated by sshd? | |
if [ `readlink /proc/$PPID/exe` = "/usr/sbin/sshd" ] | |
then | |
# exec screen. Attach to or create a new session called auto_ssh. | |
# -x allows multiple copies of screen to be attached to the same session. | |
exec screen -xR auto_ssh |
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/env python | |
# Needs python 2.7 or later | |
from collections import OrderedDict | |
substitutions = OrderedDict([(3, 'Fizz'), (5, 'Buzz'), (7, 'Quxx')]) | |
for i in xrange(1, 128): | |
line = '' | |
# This depends on the ordering of keys in the dict |
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/env python | |
from collections import OrderedDict | |
substitutions = OrderedDict([(3, 'Fizz'), (5, 'Buzz'), (7, 'Quxx')]) | |
max_i = 127 | |
# Pre-compute all outputs - should be faster. | |
output_list = ['']*(max_i+1) |
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 | |
# Save as 'wtcommit' somewhere in your path | |
# Usage: git commit -m "`wtcommit`" | |
curl -q http://whatthecommit.com/ 2>/dev/null | grep '<p>' | sed 's/<p>//' |
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
diff --git a/readconf.c b/readconf.c | |
index 91dfa56..701c79a 100644 | |
+ if (options->clear_identity_files > 0) { | |
+ intptr = &options->num_identity_files; | |
+ while (*intptr > 0) { | |
+ *intptr = *intptr - 1; | |
+ charptr = &options->identity_files[*intptr]; | |
+ debug("removing identity %i (%p %p) %s", | |
+ *intptr, charptr, *charptr, *charptr); | |
+ if (charptr && *charptr) { |
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
# IdentityFile magic, should be placed at very end of file. | |
# Allows easier management of many ssh keys without having | |
# to repeatedly fiddle with ~/.ssh/config. If it's not clear | |
# you set up your keys as id_rsa_username@host.example.com | |
# substituting ANY for either the username or hostname if | |
# desired. | |
Host * | |
IdentityFile ~/.ssh/keys/id_ecdsa_%r@%h | |
IdentityFile ~/.ssh/keys/id_rsa_%r@%h | |
IdentityFile ~/.ssh/keys/id_dsa_%r@%h |
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 | |
# PoC tty_tickets spoofing exploit by Ryan Castellucci | |
# Originally written October 2012, see CVE-2013-1776 | |
# This does not implement using setsid to cause fallback | |
DUMMY=/does/not/exist/$RANDOM/$RANDOM/$RANDOM/$RANDOM | |
WAIT_LOOP=0 | |
# Usage ./sudosudo.sh command [args] |
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
diff --git a/main.cc b/main.cc | |
index 4bfc287..bb0ada7 100644 | |
--- a/main.cc | |
+++ b/main.cc | |
@@ -180,7 +180,7 @@ generate_code(po::variables_map &options, hh::Keyboard::Ptr &kb) | |
{ | |
try | |
{ | |
- if (fs::is_regular_file(dir_itr->status()) && boost::iends_with(dir_itr->path().stem(), ".elu")) | |
+ if (fs::is_regular_file(dir_itr->status()) && boost::iends_with(dir_itr->path().stem().string(), ".elu")) |
OlderNewer