Skip to content

Commit c366e77

Browse files
committed
Delete ternary operators
1 parent 34717d1 commit c366e77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/windows/smb/smb_relay.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def smb_cmd_negotiate(c, buff)
355355
smb[:process_id] = pkt['Payload']['SMB'].v['ProcessID']
356356

357357
flags2 = pkt['Payload']['SMB'].v['Flags2']
358-
extended_security = (flags2 & 0x800 == 0x800 ? true : false)
358+
extended_security = (flags2 & 0x800 == 0x800)
359359

360360
group = ''
361361
machine = smb[:nbsrc]
@@ -538,7 +538,7 @@ def smb_cmd_session_setup(c, buff)
538538
pkt.from_s(buff)
539539

540540
capabilities = pkt['Payload'].v['Capabilities']
541-
extended_security = (capabilities & 0x80000000 == 0x80000000 ? true : false)
541+
extended_security = (capabilities & 0x80000000 == 0x80000000)
542542
if extended_security
543543
smb_cmd_session_setup_ntlmssp(c, buff)
544544
else

0 commit comments

Comments
 (0)