Improve the usage info for -h flag
This commit is contained in:
parent
88daa31b70
commit
555f942243
|
@ -21,9 +21,37 @@ perform_interesting_files_2=1
|
|||
binarylist='nmap\|perl\|awk\|find\|bash\|sh\|man\|more\|less\|vi\|emacs\|vim\|nc\|netcat\|python\|ruby\|lua\|irb\|tar\|zip\|gdb\|pico\|scp\|git\|rvim\|script\|ash\|csh\|curl\|dash\|ed\|env\|expect\|ftp\|sftp\|node\|php\|rpm\|rpmquery\|socat\|strace\|taskset\|tclsh\|telnet\|tftp\|wget\|wish\|zsh\|ssh'
|
||||
|
||||
#help function
|
||||
help ()
|
||||
{
|
||||
printf '%b\n' "$(cat ./usage.txt)"
|
||||
help() {
|
||||
cat <<EOF
|
||||
Usage: $(basename "${BASH_SOURCE[0]}") -r <report_name> -e <report_path> -k <keyword> [options]
|
||||
|
||||
A script to enumerate local information from a Linux host
|
||||
|
||||
Available options:
|
||||
|
||||
-k keyword: Searching for the keyword $keyword in conf, php, ini and log files
|
||||
-r report: Report name = $report
|
||||
-e export: Export folder location = $export\Export_Folder-DD-MM-YY
|
||||
-t thorough: Thorough tests = Enabled (SUID/GUID file scanning will be perfomed)
|
||||
-p performance: Avoid heavy scans to speed-up the script execution
|
||||
This will exclude the following checks:
|
||||
- search for suid/guid files (equivalent of '-t')
|
||||
- list all world-writable files
|
||||
- use supplied $keyword and search inside *.conf,*.php,*.log and *.ini file names for potential matches
|
||||
-q quick: speed up the scan time significantly
|
||||
This will exlude following checks:
|
||||
- check to see if various software are installed (nc, netcat, wget, etc.)
|
||||
- search for installed compilers
|
||||
- list out sensitive files (if can read/modify, etc.)
|
||||
- check for any *.plan files accessible in /home
|
||||
- check if there are any .rhosts files accessible
|
||||
- list of NFS displaying partitions and filesystems
|
||||
- check for credentials in /etc/fstab
|
||||
- extract *.conf files from /etc
|
||||
- extract user history files that are accessible (.*_history)
|
||||
-h help: Show this help page
|
||||
EOF
|
||||
exit
|
||||
}
|
||||
|
||||
header()
|
||||
|
|
Loading…
Reference in New Issue
Block a user