util

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2019 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package util provides misc utility functions for gophish

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAndCreateSSL

func CheckAndCreateSSL(cp string, kp string) error

CheckAndCreateSSL is a helper to setup self-signed certificates for the administrative interface.

func GenerateSecureKey

func GenerateSecureKey() string

GenerateSecureKey creates a secure key to use as an API key

func NewHash

func NewHash(pass string) (string, error)

NewHash hashes the provided password and returns the bcrypt hash (using the default 10 rounds) as a string.

func ParseCSV

func ParseCSV(r *http.Request) ([]models.Target, error)

ParseCSV contains the logic to parse the user provided csv file containing Target entries

func ParseMail

func ParseMail(r *http.Request) (email.Email, error)

ParseMail takes in an HTTP Request and returns an Email object TODO: This function will likely be changed to take in a []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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