Skip to content

Instantly share code, notes, and snippets.

@mccabe615
mccabe615 / heartbleed.rb
Created April 10, 2014 23:31
heartbleed
#!/usr/bin/env ruby
# encoding: BINARY
require 'socket'
require 'timeout'
require 'openssl'
module ContentType
ALERT = "\x15"
@mccabe615
mccabe615 / heartbleed.rb
Created April 11, 2014 00:55
heartbleed jruby script
#!/usr/bin/env ruby
# encoding: BINARY
require 'socket'
require 'timeout'
require 'openssl'
module ContentType
ALERT = "\x15"
HEARTBEAT = "\x18"
Strict-Transport-Security: max-age:31536000; includeSubDomains
<IfModule mod_headers.c>
# this domain should only be contacted in HTTPS for the next 6 months
Header add Strict-Transport-Security "max-age=15768000"
</IfModule>
Gellers-MacBook-Pro:HSTS $ curl -si nvisium.com | grep ^Strict
Strict-Transport-Security: max-age=31536000
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
config.force_ssl = true
worker_processes 1;
user nobody nogroup;
pid /tmp/nginx.pid;
error_log /var/log/nginx.error.log;
events {
worker_connections 1024;
accept_mutex off;
}
http {