all

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESDecrypt

func AESDecrypt(ciphertext []byte, iv []byte, key []byte) ([]byte, error)

func AESEncrypt

func AESEncrypt(plaintext []byte, iv []byte, key []byte) ([]byte, error)

func B32D

func B32D(ciphertext string) string

func B32E

func B32E(plaintext string) string

func B64D

func B64D(ciphertext string) string

func B64E

func B64E(plaintext string) string

func Bad

func Bad(v ...interface{})

func Badln

func Badln(v ...interface{})

func Bcrypt

func Bcrypt(plaintext []byte) ([]byte, error)

func Blue

func Blue(v ...interface{})

func Blueln

func Blueln(v ...interface{})

func BytesToGb

func BytesToGb(num int) int

func CheckIfUp

func CheckIfUp(ip_to_check string, timeout int) (bool, error)

func CheckInternet

func CheckInternet() bool

func CheckOpenTcpPort

func CheckOpenTcpPort(ip string, port string) bool

func CheckOpenUdpPort

func CheckOpenUdpPort(ip string, port string) bool

func CheckUrl

func CheckUrl(url_to_check string, timeout int) bool

func Copy

func Copy(src string, dst string) error

func Cyan

func Cyan(v ...interface{})

func Cyanln

func Cyanln(v ...interface{})

func DateToEpoch

func DateToEpoch(year, month, day, hour, minute, second int) int

func DecryptFile

func DecryptFile(file string, psk string, iv []byte) error

func DownloadFile

func DownloadFile(file_url string) error

func EllipticCurveDecrypt

func EllipticCurveDecrypt(priv_key []byte, ciphertext []byte) ([]byte, error)

func EllipticCurveEncrypt

func EllipticCurveEncrypt(priv_key []byte, plaintext []byte) ([]byte, error)

func EncryptFile

func EncryptFile(file string, psk string, iv []byte) error

func Env

func Env() []string

func EpochToDate

func EpochToDate(epoch int) string

func ExecuteCommand

func ExecuteCommand(comm string) string

func Exists

func Exists(src string) bool

func FindNameByPid

func FindNameByPid(pid int) (string, error)

func FindPidByName

func FindPidByName(name string) ([]int, error)

func FindSubstringBetween

func FindSubstringBetween(input string, first_delim string, second_delim string) []string

func FormatedNetstat

func FormatedNetstat() (string, error)

func GbToBytes

func GbToBytes(num int) int

func GenerateIV

func GenerateIV() ([]byte, error)

func GeneratePattern

func GeneratePattern(length int) string

func GetAlienVault

func GetAlienVault(dom string) ([]string, error)

func GetAllSubdomains

func GetAllSubdomains(dom string) ([]string, error)

func GetBanner

func GetBanner(str_to_convert string) string

func GetContent

func GetContent(src string) (string, error)

func GetCrt

func GetCrt(dom string) ([]string, error)

func GetGroups

func GetGroups() ([]string, error)

func GetHackerTarget

func GetHackerTarget(dom string) ([]string, error)

func GetHome

func GetHome() (string, error)

func GetHttpFromDomain

func GetHttpFromDomain(domain string, timeout int) (string, error)

func GetInterfaceInfo

func GetInterfaceInfo(interface_name string) (network.CustomInterface, error)

func GetPatternOffset

func GetPatternOffset(pattern_str string) int

func GetProcesses

func GetProcesses() ([]ps.Process, error)

func GetPublicIp

func GetPublicIp() string

func GetRandomAgent

func GetRandomAgent() string

func GetStatusCode

func GetStatusCode(url_to_check string) (int, error)

func GetTime

func GetTime() string

func Good

func Good(v ...interface{})

func Goodln

func Goodln(v ...interface{})

Println functions

func Green

func Green(v ...interface{})

func Greenln

func Greenln(v ...interface{})

func Hostscan

func Hostscan(ip_range string, ping_timeout int) ([]string, error)

func Info

func Info(v ...interface{})

func Infoln

func Infoln(v ...interface{})

func IntSliceContains

func IntSliceContains(src []int, int_to_check int) bool

func IsDir

func IsDir(src string) (bool, error)

func IsFile

func IsFile(src string) (bool, error)

func ListAllInterfaces

func ListAllInterfaces() ([]string, error)

func Md5

func Md5(plaintext []byte) string

func Morse

func Morse(input string) (string, error)

func Move

func Move(src string, dst string) error

func Netstat

func Netstat() ([]*network.PortsInfo, error)

func PortscanAll

func PortscanAll(ip string) ([]int, error)

func PortscanCommon

func PortscanCommon(ip string) ([]int, error)

func PostHttpReq

func PostHttpReq(url string, post_data url.Values, timeout int) (network.RequestInfo, error)

func PrintBanner

func PrintBanner(str_to_convert string)

func Purple

func Purple(v ...interface{})

func Purpleln

func Purpleln(v ...interface{})

func RandomInt

func RandomInt(max int, min int) int

func RandomString

func RandomString(length int) string

func Rc4Decrypt

func Rc4Decrypt(ciphertext []byte, psk []byte) ([]byte, error)

func Rc4Encrypt

func Rc4Encrypt(plaintext []byte, psk []byte) ([]byte, error)

func Red

func Red(v ...interface{})

func Redln

func Redln(v ...interface{})

func RemoveDuplicatesInt

func RemoveDuplicatesInt(intslice []int) []int

func RemoveDuplicatesStr

func RemoveDuplicatesStr(strslice []string) []string

func Reverse

func Reverse(ip string, port string)

func Rot13

func Rot13(input string) string

func Rot47

func Rot47(input string) string

func SBlue

func SBlue(v ...interface{}) string

func SCyan

func SCyan(v ...interface{}) string

func SGreen

func SGreen(v ...interface{}) string

func SPurple

func SPurple(v ...interface{}) string

func SRed

func SRed(v ...interface{}) string

func Sha1

func Sha1(plaintext []byte) string

func Sha256

func Sha256(plaintext []byte) string

func Sha512

func Sha512(plaintext []byte) string

func SliceContainsInsensitive

func SliceContainsInsensitive(src []string, str_to_check string) bool

func StringSliceContains

func StringSliceContains(src []string, str_to_check string) bool

func TimePrint

func TimePrint(input string)

func TimePrintln

func TimePrintln(input string)

func TimeSprint

func TimeSprint(input string) string

func Timestomp

func Timestomp(src string, count int) error

func ToLowercase

func ToLowercase(src []string) []string

func VerifyBcrypt

func VerifyBcrypt(hash []byte, plaintext []byte) bool

func VerifyMd5

func VerifyMd5(hash string, password string) bool

func VerifySha1

func VerifySha1(hash string, password string) bool

func VerifySha256

func VerifySha256(hash string, password string) bool

func VerifySha512

func VerifySha512(hash string, password string) bool

func Wappalyzer

func Wappalyzer(url string) ([]string, error)

func WhoisDomain

func WhoisDomain(dom string) (wp.WhoisInfo, error)

func Wipe

func Wipe(src string) error

func WriteContent

func WriteContent(filename string, text string) error

func Xor

func Xor(buf []byte, xorchar byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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