HurricaneLabs / machinae

Machinae Security Intelligence Collector
MIT License
504 stars 101 forks source link

Implements HTTP Basic Auth for HTTPSite scrapers #16

Closed johannestaas closed 8 years ago

johannestaas commented 8 years ago

Using the --auth/-a flag to pass in an authentication config will allow you to use HTTP basic auth for configs you specify.

Example:

$ machinae -a auth.yml -c passivetotal.yml passivetotal.org
...
$ cat passivetotal.yml
passivetotal_trackers:
  name: PassiveTotal Trackers
  default: True
  otypes:
    - fqdn
  json:
    request:
      url: 'https://api.passivetotal.org/v2/host-attributes/trackers'
      auth: passivetotal
...
$ cat auth.yml
passivetotal:
  - '<username>'
  - '<api key>'
azfayel commented 7 years ago

hello I tried to use basic authentication for FraudGuard but it failed. It seems that the yam file is not valid.