# blackdeath-1708/rjpolice_hack_1251_omega_5 architecture

> Architecture diagram of the GitHub repository blackdeath-1708/rjpolice_hack_1251_omega_5, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/blackdeath-1708/rjpolice_hack_1251_omega_5
- Repository: https://github.com/blackdeath-1708/rjpolice_hack_1251_omega_5

## Overview

This is a Flask-based URL safety checker with a secondary phone-number reputation lookup. The main workflow accepts input, extracts URL and page signals, predicts with a serialized model, enriches the result through VirusTotal, and renders the outcome. Separate routes provide a VirusTotal vendor breakdown and cyber-law information. Feature extraction and route orchestration are visible in excerpts; the README is empty, and unsampled templates and model internals are not inferred beyond their observed use.

Main entry points: [`RJ_Hackathon/main1.py`](https://github.com/blackdeath-1708/rjpolice_hack_1251_omega_5/blob/main/RJ_Hackathon/main1.py) (Flask routes), [`RJ_Hackathon/templates/index.html`](https://github.com/blackdeath-1708/rjpolice_hack_1251_omega_5/blob/main/RJ_Hackathon/templates/index.html) (Input and results), [`RJ_Hackathon/templates/more_details.html`](https://github.com/blackdeath-1708/rjpolice_hack_1251_omega_5/blob/main/RJ_Hackathon/templates/more_details.html) (Vendor details), [`RJ_Hackathon/templates/cyber_law.html`](https://github.com/blackdeath-1708/rjpolice_hack_1251_omega_5/blob/main/RJ_Hackathon/templates/cyber_law.html) (Cyber laws)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_flask["Flask routes<br/>[main1.py]"]
  node_input["Input and results<br/>[index.html]"]
  node_details["Vendor details<br/>[more_details.html]"]
  node_laws["Cyber laws<br/>[cyber_law.html]"]
end

subgraph group_analysis["Threat analysis"]
  node_extract["URL feature extraction<br/>[project.py]"]
  node_classifier["Phishing classifier<br/>[website-model.sav]"]
  node_phonecheck["Phone reputation lookup<br/>[main1.py]"]
end

subgraph group_integrations["External intelligence"]
  node_virustotal["VirusTotal"]
  node_ipquality["IPQualityScore"]
  node_dns["DNS resolver"]
end

node_visitor(("User"))

node_visitor -->|"submits input"| node_flask
node_flask -->|"renders"| node_input
node_flask -->|"extracts features"| node_extract
node_flask -->|"predicts with"| node_classifier
node_flask -->|"submits URL"| node_virustotal
node_flask -->|"resolves domain"| node_dns
node_flask -->|"checks numeric input"| node_phonecheck
node_phonecheck -->|"queries"| node_ipquality
node_flask -->|"renders vendor results"| node_details
node_flask -->|"fetches report"| node_virustotal
node_flask -->|"renders laws"| node_laws

click node_flask "https://github.com/blackdeath-1708/rjpolice_hack_1251_omega_5/blob/main/RJ_Hackathon/main1.py"
click node_input "https://github.com/blackdeath-1708/rjpolice_hack_1251_omega_5/blob/main/RJ_Hackathon/templates/index.html"
click node_details "https://github.com/blackdeath-1708/rjpolice_hack_1251_omega_5/blob/main/RJ_Hackathon/templates/more_details.html"
click node_laws "https://github.com/blackdeath-1708/rjpolice_hack_1251_omega_5/blob/main/RJ_Hackathon/templates/cyber_law.html"
click node_extract "https://github.com/blackdeath-1708/rjpolice_hack_1251_omega_5/blob/main/RJ_Hackathon/project.py"
click node_classifier "https://github.com/blackdeath-1708/rjpolice_hack_1251_omega_5/blob/main/RJ_Hackathon/website-model.sav"
click node_phonecheck "https://github.com/blackdeath-1708/rjpolice_hack_1251_omega_5/blob/main/RJ_Hackathon/main1.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_flask,node_input,node_details,node_laws,node_visitor toneBlue
class node_extract,node_classifier,node_phonecheck toneAmber
class node_virustotal,node_ipquality,node_dns toneMint
```

## Components

### Web application

- [Flask routes](https://github.com/blackdeath-1708/rjpolice_hack_1251_omega_5/blob/main/RJ_Hackathon/main1.py): `RJ_Hackathon/main1.py`
- [Input and results](https://github.com/blackdeath-1708/rjpolice_hack_1251_omega_5/blob/main/RJ_Hackathon/templates/index.html): `RJ_Hackathon/templates/index.html`
- [Vendor details](https://github.com/blackdeath-1708/rjpolice_hack_1251_omega_5/blob/main/RJ_Hackathon/templates/more_details.html): `RJ_Hackathon/templates/more_details.html`
- [Cyber laws](https://github.com/blackdeath-1708/rjpolice_hack_1251_omega_5/blob/main/RJ_Hackathon/templates/cyber_law.html): `RJ_Hackathon/templates/cyber_law.html`

### Threat analysis

- [URL feature extraction](https://github.com/blackdeath-1708/rjpolice_hack_1251_omega_5/blob/main/RJ_Hackathon/project.py): `RJ_Hackathon/project.py`
- [Phishing classifier](https://github.com/blackdeath-1708/rjpolice_hack_1251_omega_5/blob/main/RJ_Hackathon/website-model.sav): `RJ_Hackathon/website-model.sav`
- [Phone reputation lookup](https://github.com/blackdeath-1708/rjpolice_hack_1251_omega_5/blob/main/RJ_Hackathon/main1.py): `RJ_Hackathon/main1.py`

### External intelligence

- **VirusTotal**
- **IPQualityScore**
- **DNS resolver**

### Other components

- **User**

## Connections

- User → Flask routes: submits input (evidence: `RJ_Hackathon/main1.py`)
- Flask routes → Input and results: renders (evidence: `RJ_Hackathon/main1.py`)
- Flask routes → URL feature extraction: extracts features (evidence: `RJ_Hackathon/main1.py`)
- Flask routes → Phishing classifier: predicts with (evidence: `RJ_Hackathon/main1.py`)
- Flask routes → VirusTotal: submits URL (evidence: `RJ_Hackathon/main1.py`)
- Flask routes → DNS resolver: resolves domain (evidence: `RJ_Hackathon/main1.py`)
- Flask routes → Phone reputation lookup: checks numeric input (evidence: `RJ_Hackathon/main1.py`)
- Phone reputation lookup → IPQualityScore: queries (evidence: `RJ_Hackathon/main1.py`)
- Flask routes → Vendor details: renders vendor results (evidence: `RJ_Hackathon/main1.py`)
- Flask routes → VirusTotal: fetches report (evidence: `RJ_Hackathon/main1.py`)
- Flask routes → Cyber laws: renders laws (evidence: `RJ_Hackathon/main1.py`)
