Skip to content

Commit

Permalink
Fix wrong syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
khiemdoan committed Nov 26, 2020
1 parent af7d27a commit fb10d20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def populate(self, options):
if self.NumChal.lower() == 'random':
self.NumChal = "random"

if len(self.NumChal) is not 16 and not "random":
if len(self.NumChal) != 16 and self.NumChal != "random":
print(utils.color("[!] The challenge must be exactly 16 chars long.\nExample: 1122334455667788", 1))
sys.exit(-1)

Expand Down
4 changes: 2 additions & 2 deletions tools/MultiRelay.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,12 +412,12 @@ def handle(self):
data = self.request.recv(4096)

## Make sure it's not a Kerberos auth.
if data.find("NTLM") is not -1:
if data.find("NTLM") != -1:
## Start with nego protocol + session setup negotiate to our target.
data, smbdata, s, challenge = GrabNegotiateFromTarget(data, s, Pivoting)

## Make sure it's not a Kerberos auth.
if data.find("NTLM") is not -1:
if data.find("NTLM") != -1:
##Relay all that to our client.
if data[8:10] == "\x73\x00":
head = SMBHeader(cmd="\x73",flag1="\x98", flag2="\x43\xc8", errorcode="\x16\x00\x00\xc0", pid=pidcalc(data),mid=midcalc(data))
Expand Down
2 changes: 1 addition & 1 deletion tools/RunFingerPackets.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

def StructWithLenPython2or3(endian,data):
#Python2...
if PY2OR3 is "PY2":
if PY2OR3 == "PY2":
return struct.pack(endian, data)
#Python3...
else:
Expand Down

0 comments on commit fb10d20

Please sign in to comment.