项目作者: hrbrmstr

项目描述 :
Gather Autonomous System, IP Address, and Routing Information from Qrator Radar
高级语言: R
项目地址: git://github.com/hrbrmstr/qradar.git
创建时间: 2021-02-15T16:18:26Z
项目社区:https://github.com/hrbrmstr/qradar

开源协议:Other

下载


Project Status: Active – The project has reached a stable, usable
state and is being actively
developed.
Signed
by
Signed commit
%
Linux build
Status
Minimal R
Version
License

qradar

Gather Autonomous System, IP Address, and Routing Information from
Qrator Radar

Description

Qrator has an API (https://api.radar.qrator.net) that can be queried
for information on autonomous systems, IP addresses, and various
internet routing metadata. Tools are provided to perform these queries
and retrieve resultsets. Note that an account is needed to generate the
free API key which is required for all API calls.

What’s Inside The Tin

The following functions are implemented:

  • qr_api_key: Get or set QRATOR_RADAR_API_KEY value
  • qr_ip_lookup: Get list of Prefixes/ASNs for selected IP
  • qr_tidy: Turn a Qrator Radar raw API result into a data frame
  • qr_whois: Retrieve the raw WHOIS record for a given autonomous
    system

TODO

The rest of the API.

Installation

  1. remotes::install_git("https://git.rud.is/hrbrmstr/qradar.git")
  2. # or
  3. remotes::install_gitlab("hrbrmstr/qradar")
  4. # or
  5. remotes::install_bitbucket("hrbrmstr/qradar")
  6. # or
  7. remotes::install_github("hrbrmstr/qradar")

NOTE: To use the ‘remotes’ install options you will need to have the
{remotes} package installed.

Usage

  1. library(qradar)
  2. # current version
  3. packageVersion("qradar")
  4. ## [1] '0.1.0'
  1. qr_tidy(qr_ip_lookup("17.253.144.10"))
  2. ## id name short_descr prefix as_num found_ips
  3. ## 1 714 APPLE-ENGINEERING 17.0.0.0/8 714 {17.253.144.10}
  4. ## 2 714 APPLE-ENGINEERING 17.128.0.0/9 714 {17.253.144.10}
  5. ## 3 714 APPLE-ENGINEERING 17.253.0.0/16 714 {17.253.144.10}
  6. ## 4 714 APPLE-ENGINEERING 17.253.144.0/21 714 {17.253.144.10}
  7. cat(qr_whois("7015"))
  8. ## ASNumber: 7015
  9. ## ASName: COMCAST-7015
  10. ## ASHandle: AS7015
  11. ## RegDate: 2001-12-20
  12. ## Updated: 2021-01-25
  13. ## Ref: https://rdap.arin.net/registry/autnum/7015
  14. ##
  15. ## OrgName: Comcast Cable Communications, LLC
  16. ## OrgId: CCCS
  17. ## Address: 1800 Bishops Gate Blvd
  18. ## City: Mt Laurel
  19. ## StateProv: NJ
  20. ## PostalCode: 08054
  21. ## Country: US
  22. ## RegDate: 2001-09-18
  23. ## Updated: 2020-11-18
  24. ## Ref: https://rdap.arin.net/registry/entity/CCCS
  25. ##
  26. ## OrgTechHandle: IC161-ARIN
  27. ## OrgTechName: Comcast Cable Communications Inc
  28. ## OrgTechPhone: +1-856-317-7200
  29. ## OrgTechEmail: CNIPEO-Ip-registration@cable.comcast.com
  30. ## OrgTechRef: https://rdap.arin.net/registry/entity/IC161-ARIN
  31. ##
  32. ## OrgRoutingHandle: ROUTI25-ARIN
  33. ## OrgRoutingName: Routing
  34. ## OrgRoutingPhone: +1-856-317-7200
  35. ## OrgRoutingEmail: routing@comcast.com
  36. ## OrgRoutingRef: https://rdap.arin.net/registry/entity/ROUTI25-ARIN
  37. ##
  38. ## OrgAbuseHandle: NAPO-ARIN
  39. ## OrgAbuseName: Network Abuse and Policy Observance
  40. ## OrgAbusePhone: +1-888-565-4329
  41. ## OrgAbuseEmail: abuse@comcast.net
  42. ## OrgAbuseRef: https://rdap.arin.net/registry/entity/NAPO-ARIN

qradar Metrics

Lang # Files (%) LoC (%) Blank lines (%) # Lines (%)
R 7 0.44 60 0.43 23 0.27 49 0.3
Rmd 1 0.06 10 0.07 19 0.23 32 0.2
SUM 8 0.50 70 0.50 42 0.50 81 0.5

clock Package Metrics for qradar

Code of Conduct

Please note that this project is released with a Contributor Code of
Conduct. By participating in this project you agree to abide by its
terms.