2022-08-04 06:12:59 +08:00
|
|
|
---
|
2019-09-04 05:32:29 +08:00
|
|
|
name: TheHarvester Python CI
|
2019-08-28 07:01:20 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2022-08-04 06:12:59 +08:00
|
|
|
- '*'
|
2019-09-01 08:44:54 +08:00
|
|
|
|
2019-09-01 08:41:23 +08:00
|
|
|
pull_request:
|
|
|
|
branches:
|
2022-08-04 06:12:59 +08:00
|
|
|
- '*'
|
2021-01-09 03:37:05 +08:00
|
|
|
|
2019-08-28 07:01:20 +08:00
|
|
|
jobs:
|
2020-03-24 03:19:58 +08:00
|
|
|
Python:
|
2020-12-15 05:45:47 +08:00
|
|
|
runs-on: ${{ matrix.os }}
|
2019-08-28 07:01:20 +08:00
|
|
|
strategy:
|
2021-12-10 09:39:30 +08:00
|
|
|
max-parallel: 8
|
2019-08-28 07:01:20 +08:00
|
|
|
matrix:
|
2022-08-04 06:12:59 +08:00
|
|
|
os: [ ubuntu-latest, macos-latest ]
|
2024-10-16 11:31:57 +08:00
|
|
|
python-version: [ '3.11', '3.12', '3.13' ]
|
2020-03-24 03:19:58 +08:00
|
|
|
|
2019-08-28 07:01:20 +08:00
|
|
|
steps:
|
2023-09-05 05:13:43 +08:00
|
|
|
- uses: actions/checkout@v4
|
2022-08-04 06:12:59 +08:00
|
|
|
- name: Python ${{ matrix.python-version }}
|
2023-12-07 06:31:14 +08:00
|
|
|
uses: actions/setup-python@v5
|
2022-08-04 06:12:59 +08:00
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
pip install --upgrade pip
|
2023-10-09 02:45:23 +08:00
|
|
|
pip install .[dev]
|
2022-08-04 06:12:59 +08:00
|
|
|
|
2024-03-03 06:27:55 +08:00
|
|
|
- name: Lint with ruff
|
2023-07-26 23:46:20 +08:00
|
|
|
run: |
|
2024-03-03 06:27:55 +08:00
|
|
|
ruff check
|
2023-10-09 02:45:23 +08:00
|
|
|
|
2024-03-03 06:27:55 +08:00
|
|
|
- name: Format with ruff
|
2023-07-26 23:46:20 +08:00
|
|
|
run: |
|
2024-03-03 06:27:55 +08:00
|
|
|
ruff format --check --diff
|
2022-08-04 06:12:59 +08:00
|
|
|
|
|
|
|
- name: Test with pytest
|
|
|
|
run: |
|
|
|
|
pytest
|
|
|
|
|
|
|
|
- name: Run theHarvester module Anubis
|
|
|
|
run: |
|
2023-10-09 02:45:23 +08:00
|
|
|
theHarvester -d apple.com -b anubis
|
2022-08-04 06:12:59 +08:00
|
|
|
|
|
|
|
- name: Run theHarvester module Baidu
|
|
|
|
run: |
|
2023-10-09 02:45:23 +08:00
|
|
|
theHarvester -d yale.edu -b baidu
|
2022-08-04 06:12:59 +08:00
|
|
|
|
|
|
|
- name: Run theHarvester module Bing
|
|
|
|
run: |
|
2023-10-09 02:45:23 +08:00
|
|
|
theHarvester -d yale.edu -b bing
|
2022-08-04 06:12:59 +08:00
|
|
|
|
|
|
|
- name: Run theHarvester module CertSpotter
|
|
|
|
run: |
|
2023-10-09 02:45:23 +08:00
|
|
|
theHarvester -d yale.edu -b certspotter
|
2022-08-04 06:12:59 +08:00
|
|
|
|
|
|
|
- name: Run theHarvester module Crtsh
|
|
|
|
run: |
|
2023-10-09 02:45:23 +08:00
|
|
|
theHarvester -d hcl.com -b crtsh
|
2022-08-04 06:12:59 +08:00
|
|
|
|
|
|
|
- name: Run theHarvester module DnsDumpster
|
|
|
|
run: |
|
2023-10-09 02:45:23 +08:00
|
|
|
theHarvester -d yale.edu -b dnsdumpster
|
2022-08-04 06:12:59 +08:00
|
|
|
|
|
|
|
- name: Run theHarvester module DuckDuckGo
|
|
|
|
run: |
|
2023-10-09 02:45:23 +08:00
|
|
|
theHarvester -d yale.edu -b duckduckgo
|
2022-08-04 06:12:59 +08:00
|
|
|
|
|
|
|
- name: Run theHarvester module HackerTarget
|
|
|
|
run: |
|
2023-10-09 02:45:23 +08:00
|
|
|
theHarvester -d yale.edu -b hackertarget
|
2022-08-04 06:12:59 +08:00
|
|
|
|
|
|
|
- name: Run theHarvester module Intelx
|
|
|
|
run: |
|
2023-10-09 02:45:23 +08:00
|
|
|
theHarvester -d yale.edu -b intelx
|
2022-08-04 06:12:59 +08:00
|
|
|
|
|
|
|
- name: Run theHarvester module Otx
|
|
|
|
run: |
|
2023-10-09 02:45:23 +08:00
|
|
|
theHarvester -d yale.edu -b otx
|
2022-08-04 06:12:59 +08:00
|
|
|
|
|
|
|
- name: Run theHarvester module RapidDns
|
|
|
|
run: |
|
2023-10-09 02:45:23 +08:00
|
|
|
theHarvester -d yale.edu -b rapiddns
|
2022-08-04 06:12:59 +08:00
|
|
|
|
|
|
|
- name: Run theHarvester module Threatminer
|
|
|
|
run: |
|
2023-10-09 02:45:23 +08:00
|
|
|
theHarvester -d yale.edu -b threatminer
|
2022-08-04 06:12:59 +08:00
|
|
|
|
|
|
|
- name: Run theHarvester module Urlscan
|
|
|
|
run: |
|
2023-10-09 02:45:23 +08:00
|
|
|
theHarvester -d yale.edu -b urlscan
|
2022-08-04 06:12:59 +08:00
|
|
|
|
|
|
|
- name: Run theHarvester module Yahoo
|
|
|
|
run: |
|
2023-10-09 02:45:23 +08:00
|
|
|
theHarvester -d yale.edu -b yahoo
|
2022-08-04 06:12:59 +08:00
|
|
|
|
|
|
|
- name: Run theHarvester module DNS brute force
|
|
|
|
run: |
|
2023-10-09 02:45:23 +08:00
|
|
|
theHarvester -d yale.edu -c
|
2022-12-10 08:00:15 +08:00
|
|
|
|
2024-10-16 11:27:00 +08:00
|
|
|
- name: Static type checking with mypy
|
|
|
|
run: |
|
|
|
|
mypy --pretty theHarvester/*/*.py
|
|
|
|
mypy --pretty theHarvester/*/*/*.py
|