Skip to content

Instantly share code, notes, and snippets.

@jtl999
jtl999 / # unbound - 2018-02-21_18-00-46.txt
Created February 22, 2018 03:29
unbound on macOS 10.11.6 - Homebrew build logs
Homebrew build logs for unbound on macOS 10.11.6
Build date: 2018-02-21 18:00:46
Nmap scan report for d162-156-x-x.bchsia.telus.net (162.156.x.x)
Host is up (0.0079s latency).
Scanned at 2017-11-27 23:11:01 UTC for 5s
Not shown: 65519 closed ports
PORT STATE SERVICE
19/tcp filtered chargen
21/tcp filtered ftp
25/tcp filtered smtp
53/tcp filtered domain
80/tcp filtered http
root@angrybear:~/IntelME# python intel_sa00086.py
INTEL-SA-00086 Detection Tool
Copyright(C) 2017, Intel Corporation, All rights reserved
Application Version: 1.0.0.128
Scan date: 2017-11-21 19:27:20 GMT
*** Host Computer Information ***
Name: angrybear
Manufacturer: Supermicro
@jtl999
jtl999 / connect-1910
Created November 6, 2017 00:50
connect-1910
#!/usr/bin/expect
set PASSWORD "changeme" # Change this
set HOST "switch-1910" # host in .ssh/config
spawn ssh $HOST
expect "password: "
send "$PASSWORD\r"
expect "Copyright (c) 2010-2017 Hewlett Packard Enterprise Development LP" # Could use a more generic detection for the prompt.
send "_cmdline-mode on\r"
expect "All commands can be displayed and executed."
send "Y\r"
@jtl999
jtl999 / # binwalk - 2017-10-18_12-32-27.txt
Created October 18, 2017 19:51
binwalk on macOS 10.11.6 - Homebrew build logs
Homebrew build logs for binwalk on macOS 10.11.6
Build date: 2017-10-18 12:32:27
@jtl999
jtl999 / gist:b3b4931e627aaba2f5b13372b98d141c
Last active November 17, 2016 07:22
Places I want to visit
In no particular order
- Calgary, AB
- Edmonton, AB
- Melbourne, AU (MAKE THIS HAPPEN OR ELSE I WILL AFTER GETTING MY EYES FIXED)
- Paris, iie-de-France, France
- Boulder, CO
- Amsterdam, NL
- Germany (CCC conference and other things)
import argparse
from base64 import b64decode
parser = argparse.ArgumentParser(description="Create a Public-Key-Pins header from a file containing a list of pin-sha256 hashes.")
parser.add_argument('--file', dest='filepath', action='store', required=True, metavar="FILE", help="Input file")
parser.add_argument('--max-age', dest='maxage', action='store', type=int, required=True, metavar="INT", help="Max age (in seconds)")
parser.add_argument('--report-only', dest='reportonly', action='store_true', help="Whether to add Report-Only suffix to header")
parser.add_argument('--include-sub-domains', dest='includesubdomains', action='store_true', help="Include sub domains with this header")
parser.add_argument('--report-uri', dest='reporturi', action='store', help="Report URI/URL for reporting HPKP violations.")
@jtl999
jtl999 / ct-submit.py
Last active May 28, 2016 08:17 — forked from rraptorr/ct-submit.py
Simple Certificate Transparency certificate submission client
#!/usr/bin/python
# coding: utf-8
import sys
import os
import argparse, json, base64, struct
import urllib2
from datetime import datetime
import re