# vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai architecture

> Architecture diagram of the GitHub repository vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai
- Repository: https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai

## Overview

The repository is a PHP web application for phishing-URL detection and PHP web-application vulnerability assessment. Its user-facing workflow accepts a URL for phishing classification, or a PHP file for AST-backed static/taint inspection and dynamic input-validation analysis; vulnerability attributes can then be passed to machine-learning prediction and explanation views. README claims XGBoost-based SQLi, XSS, and file-inclusion prediction with XAI. The graph preserves those documented stages, while noting that the excerpts do not establish every handoff between the PHP analysis pages and the model views.

Main entry points: [`Third_Module/page1.php`](https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/Third_Module/page1.php) (Vulnerability result view), [`first_module/tempoutput.php`](https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/first_module/tempoutput.php) (Phishing result), [`index.php`](https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/index.php) (Site crawler), [`first_module/tempinput.php`](https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/first_module/tempinput.php) (URL input)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Web entry"]
  node_home["Application pages<br/>[mainpage.php]"]
  node_crawl["Site crawler<br/>[index.php]"]
  node_dom["HTML parser"]
end

subgraph group_phishing["Phishing detection"]
  node_urlform["URL input<br/>[tempinput.php]"]
  node_urlresult["Phishing result<br/>[tempoutput.php]"]
  node_urlclassifier["URL classifier<br/>[script.py]"]
  node_urlmodel[("SVM model")]
  node_phishingresult["Phishing result data<br/>[phishing.txt]"]
end

subgraph group_static["Static code analysis"]
  node_fileview["File analysis view<br/>[staticsearch.php]"]
  node_parser["PHP AST parser service<br/>[index.js]"]
  node_taint["Taint analysis<br/>[Taintanalysis.php]"]
end

subgraph group_vuln["Vulnerability assessment"]
  node_dynamic["Dynamic analysis"]
  node_featuredata["IVS feature extraction"]
end

subgraph group_models["Prediction and explanation"]
  node_modelpage["Vulnerability result view<br/>[page1.php]"]
  node_predict["Vulnerability prediction<br/>[ml.py]"]
  node_vulnmodels[("Vulnerability models")]
  node_explain["XAI views"]
  node_mlresult["Prediction result data<br/>[ml_results.txt]"]
end

node_user(("User"))

node_user -->|"opens"| node_home
node_user -->|"submits URL"| node_urlform
node_urlform -->|"posts URL"| node_urlresult
node_urlresult -->|"runs classifier"| node_urlclassifier
node_urlclassifier -.->|"classifies with"| node_urlmodel
node_urlresult -->|"reads result"| node_phishingresult
node_user -->|"submits site"| node_crawl
node_crawl -->|"parses fetched HTML"| node_dom
node_user -->|"selects PHP file"| node_fileview
node_fileview -->|"loads AST service"| node_parser
node_parser -->|"links to taint view"| node_taint
node_taint -.->|"offers analysis route"| node_dynamic
node_dynamic -.->|"extracts attributes"| node_featuredata
node_featuredata -.->|"provides attributes"| node_modelpage
node_modelpage -->|"runs prediction"| node_predict
node_predict -.->|"predicts with"| node_vulnmodels
node_modelpage -->|"reads results"| node_mlresult
node_modelpage -->|"links to XAI"| node_explain

