def check(self):
        NUM_CHECKS = 5  # we try 5 times because the exploit, tends to be unstable

        for i in xrange(NUM_CHECKS):
            # maybe random mark should be implemented
            random_value = "116b8df6aee055a05032ed26726c032914dc5dae"
            cmd = "echo {}".format(random_value)
            try:
                retval = self.execute(cmd)
            except socket.timeout:
                continue
            if retval in random_value:
                return True
        return False
dataset/ETHPy150Open reverse-shell/routersploit/routersploit/modules/exploits/asus/infosvr_backdoor_rce.py/Exploit.check/swapped operands of `in`