博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
PHP_crack_check
阅读量:7086 次
发布时间:2019-06-28

本文共 895 字,大约阅读时间需要 2 分钟。

hot3.png

/dev/null", $output, $return_var); // Check it ran properly if($return_var==0) { if(preg_match("/^.*\: ([^:]+)$/", $output[0], $matches)) { // Check response if(strtoupper($matches[1])=="OK") { // Password is strong $message=""; return(true); } else { // Cracklib doesn't like it $message=$matches[1]; return(false); } } else { // Badly formatted response from cracklib-check. throw new Exception("Didn't understand cracklib-check response."); } } else { // Some sort of execution error throw new Exception("Failed to run cracklib-check."); } } ?>

转载于:https://my.oschina.net/u/575888/blog/102768

你可能感兴趣的文章