In [ ]:
from scapy.all import *
In [ ]:
pgp_email = open('pgpemail.txt', 'r')
In [ ]:
pgp_email = pgp_email.read()
In [ ]:
print pgp_email
In [ ]:
'protocol="application/pgp-encrypted"' in pgp_email # per RFC 3156
In [ ]:
import spy
In [ ]:
ip_addrs = spy.parse_email('pgpemail.txt')
In [ ]:
ip_addrs
In [ ]:
spy.trace_route(ip_addrs, "PGPEmailTraceroute.geojson")
In [ ]:
# upload the PGPEmailTraceroute.geojson to a GitHub Gist
In [ ]: