Skip to content

Instantly share code, notes, and snippets.

View collina's full-sized avatar

Collin Anderson collina

View GitHub Profile
@collina
collina / coaware.py
Last active October 1, 2020 03:33
CoAware for m5stack
# CoAware
# Collin Anderson (cda.io)
# MIT License
import os
import ubluetooth
import ubinascii
import m5ui
import time
import ntptime
@collina
collina / Accounts and Domains
Last active October 23, 2018 00:06
Saudi Oriented Influence / Fake News Operation
---
Twitter Users
---
abdoxxixx
IzMllll
musfer_alyami
nobl88870
Satamm3714
nwwaff_77
ooo11ww
@collina
collina / gist:5521087
Created May 5, 2013 15:15
Blocking on Transfer with UDP on Arbitrary Ports in #Iran
root@nami:~# tcpdump -r random_traffic_port_8082_udp.pcap | head
reading from file random_traffic_port_8082_udp.pcap, link-type EN10MB (Ethernet)
19:40:58.250303 IP internationalhost.35447 > nami.8082: UDP, length 2048
19:40:58.250640 IP internationalhost.35447 > nami.8082: UDP, length 2048
19:40:58.251200 IP internationalhost.35447 > nami.8082: UDP, length 2048
19:40:58.251358 IP internationalhost.35447 > nami.8082: UDP, length 2048
19:40:58.251566 IP internationalhost.35447 > nami.8082: UDP, length 2048
19:40:58.252529 IP internationalhost.35447 > nami.8082: UDP, length 2048
19:40:58.252711 IP internationalhost.35447 > nami.8082: UDP, length 2048
19:40:58.252975 IP internationalhost.35447 > nami.8082: UDP, length 2048
@collina
collina / gist:84c26445a683c0297bec
Created February 25, 2016 18:15
Specific IP Prefix Announcements (/32) in BGP from the Telecommunication Company of Iran (AS12880) During February 2016 Elections
Prefix First Seen Last Seen
178.248.42.122/32 2016-02-11 16:00:00 UTC 2016-02-25 16:00:00 UTC
178.248.43.101/32 2016-02-11 16:00:00 UTC 2016-02-25 16:00:00 UTC
185.104.192.203/32 2016-02-11 16:00:00 UTC 2016-02-25 16:00:00 UTC
185.14.80.12/32 2016-02-11 16:00:00 UTC 2016-02-25 16:00:00 UTC
185.81.96.58/32 2016-02-11 16:00:00 UTC 2016-02-25 16:00:00 UTC
185.83.198.126/32 2016-02-11 16:00:00 UTC 2016-02-25 16:00:00 UTC
185.88.177.136/32 2016-02-11 16:00:00 UTC 2016-02-25 16:00:00 UTC
188.121.136.82/32 2016-02-11 16:00:00 UTC 2016-02-25 16:00:00 UTC
188.159.231.27/32 2016-02-11 16:00:00 UTC 2016-02-25 16:00:00 UTC
@collina
collina / direct-users-transform.py
Last active December 22, 2015 01:19
Code to Process Tor Project's Direct Connecting User Statistics
#-*- coding: utf-8 -*-
#
# :authors: Collin Anderson
# :license: CC0
# :dataset: https://metrics.torproject.org/csv/direct-users.csv
# :example: python direct-users-transform.py direct-users.csv
import csv, sys, datetime
import pylab
@collina
collina / gist:6347464
Created August 26, 2013 22:32
Google Play Store TCP Traceroute from Iran #Filternet
root@nami:~# tcptraceroute play.google.com 443
Selected device eth0, address [hop 1], port 46544 for outgoing packets
Tracing the path to play.google.com (74.125.232.132) on TCP port 443 (https), 30 hops max
1 [hop 1] 0.615 ms 0.592 ms 0.562 ms
2 [hop 2] 1.168 ms 0.587 ms 0.944 ms
3 [hop 3] 10.309 ms 10.019 ms 10.848 ms
4 p2p.huawei-rtr.aryasat.dist-sw.aryasat.ir (78.154.32.177) 9.935 ms 11.013 ms 8.562 ms
5 78.38.255.100 1.502 ms 1.783 ms 1.411 ms
6 * * *
7 * * *
@collina
collina / gist:6260049
Created August 18, 2013 05:32
Iran Center for e-Commerce Development's "Islamic Republic of IRAN Root CA" #SSL
CONNECTED(00000003)
turning on non blocking io
write R BLOCK
read R BLOCK
read R BLOCK
read R BLOCK
read R BLOCK
---
Certificate chain
0 s:/C=IR/ST=Tehran/L=Tehran/O=Ministry of Industry, Mine and Trade/OU=Deputy of Trade Facilitation/CN=www.enamad.ir
@collina
collina / gist:6025993
Created July 18, 2013 01:20
A few of Tor's exonerator.py functionalities written into a module.
#!/usr/bin/env python
# A modification by @CDA of The Tor Project's exonerator.py (Copyright 2009) -- see LICENSE for licensing information
import binascii
import os
import sys
import time
from optparse import OptionParser
from IPy import IP
@collina
collina / gist:5912979
Created July 2, 2013 20:50
OONI Test for Wikipedia Page Filtering
# -*- encoding: utf-8 -*-
#
# :authors: Collin Anderson
# :licence: see LICENSE
import random
from twisted.internet import defer
from twisted.python import usage
from urllib import quote, unquote
from ooni.utils import log
@collina
collina / gist:5528418
Created May 6, 2013 21:38
SSH Throttling in #Iran #Filternet
root@nami:~# time wget [internationalhost]/mediumfile
--2013-05-07 01:22:43-- http://[internationalhost]/mediumfile
Connecting to [internationalhost]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10240000 (9.8M) [application/octet-stream]
Saving to: `mediumfile.1'
100%[==================================================================================================================================================================>] 10,240,000 315K/s in 24s
2013-05-07 01:23:07 (420 KB/s) - `mediumfile.1' saved [10240000/10240000]