Skip to content

Commit da61939

Browse files
AdamkadabanMarshall-Hallenbeck
authored andcommitted
only import loads function from json.
1 parent 3724142 commit da61939

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

nxc/modules/security-questions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from impacket.dcerpc.v5 import samr, transport
22
from impacket.nt_errors import STATUS_MORE_ENTRIES
33
from impacket.dcerpc.v5.rpcrt import DCERPCException
4-
import json
4+
from json import loads
55

66

77
class NXCModule:
@@ -98,7 +98,7 @@ def getSAMRResetInfo(self, context):
9898
resetData = info["Buffer"]["Reset"]["ResetData"]
9999
if resetData == b"":
100100
break
101-
resetData = json.loads(resetData)
101+
resetData = loads(resetData)
102102
questions = resetData["questions"]
103103

104104
if len(questions) == 0:

0 commit comments

Comments
 (0)