Skip to content

Commit 1d672fe

Browse files
committed
Typos
1 parent 0e0efd8 commit 1d672fe

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

nxc/protocols/smb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2240,10 +2240,10 @@ def firefox_callback(secret):
22402240
def list_snapshots(self):
22412241
drive = self.args.list_snapshots
22422242

2243-
self.logger.info(f"Retrieveing volume shadow copies of {drive}.")
2243+
self.logger.info(f"Retrieving volume shadow copies of drive {drive}.")
22442244
snapshots = self.conn.listSnapshots(self.conn.connectTree(drive), "/")
22452245
if not snapshots:
2246-
self.logger.info("Target volume shadow copies not existed.")
2246+
self.logger.info("No volume shadow copies found.")
22472247
return
22482248
self.logger.highlight(f"{'Drive':<8}{'Shadow Copies GMT SMB PATH':<26}")
22492249
self.logger.highlight(f"{'------':<8}{'--------------------------':<26}")

nxc/protocols/wmi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ def wmi_query(self, wql=None, namespace=None, callback_func=None):
401401

402402
def list_snapshots(self):
403403
drive = self.args.list_snapshots
404-
self.logger.info(f"Retrieveing volume shadow copies of {drive}.")
404+
self.logger.info(f"Retrieving volume shadow copies of drive {drive}.")
405405
wql = "select ID, DeviceObject, ClientAccessible, InstallDate from win32_shadowcopy"
406406

407407
def callback_func(iEnumWbemClassObject, records):
@@ -412,7 +412,7 @@ def callback_func(iEnumWbemClassObject, records):
412412

413413
snapshots = self.wmi_query(wql=wql, namespace="root\\cimv2", callback_func=callback_func)
414414
if not snapshots:
415-
self.logger.info("Target volume shadow copies not existed.")
415+
self.logger.info("No volume shadow copies found.")
416416
return
417417

418418
self.logger.highlight(f"{'Drive':<8}{'Shadow Copy ID':<40}{'ClientAccessible':<18}{'InstallDate':<27}{'Device Object':<50}")

0 commit comments

Comments
 (0)