stopPhishing

A simple python library to check if a url is a phishing link or not.


Keywords
Phishing, Detection, Anti, discord, discordpy, disnake, pycord, nextcord
License
GPL-3.0-only
Install
pip install stopPhishing==0.0.2

Documentation

Stop Discord Phishing

domains license stars version

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