IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası

IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası (https://www.ircforumlari.net/)
-   Unreal IRCd (https://www.ircforumlari.net/unreal-ircd/)
-   -   User Hostları Nickim.XXX.XX olarak değişti YARDIM (https://www.ircforumlari.net/unreal-ircd/177305-user-hostlari-nickimxxxxx-olarak-degisti-yardim.html)

Raw 05 Şubat 2009 06:23

User Hostları Nickim.XXX.XX olarak değişti YARDIM
 
sunucu prefixlerini değiştirdikten sonra ( yani ~,& leri kaldırdım ) ve netadmine whois yasağını getirdikten sonra ne olduğunu anlamadan ,

normalde örnek olarak söle olan user hostlarım

normalde : @640B61D8.7DA76A3C.6AD1BF22.IP(örnektir)
şimdi ise : @Nickim.XXX.XX örneğin @DRAKULA.168.78(örnektir)

bunu eski haline yani normal haline nasıl getirebilirim lütfen yardim edin sabaha kadar uraştım bulamadım:(Şimdiden teşekkür ederim arkadaşlar çünki sorunumu çözeveğinize eminim :)

toXic 05 Şubat 2009 12:26

Cevap: User Hostları Nickim.XXX.XX olarak değişti YARDIM
 
Kod:

cd Unreal3.2/src/modules
Kod:

pico cloak.c
Kod:

ircsprintf(result,
Yukardaki satırı bulduktan sonra o satırın devamı olacaktır o satır şu şekilde görüncek,

Kod:

ircsprintf(result, "%X.%X.%X.IP", alpha, beta, gamma);
Yukarda ki şekilde değiştirin

Raw 05 Şubat 2009 15:20

Cevap: User Hostları Nickim.XXX.XX olarak değişti YARDIM
 
ToxiC , çok teşekkür ederim kardeşim . Sorun tam olarak senin işaret ettiğin yerdeymiş satırda düzelttim ama IRC ' de hala düzelmedi . Hangi yerlere make , make install , start , restart , stop , rehash çekmem lazım acaba . Yaptım ama sorun düzelmedi . Tekrar Teşekkürler !

ToxiC , toprakım yardımların için bir kez daha sağoL ;)

GemLik 05 Şubat 2009 15:22

Cevap: User Hostları Nickim.XXX.XX olarak değişti YARDIM
 
yukarıdaki değişikliği yaptıkdan sonra Unreal3.2 dizininde make cekip sunucuya restart atmanız gerekmektedir.

Raw 05 Şubat 2009 15:34

Cevap: User Hostları Nickim.XXX.XX olarak değişti YARDIM
 
GemLik , kardeş Unreal satırında make ve make install çekdim sora ./unreal restart yaptım yine sorun düzelmedi :S Acaba neden ? Teşekkür ederim iLgin için bu arada , eyvaLLah GemLiK !

Raw 05 Şubat 2009 16:14

Cevap: User Hostları Nickim.XXX.XX olarak değişti YARDIM
 
GemLik , kardeş make çekiptikten sonra su hataları alıyorum bide ;

Building src
make[1]: Entering directory `/home/sunucuadı/Unreal3.2/src'
gcc -I../include -I/home/sunucuadi/Unreal3.2/extras/regexp/include -pipe -g -O2 - funsigned-char -I/usr/local/ssl/include -DZIP_LINKS -DUSE_LIBCURL -export-dynam ic -L/usr/local/ssl/lib -c auth.c
In file included from ../include/common.h:46,
from ../include/struct.h:43,
from auth.c:21:
../include/sys.h:195: error: static declaration of âin6addr_anyâ follows non-sta tic declaration
/usr/include/netinet/in.h:206: error: previous declaration of âin6addr_anyâ was here
make[1]: *** [auth.o] Error 1
make[1]: Leaving directory `/home/sunucuadı/Unreal3.2/src'
make: *** [build] Error 2

acaba sorunun düzelmemesinin nedeni burda yazıyor mu ?

Şimdiden Tekrardan Teşekkürler GemLik !

Raw 05 Şubat 2009 23:05

Cevap: User Hostları Nickim.XXX.XX olarak değişti YARDIM
 
toXic ' in anlattıklarını yaptıktan sonra ;

unreal3.2/src/modelus/make çekince ;

Kod:


cc  -fPIC -DPIC -shared  -c m_sethost.c
m_sethost.c:22:20: error: macros.h: No such file or directory
m_sethost.c:23:20: error: config.h: No such file or directory
m_sethost.c:24:20: error: struct.h: No such file or directory
m_sethost.c:25:20: error: common.h: No such file or directory
m_sethost.c:26:17: error: sys.h: No such file or directory
m_sethost.c:27:21: error: numeric.h: No such file or directory
m_sethost.c:28:17: error: msg.h: No such file or directory
m_sethost.c:29:21: error: channel.h: No such file or directory
m_sethost.c:39:15: error: h.h: No such file or directory
m_sethost.c:40:19: error: proto.h: No such file or directory
m_sethost.c:48: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âintâ
m_sethost.c:54: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âMOD_HEADERâ
m_sethost.c:63: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âintâ
m_sethost.c:73: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âintâ
m_sethost.c:78: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âintâ
m_sethost.c:95: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âintâ

bu hataları alıyorum , ardından Unreal3.2/make çektiğimde ise ;

Kod:


Building src
make[1]: Entering directory `/home/sunucuadı/Unreal3.2/src'
gcc -I../include -I/home/sunucuadı/Unreal3.2/extras/regexp/include -pipe -g -O2 -funsigned-char -I/usr/local/ssl/include -DZIP_LINKS  -DUSE_LIBCURL -export-dynamic  -L/usr/local/ssl/lib  -c auth.c
In file included from ../include/common.h:46,
                from ../include/struct.h:43,
                from auth.c:21:
../include/sys.h:195: error: static declaration of âin6addr_anyâ follows non-static declaration
/usr/include/netinet/in.h:206: error: previous declaration of âin6addr_anyâ was here
make[1]: *** [auth.o] Error 1
make[1]: Leaving directory `/home/sunucuadı/Unreal3.2/src'
make: *** [build] Error 2

hatalarını alıyorum ama ben yinede [Unreal3.2#]./unreal restart yapmama rağmen sorunu çözemedim.Yardımlarınızı bekliyorum arkadaşlar.

toXic 15 Şubat 2009 18:20

Cevap: User Hostları Nickim.XXX.XX olarak değişti YARDIM
 
ftp ne gir



Kod:

/*
 *  IRC - Internet Relay Chat, src/modules/cloak.c
 *  (C) 2004 The UnrealIRCd Team
 *
 *  See file AUTHORS in IRC package for additional names of
 *  the programmers.
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 1, or (at your option)
 *  any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
#include "config.h"
#include "struct.h"
#include "common.h"
#include "sys.h"
#include "numeric.h"
#include "msg.h"
#include "channel.h"
#include <time.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef _WIN32
#include <io.h>
#endif
#include <fcntl.h>
#include "h.h"
#ifdef _WIN32
#include "version.h"
#endif
static char *cloak_key1 = NULL, *cloak_key2 = NULL, *cloak_key3 = NULL;
static char cloak_checksum[64];
static int nokeys = 1;
#undef KEY1
#undef KEY2
#undef KEY3
#define KEY1 cloak_key1
#define KEY2 cloak_key2
#define KEY3 cloak_key3
DLLFUNC char *hidehost(char *host);
DLLFUNC char *cloakcsum();
DLLFUNC int cloak_config_test(ConfigFile *, ConfigEntry *, int, int *);
DLLFUNC int cloak_config_run(ConfigFile *, ConfigEntry *, int);
DLLFUNC int cloak_config_posttest(int *);
static char *hidehost_ipv4(char *host);
static char *hidehost_ipv6(char *host);
static char *hidehost_normalhost(char *host);
static inline unsigned int downsample(char *i);
Callback *cloak = NULL, *cloak_csum = NULL;
ModuleHeader MOD_HEADER(cloak)
  = {
  "cloak",
  "$Id: cloak.c,v 1.1.4.3 2005/03/13 21:03:08 syzop Exp $",
  "Official cloaking module (md5)",
  "3.2-b8-1",
  NULL
  };
DLLFUNC int MOD_TEST(cloak)(ModuleInfo *modinfo)
{
 cloak = CallbackAddPCharEx(modinfo->handle, CALLBACKTYPE_CLOAK, hidehost);
 if (!cloak)
 {
  config_error("cloak: Error while trying to install cloaking callback!");
  return MOD_FAILED;
 }
 cloak_csum = CallbackAddPCharEx(modinfo->handle, CALLBACKTYPE_CLOAKKEYCSUM, cloakcsum);
 if (!cloak_csum)
 {
  config_error("cloak: Error while trying to install cloaking checksum callback!");
  return MOD_FAILED;
 }
 HookAddEx(modinfo->handle, HOOKTYPE_CONFIGTEST, cloak_config_test);
 HookAddEx(modinfo->handle, HOOKTYPE_CONFIGPOSTTEST, cloak_config_posttest);
 return MOD_SUCCESS;
}
DLLFUNC int MOD_INIT(cloak)(ModuleInfo *modinfo)
{
 MARK_AS_OFFICIAL_MODULE(modinfo);
 HookAddEx(modinfo->handle, HOOKTYPE_CONFIGRUN, cloak_config_run);
 return MOD_SUCCESS;
}
DLLFUNC int MOD_LOAD(cloak)(int module_load)
{
 return MOD_SUCCESS;
}
DLLFUNC int MOD_UNLOAD(cloak)(int module_unload)
{
 if (cloak_key1)
 {
  MyFree(cloak_key1);
  MyFree(cloak_key2);
  MyFree(cloak_key3);
 }
 return MOD_SUCCESS;
}
static int check_badrandomness(char *key)
{
char gotlowcase=0, gotupcase=0, gotdigit=0;
char *p;
 for (p=key; *p; p++)
  if (islower(*p))
  gotlowcase = 1;
  else if (isupper(*p))
  gotupcase = 1;
  else if (isdigit(*p))
  gotdigit = 1;
 if (gotlowcase && gotupcase && gotdigit)
  return 0;
 return 1;
}

DLLFUNC int cloak_config_test(ConfigFile *cf, ConfigEntry *ce, int type, int *errs)
{
ConfigEntry *cep;
int keycnt = 0, errors = 0;
char *keys[3];
 if (type != CONFIG_CLOAKKEYS)
  return 0;
 nokeys = 0;
 for (cep = ce->ce_entries; cep; cep = cep->ce_next)
 {
  keycnt++;
  /* TODO: check randomness */
  if (check_badrandomness(cep->ce_varname))
  {
  config_error("%s:%i: set::cloak-keys: (key %d) Keys should be mixed a-zA-Z0-9, "
                "like \"a2JO6fh3Q6w4oN3s7\"", cep->ce_fileptr->cf_filename, cep->ce_varlinenum, keycnt);
  errors++;
  }
  if (strlen(cep->ce_varname) < 5)
  {
  config_error("%s:%i: set::cloak-keys: (key %d) Each key should be at least 5 characters",
    cep->ce_fileptr->cf_filename, cep->ce_varlinenum, keycnt);
  errors++;
  }
  if (strlen(cep->ce_varname) > 100)
  {
  config_error("%s:%i: set::cloak-keys: (key %d) Each key should be less than 100 characters",
    cep->ce_fileptr->cf_filename, cep->ce_varlinenum, keycnt);
  errors++;
  }
  if (keycnt < 4)
  keys[keycnt-1] = cep->ce_varname;
 }
 if (keycnt != 3)
 {
  config_error("%s:%i: set::cloak-keys: we want 3 values, not %i!",
  ce->ce_fileptr->cf_filename, ce->ce_varlinenum, keycnt);
  errors++;
 }
 if ((keycnt == 3) && (!strcmp(keys[0], keys[1]) || !strcmp(keys[1], keys[2])))
 {
  config_error("%s:%i: set::cloak-keys: All your 3 keys should be RANDOM, they should not be equal",
  ce->ce_fileptr->cf_filename, ce->ce_varlinenum);
  errors++;
 }
 *errs = errors;
 return errors ? -1 : 1;
}
DLLFUNC int cloak_config_posttest(int *errs)
{
int errors = 0;
 if (nokeys)
 {
  config_error("set::cloak-keys missing!");
  errors++;
 }
 *errs = errors;
 return errors ? -1 : 1;
}
DLLFUNC int cloak_config_run(ConfigFile *cf, ConfigEntry *ce, int type)
{
ConfigEntry *cep;
char buf[512], result[16];
 if (type != CONFIG_CLOAKKEYS)
  return 0;
 /* config test should ensure this goes fine... */
 cep = ce->ce_entries;
 cloak_key1 = strdup(cep->ce_varname);
 cep = cep->ce_next;
 cloak_key2 = strdup(cep->ce_varname);
 cep = cep->ce_next;
 cloak_key3 = strdup(cep->ce_varname);
 /* Calculate checksum */
 sprintf(buf, "%s:%s:%s", KEY1, KEY2, KEY3);
 DoMD5(result, buf, strlen(buf));
 ircsprintf(cloak_checksum, "MD5:%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x",
  (u_int)(result[0] & 0xf), (u_int)(result[0] >> 4),
  (u_int)(result[1] & 0xf), (u_int)(result[1] >> 4),
  (u_int)(result[2] & 0xf), (u_int)(result[2] >> 4),
  (u_int)(result[3] & 0xf), (u_int)(result[3] >> 4),
  (u_int)(result[4] & 0xf), (u_int)(result[4] >> 4),
  (u_int)(result[5] & 0xf), (u_int)(result[5] >> 4),
  (u_int)(result[6] & 0xf), (u_int)(result[6] >> 4),
  (u_int)(result[7] & 0xf), (u_int)(result[7] >> 4),
  (u_int)(result[8] & 0xf), (u_int)(result[8] >> 4),
  (u_int)(result[9] & 0xf), (u_int)(result[9] >> 4),
  (u_int)(result[10] & 0xf), (u_int)(result[10] >> 4),
  (u_int)(result[11] & 0xf), (u_int)(result[11] >> 4),
  (u_int)(result[12] & 0xf), (u_int)(result[12] >> 4),
  (u_int)(result[13] & 0xf), (u_int)(result[13] >> 4),
  (u_int)(result[14] & 0xf), (u_int)(result[14] >> 4),
  (u_int)(result[15] & 0xf), (u_int)(result[15] >> 4));
 return 1;
}
DLLFUNC char *hidehost(char *host)
{
char *p;
 /* IPv6 ? */
 if (strchr(host, ':'))
  return hidehost_ipv6(host);
 /* Is this a IPv4 IP? */
 for (p = host; *p; p++)
  if (!isdigit(*p) && !(*p == '.'))
  break;
 if (!(*p))
  return hidehost_ipv4(host);
 
 /* Normal host */
 return hidehost_normalhost(host);
}
DLLFUNC char *cloakcsum()
{
 return cloak_checksum;
}
/** Downsamples a 128bit result to 32bits (md5 -> unsigned int) */
static inline unsigned int downsample(char *i)
{
char r[4];
 r[0] = i[0] ^ i[1] ^ i[2] ^ i[3];
 r[1] = i[4] ^ i[5] ^ i[6] ^ i[7];
 r[2] = i[8] ^ i[9] ^ i[10] ^ i[11];
 r[3] = i[12] ^ i[13] ^ i[14] ^ i[15];
 
 return ( ((unsigned int)r[0] << 24) +
          ((unsigned int)r[1] << 16) +
          ((unsigned int)r[2] << 8) +
          (unsigned int)r[3]);
}
static char *hidehost_ipv4(char *host)
{
unsigned int a, b, c, d;
static char buf[512], res[512], res2[512], result[128];
unsigned long n;
unsigned int alpha, beta, gamma;
 /*
  * Output: ALPHA.BETA.GAMMA.IP
  * ALPHA is unique for a.b.c.d
  * BETA  is unique for a.b.c.*
  * GAMMA is unique for a.b.*
  * We cloak like this:
  * ALPHA = downsample(md5(md5("KEY2:A.B.C.D:KEY3")+"KEY1"));
  * BETA  = downsample(md5(md5("KEY3:A.B.C:KEY1")+"KEY2"));
  * GAMMA = downsample(md5(md5("KEY1:A.B:KEY2")+"KEY3"));
  */
 sscanf(host, "%u.%u.%u.%u", &a, &b, &c, &d);
 /* ALPHA... */
 ircsprintf(buf, "%s:%s:%s", KEY2, host, KEY3);
 DoMD5(res, buf, strlen(buf));
 strcpy(res+16, KEY1); /* first 16 bytes are filled, append our key.. */
 n = strlen(res+16) + 16;
 DoMD5(res2, res, n);
 alpha = downsample(res2);
 /* BETA... */
 ircsprintf(buf, "%s:%d.%d.%d:%s", KEY3, a, b, c, KEY1);
 DoMD5(res, buf, strlen(buf));
 strcpy(res+16, KEY2); /* first 16 bytes are filled, append our key.. */
 n = strlen(res+16) + 16;
 DoMD5(res2, res, n);
 beta = downsample(res2);
 /* GAMMA... */
 ircsprintf(buf, "%s:%d.%d:%s", KEY1, a, b, KEY2);
 DoMD5(res, buf, strlen(buf));
 strcpy(res+16, KEY3); /* first 16 bytes are filled, append our key.. */
 n = strlen(res+16) + 16;
 DoMD5(res2, res, n);
 gamma = downsample(res2);
 ircsprintf(result, "%X.%X.%X.IP", alpha, beta, gamma);
 return result;
}
static char *hidehost_ipv6(char *host)
{
unsigned int a, b, c, d, e, f, g, h;
static char buf[512], res[512], res2[512], result[128];
unsigned long n;
unsigned int alpha, beta, gamma;
 /*
  * Output: ALPHA:BETA:GAMMA:IP
  * ALPHA is unique for a:b:c:d:e:f:g:h
  * BETA  is unique for a:b:c:d:e:f:g
  * GAMMA is unique for a:b:c:d
  * We cloak like this:
  * ALPHA = downsample(md5(md5("KEY2:a:b:c:d:e:f:g:h:KEY3")+"KEY1"));
  * BETA  = downsample(md5(md5("KEY3:a:b:c:d:e:f:g:KEY1")+"KEY2"));
  * GAMMA = downsample(md5(md5("KEY1:a:b:c:d:KEY2")+"KEY3"));
  */
 sscanf(host, "%x:%x:%x:%x:%x:%x:%x:%x",
  &a, &b, &c, &d, &e, &f, &g, &h);
 /* ALPHA... */
 ircsprintf(buf, "%s:%s:%s", KEY2, host, KEY3);
 DoMD5(res, buf, strlen(buf));
 strcpy(res+16, KEY1); /* first 16 bytes are filled, append our key.. */
 n = strlen(res+16) + 16;
 DoMD5(res2, res, n);
 alpha = downsample(res2);
 /* BETA... */
 ircsprintf(buf, "%s:%x:%x:%x:%x:%x:%x:%x:%s", KEY3, a, b, c, d, e, f, g, KEY1);
 DoMD5(res, buf, strlen(buf));
 strcpy(res+16, KEY2); /* first 16 bytes are filled, append our key.. */
 n = strlen(res+16) + 16;
 DoMD5(res2, res, n);
 beta = downsample(res2);
 /* GAMMA... */
 ircsprintf(buf, "%s:%x:%x:%x:%x:%s", KEY1, a, b, c, d, KEY2);
 DoMD5(res, buf, strlen(buf));
 strcpy(res+16, KEY3); /* first 16 bytes are filled, append our key.. */
 n = strlen(res+16) + 16;
 DoMD5(res2, res, n);
 gamma = downsample(res2);
 ircsprintf(result, "%X:%X:%X:IP", alpha, beta, gamma);
 return result;
}
static char *hidehost_normalhost(char *host)
{
char *p;
static char buf[512], res[512], res2[512], result[HOSTLEN+1];
unsigned int alpha, n;
 ircsprintf(buf, "%s:%s:%s", KEY1, host, KEY2);
 DoMD5(res, buf, strlen(buf));
 strcpy(res+16, KEY3); /* first 16 bytes are filled, append our key.. */
 n = strlen(res+16) + 16;
 DoMD5(res2, res, n);
 alpha = downsample(res2);
 for (p = host; *p; p++)
  if (*p == '.')
  if (isalpha(*(p + 1)))
    break;
 if (*p)
 {
  unsigned int len;
  p++;
  ircsprintf(result, "%s-%X.", hidden_host, alpha);
  len = strlen(result) + strlen(p);
  if (len <= HOSTLEN)
  strcat(result, p);
  else
  strcat(result, p + (len - HOSTLEN));
 } else
  ircsprintf(result,  "%s-%X", hidden_host, alpha);
 return result;
}

Bu Kodları nopetad'ınla masa ustune kaydet adını m_cloak.c yap

Unreal3.2/src/modules ne gir cloak.c ni silip bunu yapıstır

janus 10 Nisan 2009 21:16

Cevap: User Hostları Nickim.XXX.XX olarak değişti YARDIM
 
delirecegim 3.2.6 da bunlar yok.. 3.2.6 icin nasil yaapcaz bu hostu degitirmeyi :S

GemLik 10 Nisan 2009 22:55

Cevap: User Hostları Nickim.XXX.XX olarak değişti YARDIM
 
Alıntı:

janus Nickli Üyeden Alıntı (Mesaj 684104)
delirecegim 3.2.6 da bunlar yok.. 3.2.6 icin nasil yaapcaz bu hostu degitirmeyi :S

imkansız nasıl yok :) cloak.c

cd Unreal3.2
cd src
cd modules
pico cloak.c

butun unreal versionlarında aynıdır.

janus 11 Nisan 2009 05:58

Cevap: User Hostları Nickim.XXX.XX olarak değişti YARDIM
 
yau arkadasim istiyorsan cloak c yi buraya pasteleyim

Kod:

/************************************************************************
 *  Unreal Internet Relay Chat Daemon, src/cloak.c
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 1, or (at your option)
 *  any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

/*
#ifdef CLEAN_COMPILE
static char sccxid[] = "@(#)cloak.c        9.00 7/12/99 UnrealIRCd";
#endif
*/

#include "struct.h"
#include "common.h"
#include "sys.h"
#include "numeric.h"
#include "msg.h"
#include "ircsprintf.h"
#include "channel.h"
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include "h.h"

/* The implementation here was originally done by Gary S. Brown.  I have
  borrowed the tables directly, and made some minor changes to the
  crc32-function (including changing the interface). //ylo */

  /* ============================================================= */
  /*  COPYRIGHT (C) 1986 Gary S. Brown.  You may use this program, or      */
  /*  code or tables extracted from it, as desired without restriction.    */
  /*                                                                        */
  /*  First, the polynomial itself and its table of feedback terms.  The    */
  /*  polynomial is                                                        */
  /*  X^32+X^26+X^23+X^22+X^16+X^12+X^11+X^10+X^8+X^7+X^5+X^4+X^2+X^1+X^0  */
  /*                                                                        */
  /*  Note that we take it "backwards" and put the highest-order term in    */
  /*  the lowest-order bit.  The X^32 term is "implied"; the LSB is the    */
  /*  X^31 term, etc.  The X^0 term (usually shown as "+1") results in      */
  /*  the MSB being 1.                                                      */
  /*                                                                        */
  /*  Note that the usual hardware shift register implementation, which    */
  /*  is what we're using (we're merely optimizing it by doing eight-bit    */
  /*  chunks at a time) shifts bits into the lowest-order term.  In our    */
  /*  implementation, that means shifting towards the right.  Why do we    */
  /*  do it this way?  Because the calculated CRC must be transmitted in    */
  /*  order from highest-order term to lowest-order term.  UARTs transmit  */
  /*  characters in order from LSB to MSB.  By storing the CRC this way,    */
  /*  we hand it to the UART in the order low-byte to high-byte; the UART  */
  /*  sends each low-bit to hight-bit; and the result is transmission bit  */
  /*  by bit from highest- to lowest-order term without requiring any bit  */
  /*  shuffling on our part.  Reception works similarly.                    */
  /*                                                                        */
  /*  The feedback terms table consists of 256, 32-bit entries.  Notes:    */
  /*                                                                        */
  /*      The table can be generated at runtime if desired; code to do so  */
  /*      is shown later.  It might not be obvious, but the feedback        */
  /*      terms simply represent the results of eight shift/xor opera-      */
  /*      tions for all combinations of data and CRC register values.      */
  /*                                                                        */
  /*      The values must be right-shifted by eight bits by the "updcrc"    */
  /*      logic; the shift must be unsigned (bring in zeroes).  On some    */
  /*      hardware you could probably optimize the shift in assembler by    */
  /*      using byte-swap instructions.                                    */
  /*      polynomial $edb88320                                              */
  /*                                                                        */
  /*  --------------------------------------------------------------------  */

static unsigned long crc32_tab[] = {
      0x00000000L, 0x77073096L, 0xee0e612cL, 0x990951baL, 0x076dc419L,
      0x706af48fL, 0xe963a535L, 0x9e6495a3L, 0x0edb8832L, 0x79dcb8a4L,
      0xe0d5e91eL, 0x97d2d988L, 0x09b64c2bL, 0x7eb17cbdL, 0xe7b82d07L,
      0x90bf1d91L, 0x1db71064L, 0x6ab020f2L, 0xf3b97148L, 0x84be41deL,
      0x1adad47dL, 0x6ddde4ebL, 0xf4d4b551L, 0x83d385c7L, 0x136c9856L,
      0x646ba8c0L, 0xfd62f97aL, 0x8a65c9ecL, 0x14015c4fL, 0x63066cd9L,
      0xfa0f3d63L, 0x8d080df5L, 0x3b6e20c8L, 0x4c69105eL, 0xd56041e4L,
      0xa2677172L, 0x3c03e4d1L, 0x4b04d447L, 0xd20d85fdL, 0xa50ab56bL,
      0x35b5a8faL, 0x42b2986cL, 0xdbbbc9d6L, 0xacbcf940L, 0x32d86ce3L,
      0x45df5c75L, 0xdcd60dcfL, 0xabd13d59L, 0x26d930acL, 0x51de003aL,
      0xc8d75180L, 0xbfd06116L, 0x21b4f4b5L, 0x56b3c423L, 0xcfba9599L,
      0xb8bda50fL, 0x2802b89eL, 0x5f058808L, 0xc60cd9b2L, 0xb10be924L,
      0x2f6f7c87L, 0x58684c11L, 0xc1611dabL, 0xb6662d3dL, 0x76dc4190L,
      0x01db7106L, 0x98d220bcL, 0xefd5102aL, 0x71b18589L, 0x06b6b51fL,
      0x9fbfe4a5L, 0xe8b8d433L, 0x7807c9a2L, 0x0f00f934L, 0x9609a88eL,
      0xe10e9818L, 0x7f6a0dbbL, 0x086d3d2dL, 0x91646c97L, 0xe6635c01L,
      0x6b6b51f4L, 0x1c6c6162L, 0x856530d8L, 0xf262004eL, 0x6c0695edL,
      0x1b01a57bL, 0x8208f4c1L, 0xf50fc457L, 0x65b0d9c6L, 0x12b7e950L,
      0x8bbeb8eaL, 0xfcb9887cL, 0x62dd1ddfL, 0x15da2d49L, 0x8cd37cf3L,
      0xfbd44c65L, 0x4db26158L, 0x3ab551ceL, 0xa3bc0074L, 0xd4bb30e2L,
      0x4adfa541L, 0x3dd895d7L, 0xa4d1c46dL, 0xd3d6f4fbL, 0x4369e96aL,
      0x346ed9fcL, 0xad678846L, 0xda60b8d0L, 0x44042d73L, 0x33031de5L,
      0xaa0a4c5fL, 0xdd0d7cc9L, 0x5005713cL, 0x270241aaL, 0xbe0b1010L,
      0xc90c2086L, 0x5768b525L, 0x206f85b3L, 0xb966d409L, 0xce61e49fL,
      0x5edef90eL, 0x29d9c998L, 0xb0d09822L, 0xc7d7a8b4L, 0x59b33d17L,
      0x2eb40d81L, 0xb7bd5c3bL, 0xc0ba6cadL, 0xedb88320L, 0x9abfb3b6L,
      0x03b6e20cL, 0x74b1d29aL, 0xead54739L, 0x9dd277afL, 0x04db2615L,
      0x73dc1683L, 0xe3630b12L, 0x94643b84L, 0x0d6d6a3eL, 0x7a6a5aa8L,
      0xe40ecf0bL, 0x9309ff9dL, 0x0a00ae27L, 0x7d079eb1L, 0xf00f9344L,
      0x8708a3d2L, 0x1e01f268L, 0x6906c2feL, 0xf762575dL, 0x806567cbL,
      0x196c3671L, 0x6e6b06e7L, 0xfed41b76L, 0x89d32be0L, 0x10da7a5aL,
      0x67dd4accL, 0xf9b9df6fL, 0x8ebeeff9L, 0x17b7be43L, 0x60b08ed5L,
      0xd6d6a3e8L, 0xa1d1937eL, 0x38d8c2c4L, 0x4fdff252L, 0xd1bb67f1L,
      0xa6bc5767L, 0x3fb506ddL, 0x48b2364bL, 0xd80d2bdaL, 0xaf0a1b4cL,
      0x36034af6L, 0x41047a60L, 0xdf60efc3L, 0xa867df55L, 0x316e8eefL,
      0x4669be79L, 0xcb61b38cL, 0xbc66831aL, 0x256fd2a0L, 0x5268e236L,
      0xcc0c7795L, 0xbb0b4703L, 0x220216b9L, 0x5505262fL, 0xc5ba3bbeL,
      0xb2bd0b28L, 0x2bb45a92L, 0x5cb36a04L, 0xc2d7ffa7L, 0xb5d0cf31L,
      0x2cd99e8bL, 0x5bdeae1dL, 0x9b64c2b0L, 0xec63f226L, 0x756aa39cL,
      0x026d930aL, 0x9c0906a9L, 0xeb0e363fL, 0x72076785L, 0x05005713L,
      0x95bf4a82L, 0xe2b87a14L, 0x7bb12baeL, 0x0cb61b38L, 0x92d28e9bL,
      0xe5d5be0dL, 0x7cdcefb7L, 0x0bdbdf21L, 0x86d3d2d4L, 0xf1d4e242L,
      0x68ddb3f8L, 0x1fda836eL, 0x81be16cdL, 0xf6b9265bL, 0x6fb077e1L,
      0x18b74777L, 0x88085ae6L, 0xff0f6a70L, 0x66063bcaL, 0x11010b5cL,
      0x8f659effL, 0xf862ae69L, 0x616bffd3L, 0x166ccf45L, 0xa00ae278L,
      0xd70dd2eeL, 0x4e048354L, 0x3903b3c2L, 0xa7672661L, 0xd06016f7L,
      0x4969474dL, 0x3e6e77dbL, 0xaed16a4aL, 0xd9d65adcL, 0x40df0b66L,
      0x37d83bf0L, 0xa9bcae53L, 0xdebb9ec5L, 0x47b2cf7fL, 0x30b5ffe9L,
      0xbdbdf21cL, 0xcabac28aL, 0x53b39330L, 0x24b4a3a6L, 0xbad03605L,
      0xcdd70693L, 0x54de5729L, 0x23d967bfL, 0xb3667a2eL, 0xc4614ab8L,
      0x5d681b02L, 0x2a6f2b94L, 0xb40bbe37L, 0xc30c8ea1L, 0x5a05df1bL,
      0x2d02ef8dL
  };

/* Return a 32-bit CRC of the contents of the buffer. */

unsigned long our_crc32(const unsigned char *s, unsigned int len)
{
  unsigned int i;
  unsigned long crc32val;
 
  crc32val = 0;
  for (i = 0;  i < len;  i ++)
    {
      crc32val =
        crc32_tab[(crc32val ^ s[i]) & 0xff] ^
          (crc32val >> 8);
    }
  return crc32val;
}

/* mode = 0, just use strncpyzt, 1 = Realloc new and return new pointer */
char *make_virthost(aClient *sptr, char *curr, char *new, int mode)
{
char host[256], *mask, *x, *p, *q;

    if (!curr)
        return NULL;

    /* Convert host to lowercase and cut off at 255 bytes just to be sure */
    for (p = curr, q = host; *p && (q < host+sizeof(host)-1); p++, q++)
        *q =  tolower(*p);
    *q = '\0';

    /* Call the cloaking layer */
    if (RCallbacks[CALLBACKTYPE_CLOAK_EX])
        mask = RCallbacks[CALLBACKTYPE_CLOAK_EX]->func.pcharfunc(sptr, host);
    else
        mask = RCallbacks[CALLBACKTYPE_CLOAK]->func.pcharfunc(host);

    if (mode == 0)
    {
        strlcpy(new, mask, HOSTLEN + 1);
        return NULL;
    }
    if (new)
        MyFree(new);
    x = strdup(mask);
    return x;
}

Burada nerede yapilacak degisiklik sanirim ben kor oldum :)

GemLik 11 Nisan 2009 06:06

Cevap: User Hostları Nickim.XXX.XX olarak değişti YARDIM
 
arkadaşım yalnış giriosun Unreal3.2 >>>>> Src >>>> Modules
buradaki cloak.c olacak src deki değil

janus 11 Nisan 2009 06:18

Cevap: User Hostları Nickim.XXX.XX olarak değişti YARDIM
 
Anladim :) yaa peki bu fullname ident sabitlemeyi nasil yapcaz.. Bak o 3.2.6 da cok farkli..


Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 20:59.

Powered by vBulletin® Version 3.8.8 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO
Copyright ©2004 - 2024 IRCForumlari.Net