Skip to content

Commit

Permalink
Update notepad++.py
Browse files Browse the repository at this point in the history
Signed-off-by: Deft_ <[email protected]>
  • Loading branch information
Dfte authored Oct 15, 2024
1 parent 29329bf commit 821741a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nxc/modules/notepad++.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def options(self, context, module_options):
def on_admin_login(self, context, connection):
found = 0
for directory in connection.conn.listPath("C$", "Users\\*"):
if directory.get_longname() not in self.false_positive and directory.is_directory() > 0:
if directory.get_longname() not in self.false_positive and directory.is_directory():
try:
notepad_backup_dir = f"Users\\{directory.get_longname()}\\AppData\\Roaming\\Notepad++\\backup\\"
for file in connection.conn.listPath("C$", f"{notepad_backup_dir}\\*"):
Expand Down

0 comments on commit 821741a

Please sign in to comment.