Проблем с Set_Time_limit

cor3

Registered
Код:
Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in C:\VertrigoServ\www\index.php on line 14

Дава ми тази грешка, как трябва да се оправи този проблем? Кода на този ред е;

Код:
set_time_limit(0);
 
За какво ти е време на изпълнение 0 сек.Това е безмислено.Функцията set_time_limit() се ползва, когато искаш да забавиш изпълнението на дадено нещо.Или сложи отпред едно @ пред set_time_limit():
@set_time_limit();
или пробвай да зададеп някаква стойност различна от 0
Също може и да коментирап реда:
//set_time_limit(0);
 
cor3, както гледам от файла на който е грешката, сървъра е на твоя компютър. Няма смисъл да си пускаш сейф мода ако само правиш тестове.
Отвори php.ini файла и намери safe_mode и гои промени на Off. Не забравяй да рестартираш сървъра :)

Emagi, понякога се налага да се премахне лимита на времето. Примерно когато си написал някой робот, който да обикаля из страници в интернет, няма ли да ти е по-удобно да премахнеш лимита ? :)
 
Благодаря на двамата, но пак дава някаква грешка, която не разбирам от къде изобщо я дава..

Искам да направя един скрипт за чупене на md5 хешове по-точно да го преработя. За целта съм ползвал готови кодове, но този файл (index.php) нещо се по базиква с мен..
Код:
<?
/*+------------------------------------------------+
  |  Md5 Cracker coded by Puridee  |
  |  www.Hack-World.net  |
  +------------------------------------------------+*/

//////////////////////////////////////////
// Last Moding : 15/08/08
//
// The Fastes
// All day new Passwords
//////////////////////////////////////////
error_reporting(0);
set_time_limit(0);
//////////////////////////////////////////
// CONFIGURATION WORLDLISTS
@$dir="dicos";
@$dico1 = "$dir/1.txt";
@$dico2 = "$dir/2.txt";
@$dico3 = "$dir/3.txt";
@$dico4 = "$dir/4.txt";
@$dico5 = "$dir/5.txt";
@$dico6 = "$dir/6.txt";
@$dico7 = "$dir/7.txt";
@$dico8 = "$dir/8.txt";
@$dico9 = "$dir/9.txt";
@$dico10= "$dir/10.txt";
//////////////////////////////////////////
//!\ lolol /!\
@$dico1_pass = count(file($dico1)); 
@$dico2_pass = count(file($dico2)); 
@$dico3_pass = count(file($dico3)); 
@$dico4_pass = count(file($dico4)); 
@$dico5_pass = count(file($dico5)); 
@$dico6_pass = count(file($dico6)); 
@$dico7_pass = count(file($dico7)); 
@$dico8_pass = count(file($dico8)); 
@$dico9_pass = count(file($dico9)); 
@$dico10_pass= count(file($dico10));
//////////////////////////////////////////
?>
<html>
<head>
<title>Hack-World.net Online Md5 Hash Cracker and Generator</title>
<meta name="Author"    content="Puridee">
<meta name="Generator" content="Dark Coding">
<meta name="Reply-to"  content="admin@hack-world.net">
<style type="text/css">

