def testSleep(target_host, cgi_path):
    shellshocktest = testShellShock(target_host, cgi_path, "/usr/bin/env sleep %s" %SLEEP_TIME)
    if not shellshocktest['error']:
        shellshocktest['warning'] = shellshocktest['requests'][1][3] > SLEEP_TIME # Delay command request > sleep time
        shellshocktest['vulnerable'] = shellshocktest['warning'] and shellshocktest['delay_diff'] > SLEEP_DELAY
        if shellshocktest['vulnerable']: 
            print "%s%s\t VULNERABLE TO SLEEP TEST" %(target_host, cgi_path)
        print (target_host, cgi_path, "sleep test", "VULNERABLE" if shellshocktest['vulnerable'] else "False", shellshocktest['requests'][1][3]) %"%s%s - %s - %s - %s"
    return shellshocktest
dataset/ETHPy150Open gry/shellshock-scanner/shellshock_scanner.py/testSleep/swapped operands of `%`