Documentation ¶
Index ¶
- Variables
- func ChangeOutFolder(path string)
- func CheckSudo()
- func CleanPath(s string) string
- func Connected() bool
- func EnsureDir(dir string)
- func InitConfig()
- func ParseAddress(addr string) (string, bool)
- func ParseAllArgs(args []string) string
- func ParseCIDR(s string) (string, error)
- func ParseCmd(s string) (string, []string)
- func ParseIP(s string) string
- func ParseLocalIP() map[string]string
- func ParseNextArg(args []string) (string, []string)
- func RemoveDir(dir string)
- func ShellCmd(cmd string) (string, error)
- func WriteArrayToFile(path string, s []string)
- type Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Const_notification_delay_unit = 10 Const_example_target_cidr = "127.0.0.1/32" Const_example_target_desc = "Target CIDR or /32 for single target" )
View Source
var ( Const_UDP_PORTS = "19,53,69,79,111,123,135,137,138,161,177,445,500,514,520,1434,1900,5353" Const_NMAP_SWEEP = "-n -sn -PE -PP" Const_NMAP_TCP_FULL = "--randomize-hosts -Pn -sS -sC -A -T4 -g53 -p-" Const_NMAP_TCP_STANDARD = "--randomize-hosts -Pn -sS -A -T4 -g53 --top-ports 1000" Const_NMAP_TCP_PROD = "--randomize-hosts -Pn -sT -sV -T3 -p-" Const_NMAP_TCP_VULN = "--randomize-hosts -Pn -sT -sV -p- --script=vulscan/vulscan.nse" Const_NMAP_UDP_STANDARD = fmt.Sprintf("--randomize-hosts -Pn -sU -sC -A -T4 -p%s", Const_UDP_PORTS) Const_NMAP_UDP_PROD = fmt.Sprintf("--randomize-hosts -Pn -sU -sC -sV -T3 -p%s", Const_UDP_PORTS) )
NMAP COMMANDS
View Source
var ( WORDLIST_FUZZ_NAMELIST = "/usr/share/wfuzz/wordlist/fuzzdb/wordlists-user-passwd/names/namelist.txt" WORDLIST_MSF_PWDS = "/usr/share/wordlists/metasploit/unix_passwords.txt" WORDLIST_FINGER_USER = WORDLIST_FUZZ_NAMELIST WORDLIST_FTP_USER = WORDLIST_FUZZ_NAMELIST WORDLIST_SMTP = WORDLIST_FUZZ_NAMELIST WORDLIST_SNMP = "/usr/share/doc/onesixtyone/dict.txt" WORDLIST_DNS_BRUTEFORCE = WORDLIST_FUZZ_NAMELIST WORDLIST_HYDRA_SSH_USER = WORDLIST_FUZZ_NAMELIST WORDLIST_HYDRA_SSH_PWD = WORDLIST_MSF_PWDS WORDLIST_HYDRA_FTP_USER = WORDLIST_FUZZ_NAMELIST WORDLIST_HYDRA_FTP_PWD = WORDLIST_MSF_PWDS )
WORDLISTS
View Source
var Config config
Functions ¶
func ChangeOutFolder ¶
func ChangeOutFolder(path string)
ChangeOutFolder Change output folder as instructed by the user and re-init the db
func EnsureDir ¶
func EnsureDir(dir string)
EnsureDir Ensure the directory exists, or creates it otherwise
func InitConfig ¶
func InitConfig()
InitConfig Initialize global config (db, logger, etc.) From now on it will be accessible as utils.Config
func ParseAddress ¶
ParseAddress Parse a string, regardless if it is an IP or CIDR, and returns its string representation
func ParseAllArgs ¶
ParseAllArgs Parse all remaining arguments from command line
func ParseLocalIP ¶
ParseLocalIP Returns all the addresses of the local network interfaces
func ParseNextArg ¶
ParseNextArg Extract the next argument from command line
func WriteArrayToFile ¶
WriteArrayToFile Given a path and a list of strings, writes them to file
Types ¶
type Logger ¶
type Logger struct{}
func InitLogger ¶
func InitLogger() *Logger
func (*Logger) LogWarning ¶
Click to show internal directories.
Click to hide internal directories.