forked from rsherstnev/zshcompletions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_enum4linux_ng
35 lines (32 loc) · 1.9 KB
/
_enum4linux_ng
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#compdef enum4linux-ng
local -a args
args=(
'(-h --help)'{-h,--help}'[Show this help message and exit]'
"-A[Do all simple enumeration including nmblookup (-U -G -S -P -O -N -I -L). This option is enabled if you don't provide any other option]"
'-As[Do all simple short enumeration without NetBIOS names lookup (-U -G -S -P -O -I -L)]'
'-U[Get users via RPC]'
'-G[Get groups via RPC]'
'-Gm[Get groups with group members via RPC]'
'-S[Get shares via RPC]'
'-C[Get services via RPC]'
'-P[Get password policy information via RPC]'
'-O[Get OS information via RPC]'
'-L[Get additional domain info via LDAP/LDAPS (for DCs only)]'
'-I[Get printer information via RPC]'
'-R[Enumerate users via RID cycling]'
'-N[Do an NetBIOS names lookup (similar to nbstat) and try to retrieve workgroup from output]'
'-w[Specify workgroup/domain manually (usually found automatically)]:enter workgroup:()'
'-u[Specify username to use (default "")]:enter username:()'
'-p[Specify password to use (default "")]:enter password:()'
'-d[Get detailed information for users and groups, applies to -U, -G and -R]'
'-k[User(s) that exists on remote system (default: administrator,guest,krbtgt,domain admins,root,bin,none). Used to get sid with]:enter users:()'
'-r[RID ranges to enumerate (default: 500-550,1000-1050)]:enter ranges:()'
'-s[Brute force guessing for shares]:select file:_files'
'-t[Sets connection timeout in seconds (default: 5s)]:enter timeout:()'
'-v[Verbose, show full samba tools commands being run (net, rpcclient, etc ...)]'
"--keep[Don't delete the Samba configuration file created during tool run after enumeration (useful with -v)]"
'-oJ[Writes output to JSON file (extension is added automatically)]:select file:_files'
'-oY[Writes output to YAML file (extension is added automatically)]:select file:_files'
'-oA[Writes output to YAML and JSON file (extensions are added automatically)]:select file:_files'
)
_arguments $args