click node_home "https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/mainpage.php"
click node_urlform "https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/first_module/tempinput.php"
click node_urlresult "https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/first_module/tempoutput.php"
click node_urlclassifier "https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/first_module/script.py"
click node_urlmodel "https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/first_module/linearSVC_model_url_detec3.sav"
click node_crawl "https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/index.php"
click node_dom "https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/html/simple_html_dom.php"
click node_fileview "https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/html/staticsearch.php"
click node_parser "https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/index.js"
click node_taint "https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/html/Taintanalysis.php"
click node_dynamic "https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/html/dynamicanalysis.php"
click node_featuredata "https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/html/dynamicanalysis_get_attributes_dataset.php"
click node_modelpage "https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/Third_Module/page1.php"
click node_predict "https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/Third_Module/ml.py"
click node_vulnmodels "https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/tree/master/Third_Module/FYP_datasets"
click node_explain "https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/Third_Module/model_dashboard.html"
click node_phishingresult "https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/first_module/phishing.txt"
click node_mlresult "https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/Third_Module/ml_results.txt"

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_home,node_crawl,node_dom,node_user toneBlue
class node_urlform,node_urlresult,node_urlclassifier,node_urlmodel,node_phishingresult toneAmber
class node_fileview,node_parser,node_taint toneMint
class node_dynamic,node_featuredata toneRose
class node_modelpage,node_predict,node_vulnmodels,node_explain,node_mlresult toneIndigo
```

## Components

### Web entry

- [Application pages](https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/mainpage.php): `mainpage.php`
- [Site crawler](https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/index.php): `index.php`
- [HTML parser](https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/html/simple_html_dom.php): `html/simple_html_dom.php`

### Phishing detection

- [URL input](https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/first_module/tempinput.php): `first_module/tempinput.php`
- [Phishing result](https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/first_module/tempoutput.php): `first_module/tempoutput.php`
- [URL classifier](https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/first_module/script.py): `first_module/script.py`
- [SVM model](https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/first_module/linearSVC_model_url_detec3.sav): `first_module/linearSVC_model_url_detec3.sav`
- [Phishing result data](https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/first_module/phishing.txt): `first_module/phishing.txt`

### Static code analysis

- [File analysis view](https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/html/staticsearch.php): `html/staticsearch.php`
- [PHP AST parser service](https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/index.js): `index.js`
- [Taint analysis](https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/html/Taintanalysis.php): `html/Taintanalysis.php`

### Vulnerability assessment

- [Dynamic analysis](https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/html/dynamicanalysis.php): `html/dynamicanalysis.php`
- [IVS feature extraction](https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/html/dynamicanalysis_get_attributes_dataset.php): `html/dynamicanalysis_get_attributes_dataset.php`

### Prediction and explanation

- [Vulnerability result view](https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/Third_Module/page1.php): `Third_Module/page1.php`
- [Vulnerability prediction](https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/Third_Module/ml.py): `Third_Module/ml.py`
- [Vulnerability models](https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/tree/master/Third_Module/FYP_datasets): `Third_Module/FYP_datasets`
- [XAI views](https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/Third_Module/model_dashboard.html): `Third_Module/model_dashboard.html`
- [Prediction result data](https://github.com/vivekjohnsudhakar/fyp-phishing-url-detection-and-vulnerability-assesment-of-php-files-in-web-applications-with-xai/blob/master/Third_Module/ml_results.txt): `Third_Module/ml_results.txt`

### Other components

- **User**

## Connections

- User → Application pages: opens (evidence: `README.md`)
- User → URL input: submits URL (evidence: `first_module/tempinput.php`)
- URL input → Phishing result: posts URL (evidence: `first_module/tempinput.php`)
- Phishing result → URL classifier: runs classifier (evidence: `first_module/tempoutput.php`)
- URL classifier → SVM model: classifies with
- Phishing result → Phishing result data: reads result (evidence: `first_module/tempoutput.php`)
- User → Site crawler: submits site (evidence: `index.php`)
- Site crawler → HTML parser: parses fetched HTML (evidence: `index.php`)
- User → File analysis view: selects PHP file (evidence: `html/staticsearch.php`)
- File analysis view → PHP AST parser service: loads AST service (evidence: `html/staticsearch.php`)
- PHP AST parser service → Taint analysis: links to taint view (evidence: `index.js`)
- Taint analysis → Dynamic analysis: offers analysis route
- Dynamic analysis → IVS feature extraction: extracts attributes
- IVS feature extraction → Vulnerability result view: provides attributes
- Vulnerability result view → Vulnerability prediction: runs prediction (evidence: `Third_Module/page1.php`)
- Vulnerability prediction → Vulnerability models: predicts with
- Vulnerability result view → Prediction result data: reads results (evidence: `Third_Module/page1.php`)
- Vulnerability result view → XAI views: links to XAI
