handlers

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Tempest- Leveraging paste sites as a medium for discovery Copyright © 2023 ax-i-om <addressaxiom@pm.me>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.

Package handlers contains functions used throughout tempest

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deduplicate added in v0.7.0

func Deduplicate(filename string) error

Deduplicate removes any duplicate lines from a string and writes the results to a cleaned file

func FixName added in v0.7.0

func FixName(str, substr string) string

FixName cleans/appends an extension (substr) to a string (str) if necessary

func GetRes

func GetRes(link string) (*http.Response, error)

GetRes sends a request to a specified URL and returns and *http.Response and error that will be nil if successful.

func LogErr added in v0.8.0

func LogErr(err error, msg string)

func LogInfo added in v0.8.0

func LogInfo(msg string)

func SwapCheck added in v0.7.0

func SwapCheck(err error)

SwapCheck will be used in the future to determine whether or not to swap to a new proxy will be migrated to an exported function, likely in internal to handle modular rate limiting

func TrueRand added in v0.7.0

func TrueRand(n int, chars string) string

TrueRand generates a random number for paste ID generation

func Wipe added in v0.7.0

func Wipe()

Wipe is used to close and flush all opened files/writers

func Write added in v0.7.0

func Write(results []models.Entry)

Write is used to write all entries from results to the specified file/output

Types

This section is empty.

Jump to

Keyboard shortcuts

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