File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
modules/exploits/windows/smb Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ def smb_cmd_negotiate(c, buff)
355
355
smb [ :process_id ] = pkt [ 'Payload' ] [ 'SMB' ] . v [ 'ProcessID' ]
356
356
357
357
flags2 = pkt [ 'Payload' ] [ 'SMB' ] . v [ 'Flags2' ]
358
- extended_security = ( flags2 & 0x800 == 0x800 ? true : false )
358
+ extended_security = ( flags2 & 0x800 == 0x800 )
359
359
360
360
group = ''
361
361
machine = smb [ :nbsrc ]
@@ -538,7 +538,7 @@ def smb_cmd_session_setup(c, buff)
538
538
pkt . from_s ( buff )
539
539
540
540
capabilities = pkt [ 'Payload' ] . v [ 'Capabilities' ]
541
- extended_security = ( capabilities & 0x80000000 == 0x80000000 ? true : false )
541
+ extended_security = ( capabilities & 0x80000000 == 0x80000000 )
542
542
if extended_security
543
543
smb_cmd_session_setup_ntlmssp ( c , buff )
544
544
else
You can’t perform that action at this time.
0 commit comments