Skip to content

Instantly share code, notes, and snippets.

View pierky's full-sized avatar

Pier Carlo Chiodi pierky

View GitHub Profile

Measurement: 4454125 - whoami.akamai.net via 8.8.8.8

  • GOOGLE - Google Inc., US: 963 probes
  • OPENDNS - OpenDNS, LLC, US: 4 probes probes: 11104, 20197, 21048, 26519
  • BT-UK-AS BTnet UK Regional network, GB: 3 probes probes: 11036, 12234, 13893
  • INTERLINK-TECH-AS-ID INTERLINK TECHNOLOGY, PT, ID: 1 probe probes: 18850
  • ENTANET ENTANET International Limited, GB: 1 probe probes: 24963
@pierky
pierky / blogpost-dnssec-ecdsa-aware-resolvers-seen-by-ripe-atlas.py
Created January 31, 2015 09:32
Python script used to analyze data for my blog post "DNSSEC: ECDSA-aware resolvers seen by RIPE Atlas"
import urllib2
import json
import os.path
import sys
from ripe.atlas.sagan import DnsResult
from pprint import pprint
RIPE_ATLAS_KEY = ""

Get a list of probes tagged with system-ipv6-works and save it on v6probes.clean:

$ ripe-atlas probes --status 1 --tag system-ipv6-works --limit 3000 > v6probes
$ cat v6probes | grep Connected > v6probes.clean

The --tag argument is part of a PR that has been merged into Magellan but that's not released yet.

Run the parse_probes.py script (you can find it within this gist) to filter probes and to consider only max 5 probes for each source ASN among those whose ASN_v4 and ASN_v6 match [1]. The script prints a list of RIPE Atlas Tools (Magellan) commands to execute in order to start measurements (you need an API key in ~/.atlas/create).

@pierky
pierky / country-code-to-latlng.py
Created April 8, 2015 14:35
Python script to build a country code / capital city lat-lon mapping table
# Processing of http://opengeocode.org/cude/download.php?file=/home/fashions/public_html/opengeocode.org/download/cow.txt
#
# Used on my blog post http://blog.pierky.com/displaying-pmacct-country-code-on-a-kibana-4-map
#
# Output:
#
# {
# "CC": "lat,lon",
# ...
# }
@pierky
pierky / blogpost-italian-government-mail-servers-starttls-support
Created March 16, 2015 15:51
Bash script to analyze STARTTLS support on a list of domains MX servers, used on my "Italian Government mail servers STARTTLS support" blog post
#!/bin/bash
# support script for blog post:
# http://blog.pierky.com/italian-government-mail-servers-starttls-support
# REQUIRES: list of domains on ./domains file, one domain on each line
# ./output directory
rm domains-mx &>/dev/null
@pierky
pierky / blogpost-quick-glance-longer-24-ipv4-prefixes.py
Created October 3, 2014 18:18
Python script used to compare RIPE Atlas results for my blog post "A quick glance at longer than /24 IPv4 prefixes"
# Python script used to compare RIPE Atlas results for my blog post "A quick glance at longer than /24 IPv4 prefixes"
# http://blog.pierky.com/a-quick-glance-at-longer-than-24-ipv4-prefixes/
import json
import urllib2
from pprint import pprint
import ripe.atlas.sagan
RIPE_ATLAS_KEY = ""
PROPS = [ "packets_received", "packets_sent", "rtt_min", "rtt_max", "rtt_median", "rtt_average" ]

Keybase proof

I hereby claim:

  • I am pierky on github.
  • I am pierky (https://keybase.io/pierky) on keybase.
  • I have a public key whose fingerprint is 238F 94CD E2D2 2576 394A 36EB D4B3 F369 E0EE 9841

To claim this, I am signing this object: