Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sannjayy/python-phishing-url-detection
Python Phishing URL Detection
https://github.com/sannjayy/python-phishing-url-detection
flask machine-learning pandas-library pycaret-library
Last synced: 30 days ago
JSON representation
Python Phishing URL Detection
- Host: GitHub
- URL: https://github.com/sannjayy/python-phishing-url-detection
- Owner: sannjayy
- Created: 2024-04-25T07:55:45.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-05-15T10:18:13.000Z (8 months ago)
- Last Synced: 2024-05-16T00:39:36.753Z (8 months ago)
- Topics: flask, machine-learning, pandas-library, pycaret-library
- Language: Python
- Homepage: https://read.sanjaysikdar.dev
- Size: 143 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python Phishing URL Detection
---### Demo Video: [https://youtu.be/9t4gbbrkfks](https://youtu.be/9t4gbbrkfks)
**Python 3.11.9 _(Currently Using)_**
## How to Run?
- Clone or download [python-phishing-url-detection](https://github.com/sannjayy/python-phishing-url-detection)
`git clone [email protected]:sannjayy/python-phishing-url-detection.git`
- Create a virtual environment
```bash
python -m venv zenv
source zenv/Scripts/activate # Windows
source zenv/bin/activate # Mac
```- Install basic requirements
```bash
pip install -r requirements.txt# OR INITIAL INSTALLATION
pip install --upgrade pip
pip install --upgrade setuptoolspip install pandas whois httpx
pip install pycaret # It will take sometime.
```### Replace Domains
```python
if __name__ == "__main__":
phishing_url_1 = 'https://bafybeifqd2yktzvwjw5g42l2ghvxsxn76khhsgqpkaqfdhnqf3kiuiegw4.ipfs.dweb.link/'
phishing_url_2 = 'http://about-ads-microsoft-com.o365.frc.skyfencenet.com'
real_url_1 = 'https://chat.openai.com'
real_url_2 = 'https://github.com/'
print(predict(phishing_url_1))
print(predict(phishing_url_2))
print(predict(real_url_1))
print(predict(real_url_2))
```### To Run
```bash
python main.py# OUTPUT: {'prediction_label': 0, 'prediction_score': 68.39}
# 0 = False | 1 True
```---
### To Run GUI
```bash
pip install flaskpython app.py
```Open http://127.0.0.1:5000 in your browser!
---
---- 🌏 [GitHub Repo](https://github.com/sannjayy/python-phishing-url-detection)
- 🌏 [Website](https://www.sanjaysikdar.dev)
- 📫
- 📖 [read.sanjaysikdar.dev](https://read.sanjaysikdar.dev)
- 📦 [pypi releases](https://pypi.org/user/sannjayy/) | [npm releases](https://www.npmjs.com/~sannjayy)---
[![](https://img.shields.io/github/followers/sannjayy?style=social)](https://github.com/sannjayy)
Developed with ❤️ by *[sanjaysikdar.dev](https://www.sanjaysikdar.dev)*.