資源簡(jiǎn)介
99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼.rar
代碼片段和文件信息
#include?
#include?
#include?
#define?SCRAMBLE_LENGTH_323?8
typedef?unsigned?long?ulong;
typedef?unsigned?int?uint;
typedef?unsigned?char?uchar;
struct?rand_struct?{
??unsigned?long?seed1seed2max_value;
??double?max_value_dbl;
};
void?hash_password(ulong?*result?const?char?*password?uint?password_len)
{
??register?ulong?nr=1345345333L?add=7?nr2=0x12345671L;
??ulong?tmp;
??const?char?*password_end=?password?+?password_len;
??for?(;?password???{
????if?(*password?==?‘?‘?||?*password?==?‘\t‘)
??????continue;?????????????????????????????????/*?skip?space?in?password?*/
????tmp=?(ulong)?(uchar)?*password;
????nr^=?(((nr?&?63)+add)*tmp)+?(nr?<8);
????nr2+=(nr2?<8)?^?nr;
????add+=tmp;
??}
??result[0]=nr?&?(((ulong)?1L?<31)?-1L);?/*?Don‘t?use?sign?bit?(str2int)?*/;
??result[1]=nr2?&?(((ulong)?1L?<31)?-1L);
}
void?randominit(struct?rand_struct?*rand_st?ulong?seed1?ulong?seed2)
{???????????????????????????????????????????????/*?For?mysql?3.21.#?*/
#ifdef?HAVE_purify
??bzero((char*)?rand_stsizeof(*rand_st));??????/*?Avoid?UMC?varnings?*/
#endif
??rand_st->max_value=?0x3FFFFFFFL;
??rand_st->max_value_dbl=(double)?rand_st->max_value;
??rand_st->seed1=seed1%rand_st->max_value?;
??rand_st->seed2=seed2%rand_st->max_value;
}
double?my_rnd(struct?rand_struct?*rand_st)
{
??rand_st->seed1=(rand_st->seed1*3+rand_st->seed2)?%?rand_st->max_value;
??rand_st->seed2=(rand_st->seed1+rand_st->seed2+33)?%?rand_st->max_value;
??return?(((double)?rand_st->seed1)/rand_st->max_value_dbl);
}
void?scramble_323(char?*to?const?char?*message?const?char?*password)
{
??struct?rand_struct?rand_st;
??ulong?hash_pass[2]?hash_message[2];
??if?(password?&&?password[0])
??{
????char?extra?*to_start=to;
????const?char?*message_end=?message?+?SCRAMBLE_LENGTH_323;
????hash_password(hash_passpassword?(uint)?strlen(password));
????hash_password(hash_message?message?SCRAMBLE_LENGTH_323);
????randominit(&rand_sthash_pass[0]?^?hash_message[0]
???????????????hash_pass[1]?^?hash_message[1]);
????for?(;?message???????*to++=?(char)?(floor(my_rnd(&rand_st)*31)+64);
????extra=(char)?(floor(my_rnd(&rand_st)*31));
????while?(to_start?!=?to)
??????*(to_start++)^=extra;
??}
??*to=?0;
}
int?main()?{
??const?char?password1[]?=?“root“;
??const?char?password2[]?=?“l(fā)ong?password?test“;
??const?char?password3[]?=?“saf789yasfbsd89f“;
??ulong?result[2];
??char?scrm[9];?//?SCRAMBLE_LENGTH_323+1
??struct?rand_struct?rand_st;
??int?i;
??//?test?hash_password
??hash_password((ulong*)result?password1?strlen(password1));
??printf(“hash_password(\“%s\“)?=?%08x%08x\n“?password1?result[0]?result[1]);
??hash_password((ulong*)result?password2?strlen(password2));
??printf(“hash_password(\“%s\“)?=?%08x%08x\n“?password2?result[0]?result[1]);
??hash_password((ulong*)result?password3?strlen(password3));
??printf(“hash_password(\“%s\“)?=?%08x%08x\n“?password3?result[0]?result[1]);
??//?test?randomin
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????????196??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\admin\Admin.class.php
?????文件???????5046??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\admin\Adminba
?????文件???????8537??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\admin\Business.class.php
?????文件???????1265??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\admin\CountData.class.php
?????文件???????1624??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\admin\Data.class.php
?????文件???????3004??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\admin\ip.function.php
?????文件???????2833??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\admin\Manage.class.php
?????文件???????5725??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\admin\Member.class.php
?????文件???????4462??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\admin\Score.class.php
?????文件???????7042??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\admin\System.class.php
?????文件????????116??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\admin\Test.class.php
?????文件???????2632??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\admin\User.class.php
?????文件?????????83??2015-03-01?17:55??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\admin\關(guān)于我們.url
?????文件???????2095??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\android\Bet.class.php
?????文件????????313??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\android\Data.class.php
?????文件???????4369??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\android\Game.class?_bak.php
?????文件???????5176??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\android\Game.class.php
?????文件???????6487??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\android\Member.class.php
?????文件???????2824??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\android\User.class.php
?????文件???????7586??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\android\Webba
?????文件???????2711??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\android\WebLoginba
?????文件?????????83??2015-03-01?17:55??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\android\關(guān)于我們.url
?????文件???????2380??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\default\Bet.class.php
?????文件????????931??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\default\Cai.class.php
?????文件??????10337??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\default\Cash.class.php
?????文件???????1226??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\default\Display.class.php
?????文件???????6274??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\default\Game.class.php
?????文件???????2531??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\default\Index.class.php
?????文件????????220??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\default\Kf.class.php
?????文件????????187??2015-03-28?00:32??99彩時(shí)時(shí)彩整站帶數(shù)據(jù)源碼\99彩\action\default\kj.funcs.php
............此處省略2105個(gè)文件信息
評(píng)論
共有 條評(píng)論