"' . $path_content_stdout . '" 2>&1'); $value = file_get_contents($path_content_stdout, NULL, NULL, 0, 26); if ($value == "unable to load Private Key") { //echo "
ERROR passin: " . $passin; $flag = 0; } else { //echo "
OK passin: " . $passin; $flag = 1; } return $flag; } function file_write($file_write, $content) { $handle = 0; if (!$handle = fopen($file_write, 'w+')) { chmod($file_write, 666); exit; } fclose($handle); if (is_writable($file_write)) { if (!$handle = fopen($file_write, 'w+')) { exit; } if (fwrite($handle, $content) === FALSE) { exit; } fclose($handle); } else { } $content = 0; } ////// //MAIN ////// generate_brute_force_data($password_length, 0, ''); //sample //openssl rsa -in ./Certigna/end_www_certigna_fr_private_key.pem -out ./Certigna/end_www_certigna_fr_private_key_raw.pem -passin pass:1234 ?>