From d2ffe24b1526758c87f9ef37b58d0d08dca92d7b Mon Sep 17 00:00:00 2001 From: Hakan Yavuz Date: Mon, 14 Oct 2024 01:16:32 +0300 Subject: [PATCH] Update eventlog_creds.py fix for lint Signed-off-by: Hakan Yavuz --- nxc/modules/eventlog_creds.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nxc/modules/eventlog_creds.py b/nxc/modules/eventlog_creds.py index 56199903..5d0418ff 100644 --- a/nxc/modules/eventlog_creds.py +++ b/nxc/modules/eventlog_creds.py @@ -66,10 +66,9 @@ class NXCModule: # if username is found but password is not found. we need? ignore it continue # C:\Windows\system32\RunDll32.exe C:\Windows\system32\migration\WininetPlugin.dll,MigrateCacheForUser /m /0 - if m.groupdict().get("username") and m.groupdict().get("password"): + if m.groupdict().get("username") and m.groupdict().get("password") and len(m.group("password")) < 6 and len(m.group("username")) < 6: # if username and password is shorter than 6 characters, ignore it - if len(m.group("password")) < 6 and len(m.group("username")) < 6: - continue + continue context.log.highlight("Credentials found! " + line.strip()) if m.groupdict().get("username"):