| 1 | #!/usr/bin/php |
| 2 | <?php |
| 3 | echo("Special chars example\n<-Harvie 2oo7\n\n"); |
| 4 | $tocse = "-\|/"; |
| 5 | |
| 6 | while(1) { |
| 7 | |
| 8 | echo("INIT: ..........\x0d"); |
| 9 | for($i=0;$i<11;$i++) { |
| 10 | usleep(100000); |
| 11 | echo("INIT: "); |
| 12 | for($x=$i;$x>0;$x--) echo("#"); |
| 13 | echo("\x0d"); |
| 14 | } |
| 15 | |
| 16 | $tnum = rand(0,99); |
| 17 | echo("Find: ".($find = md5($tnum)).":??\n"); |
| 18 | $i = 0; |
| 19 | while(1) { |
| 20 | $tnum = rand(0,99); |
| 21 | $test = md5($tnum); |
| 22 | echo("\x0d MD5: ".$test." ".$tocse[$i]." :$tnum "); |
| 23 | usleep(50000); |
| 24 | if($test == $find) { break; } |
| 25 | $i++; |
| 26 | if($i > 3) { $i = 0; } |
| 27 | } |
| 28 | echo("\x0d MD5: ".$test.":$tnum \n Found\x07!!!\n\n"); |
| 29 | |
| 30 | } |
| 31 | |