@@ -17,20 +17,20 @@ def options(self, context, module_options):
1717 dump-computers: Specify dump-computers to call the module
1818 Usage:
1919 >prints fqdn and version
20- nxc ldap $DC-IP -u Username -p Password -M dump-computers
20+ netexec ldap $DC-IP -u $username -p $password -M dump-computers
2121
2222 >prints only netbios name
23- nxc ldap $DC-IP -u Username -p Password -M dump-computers -o NETBIOS=True
23+ netexec ldap $DC-IP -u $username -p $password -M dump-computers -o TYPE=netbios
2424
2525 >prints only fqdn
26- nxc ldap $DC-IP -u Username -p Password -M dump-computers -o FQDN=True
26+ netexec ldap $DC-IP -u $username -p $password -M dump-computers -o TYPE=fqdn
2727
2828 >prints fqdn and version, output to file
29- nxc ldap $DC-IP -u Username -p Password -M dump-computers -o OUTPUT=<location>
29+ netexec ldap $DC-IP -u $username -p $password -M dump-computers -o OUTPUT=<location>
3030
3131 >prints only netbios name, output to file
32- nxc ldap $DC-IP -u Username -p Password -M dump-computers -o OUTPUT=<location> -o NETBIOS=True
33- nxc ldap $DC-IP -u Username -p Password -M dump-computers -o OUTPUT=<location> -o FQDN=True
32+ netexec ldap $DC-IP -u $username -p $password -M dump-computers -o TYPE=netbios OUTPUT=<location>
33+ netexec ldap $DC-IP -u $username -p $password -M dump-computers -o TYPE=fqdn OUTPUT=<location>
3434
3535 """
3636 self .output_file = None
@@ -39,9 +39,9 @@ def options(self, context, module_options):
3939
4040 if "OUTPUT" in module_options :
4141 self .output_file = module_options ["OUTPUT" ]
42- if "NETBIOS " in module_options and module_options ["NETBIOS " ].lower () == "true " :
42+ if "TYPE " in module_options and module_options ["TYPE " ].lower () == "netbios " :
4343 self .netbios_only = True
44- if "FQDN " in module_options and module_options ["FQDN " ].lower () == "true " :
44+ if "TYPE " in module_options and module_options ["TYPE " ].lower () == "fqdn " :
4545 self .fqdn_only = True
4646
4747 def on_login (self , context , connection ):
0 commit comments