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
if (typeof Cc == "undefined") { Cc = Components.classes; } | |
if (typeof Cu == "undefined") { Cu = Components.utils; } | |
if (typeof Ci == "undefined") { Ci = Components.interfaces; } | |
const nsX509CertDB = "@mozilla.org/security/x509certdb;1"; | |
const nsIX509Cert = Ci.nsIX509Cert; | |
const nsIX509CertDB = Ci.nsIX509CertDB; | |
const certdb = Cc[nsX509CertDB].getService(nsIX509CertDB); | |
let certstring = `-----BEGIN CERTIFICATE----- |
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
function*r(k){t=x=>(y=x%n)in s?s[y]:y;w=_=>t((s[i%n]=t(j+=f=t(i++)))+(s[j%n]=f));for(n=256,s=[i=j=0];i<n;)w(j+=k[i%k.length]);for(j=0,i=1;;)yield w()} | |
// A raw RC4 stream. | |
// Works in Firefox only (needs lots of ES6). | |
// 150 chars | |
// Usage: | |
for (var b of r([65,65,65])) { | |
console.log(b); | |
} |
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
#!/usr/bin/env python | |
# Quick and dirty demonstration of CVE-2014-0160 by | |
# Jared Stafford ([email protected]) | |
# Modified so that it finds cookies | |
import sys | |
import struct | |
import socket | |
import time | |
import select |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<manifest> | |
<remote name="jld" fetch="https://github.com/jld/" /> | |
<remove-project name="platform_prebuilts_qemu-kernel" /> | |
<project name="platform_prebuilts_qemu-kernel" path="prebuilts/qemu-kernel" remote="jld" revision="secure-goldfish" /> | |
</manifest> |
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
#Run this on Extension Source code to make it inline-script-less | |
#perl ext2csp.pl <extdir>; | |
#where extdir is the directory with the manifest.json. | |
#This will make a inplace change: make a copy if you want it to work on a copy. | |
use strict; | |
use warnings; | |
use HTML::Parser (); |