资源简介
汉和娱乐城.zip
代码片段和文件信息
#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 < password_end; 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 < message_end; 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[] = “long 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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4671117 2018-11-08 10:14 20181108.sql
目录 0 2018-11-28 17:17 admin\
文件 781 2018-11-28 17:18 admin\admin.config.php
目录 0 2018-11-28 15:43 admin\blast_back\
目录 0 2018-11-28 15:43 admin\blast_back\admin\
文件 559 2015-03-20 22:56 admin\blast_back\admin\About.class.php
文件 204 2017-01-07 10:08 admin\blast_back\admin\Admin.class.php
文件 8929 2017-07-14 19:06 admin\blast_back\admin\Adminba
文件 7161 2017-01-07 09:59 admin\blast_back\admin\Bonus.class.php
文件 5852 2017-01-11 23:19 admin\blast_back\admin\Box.class.php
文件 18837 2017-07-14 18:59 admin\blast_back\admin\Business.class.php
文件 2000 2017-01-03 09:14 admin\blast_back\admin\Card.class.php
文件 1461 2017-01-07 10:52 admin\blast_back\admin\Choujiang.class.php
文件 592 2014-12-21 22:02 admin\blast_back\admin\Clear.class.php
文件 8651 2017-01-07 09:59 admin\blast_back\admin\Commission.class.php
文件 1434 2014-12-23 23:23 admin\blast_back\admin\CountData.class.php
文件 4952 2017-05-27 11:39 admin\blast_back\admin\Data.class.php
文件 8603 2017-01-07 09:59 admin\blast_back\admin\Databa
文件 2147 2015-04-08 21:17 admin\blast_back\admin\Dbqb.class.php
文件 6480 2016-11-21 23:21 admin\blast_back\admin\Dzp.class.php
文件 6118 2015-04-08 20:57 admin\blast_back\admin\Dzyh.class.php
文件 4639 2016-11-28 11:48 admin\blast_back\admin\Event.class.php
文件 3991 2014-06-30 10:06 admin\blast_back\admin\ip.function.php
文件 167 2015-01-06 21:15 admin\blast_back\admin\kjdatas.class.php
文件 1531 2015-04-11 09:22 admin\blast_back\admin\lhc.class.php
文件 3430 2014-11-03 10:30 admin\blast_back\admin\Manage.class.php
文件 7224 2017-03-31 13:31 admin\blast_back\admin\Member.class.php
文件 1218 2017-01-07 09:59 admin\blast_back\admin\pays.class.php
文件 5144 2014-11-15 12:54 admin\blast_back\admin\Score.class.php
文件 17513 2017-01-09 12:49 admin\blast_back\admin\System.class.php
文件 2325 2015-04-11 10:16 admin\blast_back\admin\Time.class.php
............此处省略4479个文件信息
- 上一篇:方正软件保护卡V1.1x 驱动
- 下一篇:慧思中小学生体检系统V8.0
相关资源
- 富贵3搭建教程.rar
- GG代码转XS内存工具.zip
- 新建文件夹(3)(1).zip
- CiscoanyConnect4.6.zip
- BuildingDataCenterswithVXLANBGPEVPN-Cisco.pdf
- 深度学习基础(FundamentalsofDeepLearnin
- VPN文献及资料.rar
- 党务政务公开触摸屏查询系统.rar
- [H3CSE-Security课程]《构建安全VPN(v1.
- 数学建模进阶培训学习视频19讲的课件
- 清华大学数学建模83讲课件ppt.zip
- secondHandBookstore.rar
- blogSSM.rar
- onlineLearnSystem.rar
- CompTIASecurity+StudyGuide7thEdition.pdf
- 《深度学习之TensorFlow:入门、原理与
- UnderstandingDeepLearninginOneDay.rar
-
75882586Polyu_Pamprint_Databa
se(1).rar - 开放式工业控制系统的软件开发技术
- 频谱分析仪最终版程序.zip
- C题代码.zip
- 算法图解高清版.pdf.zip
- KaoQinMS.zip
- 实时绿幕抠像应用.zip
- 排样遗传算法.zip
- C仿传奇代码.rar
- 侯捷-STL源码解析视频教程及原书PDF
- delphi重庆医保支付demo.rar
- DiskGenius4.9.1-X64.rar
- xp430patch免墨盒程序.zip
评论
共有 条评论