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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file stopPhishing-0.0.2.tar.gz.

File metadata

  • Download URL: stopPhishing-0.0.2.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for stopPhishing-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a94ee15f23bee26575ad34c19c610c029d38cd0c6f7b954156e8e109a8930a3e
MD5 91cc8a04e225fc0b856efbb9cf0eb95e
BLAKE2b-256 4af86cf0c81e188a554a07981ea7ec5a771046f6e5a66df91c0aeee32a075704

See more details on using hashes here.

File details

Details for the file stopPhishing-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: stopPhishing-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for stopPhishing-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6b5a5be5e40a72ed8b25c7908e1014e9acf5f42b24936b2ddcfd6cbdd0baf666
MD5 d61a5257c1ff88795e0ef71dcb07f215
BLAKE2b-256 fdbfacd1989c55fbe715d76736e337187074d9eba418e880273a008e25df5a48

See more details on using hashes here.

Supported by

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