Skip to content

Commit 0796ee2

Browse files
Added "1!" to generated password for complex password requirement and log generated KB number (#14)
* Add "!" for password complexity compliancve to generated password * fix * fix 2 * u * u * u * u * u * u * Refine log message * Linting --------- Co-authored-by: Alexander Neff <alex99.neff@gmx.de>
1 parent 06b6cfe commit 0796ee2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

wsuks/wsuks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self, args):
3232
self.logger.error(f"Interface '{args.interface}' not found! Exiting...")
3333
exit(1)
3434
self.local_username = "user" + "".join(random.choice(digits) for i in range(5))
35-
self.local_password = "".join(random.sample(ascii_letters, 16))
35+
self.local_password = "".join(random.sample(ascii_letters, 14)) + "1" + "!"
3636

3737
# Set args
3838
self.targetIp = args.targetIp # Never None (required)
@@ -146,6 +146,7 @@ def run(self):
146146

147147
try:
148148
self.logger.info(f"Starting WSUS Server on {self.hostIp}:{self.wsusPort}...")
149+
self.logger.info(f"Serving executable as KB: {update_handler.kb_number}")
149150
http_server.serve_forever()
150151
except KeyboardInterrupt:
151152
print()

0 commit comments

Comments
 (0)