Documentation ¶
Overview ¶
Package lib contain all the functionality needed.
Utils: for manipulating file and system. Net: for every thing related with Network. Logger just for pretty output.
Index ¶
- Constants
- func Bad(message string)
- func ByteConverter(length int64) string
- func CheckConnectivity(host string) int
- func CountLine(file string) string
- func DoRequest(req *http.Request, client http.Client, i int)
- func Execute(pathExec string, args []string) (string, error)
- func Existe(path string) bool
- func Fuxe(netreq NetRequest)
- func GetBody(req *http.Request) (string, error)
- func GetListFile(dir string) []string
- func GetRandLine(file string) string
- func Good(message string)
- func Info(message string)
- func Printerr(err error, fromwhere string)
- func Que(message string)
- func ReadFromFile(filePath string) []string
- func ReadLine(r *bufio.Reader) (string, error)
- func ReturnStringFile(filePath string) string
- func ReturnURL(host string) (*url.URL, error)
- func Run(message string)
- func Say(color, message string)
- func SayMe(color, message string) string
- func ShowOutput(status int, length string, url string)
- func ShowResultsFile(w http.ResponseWriter, r *http.Request, path string)
- func StartListning()
- func ThrowTor() proxy.Dialer
- func WriteToFile(filePath string, instring string)
- type NetRequest
- type ServeMux
- type WebServer
- type WebServerslice
Constants ¶
const ( RESET = "\033[0m" START = "\033[%sm" ORANGE = "33" GREEN = "32" LIGHTGREEN = "92" GREY = "37" BLACK = "30" RED = "31" LIGHTRED = "91" CYAN = "36" LIGHTCYAN = "96" BLUE = "34" LIGHTBLUE = "94" PURPLE = "35" YELLOW = "93" WHITE = "97" LIGHTPURPLE = "95" INFO = "[!] " QUE = "[?] " BAD = "[-] " GOOD = "[+] " RUN = "[~] " BG = ";7" BOLD = ";1" ITALIC = "3" UNDER = "4" STRIKE = "09" )
All the const are defined for what they do!
Variables ¶
This section is empty.
Functions ¶
func ByteConverter ¶
ByteConverter convert length to bytes, KB, MB, GB, TB. param int64 return string
func CheckConnectivity ¶
CheckConnectivity check if the provided host is up or not.
func CountLine ¶
CountLine Count the number of line in a wordlist to determine how much we will brutforce.
func GetListFile ¶
GetListFile get the list of a file in a directory.
func ReadFromFile ¶
ReadFromFile this will read the content of file if -proxyfile is provided.
func ReturnStringFile ¶
ReturnStringFile return the content of file
func Say ¶
func Say(color, message string)
Say is a function that will output a message with the defined color.
func ShowOutput ¶
ShowOutput print pretty output from a request
func ShowResultsFile ¶
func ShowResultsFile(w http.ResponseWriter, r *http.Request, path string)
ShowResultsFile see if the directory is in the data/results and show all json files in it
func WriteToFile ¶
WriteToFile to write to a file
Types ¶
type NetRequest ¶
type NetRequest struct { Host string Proxyfile string Wordlist string UserAgent string Cookie string Ex []string Proxy string Tor bool ResultFile string }
NetRequest for Request data.
type ServeMux ¶
type ServeMux struct {
// contains filtered or unexported fields
}
ServeMux for concurrency
type WebServer ¶
type WebServer struct { ID int `json:"id"` URL string `json:"url"` Status int `json:"status"` Length string `json:"length"` }
WebServer json format
type WebServerslice ¶
type WebServerslice struct {
WebServers []WebServer `json:"host"`
}
WebServerslice json format
func DecodeJSONFile ¶
func DecodeJSONFile(path string) WebServerslice
DecodeJSONFile decode json file and return WebServerslice