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 ¶
var Config config
--------------------------------------------------------------------------------------- CONSTANTS ---------------------------------------------------------------------------------------
var Const_NMAP_SWEEP = "-n -sn -PE -PP"
var Const_NMAP_TCP_FULL = "--randomize-hosts -Pn -sS -sC -A -T4 -g53 -p-"
var Const_NMAP_TCP_PROD = "--randomize-hosts -Pn -sT -sV -T3 -p-"
var Const_NMAP_TCP_STANDARD = "--randomize-hosts -Pn -sS -A -T4 -g53 --top-ports 1000"
var Const_NMAP_TCP_VULN = "--randomize-hosts -Pn -sT -sV -p- --script=vulscan/vulscan.nse"
var Const_NMAP_UDP_PROD = fmt.Sprintf("--randomize-hosts -Pn -sU -sC -sV -T3 -p%s", Const_UDP_PORTS)
var Const_NMAP_UDP_STANDARD = fmt.Sprintf("--randomize-hosts -Pn -sU -sC -A -T4 -p%s", Const_UDP_PORTS)
var Const_UDP_PORTS = "19,53,69,79,111,123,135,137,138,161,177,445,500,514,520,1434,1900,5353"
NMAP COMMANDS
var Const_example_target_cidr = "127.0.0.1/32"
var Const_example_target_desc = "Target CIDR or /32 for single target"
var Const_notification_delay_unit = 10
var WORDLIST_DNS_BRUTEFORCE = WORDLIST_FUZZ_NAMELIST
var WORDLIST_FINGER_USER = WORDLIST_FUZZ_NAMELIST
var WORDLIST_FTP_USER = WORDLIST_FUZZ_NAMELIST
var WORDLIST_FUZZ_NAMELIST = "/usr/share/wfuzz/wordlist/fuzzdb/wordlists-user-passwd/names/namelist.txt"
WORDLISTS
var WORDLIST_HYDRA_FTP_PWD = WORDLIST_MSF_PWDS
var WORDLIST_HYDRA_FTP_USER = WORDLIST_FUZZ_NAMELIST
var WORDLIST_HYDRA_SSH_PWD = WORDLIST_MSF_PWDS
var WORDLIST_HYDRA_SSH_USER = WORDLIST_FUZZ_NAMELIST
var WORDLIST_MSF_PWDS = "/usr/share/wordlists/metasploit/unix_passwords.txt"
var WORDLIST_SMTP = WORDLIST_FUZZ_NAMELIST
var WORDLIST_SNMP = "/usr/share/doc/onesixtyone/dict.txt"
Functions ¶
func ChangeOutFolder ¶
func ChangeOutFolder(path string)
Change output folder as instructed by the user and re-init the db
func CheckSudo ¶
func CheckSudo()
--------------------------------------------------------------------------------------- MANAGE FILES --------------------------------------------------------------------------------------- Ensures the program is run as root
func InitConfig ¶
func InitConfig()
Initialize global config (db, logger, etc.) From now on it will be accessible as utils.Config
func ParseAddress ¶
Parse a string, regardless if it is an IP or CIDR, and returns its string representation
func ParseAllArgs ¶
Parse all remaining arguments from command line
func ParseCmd ¶
--------------------------------------------------------------------------------------- MANAGE COMMANDS --------------------------------------------------------------------------------------- Tokenize the command line
func ParseLocalIP ¶
--------------------------------------------------------------------------------------- IP addresses --------------------------------------------------------------------------------------- Returns all the addresses of the local network interfaces
func ParseNextArg ¶
Extract the next argument from command line
func WriteArrayToFile ¶
Given a path and a list of strings, writes them to file
Types ¶
type Logger ¶
type Logger struct{}
--------------------------------------------------------------------------------------- LOGGER ---------------------------------------------------------------------------------------
func InitLogger ¶
func InitLogger() *Logger