A simple python library to check if a url is a phishing link or not.
Project description
Stop Discord Phishing
About this Package
stop-discord-phishingPy works with the list of phishing Domains to detect phishing domains in messages on Discord.
This is the unofficial repository & pypi package which provides functionality in detecting phising links.
If you like this project consider giving it a ⭐ and feel free to contribute to this project!
Source
If you found a domain that is not detected yet, contribute it to the discord-phishing-links repository!
Add Package to your Project
pip install stopPhishing
How to use:
import stopPhishing
Check if String contains a Phishing Link:
TEST_MESSAGE = "this is definitivelynotascamdomain.ru that should be checked"
#Check string on confirmed Phishing Domains
async def checkMessage(TEST_MESSAGE):
isGrabber = await stopPhishing.checkMessage(TEST_MESSAGE) #True
print(isGrabber)
return isGrabber
#Check string on confirmed Phishing Domains & suspicious Domains RECOMMENDED!
async def checkMessageFull(TEST_MESSAGE):
isGrabber = await stopPhishing.checkMessage(message, true) #True
print(isGrabber)
return isGrabber
List all Domains:
async def listPhishingDomains():
links = await stopPhishing.listPhishingDomains() #[]
#Now you can do something with Array with all the confirmed Phishing Domains in it
print(links)
return links
async def listSuspiciousDomains():
links = await stopPhishing.listSuspiciousDomains() #[]
#Now you can do something with Array with all the suspicious Domains in it
print(links)
return links
async def listAllDomains():
links = await stopPhishing.allDomainCount() #[]
#Now you can do something with Array with all the suspicious and confirmed phishing Domains in it
print(links)
return links
Get Domain Count:
#Get the amount of all Phishing and Suspicious Domains
async def getDomainAmount():
amount = await stopPhishing.domainCount() #Number
print(amount)
return amount
#Get the amount of all Phishing Domains
async def getPhishingDomainAmount():
amount = await stopPhishing.phishingDomainCount() #Number
print(amount)
return amount
#Get the amount of all Suspicious Domains
async def getSuspiciousDomainAmount():
amount = await stopPhishing.suspiciousDomainCount() #Number
print(amount)
return amount
Cache
To prevent an excess of requests and load, we added a Cache of 30 minutes
!
List of Phishing Domains
Find the complete List of Phishing Domains here: discord-phishing-links
Attributions
nikolaischunk - "stop-discord-phishing" project owner and npm package maintainer
mahtoid - code review
Changelog
0.0.2
- Added example.py to show how to use the package
- Readme edits
0.0.1
- Initial (and Test) Upload
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for stopPhishing-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b5a5be5e40a72ed8b25c7908e1014e9acf5f42b24936b2ddcfd6cbdd0baf666 |
|
MD5 | d61a5257c1ff88795e0ef71dcb07f215 |
|
BLAKE2b-256 | fdbfacd1989c55fbe715d76736e337187074d9eba418e880273a008e25df5a48 |