Skip to content

Commit 35118c4

Browse files
committed
[WMI Query]: Rename function from 'wmi' to 'wmi_query'
Signed-off-by: XiaoliChan <30458572+XiaoliChan@users.noreply.github.com>
1 parent 0b56dde commit 35118c4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

nxc/protocols/smb/proto_args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def proto_args(parser, parents):
7373
mapping_enum_group.add_argument("--taskkill", type=str, help="Kills a specific PID or a proces name's PID's")
7474

7575
wmi_group = smb_parser.add_argument_group("WMI Queries")
76-
wmi_group.add_argument("--wmi", metavar="QUERY", dest="wmi_query", type=str, help="Issues the specified WMI query")
76+
wmi_group.add_argument("--wmi-query", metavar="QUERY", dest="wmi_query", type=str, help="Issues the specified WMI query")
7777
wmi_group.add_argument("--wmi-namespace", metavar="NAMESPACE", default="root\\cimv2", help="WMI Namespace (default: %(default)s)")
7878

7979
spidering_group = smb_parser.add_argument_group("Spidering Shares")

nxc/protocols/wmi/proto_args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def proto_args(parser, parents):
1313
cred_gathering_group.add_argument("--list-snapshots", nargs="?", dest="list_snapshots", const="ADMIN$", help="Lists the VSS snapshots (default: %(const)s)")
1414

1515
egroup = wmi_parser.add_argument_group("Mapping/Enumeration")
16-
egroup.add_argument("--wmi", metavar="QUERY", dest="wmi_query", type=str, help="Issues the specified WMI query")
16+
egroup.add_argument("--wmi-query", metavar="QUERY", dest="wmi_query", type=str, help="Issues the specified WMI query")
1717
egroup.add_argument("--wmi-namespace", metavar="NAMESPACE", type=str, default="root\\cimv2", help="WMI Namespace (default: %(default)s)")
1818

1919
cgroup = wmi_parser.add_argument_group("Command Execution")

0 commit comments

Comments
 (0)