Merge branch 'main' into rename

main
Alexander Neff 2023-09-17 22:25:44 +02:00
commit aa1355c7d9
2 changed files with 4 additions and 5 deletions

View File

@ -170,7 +170,7 @@ class wmi(connection):
if "dcom" in locals():
dcom.disconnect()
if not str(e).find("access_denied") > 0:
if "access_denied" not in str(e).lower():
self.logger.fail(str(e))
else:
if not flag or not self.stringBinding:
@ -188,7 +188,7 @@ class wmi(connection):
except Exception as e:
dcom.disconnect()
if not str(e).find("access_denied") > 0:
if "access_denied" not in str(e).lower():
self.logger.fail(str(e))
else:
dcom.disconnect()

5
poetry.lock generated
View File

@ -853,9 +853,8 @@ files = [
[[package]]
name = "impacket"
version = "0.12.0.dev1+20230816.160145.f6e03b99"
version = "0.12.0.dev1+20230909.154612.3beeda7c"
description = "Network protocols Constructors and Dissectors"
category = "main"
optional = false
python-versions = "*"
files = []
@ -878,7 +877,7 @@ six = "*"
type = "git"
url = "https://github.com/mpgn/impacket.git"
reference = "gkdi"
resolved_reference = "f6e03b99ce9da7f502a03488c8d26151236fa679"
resolved_reference = "3beeda7c3188936ed20f58c2c169430c2cfdfb1a"
[[package]]
name = "importlib-metadata"