找回密码
 注册
【阿里云】2核2G云新老同享 99元/年,续费同价华为云精选云产品特惠做网站就用糖果主机Jtti,新加坡服务器,美国服务器,香港服务器
查看: 1397|回复: 12

[转贴] 破解 Discuz! 4.0.0 20051001 修正版

[复制链接]
发表于 2005 年 10 月 19 日 10:40:12 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
  这是我转的落伍的帖子..大家试试.我没空间

打开

include\validate.class.php

替换

<?php
  class licensestuff
  {
   var $data = '';
   var $key = array ();
   var $env = array ();
   function readfile ()
   {
    if ($fp = fopen ((DISCUZ_ROOT.'./discuz_license.php'), 'r'))
     {
       $this->data = fread ($fp, 9999);
       fclose ($fp);
     }

   }

   function initialize ()
   {
     $this->readfile ();
     if ($this->data)
     {
       foreach (explode ('
', $this->data) as $string)
       {
         if (strpos ($string, ' = '))
         {
           eval (preg_replace (((((((((((((''.'/^(').'[').'a-z0-9').'\\-').']').'+)').'\\s').'\\=').'\\s').'(.+?)').'$').'/i'), '$this->key[\'\\1\'] = \'\\2\';', trim (str_replace ('\'', '\\\'', $string))));
         }
         else
         {
           if (preg_match ('/\\<\\?\'.+\'\\?\\>/', $string))
           {
             $this->key['Validation-code'] = $this->decrypt (preg_replace ('/\\<\\?\'(.+)\'\\?\\>/', '\\1', $string), 'I love my father, mother, my Grace, and my self, I am working hard', '##@Crossday Studio@##');
           }
         }
       }

       $this->getenvinfo ();
       return 1;
     }
/*      else
     {
       if (((strtoupper (substr (PHP_OS, 0, 3)) == 'WIN') AND in_array ($GLOBALS['_SERVER']['HTTP_HOST'], array ('localhost', '127.0.0.1'))))
       {
         return 2;
       }
       else
       {
         return 0;
       }
     }*/

   }

   function checkinfo ()
   {
     if ((substr ($this->key['Validation-code'], 16, 8) == substr (md5 (preg_replace (((((((((((((''.'/^(.+?)').'\\s').'*').'\\<').'\\?').'\\\'').'.+').'\\\'').'\\?').'\\>').'$').'/s'), '\\1', $this->data)), 0, 8)))
     {
       return TRUE;
     }
     else
     {
       return TRUE;
     }

   }

   function checkdate ()
   {
     if ((!$this->key['License-expires'] OR (time () < strtotime ($this->key['License-expires']))))
     {
       return TRUE;
     }
     else
     {
       return TRUE;
     }

   }

   function checkkey ()
   {
     if ((substr ($this->key['Validation-code'], 8, 8) == substr (md5 ((((((((($this->env['os'].'|').$this->env['ip']).'|').$this->env['sapi']).'|').$this->env['cpu']).'|').$this->env['name'])), 0, 8)))
     {
       return TRUE;
     }
     else
     {
       return TRUE;
     }

   }

   function checkhostpath ()
   {
     if ((((substr ($this->key['Validation-code'], 24, 6) == ((dechex (ord ('d')).dechex (ord ('z'))).dechex (ord ('k')))) OR (substr ($this->key['Validation-code'], 0, 8) == substr (md5 ($this->env['host']), 0, 8))) OR (substr ($this->key['Validation-code'], 24, 8) == substr (md5 ($this->env['path']), 0, 8))))
     {
       return TRUE;
     }
     else
     {
       return TRUE;
     }

   }

   function getenvinfo ()
   {
     global $_SERVER;
     global $_POST;
     global $_ENV;
     $env['time'] = gmdate ('d-M-Y', time ());
     $env['os'] = PHP_OS;
     $env['ip'] = getenv ('SERVER_ADDR');
     $env['sapi'] = php_sapi_name ();
     $env['host'] = (getenv ('HTTP_HOST') ? getenv ('HTTP_HOST') : $_SERVER['HTTP_HOST']);
//      $env['path'] = dirname (('validate.class.php.LkuQHr' ? dirname ('validate.class.php.LkuQHr') : getenv ('SCRIPT_FILENAME')));//********
     $env['cpu'] = (($_ENV[&#39ROCESSOR_IDENTIFIER'].'/').$_ENV[&#39ROCESSOR_REVISION']);
     $env['name'] = $_ENV['COMPUTERNAME'];
     $this->env = $env;
   }

   function decrypt ($txt, $key, $owner = '')
   {
     $txt = $this->keyED (base64_decode ($txt), (($owner == '##@Crossday Studio@##') ? $key : ''));
     $tmp = '';
     for ($i = 0; ($i < strlen ($txt)); $i++)
     {
       $md5 = $txt[$i];
       $i++;
       ($tmp .= ($txt[$i] ^ $md5));
     }

     return $tmp;
   }

   function keyed ($txt, $encrypt_key)
   {
     $encrypt_key = md5 ($encrypt_key);
     $ctr = 0;
     $tmp = '';
     for ($i = 0; ($i < strlen ($txt)); $i++)
     {
       if (($ctr == strlen ($encrypt_key)))
       {
         $ctr = 0;
       }

       ($tmp .= ($txt[$i] ^ $encrypt_key[$ctr]));
       $ctr++;
     }

     return $tmp;
   }

   function validate ()
   {
     $init = $this->initialize ();
     if ((($init == 2) OR ((((($init == 1) AND $this->checkinfo ()) AND $this->checkdate ()) AND $this->checkkey ()) AND $this->checkhostpath ())))
     {
       if (($init == 2))
       {
         define ('DISCUZ_LICENSE_KEY', md5 ((base64_decode ('ISgqISEpQCZfRGlzY3V6IV9pc19SdW5uaW5nX3VuZGVyX0xvY2FsaG9zdA').md5 (((('#19811027_'.'DZK_').'WROTE_Discuz!_').substr (time (), 0, (0 - 2)))))));
       }
       else
       {
         define ('DISCUZ_LICENSE_KEY', md5 ((base64_decode ('ISgqISEpQCZfRGlzY3V6IV9XSUxMX1dJTl9USEVfRlVUVVJFX0ZST01fTk9XX09O').md5 (((('#19811027_'.'DZK_').'WROTE_Discuz!_').substr (time (), 0, (0 - 2)))))));
       }
     }
     else
     {
/*        echo '<html>
<head>
<title>Invalid License File</title>
</head>
<body bgcolor="#FFFFFF">
<table cellpadding="0" cellspacing="0" border="0" width="600" align="center" height="85%">
  <tr align="center" valign="middle">
   <td>
   <table cellpadding="10" cellspacing="0" border="0" width="80%" align="center" style="font-family: Verdana, Tahoma; color: #666666; font-size: 12px">
   <tr>
     <td valign="m';
       echo 'iddle" bgcolor="#EBEBEB">
       <br><b style="font-size: 20px">Your License was Invalid</b>
       <br><br>License expiring, shifting to a new server, changing server IP, hardware, OS, PHP SAPI module, or, changing both host name and absolute directory on your disk, may invalidate your license. If you have trouble in activation, please visit <a href="http://www.discuz.com/license/" target="_blank">';
       echo 'http://www.discuz.com/license/</a> for more information.
       <br><br>您的密匙不存在、超过有效期、更换新的服务器空间、更改 IP 地址、硬件、操作系统、PHP 安装模&';
       echo '#x5F0F;,或同时改变绝对路径或访问域名,都可能导致密匙失效。请访问 <a href="http://www.discuz.com/license/" target="_blank">http://www.discuz.com/license/</a> 重新生成密匙。
       <br><b';
       echo 'r>
     </td>
   </tr>
   </table>
   </td>
  </tr>
</table>
</body>
</html>
';
       exit ();
       return TRUE;*/
     }

   }
  }

  if (!defined ('IN_DISCUZ'))
  {
   exit ('Access Denied');
  }

  $license = new licensestuff ();
  $license->validate ();
  unset ($license);
?>

再在根目录新建个 discuz_license.php

内容为
# !ATTENTION! PLEASE DO NOT OPEN FOR EDITING
# ANY MODIFICATION WILL INVALIDATE THIS LICENSE

Product-name = Discuz! Board Retail
License-issued = 16-Jul-2005

Registered-to = Tkz
Registered-URL = http://127.0.0.1/

为了你我的安全 至于 论坛程序就自己找 预防后门 找个自己信的过的来破解
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
发表于 2005 年 10 月 19 日 10:46:17 | 显示全部楼层
【腾讯云】2核2G云服务器新老同享 99元/年,续费同价
看过了....
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2005 年 10 月 19 日 10:48:35 | 显示全部楼层
[s:36]
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2005 年 10 月 19 日 11:04:04 | 显示全部楼层
还是不行
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2005 年 10 月 19 日 13:15:32 | 显示全部楼层
[s:15]
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2005 年 10 月 20 日 02:44:07 | 显示全部楼层
Fatal error: Unable to read 20511 bytes in /web/home/nicker/html/bbs/install.php on line 0
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2005 年 10 月 20 日 10:26:08 | 显示全部楼层
【腾讯云】2核2G云服务器新老同享 99元/年,续费同价
知道了   以后再搞  现在用的是LEADBBS
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2005 年 10 月 20 日 11:24:42 | 显示全部楼层
已經不行了...
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2005 年 10 月 26 日 17:23:54 | 显示全部楼层
Discuz! info: MySQL Query Error

Time: 2005-10-26 9:18am
Script: /install.php

SQL: INSERT INTO cdb_members (uid, username, password, secques, adminid, groupid, regip, regdate, lastvisit, lastpost, email, dateformat, timeformat, showemail, newsletter, timeoffset) VALUES ('1', 'admin', 'ce90c4773feee02c4714be4155b693fd', '', '1', '1', 'hidden', '1130318335', '1130318335', '1130318335', 'bbsadmin@gmail.com', '', '', '1', '1', '9999');
Error: Incorrect integer value: '' for column 'timeformat' at row 1
Errno.: 1366

Similar error report has beed dispatched to administrator before.
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2005 年 10 月 26 日 19:06:28 | 显示全部楼层
shit,不搞DZ了晕。
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|金光论坛

GMT+8, 2024 年 11 月 20 日 23:23 , Processed in 0.116814 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表