View gist:d4ce9e71c6860650d7af
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 os | |
import sys | |
# temp assign | |
_files = {} | |
import binascii |
View gist:b36138811f61305ffc66
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 random | |
from pprint import pprint as p | |
CHOICES = ['G', 'G', 'G', 'G', 'B', 'B'] | |
ANSWERS = [ | |
'BGBBB', | |
'GBGBBB', | |
'GBBBBB' | |
] |
View test.py
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
""" | |
A stopwatch records lap times as strings of the form "MM:SS:HS" | |
MM = minutes; SS = seconds; and HS = hundredths of a second. | |
Write a function that accepts two lap times and calculates their average, | |
returning the result in the same string format. | |
Input: "00:02:20" and "00:04:40" | |
Output: "00:03:30" |
View test2.py
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 | |
import re | |
import datetime | |
import smtplib | |
import itertools | |
from email.mime.text import MIMEText | |
class ScanAuthLog(object): | |
""" |
View browserify-rce.py
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/python | |
""" | |
Browserify POC exploit | |
http://iops.io/blog/browserify-rce-vulnerability/ | |
To run, just do: | |
$ python poc.py > exploit.js |
View jquery.togglr.js
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 (factory) { | |
// loader from https://github.com/umdjs/umd/blob/master/jqueryPlugin.js | |
if (typeof define === 'function' && define.amd) { | |
// AMD. Register as an anonymous module. | |
define(['jquery'], factory); | |
} else { | |
// Browser globals | |
factory(jQuery); | |
} | |
}(function ($) { |
View gist:77856da964cc986ab3ee
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
### Keybase proof | |
I hereby claim: | |
* I am foxx on github. | |
* I am sleepycal (https://keybase.io/sleepycal) on keybase. | |
* I have a public key whose fingerprint is 3352 5EE5 1000 1772 5033 7A4D BA90 2A3F 2D9B E20B | |
To claim this, I am signing this object: |
View gist:17a951750d4d7264b983
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
==Phrack Inc.== | |
Volume One, Issue 7, Phile 3 of 10 | |
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= | |
The following was written shortly after my arrest... | |
\/\The Conscience of a Hacker/\/ | |
by |
View parseDesignDocs.js
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() { | |
var fs = require('fs'); | |
var path = require('path'); | |
var current_dir = path.dirname(fs.realpathSync(__filename)); | |
var design_docs_dir = path.join(current_dir, 'design_docs'); | |
var files = fs.readdirSync(design_docs_dir); | |
var json = {}; | |
files.forEach(function(fpath) { |
View example1.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
<!-- BEM EXAMPLE --> | |
<style> | |
.btn { display: block; color: red; } | |
.btn--orange { color: orange; } | |
</style> | |
<div class="btn btn--orange"></div> | |
<!-- NON-BEM EXAMPLE --> | |
<style> |
OlderNewer