</style>
<style type="text/css">
a:link { text-decoration:none; font-weight:bold; color:#FFFFFF; }
a:visited { text-decoration:none; font-weight:bold; color:#FFFFFF; }
a:hover { text-decoration:none; font-weight:bold; background-color:#255; }
a:active { text-decoration:none; font-weight:bold; background-color:#255; }
a:focus { text-decoration:none; font-weight:bold; background-color:#255; }
</style>
</head>
<body>
<center>
<img src="http://img185.imageshack.us/img185/8148/md5gifyg2.gif" border="0" alt="Image 

Hosted by ImageShack.us"/></a>
<table border="1" cellpadding="2">
<tr><td bgcolor="000000"><font size="4" class="activ">www.Hack-Wolrd.net - Md5 Hash Cracker 

and Generator</font></td></tr>
</table>
<br>
<br>
<form action="md5_cracker.php" method="post">
<table border="1" cellpadding="2">
<tr>
<td bgcolor="000000">Worldlist</td>
<td><select name="dico" size="1">
<option value="<? echo $dico1; ?>">HW List   (<? echo $dico1_pass; ?>)</option>
<option value="<? echo $dico2; ?>">HW List2  (<? echo $dico2_pass; ?>)</option>
<option value="<? echo $dico3; ?>">HW List3  (<? echo $dico3_pass; ?>)</option>
<option value="<? echo $dico4; ?>">HW List4  (<? echo $dico4_pass; ?>)</option>
<option value="<? echo $dico5; ?>">HW List5  (<? echo $dico5_pass; ?>)</option>
<option value="<? echo $dico6; ?>">HW List6  (<? echo $dico6_pass; ?>)</option>
<option value="<? echo $dico7; ?>">HW List7  (<? echo $dico7_pass; ?>)</option>
<option value="<? echo $dico8; ?>">HW List8  (<? echo $dico8_pass; ?>)</option>
<option value="<? echo $dico9; ?>">HW List9  (<? echo $dico9_pass; ?>)</option>
<option value="<? echo $dico10; ?>">HW List10 (<? echo $dico10_pass; ?>)</option>
</select></td>
</tr>
<tr>
<td bgcolor="000000">Hash</td>
<td><input type="text" name="hash" size="35" /> <input type="submit" name="ok" value=" Crack 

" /></td>           
</tr>
<tr>
<td bgcolor="000000">Pass</td>
<td><input type="text" name="pass" size="35" /> <input type="submit" name="ok" value=" Crypt 

" /></td>
</tr>
</table>
</form>
<br>
<br>
<?
$ok  =$_POST['ok'];
$dico=$_POST['dico'];
$pass=trim($_POST['pass']);
$hash=trim($_POST['hash']);

// Mode l33t ( a=4, e=3, o=0, A=4, E=3 & O=0 )
$letters = array('a', 'e', 'o', 'A', 'E', 'O');
$l3tt3rs = array('4', '3', '0', '4', '3', '0');

if(($ok == ' Crypt ') && (!$pass)){ echo '<center><font size=48 / style=Bobcat / 

color=00FF00><b><S><blink>Lets Flow!</blink></b></s></font></center>'; exit; }
if(($ok == ' Crack ') && (!$hash)){ echo '<center><font size=48 / style=Bobcat / 

color=00FF00><b><S><blink>Lets Flow!</blink></b></s></font></center>'; exit; }
if(($ok == ' Crack ') && (strlen($hash) <> 32)){ echo '<center><font size=48 / style=Bobcat 

/ color=00FF00><b><S><blink>This is not a Hash Dude...</blink></b></s></font></center>'; 

exit; }

if(($ok == ' Crack ') && ($hash != '')){
$file = @fopen($dico,'r') or die ("<h3>Impossible $dico</h3>");
$i = 1;

while(!feof ($file)){
$buf = fgets($file, 4096);
$buf1= md5(trim($buf));                // Cryptage MD5
$buf2= md5(md5(trim($buf)));          // Double Cryptage MD5
$buf3= md5(strtolower(trim($buf)));  // Convertion Minuscules
$buf4= md5(strtoupper(trim($buf))); // Convertion Majuscules
$buf5= md5(ucfirst(trim($buf)));   // Convertion 1er Caractиre Majuscule
$buf6= md5(str_replace($letters, $l3tt3rs, trim($buf))); // Convertion l33t (a=4, e=3, o=0)

if($hash == $buf1){
$pass1 = $buf;
@fclose($file);
echo "<h3>$hash </br><font color=white>Cracking Successful Password =</font><font color=red 

size=20> $pass1</font></h3>\n";
break;}

else
if($hash == $buf2){
$pass2 = $buf;
@fclose($file);
echo "<h3>$hash </br><font color=white>Cracking Successful Password =</font><font color=red 

size=20> $pass</font></h3>2\n";
break;}

else
if($hash == $buf3){
$pass3 = $buf;
fclose($file);
echo "<h3>$hash </br><font color=white>Cracking Successful Password =</font><font color=red 

size=20> ".strtolower($pass3)."</font></h3>\n";
break;}

else
if($hash == $buf4){
$pass4 = $buf;
@fclose($file);
echo "<h3>$hash </br><font color=white>Cracking Successful Password =</font><font color=red 

size=20> ".strtoupper($pass4)."</font></h3>\n";
break;}

else
if($hash == $buf5){
$pass5 = $buf;
@fclose($file);
echo "<h3>$hash </br><font color=white>Cracking Successful Password =</font><font color=red 

size=20> ".ucfirst($pass5)."</font></h3>\n";
break;}

else
if($hash == $buf6){
$i++;
$pass6 = $buf;
fclose($file);
echo "<h3>$hash </br><font color=white>Cracking Successful Password =</font><font color=red 

size=20> ".str_replace($letters, $l3tt3rs, $pass6)."</font></h3>\n";
break;}

$i++; }
@fclose($file);
echo "<h3>who0ps!<br>\n$i Passwords Located on This Current  HW Server</h3>";}

else
if(($ok == ' Crypt ') && ($pass != '')){
$crypt1 = md5($pass);
$crypt2 = md5(md5($pass));
$crypt3 = md5(strtolower($pass));
$crypt4 = md5(strtoupper($pass));
$crypt5 = md5(str_replace($letters, $l3tt3rs, $pass));
?>
<table border=1 cellpadding=2>
<tr><td bgcolor=000000>Word  </td><td bgcolor=000000><font class=activ><? echo $pass; ?

></font></td></tr>
<tr><td bgcolor=red>Md5 Hash</td><td bgcolor=000000><font class=activ><? echo $crypt1; ?

></font></td></tr>
<tr><td bgcolor=000000>Md5 Hash 2</td><td bgcolor=000000><font class=activ><? echo $crypt2; 

?></font></td></tr>
<tr><td bgcolor=000000>Pass Hash</td><td bgcolor=000000><font class=activ><? echo $crypt4; 

?></font></td></tr>
<tr><td bgcolor=000000>Pass Hash 2</td><td bgcolor=000000><font class=activ><? echo $crypt5; 

?></font></td></tr>
</table>
<? }else{ echo "";} ?>

<center><div class='footer'>

   HW Cracker v2 coded by Puridee</br>  Copyright © 2007-2008 <a href="http://www.hack

-world.net/" target=_blank>www.Hack-World.net</a>
  </div></center>                
</center>
</body>
</html>
 
Малко ще ни е трудно да подкараме скрипта без всичките txt файлове, затова кажи каква е тази нова грешка, която ти дава скрипта :)
 

Back
Горе