资源简介
最新SSC喜虎完整源码.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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-03-15 13:22 admin\
目录 0 2019-03-15 13:07 admin\%SystemDrive%\
目录 0 2019-03-15 13:07 admin\%SystemDrive%\ProgramData\
目录 0 2019-03-15 13:07 admin\%SystemDrive%\ProgramData\SogouInput\
目录 0 2019-03-15 13:07 admin\%SystemDrive%\ProgramData\SogouInput\Components\
目录 0 2019-03-15 13:07 admin\%SystemDrive%\ProgramData\SogouInput\Components\Picface\
目录 0 2019-03-15 13:40 admin\%SystemDrive%\ProgramData\SogouInput\Components\Picface\Cloud\
文件 517 2018-11-08 09:54 admin\403.html
文件 481 2018-11-08 09:54 admin\404.html
目录 0 2019-03-15 12:53 admin\_cache\
文件 31300 2017-12-18 04:35 admin\_cache\2a77918bfb805533643b7becd82c6369
文件 186455 2019-03-15 13:11 admin\_cache\3893cc789efe15bc03d0af242392133f
文件 19538 2019-03-15 13:11 admin\_cache\a6626a0d6e78b53a892a7964096f7ef9
文件 3449 2019-03-15 13:11 admin\_cache\systemSettings
目录 0 2019-03-15 12:54 admin\class\
文件 2747 2017-05-10 10:00 admin\class\control-log-list.php
文件 2884 2016-12-19 21:25 admin\class\control-log.php
文件 3087 2017-05-10 09:34 admin\class\login-list.php
文件 647 2014-07-01 16:27 admin\class\manager-add-modal.php
文件 823 2014-11-03 10:16 admin\class\manager-pwd-modal.php
文件 787 2019-03-15 13:09 admin\config.php
文件 7259 2018-09-13 06:12 admin\db.php
文件 5719 2016-05-22 16:57 admin\index.php
目录 0 2019-03-15 12:54 admin\lib\
文件 1932 2016-05-22 17:01 admin\lib\CImage.lib.php
文件 10270 2016-05-22 17:01 admin\lib\DBAccess.lib.php
文件 3865 2016-05-22 17:01 admin\lib\ob
文件 2747 2017-05-10 10:00 admin\lib\control-log-list.php
文件 2884 2016-12-19 21:25 admin\lib\control-log.php
目录 0 2019-03-15 12:53 admin\lib\fonts\
文件 27096 2016-05-22 17:01 admin\lib\fonts\F2FOCRBczykLTStd-Regular.otf
............此处省略5549个文件信息
- 上一篇:基于SSH的模拟ATM取款机
- 下一篇:手写数字图片库
相关资源
- 线性代数及其应用中文版.pdf
- ClassicalMechanics-Goldstein.pdf
- 大话数据结构原书+源代码.zip
- zw_szhejiajun-10914079-iptv.zip
- 网络摄像头破解.rar
- 刺客信条1022_qqjike.com.rar
- TeamViewer15.zip
- 计算机网络:自顶向下方法原书第7版
- 概率论与数理统计(浙江大学第四版
- oems.zip
- Xara3DMaker7.0.0.442.zip
- GBT25070-2019信息安全技术网络安全等级
- 佳顺通用进销存系统pJ.7z
- 深入浅出WebPack_no_bookmark.pdf
- p2pSearcher.rar
- s1987ea_8752885.zip
- VisualAssistX10.9.2333.0.rar
- 现代数字信号处理理论及算法最新.
- TCP-IP详解.rar
- 新浪微博自动推广专家_v2.18.zip
- copytranslator.rar
- 梦昂图文10.1.74.zip
- 信标ok.zip
- company.zip
- Sketch.app.zip
- A_mind_for_numbers(学习之道)美-芭芭拉
- xshell6.zip
- ISO26262-2011完整版最全.rar
- 小猿搜题.zip
- 迅捷PDF6.8版破解.rar
评论
共有 条评论