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
# if we have private keys, load ssh-agent or connect to an already running agent | |
if [ -r $HOME/.ssh/id_rsa -o -r $HOME/.ssh/id_dsa -o -r $HOME/.ssh/identity ]; then | |
SSH_SOCKET=$HOME/.ssh/.ssh-socket | |
# ensure socket | |
ps -cx | grep -q '[s]sh-agent' | |
if [ 0 -ne $? ]; then | |
old_umask=$(umask) | |
umask 0077 |
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
if [ -f ~/.ssh/known_hosts ]; then | |
HOSTLIST=$(echo `cat ~/.ssh/known_hosts | cut -f 1 -d ' ' | sed -e s/,.*//g | sed -e 's/^\[\(.*\)\].*/\1/g' | egrep -v '^[0-9]' | uniq`;) | |
complete -o bashdefault -o default -W "${HOSTLIST}" ssh | |
complete -o bashdefault -o default -o nospace -W "${HOSTLIST}" scp | |
complete -o bashdefault -o default -o nospace -W "${HOSTLIST}" ping | |
fi |
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/sh | |
# | |
# Copyright (c) 2011 Netsend | |
# Released under the MIT license. | |
# | |
### | |
# create a local ssh SOCKS proxy to RHOST and update OS X proxy settings. | |
# Tip: make your programs use the default OS X proxy. | |
##### |
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
<?php | |
/* | |
* Copyright 2011, Tim Kuijsten | |
* Released under the MIT license. | |
* http://creativecommons.org/licenses/MIT/ | |
*/ | |
/** | |
* Generate a random string of base 62 characters [a-zA-Z0-9]. | |
* |
NewerOlder