Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
BitTheByte committed Apr 11, 2024
1 parent 4250e71 commit ed93b7d
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 1 deletion.
48 changes: 48 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Monitorizer
<p align="center">
<a href="https://twitter.com/BitTheByte">
<img src="https://i.ibb.co/9pYWyKR/68747470733a2f2f692e6962622e636f2f775367634b66782f417274626f6172642d312e706e67.png" width="500">
</a>
<h3 align="center">The Ultimate Subdomain Monitoring Framework</h3>
</p>

<p align="center">
<a href="#" alt="Code Style">
<img src="https://img.shields.io/badge/code%20style-black-000000.svg" />
</a>
<a href="#" alt="Build">
<img src="https://github.com/bitthebyte/monitorizer/actions/workflows/docker.yml/badge.svg" />
</a>
<br>
<a href="https://github.com/bitthebyte/monitorizer/" alt="Stars">
<img src="https://img.shields.io/github/stars/bitthebyte/monitorizer" />
</a>
<a href="https://github.com/bitthebyte/monitorizer/" alt="Support Python Version">
<img src="https://img.shields.io/badge/Supported%20Python-3.11%7C3.12-blue" />
</a>
<a href="https://github.com/bitthebyte/monitorizer/pulse" alt="Activity">
<img src="https://img.shields.io/github/commit-activity/m/bitthebyte/monitorizer" />
</a>
</p>


# Installation

| :exclamation: **Disclaimer** |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **Admin users are able to execute code on the local server make sure to change the default password at otherwise use it at your own risk** |

### Using docker
```bash
$ curl https://raw.githubusercontent.com/BitTheByte/Monitorizer/main/docker-compose.yml | docker compose -f - up
```

### Default Credentials:
Once everything is ready you will be able to login to the dashboard at http://127.0.0.1:8000/dashboard/

![](assets/login.png)

| Username | Email | Password |
|----------|----------------------------|----------|
| admin | monitorizer@bitthebyte.com | P@ssW0rd |

Binary file added assets/login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions monitorizer/inventory/callback.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json

from django.conf import settings
from django.db.models import Count, Q

from monitorizer.inventory import models
Expand Down Expand Up @@ -37,6 +38,13 @@
}


def environment_callback(request):
if settings.DEBUG:
return ["Development", "warning"]

return ["Production", "info"]


def dashboard_callback(request, context):
scans_per_day = {
group["created_day"]: group
Expand Down
6 changes: 5 additions & 1 deletion monitorizer/server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"SITE_TITLE": "Monitorizer",
"SITE_HEADER": "Monitorizer",
"DASHBOARD_CALLBACK": "monitorizer.inventory.callback.dashboard_callback",
"ENVIRONMENT": "monitorizer.inventory.callback.environment_callback",
"LOGIN": {
"image": lambda request: "https://c0.wallpaperflare.com/preview/1/703/828/fighter-jet-airshow.jpg",
},
"TABS": [
{
"models": ["inventory.seeddomain", "inventory.discovereddomain"],
Expand Down Expand Up @@ -180,7 +184,7 @@
SECRET_KEY = "django-insecure-!of9a9=_^at8&*oa#$fy0%)d)k&91qchx7-1*4ddz8(ugs12_d"

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = bool(os.environ.get("DEBUG", False))

ALLOWED_HOSTS = ["*"]
# APPEND_SLASH = True
Expand Down

0 comments on commit ed93b7d

Please sign in to comment.