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