Documentation ¶
Index ¶
- func BytesToGigabytes(bytes uint64) float64
- func CheckErr(err error)
- func CheckSudo()
- func CheckTarget(target string)
- func CollyAddress(target string, savePage bool, ip bool)
- func DownloadFile(filepath string, url string) error
- func GetPassword() string
- func PrintBanner()
- func PrintCPU()
- func PrintHost()
- func PrintMemory()
- func RandomColor() ct.Color
- func RandomString(length int) string
- func ReadFileIntoByte(filename string) []byte
- func RunCmd(command string, arg ...string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToGigabytes ¶
BytesToGigabytes - an internal utility function to convert bytes to gigabytes; used to clarify the output of PrintMemory()
func CheckErr ¶
func CheckErr(err error)
CheckErr prints any non-nil errors followed by exiting the application
func CheckTarget ¶
func CheckTarget(target string)
CheckTarget throws an error if the target is empty
func CollyAddress ¶
CollyAddress - scrapes a website link
func DownloadFile ¶
DownloadFile downloads a file from a url
func PrintMemory ¶
func PrintMemory()
PrintMemory - prints info about system memory TODO: get physical memory instead of swap TODO: convert values to gigabytes
func RandomColor ¶
func RandomString ¶
RandomString - returns a random string TODO: rewrite in my own code TODO: add more comments Util function - returns a random string
Original: https://stackoverflow.com/questions/22892120
/how-to-generate-a-random-string-of-a-fixed-length-in-go#31832326
func ReadFileIntoByte ¶
ReadFileIntoByte - is used for getting []byte of file
Types ¶
This section is empty.