├── HackeronPublicReports.csv ├── README.md └── hackeronPublicreports.py /HackeronPublicReports.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upgoingstar/hackerone_public_reports/f1c1f2ab1ec6596a7824df478083ef797a1b00bb/HackeronPublicReports.csv -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # hackerone_public_reports 2 | Finds all public bug reports on reported on Hackerone 3 | -------------------------------------------------------------------------------- /hackeronPublicreports.py: -------------------------------------------------------------------------------- 1 | import requests 2 | from bs4 import BeautifulSoup 3 | import json 4 | import csv 5 | dictbugs = {} 6 | 7 | 8 | 9 | 10 | def find_latest_id(url): 11 | try: 12 | latest_reportid = 0 13 | req = requests.get(url) 14 | html_doc = req.content 15 | soup = BeautifulSoup(html_doc) 16 | for tag in soup.find_all('a'): 17 | if "report" in tag.get('href'): 18 | reportid = tag.get('href').split("/")[2] 19 | reportjson = "https://hackerone.com/reports/" + reportid + ".json" 20 | req1 = requests.get(reportjson) 21 | data = json.loads(req1.content) 22 | print data['url'] 23 | if 'formatted_bounty' in data.keys(): 24 | cellwriter.writerow([data['id'], data['url'], data['title'].encode('utf-8').strip(), data['formatted_bounty'], data['reporter']['username'].encode('utf-8').strip(),data['team']['handle'].encode('utf-8').strip(),data['created_at'], data['disclosed_at']]) 25 | else: 26 | cellwriter.writerow([data['id'], data['url'], data['title'].encode('utf-8').strip(), "Bounty Info Not sure", "No Reporter Information FOund",data['team']['handle'].encode('utf-8').strip(),data['created_at'], data['disclosed_at']]) 27 | else: 28 | pass 29 | except: 30 | pass 31 | 32 | cellwriter = csv.writer(open('HackeronPublicReports.csv', 'w')) 33 | for x in xrange(1,3): 34 | url = "https://hackerone.com/hacktivity?page=" + str(x) 35 | find_latest_id(url) 36 | print "Checking on " + url 37 | --------------------------------------------------------------------------------