pfp

package
v0.0.0-...-f9e586a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

pfp checks profile pictures against a list of known profile pictures to prevent impersonation using perceptual hashing. See https://www.hackerfactor.com/blog/index.php?/archives/432-Looks-Like-It.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashFolderImgs

func HashFolderImgs() error

Hash all of the known suspicious images from the images directory.

func MonitorPfp

func MonitorPfp(url, description string)

func PfpIsSuspicious

func PfpIsSuspicious(mem *discordgo.Member) (is bool, msg string, err error)

Check whether a user's profile picture is suspicious. Returns true if the profile picture is suspicious, along with a message describing the match.

Types

type Hash

type Hash struct {
	// contains filtered or unexported fields
}

type HashSlice

type HashSlice struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL