This file contains 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
<div class="section" id="search-options"> | |
<h2><a class="toc-backref" href="#id4">1.3 Search Options</a></h2> | |
<p>Several options can be applied to a search:</p> | |
<ul> | |
<li><p class="first"><strong>macroal</strong> stands for "Match All Contents Regexes On All Lines". It's a boolean | |
option that requires that all <cite>content</cite> regexes must match on all the lines of | |
a file. By default, content regexes are applied at the file level and will | |
return a match if one line matches one regex, and if another line matches another | |
regex. When the <cite>macroal</cite> option is set, each line in the file must match all | |
content regexes defined in a given search to return a match. It is set to not |
This file contains 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 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 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 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 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 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 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 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 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 |
OlderNewer