On the client VM:
chef > r = search(:node, "role:keymaster AND chef_environment:vagrant")
=> []
chef > r = search(:node, "role:keymaster")
=> [node[keymaster.local.vm]]
chef > print node.chef_environment
julienv@nux:~$ mkdir -p non/executable/dir | |
julienv@nux:~$ echo 'uptime' > non/executable/dir/script.sh | |
julienv@nux:~$ chmod +x non/executable/dir/script.sh | |
julienv@nux:~$ chmod -x non/executable/dir | |
julienv@nux:~$ chmod -x non/executable | |
julienv@nux:~$ chmod -x non | |
julienv@nux:~$ bash non/executable/dir/script.sh | |
bash: non/executable/dir/script.sh: Permission denied | |
julienv@nux:~$ chmod +x non/ -R | |
julienv@nux:~$ bash non/executable/dir/script.sh |
$ tree afw | |
afw | |
├── attributes | |
│ └── default.rb | |
├── files | |
│ └── default | |
│ ├── empty.iptables | |
│ ├── initd-firewall | |
│ └── upstart-firewall.conf | |
├── libraries |
On the client VM:
chef > r = search(:node, "role:keymaster AND chef_environment:vagrant")
=> []
chef > r = search(:node, "role:keymaster")
=> [node[keymaster.local.vm]]
chef > print node.chef_environment
$ dig +short mx cs.drexel.edu | |
10 mail.cs.drexel.edu. | |
$ dig +short mail.cs.drexel.edu | |
129.25.8.238 | |
$ nc 129.25.8.238 25 | |
(UNKNOWN) [129.25.8.238] 25 (smtp) : Connection timed out |
$ cat ping-phl-tmobile-lte.txt | |
$ ping www.google.com | |
PING www.google.com (173.194.75.106) 56(84) bytes of data. | |
64 bytes from ve-in-f106.1e100.net (173.194.75.106): icmp_seq=1 ttl=42 time=3022 ms | |
64 bytes from ve-in-f106.1e100.net (173.194.75.106): icmp_seq=2 ttl=42 time=5542 ms | |
64 bytes from ve-in-f106.1e100.net (173.194.75.106): icmp_seq=3 ttl=42 time=4544 ms | |
64 bytes from ve-in-f106.1e100.net (173.194.75.106): icmp_seq=4 ttl=42 time=3623 ms | |
64 bytes from ve-in-f106.1e100.net (173.194.75.106): icmp_seq=5 ttl=42 time=1324 ms | |
64 bytes from ve-in-f106.1e100.net (173.194.75.106): icmp_seq=6 ttl=42 time=324 ms | |
64 bytes from ve-in-f106.1e100.net (173.194.75.106): icmp_seq=7 ttl=42 time=913 ms |
/* Get all the MD5 from a dir | |
jvehent - ulfr - 2013 | |
example: | |
$ go run md5dir.go /home/ulfr/Code/ | |
using path'/home/ulfr/Code/' | |
2204ab698668813742535320d6b11692 /home/ulfr/Code//md5dir.go | |
fbca743b51a503ced1aa29d3933123c7 /home/ulfr/Code//john-1.7.9-jumbo-7.tar.gz | |
*/ | |
package main |
$ ./CiphersScan.sh www.aweber.com:443 | |
Testing 135 ciphersuites | |
ADH-AES128-GCM-SHA256 (Failed) | |
ADH-AES128-SHA (Failed) | |
ADH-AES128-SHA256 (Failed) | |
ADH-AES256-GCM-SHA384 (Failed) | |
ADH-AES256-SHA (Failed) | |
ADH-AES256-SHA256 (Failed) | |
ADH-CAMELLIA128-SHA (Failed) | |
ADH-CAMELLIA256-SHA (Failed) |
$ for site in google.com facebook.com youtube.com yahoo.com wikipedia.org linkedin.com microsoft.com twitter.com amazon.com blogspot.com tumblr.com netflix.com mozilla.org marketplace.mozilla.com login.persona.org; do echo;echo "-- $site --"; ./CiphersScan.sh $site:443;done | |
-- google.com -- | |
prio ciphersuite protocol pfs_keysize | |
1 ECDHE-RSA-AES128-GCM-SHA256 TLSv1.2 ECDH,P-256,256bits | |
2 ECDHE-RSA-RC4-SHA TLSv1.2 ECDH,P-256,256bits | |
3 ECDHE-RSA-AES128-SHA TLSv1.2 ECDH,P-256,256bits | |
4 AES128-GCM-SHA256 TLSv1.2 | |
5 RC4-SHA TLSv1.2 | |
6 RC4-MD5 TLSv1.2 |
#!/usr/bin/env bash | |
# calculate the cpu usage of a single process | |
# jvehent oct.2013 | |
[ -z $1 ] && echo "usage: $0 <pid>" | |
sfile=/proc/$1/stat | |
if [ ! -r $sfile ]; then echo "pid $1 not found in /proc" ; exit 1; fi |
package main | |
import ( | |
"code.google.com/p/go.crypto/openpgp" | |
"code.google.com/p/go.crypto/openpgp/armor" | |
_ "code.google.com/p/go.crypto/ripemd160" | |
"fmt" | |
"log" | |
"os" | |
) |