Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bigdargon committed Mar 7, 2022
0 parents commit e61ddfc
Show file tree
Hide file tree
Showing 40 changed files with 11,112 additions and 0 deletions.
Empty file added .github/.gitkeep
Empty file.
Empty file added .github/workflows/.gitkeep
Empty file.
54 changes: 54 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Dead Hosts Infrastructure Workflow
on:
push:
branches:
- "*"

env:
PYFUNCEBLE_AUTO_CONFIGURATION: "YES"
GIT_NAME: "${{ secrets.GIT_BOT_NAME }}"
GIT_EMAIL: "${{ secrets.GIT_BOT_EMAIL }}"
PYFUNCEBLE_CONFIG_DIR: "${{ github.workspace }}/.pyfunceble"
GITHUB_TOKEN: "${{ secrets.BOT_REPO_PAT }}"
PYFUNCEBLE_COLLECTION_API_TOKEN: "${{ secrets.COLLECTION_API_TOKEN }}"

jobs:
single:
name: Run the Dead Hosts launcher
runs-on: "${{ matrix.os }}"

strategy:
fail-fast: false
matrix:
python_version:
- "3.9.1"
os:
- ubuntu-latest

steps:
- uses: actions/checkout@v2
name: Clone repository
with:
token: "${{ secrets.BOT_REPO_PAT }}"

- name: Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python_version }}

- name: Install dependencies
run: |
pip install dead-hosts-launcher
pip install --upgrade --pre PyFunceble-dev
- name: Get PyFunceble version
run: |
PyFunceble --version
- name: Get Launcher version
run: |
dead-hosts-launcher --version
- name: Run Launcher
run: |
dead-hosts-launcher
46 changes: 46 additions & 0 deletions .github/workflows/scheduler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Authorization Checker
on:
schedule:
- cron: "0 5 * * *"

env:
PYFUNCEBLE_AUTO_CONFIGURATION: "YES"
GIT_NAME: "${{ secrets.GIT_BOT_NAME }}"
GIT_EMAIL: "${{ secrets.GIT_BOT_EMAIL }}"
PYFUNCEBLE_CONFIG_DIR: "${{ github.workspace }}/.pyfunceble"
GITHUB_TOKEN: "${{ secrets.BOT_REPO_PAT }}"

jobs:
trigger:
name: Trigger action
runs-on: "${{ matrix.os }}"

strategy:
fail-fast: false
matrix:
python_version:
- "3.9.1"
os:
- ubuntu-latest

steps:
- uses: actions/checkout@v2
name: Clone repository
with:
token: "${{ secrets.BOT_REPO_PAT }}"

- name: Create local change
run: |
date +%s > "${{ github.workspace }}/.trigger"
- name: Commit changes
run: |
git config --local user.email "$GIT_EMAIL"
git config --local user.name "$GIT_NAME"
git commit -m "[Dead-Hosts::Infrastructure][AuthChecker]" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.BOT_REPO_PAT }}
branch: ${{ github.ref }}
104 changes: 104 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
Empty file.
163 changes: 163 additions & 0 deletions .pyfunceble/.PyFunceble.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
cli_decoding:
adblock: false
adblock_aggressive: false
rpz: false
wildcard: false
cli_testing:
autocontinue: true
chancy_tester: true
ci:
active: true
branch: master
command: hash dead_hosts_launcher && dead_hosts_launcher --save
commit_message: '[Autosave][Dead-Hosts::template]'
distribution_branch: master
end_command: hash dead_hosts_launcher && dead_hosts_launcher --end
end_commit_message: '[Final/Result][Dead-Hosts::template]'
max_exec_minutes: 20
cidr_expand: false
complements: false
cooldown_time: 0.2
days_between:
db_clean: 28
db_retest: 1
db_type: csv
display_mode:
all: true
colour: true
dots: true
execution_time: true
less: false
max_registrar: 15
percentage: true
quiet: false
registrar: false
simple: false
status: all
file_filter: null
file_generation:
analytic: true
hosts: false
merge_output_dirs: false
no_file: false
plain: true
unified_results: false
hosts_ip: 0.0.0.0
inactive_db: true
local_network: false
max_workers: 5
mining: false
preload_file: false
sorting_mode:
hierarchical: false
standard: true
testing_mode:
availability: true
reputation: false
syntax: false
whois_db: true
collection:
preferred_status_origin: recommended
push: true
url_base: https://collection.dead-hosts.funilrys.com
debug:
active: false
level: info
dns:
delay: 0.0
follow_server_order: true
protocol: UDP
server:
- 8.8.8.8
- 8.8.4.4
trust_server: false
http_codes:
list:
potentially_down:
- 400
- 402
- 404
- 409
- 410
- 412
- 414
- 415
- 416
- 451
potentially_up:
- 0
- 300
- 301
- 302
- 303
- 304
- 305
- 307
- 308
- 403
- 405
- 406
- 407
- 408
- 411
- 413
- 417
- 418
- 421
- 422
- 423
- 424
- 426
- 428
- 431
- 500
- 501
- 502
- 503
- 504
- 505
- 506
- 507
- 508
- 510
- 511
up:
- 100
- 101
- 102
- 200
- 201
- 202
- 203
- 204
- 205
- 206
- 207
- 208
- 226
- 429
self_managed: false
links:
api_date_format: https://pyfunceble.funilrys.com/api/date-format
api_no_referrer: https://pyfunceble.funilrys.com/api/no-referrer
lookup:
collection: true
dns: true
http_status_code: true
netinfo: true
reputation: false
special: true
timeout: 5
whois: true
max_http_retries: 3
proxy:
global:
http: null
https: null
rules: []
share_logs: false
user_agent:
browser: chrome
custom: null
platform: linux
verify_ssl_certificate: false
14 changes: 14 additions & 0 deletions .pyfunceble/.pyfunceble_intern_downtime.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"iana": {
"iso": "2022-03-06T15:36:37.806619",
"timestamp": 1646580997.806619
},
"psl": {
"iso": "2022-03-06T15:36:37.835225",
"timestamp": 1646580997.835225
},
"user_agents": {
"iso": "2022-03-06T15:36:37.893118",
"timestamp": 1646580997.893118
}
}
Loading

0 comments on commit e61ddfc

Please sign in to comment.