Documentation ¶
Index ¶
- func AppendToFile(file *os.File, line string) (err error)
- func CloseFileStream(file *os.File) (err error)
- func ExecCmd(prog string, args string) (int, error)
- func FileToLines(filepath string) ([]string, error)
- func GetFileLength(file string) (int, error)
- func IsJoomla(host string, port int) bool
- func IsWordPress(host string, port int) bool
- func LogError(format string, a ...interface{})
- func LogSuccess(format string, a ...interface{})
- func OpenFileStream(filepath string) (file *os.File, err error)
- func PrintCyan(format string, a ...interface{})
- func PrintError(format string, a ...interface{})
- func PrintRed(format string, a ...interface{})
- func PrintSuccess(format string, a ...interface{})
- func SetCyan()
- func UnsetCyan()
- func XML2List(xmlfile string, outfile string, filter string)
- type Address
- type Host
- type Ports
- type Service
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendToFile ¶
AppendToFile : append a line to target file
func CloseFileStream ¶
CloseFileStream : Close file when we are done with it
func FileToLines ¶
FileToLines : Read lines from a text file
func GetFileLength ¶
GetFileLength : How many lines does a text file contain
func IsWordPress ¶
IsWordPress : Does this server run WordPress?
func OpenFileStream ¶
OpenFileStream : open file for writing
func PrintSuccess ¶
func PrintSuccess(format string, a ...interface{})
PrintSuccess : print text in red
Types ¶
type Host ¶
type Host struct { XMLName xml.Name `xml:"host"` Endtime string `xml:"endtime,attr"` Address Address `xml:"address"` Ports Ports `xml:"ports>port"` }
Host : host field in XML
type Ports ¶
type Ports []struct { Protocol string `xml:"protocol,attr"` Portid string `xml:"portid,attr"` State State `xml:"state"` Service Service `xml:"service"` }
Ports : host>ports
Click to show internal directories.
Click to hide internal directories.