2.0.0-p481 :001 > OpenSSL::SSL::SSLContext::DEFAULT_PARAMS
=> {:ssl_version=>"SSLv23", :verify_mode=>1, :ciphers=>"ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW", :options=>-2147482625}
2.0.0-p481 :002 > rating = JSON.parse(RestClient::Resource.new("https://www.howsmyssl.com/a/check" ).get)['rating']
=> "Bad"
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
texas:~ tam7t$ python | |
Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43) | |
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> exit | |
Use exit() or Ctrl-D (i.e. EOF) to exit | |
>>> exit() | |
Segmentation fault: 11 |
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
require 'rails_helper' | |
describe 'OpenSSL' do | |
describe 'configuration' do | |
it 'is secure' do | |
expect(JSON.parse(Faraday.get('https://www.howsmyssl.com/a/check').body)['rating']).to eq 'Probably Okay' | |
end | |
end |
I hereby claim:
- I am tam7t on github.
- I am tam7t (https://keybase.io/tam7t) on keybase.
- I have a public key whose fingerprint is B657 60A9 D721 1834 546F 17A3 5080 6B38 E22D 571D
To claim this, I am signing this object:
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 "fmt" | |
import "syscall" | |
import "os" | |
import "os/signal" | |
import "time" | |
import "runtime/pprof" | |
func main() { |
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
/* tlsprox - minimal tls MITM transparent proxy... in go! | |
* by @tam7t | |
* | |
* Usage: | |
* If we want to MITM https://example.com first get example.com's ip address | |
* then add localhost to /etc/hosts: | |
* | |
* 127.0.0.1 example.com | |
* | |
* > go build tlsprox.go |
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
/* pemedit - certificate manipulation tool | |
* by @tam7t | |
* | |
* Usage: | |
* > go build pemedit.go | |
* > ./pemedit.go -in=server.pem -cn=google.com > cert.new.pem | |
* > openssl x509 -in cert.new.pem -text -noout | |
*/ | |
package main |
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
public class DoesNotWork { | |
public static void main(String[] args) { | |
// this will compile once, fail on execution, and subsequent compiles fail | |
Messages.Status me = Messages.Status.newBuilder().buildPartial(); | |
System.out.println("It Works!"); | |
} | |
} |
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
<html> | |
<head> | |
<title>title</title> | |
<script> | |
var someHtmlString = "</script><script>alert('hi!');</script><script>"; | |
</script> | |
</head> | |
<body> | |
<h1>this is a test</h1> |
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
# plusminus.rb by @tam7t | |
# | |
# Prereqs: | |
# gem install octokit time_diff colorize | |
# | |
# Usage: | |
# API_TOKEN=<GITHUB API TOKEN> ruby plusminus.rb | |
# | |
# Optional Params: | |
# ENDPOINT=<ghe endpoint> |
OlderNewer