Skip to main content

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

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stopPhishing-0.0.2.tar.gz (16.6 kB view hashes)

Uploaded Source

Built Distribution

stopPhishing-0.0.2-py3-none-any.whl (17.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page