Program Design Purpose: We want import the NUS-Phishperida phishing URLs detection module into other project. The module need to be OOP so other program can use multi-threading to running several Phishperida module to check batch of URLs(10K ~ 100K).
This module is used to package the NUS-Phishperida phishing URLs detection project as a black box API for other project to use. Put this module in the same folder of the NUS-Phishperida's 'main' module. NUS-Phishperida link: https://github.com/lindsey98/Phishpedia
Version: v_0.1
Install torch 1.7 (only for CPU)
pip install torch==1.8.1+cpu torchvision==0.8.2+cpu torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
Install torch 1.6 (not use this)
pip install torch==1.6.0+cpu torchvision==0.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
https://pytorch.org/get-started/previous-versions/
Install Detectron-2 for CPU only
use the official pre-build
pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cpu/torch1.8/index.html
Install All the lib used by NUS-Phishperida
Follow this link: https://github.com/lindsey98/Phishpedia
Config steps file: doc/Phishpedia_cfg.md
-
[optional] The machine learning part of Phisperida need to use the GPU of the computer; If you don't have Nvidia Graph card, you need to enable the CPU mode:
File:
Phishpedia/src/detectron2_pedia
line 47:# uncomment if you installed detectron2 cpu version # cfg.MODEL.DEVICE = 'cpu'
-
Copy the file to the same folder of the NUS-Phishperida's 'main' module
-
Cd to the program folder and run program execution cmd:
python3 PhishperidaPKG.py
-
Check the result:
Result file:
doc/cfg_steps
-
--
Format:
Problem: (Situation description)
OS Platform :
Error Message:
Type: Setup exception
Solution:
Related Reference:
Last edit by LiuYuancheng(liu_yuan_cheng@hotmail.com) at 30/11/2021