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 | |
export STATICLIBSSL="/tmp/staticlibssl" | |
rm -rf "$STATICLIBSSL" | |
mkdir "$STATICLIBSSL" | |
make clean | |
./config --prefix=$STATICLIBSSL no-shared enable-ec_nistp_64_gcc_128 | |
make depend | |
make |
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
package main | |
import ( | |
"bytes" | |
"code.google.com/p/go.crypto/openpgp" | |
"crypto/rsa" | |
"encoding/hex" | |
"fmt" | |
"strconv" | |
"strings" |
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
$ ./cipherscan foxguardsolutions.com | |
......... | |
prio ciphersuite protocols pfs_keysize | |
1 RC4-SHA SSLv3,TLSv1,TLSv1.1 | |
2 RC4-MD5 SSLv3,TLSv1,TLSv1.1 | |
3 AES128-SHA SSLv3,TLSv1,TLSv1.1 | |
4 DHE-RSA-AES128-SHA SSLv3,TLSv1,TLSv1.1 DH,1024bits | |
5 AES256-SHA SSLv3,TLSv1,TLSv1.1 | |
6 DHE-RSA-AES256-SHA SSLv3,TLSv1,TLSv1.1 DH,1024bits | |
7 DES-CBC3-SHA SSLv3,TLSv1,TLSv1.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
package main | |
import ( | |
"fmt" | |
"os" | |
"strconv" | |
"strings" | |
"syscall" | |
) |
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
// Find out what init system your linux is running | |
// | |
// $ go run find_out_init_system.go | |
// Systemd | |
// | |
// ulfr - 2014 | |
package main | |
import ( |
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
// To build, you will need: | |
// $ sudo yum install libpcap-devel | |
// and | |
// $ go get -u code.google.com/p/gopacket/pcap | |
// then go build pcap.go and copy the resulting pcap binary anywhere | |
// (on the same platform you build on) | |
package main | |
import ( | |
"fmt" |
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
package main | |
import ( | |
"code.google.com/p/gcfg" | |
"fmt" | |
"github.com/stripe/aws-go/aws" | |
"github.com/stripe/aws-go/gen/s3" | |
"os" | |
) |
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
{ | |
"timestamp": "2014-02-14T11:48:19.035762739-05:00", | |
"summary": "mig discovered host server1.net.example.com", | |
"hostname": "mig-worker1.use1.opsec.mozilla.com", | |
"severity": "INFO", | |
"category": "asset_hint", | |
"tags": [ | |
"MIG", | |
"Asset" | |
], |
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
$ ./cipherscan www.backblaze.com | |
.. | |
Target: www.backblaze.com:443 | |
prio ciphersuite protocols pfs_keysize | |
1 RC4-SHA TLSv1 | |
Certificate: trusted, 2048 bit, sha256WithRSAEncryption signature | |
TLS ticket lifetime hint: None | |
OCSP stapling: not supported |
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
$ ./cipherscan blog.backblaze.com | |
....... | |
Target: blog.backblaze.com:443 | |
prio ciphersuite protocols pfs_keysize | |
1 DHE-RSA-AES256-SHA TLSv1 DH,1024bits | |
2 DHE-RSA-AES128-SHA TLSv1 DH,1024bits | |
3 EDH-RSA-DES-CBC3-SHA TLSv1 DH,1024bits | |
4 AES256-SHA TLSv1 | |
5 AES128-SHA TLSv1 |