fork download
  1. <?php
  2. $i = 0;
  3. $a = 'e7806b130b429fc9b5890608a2c60675';
  4.  
  5. function generate(){
  6. $chars = "1234567890abcdefghijklmnopqrstuvwxyz";
  7. $max=4;
  8. $size=StrLen($chars)-1;
  9. while($max--)
  10. $password.=$chars[rand(0,$size)];
  11. return $password;
  12. }
  13. $d = generate2();
  14. $c = md5($d);
  15. do {
  16. if ($c === 'e7806b130b429fc9b5890608a2c60675'){
  17. echo "The password is found, it is {$d}\n";
  18. }else{
  19. $d = generate2();
  20. $c = md5($d);
  21. }
  22. }while ($i < 5);
  23. ?>
Runtime error #stdin #stdout #stderr 0.01s 20568KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Fatal error:  Call to undefined function generate2() in /home/yryCsZ/prog.php on line 15