This used to be a draft of my blog post "Finding the SqueezeBox Radio Default SSH Password".
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
// checking integrity of JS files by freddyb | |
// using SHA256 by Chris Veness, licensed under LGPL | |
// but, to be honest, do whatever the heck you want | |
// it's not black magic, you know ;) | |
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ | |
/* SHA-256 implementation in JavaScript | (c) Chris Veness 2002-2010 | www.movable-type.co.uk */ | |
/* - see http://csrc.nist.gov/groups/ST/toolkit/secure_hashing.html */ | |
/* http://csrc.nist.gov/groups/ST/toolkit/examples.html */ |
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
## Frederik Braun, Jun 2011 | |
## Contact: <fb(AT)frederik-braun.com> | |
## Licence: WTFPL | |
## Python 2.7x | |
try: | |
import cPickle as pickle | |
except ImportError: | |
import pickle |
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
data:text/html,<style>body,html{height:100%;display:grid;background-color:%2338383d}p{margin:auto;color:white;font-size:48pt;font-family:sans}</style><body><p id=p><script>n=()=>{p.innerText=(new Date()).toLocaleTimeString()};n();setInterval(n,60000);</script> |
The goal is to transplant the concepts of HTTP Strict Transport Security (HSTS)[^1] and Public Key Pinning Extension for HTTP[^2] to other protocols that support TLS. We aim to do those for popular internet protocols like SMTP, POP, FTP, XMPP and IRC.
- Identify status codes that are currently undefined and can be safely ignored by clients that do not support them
- In this status code, the server SHOULD send a list of tokens to describe it's Enhanced TLS Security settings. 2.1 foo
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
import feedparser | |
import datetime | |
def main(urls, keywords): | |
keywords = map(lambda x: x.lower(), keywords) | |
for url in urls: | |
print "Starting to parse", url | |
feed = feedparser.parse(url) | |
for item in feed['items']: | |
title_text = item['title_detail']['value'] |
I hereby claim:
- I am freddyb on github.
- I am freddyb (https://keybase.io/freddyb) on keybase.
- I have a public key whose fingerprint is 1331 4246 981D 2C81 F3B2 EEDD 8874 58AD 404E 0968
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
class cidrator(): | |
def __init__(self, mask ="192.168.1.1/16", skip255=True, skip0=True): | |
self.skip255 = skip255 | |
self.skip0 = skip0 | |
addr, rng = mask.split("/") | |
addr_int = sum((256**(3-i) * int(b)) for i,b in enumerate(addr.split ("."))) | |
self.start = addr_int & int("0b"+("1"*int(rng)) + "0"*(32-int(rng)),2) | |
self.stop = addr_int | int("0b"+("0"*int(rng)) + "1"*(32-int(rng)),2) | |
self.current = self.start |
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
/* this queue-style thing accepts a callback | |
and calls it when it has two results attached | |
usage: | |
j2a = new join2Async(console.log); | |
setTimeout( 'j2a.addResult("foo")', Math.ceil(Math.random()*10)); | |
setTimeout( 'j2a.addResult("var")', Math.ceil(Math.random()*10)); | |
// enjoy the race and see who's first \o/ | |
*/ | |
function join2Async(cb) { | |
// join 2 async call and return once *both* are done. |
NewerOlder