Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download IP addresses (CIDR) from scopes #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cidr_ips.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
89.16.163.96/28
2604:8300:100:200b::/64
2001:67c:2f08::/48
54.175.255.192/27
66.232.20.0/23
206.166.248.0/23
7 changes: 7 additions & 0 deletions hackerone.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def hackerone_to_list():
'wildstar': [],
'bounty_domains': [],
'code': [],
'cidr':[],

}
page = 1
Expand Down Expand Up @@ -64,6 +65,10 @@ def hackerone_to_list():
elif e['node']['asset_type'] == 'SOURCE_CODE' and e['node']['max_severity'] != 'none':
domain = e['node']['asset_identifier']
targets['code'].append(domain)
elif e['node']['asset_type'] == 'CIDR' and e['node']['max_severity'] != 'none':
ip = e['node']['asset_identifier']
if e['node']['eligible_for_bounty']:
targets['cidr'].append(ip)
return targets


Expand All @@ -77,3 +82,5 @@ def hackerone_to_list():
f.write('\n'.join(targets['bounty_domains']))
with open('code.txt', 'w') as f:
f.write('\n'.join(targets['code']))
with open('cidr_ips.txt', 'w') as f:
f.write('\n'.join(targets['cidr']))