Skip to content

Instantly share code, notes, and snippets.

View anshumanbh's full-sized avatar
🎯
Focusing

Anshuman Bhartiya anshumanbh

🎯
Focusing
View GitHub Profile
@anshumanbh
anshumanbh / crypto.plantuml
Created April 18, 2019 21:15 — forked from jmarcil/crypto.plantuml
threat modeling toolkit cryptocurrencies plantuml
@startuml
skinparam monochrome true
skinparam defaultTextAlignment center
agent "Steal cryptocurrency" as steal
agent "Manipulate the market" as market
agent "Invade privacy" as privacy
agent "Expose their spending habits" as spy
privacy --> spy
import requests
import re
import sys
from multiprocessing.dummy import Pool
def robots(host):
r = requests.get(
'https://web.archive.org/cdx/search/cdx\
?url=%s/robots.txt&output=json&fl=timestamp,original&filter=statuscode:200&collapse=digest' % host)