Skip to content

Instantly share code, notes, and snippets.

View collina's full-sized avatar

Collin Anderson collina

View GitHub Profile
@collina
collina / gist:5441675
Last active December 16, 2015 13:28
DNS Injection through ASN12880 for Facebook (Iran)
root@nami:~# dig facebook.com @8.8.8.8 +tcp
; <<>> DiG 9.8.1-P1 <<>> facebook.com @8.8.8.8 +tcp
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37010
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;facebook.com. IN A
@collina
collina / gist:5476265
Last active December 16, 2015 18:19
ERICSSON ANNUAL REPORT ON FORM 20-F 2012
http://www.sec.gov/Archives/edgar/data/717826/000119312513145407/d497354d20f.htm
DISCLOSURE PURSUANT TO SECTION 219 OF THE IRAN THREAT REDUCTION AND SYRIA HUMAN RIGHTS ACT OF 2012 (ITRA)
Ericsson has conducted business in Iran/Persia since the late nineteenth century, opened an office in Iran in 1973 and later established a local subsidiary in the country. Ericsson strongly believes in enabling communication for all and believes that access to communications can enable the right to health, education and freedom of expression. Ericsson’s business activities in Iran principally involve the sale of telecommunications infrastructure related products and services, including support, installation and maintenance services. Ericsson’s exports from the European Union (the “EU”) to Iran are performed under export licenses from the Swedish Agency for Non-Proliferation and Export Controls. The EU sanctions towards Iran grant an exemption for the supply of certain telecommunications equipment and software based on which
@collina
collina / gist:5520863
Created May 5, 2013 13:37
SSL Throttling in #Iran
root@nami:~# time wget https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/21.0b6/linux-x86_64/en-US/firefox-21.0b6.tar.bz2
--2013-05-05 16:33:50-- https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/21.0b6/linux-x86_64/en-US/firefox-21.0b6.tar.bz2
Resolving ftp.mozilla.org (ftp.mozilla.org)... 63.245.215.56
Connecting to ftp.mozilla.org (ftp.mozilla.org)|63.245.215.56|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 27685630 (26M) [application/x-bzip2]
Saving to: `firefox-21.0b6.tar.bz2.1'
100%[==================================================================================================================================================================>] 27,685,630 7.84K/s in 71m 11s
@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:5521606
Created May 5, 2013 18:06
#Iran #Filternet Mandated SSL Certificate (karmandiran.ir/certnew.cer)
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
4b:fe:f1:fa:3d:db:cc:b3:44:1f:ac:da:4d:4e:ec:82
Signature Algorithm: sha1WithRSAEncryption
Issuer: CN=CUBE-CA
Validity
Not Before: Jan 5 15:44:52 2013 GMT
Not After : Jan 5 15:54:51 2023 GMT
@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]
@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: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: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: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 * * *