You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-3Lines changed: 15 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -15,13 +15,14 @@ Features:
15
15
***Announced prefixes** aggregated to the most relevant less-specific `INET(6)NUM` object (actual [LIR allocation](https://www.ripe.net/manage-ips-and-asns/db/support/documentation/ripe-database-documentation/rpsl-object-types/4-2-descriptions-of-primary-objects/4-2-4-description-of-the-inetnum-object)).
16
16
17
17
- It will perform an **AS path trace** (using [mtr](https://github.com/traviscross/mtr) in raw mode and retrieving AS data from the results) for single IPs or DNS results, optionally reporting detailed data for each hop, such as RPKI ROA validity, organization/network name, geographic location, etc.
18
-
- It will also detect **IXPs** (Internet Exchange Points) traversed during the trace, and highlight them for clarity.
18
+
- It will detect **IXPs** (Internet Exchange Points) traversed during the trace, and highlight them for clarity.
19
19
- It will attempt to lookup all relevant **abuse contacts** for any given IP or prefix.
20
20
- It will perform **RPKI validity** lookups for every possible IP. Data is validated against [RIPE RPKI Validator](https://rpki-validator.ripe.net/). For path traces, the tool will match each hop's ASN/Prefix pair (retrieved from the Prefix Whois public server) with relevant published RPKI ROAs. In case of origin AS mismatch or unallowed more-specific prefixes, it will warn the user of a potential **route leak / BGP hijack** along with the offending AS in the path (requires `-d` option, see below for usage info).
21
21
-*Read more about BGP hijkacking [here](https://en.wikipedia.org/wiki/BGP_hijacking).*
22
22
-*Read more about RPKI [here](https://en.wikipedia.org/wiki/Resource_Public_Key_Infrastructure), [here](https://blog.cloudflare.com/rpki/), or [here](https://www.ripe.net/manage-ips-and-asns/resource-management/certification).*
23
-
- It will also perform **IP reputation** lookups (especially useful when investigating foreign IPs from log files).
24
-
- It is also possible to search by **organization name** in order to retrieve a list of IPv4/6 network ranges related to a given company. A multiple choice menu will be presented if more than one organization matches the search query.
23
+
- It will perform **IP reputation** lookups (especially useful when investigating foreign IPs from log files).
24
+
- It is possible to search by **organization name** in order to retrieve a list of IPv4/6 network ranges related to a given company. A multiple choice menu will be presented if more than one organization matches the search query.
25
+
- It is possible to search for **ASNs matching a given name**, in order to map the ASNs for a given organization.
25
26
26
27
Screenshots for every lookup option are below.
27
28
@@ -90,6 +91,12 @@ Requires Bash v4.2+. Tested on:
@@ -149,6 +156,7 @@ In order to do so, you can use the following command:
149
156
*`asn [-n|-d] <host.name.tld>` -- _to lookup matching IP(v4/v6), route and ASN data (supports multiple IPs - e.g. DNS RR)_
150
157
*`asn <Route>` -- _to lookup matching ASN data for the given prefix_
151
158
*`asn [-o] <Organization Name>` -- _to search by company name and lookup network ranges exported by (or related to) the company_
159
+
*`asn [-s] <Name>` -- _to search for all ASNs matching a given name. Can be used to map all ASNs related to a given company_
152
160
153
161
##### *Path tracing and reputation*
154
162
@@ -167,6 +175,10 @@ In order to do so, you can use the following command:
167
175
- The script will try to figure out if the input is an Organization name (i.e. if it doesn't look like an IP address, an AS number or a hostname).
168
176
In order to force an organization search (for example for Orgs containing `.` in their name), pass the `[-o|--organization]` command line switch.
169
177
178
+
##### *ASN suggest (-s)*
179
+
180
+
- The script will try to find ASNs matching the given search string, using the RIPEStat API.
181
+
170
182
##### *IXP detection and unannounced prefixes*
171
183
172
184
- The script will detect [IXPs](https://en.wikipedia.org/wiki/Internet_exchange_point) traversed during path traces by matching them with [PeeringDB](https://www.peeringdb.com/)'s comprehensive dataset of IXP prefixes.
0 commit comments