while (1): result = subprocess.call(["./bruteForce", payload]) if not result: print "OKOKOKOKOKOKOKOKOKOKOKOKOKOKOKOK" exit(0) else: print "NOPE\n" print "End"