• 大小: 186KB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2021-06-17
  • 语言: 其他
  • 标签: NetBoxDex  

资源简介

NetBoxDex 逆向解压NetBox打包文件,亲自测试绝对有效果!!!!

资源截图

代码片段和文件信息

#include 
#include “md5.h“

#ifndef WORDS_BIGENDIAN
#define byteReverse(buf len) /* Nothing */
#else
static void byteReverse(unsigned char *buf unsigned longs);

/*
 * Note: this code is harmless on little-endian machines.
 */
static void byteReverse(unsigned char *buf unsigned longs)
{
    word32 t;
    do {
t = (word32) ((unsigned) buf[3] << 8 | buf[2]) << 16 |
    ((unsigned) buf[1] << 8 | buf[0]);
*(word32 *) buf = t;
buf += 4;
    } while (--longs);
}
#endif

/*
 * Start MD5 accumulation.  Set bit count to 0 and buffer to mysterious
 * initialization constants.
 */
void MD5Init(struct MD5Context *ctx)
{
    ctx->buf[0] = 0x67452301;
    ctx->buf[1] = 0xefcdab89;
    ctx->buf[2] = 0x98badcfe;
    ctx->buf[3] = 0x10325476;

    ctx->bits[0] = 0;
    ctx->bits[1] = 0;
}

/*
 * Update context to reflect the concatenation of another buffer full
 * of bytes.
 */
void MD5Update(struct MD5Context *ctx unsigned char const *buf unsigned len)
{
    register word32 t;

    /* Update bitcount */

    t = ctx->bits[0];
    if ((ctx->bits[0] = t + ((word32) len << 3)) < t)
ctx->bits[1]++; /* Carry from low to high */
    ctx->bits[1] += len >> 29;

    t = (t >> 3) & 0x3f; /* Bytes already in shsInfo->data */

    /* Handle any leading odd-sized chunks */

    if (t) {
unsigned char *p = (unsigned char *) ctx->in + t;

t = 64 - t;
if (len < t) {
    memmove(p buf len);
    return;
}
memmove(p buf t);
byteReverse(ctx->in 16);
MD5Transform(ctx->buf (word32 *) ctx->in);
buf += t;
len -= t;
    }
    /* Process data in 64-byte chunks */

    while (len >= 64) {
memmove(ctx->in buf 64);
byteReverse(ctx->in 16);
MD5Transform(ctx->buf (word32 *) ctx->in);
buf += 64;
len -= 64;
    }

    /* Handle any remaining bytes of data. */

    memmove(ctx->in buf len);
}

/*
 * Final wrapup - pad to 64-byte boundary with the bit pattern 
 * 1 0* (64-bit count of bits processed MSB-first)
 */
void MD5Final(unsigned char digest[16] struct MD5Context *ctx)
{
    unsigned int count;
    unsigned char *p;

    /* Compute number of bytes mod 64 */
    count = (ctx->bits[0] >> 3) & 0x3F;

    /* Set the first char of padding to 0x80.  This is safe since there is
       always at least one byte free */
    p = ctx->in + count;
    *p++ = 0x80;

    /* Bytes of padding needed to make 64 bytes */
    count = 64 - 1 - count;

    /* Pad out to 56 mod 64 */
    if (count < 8) {
/* Two lots of padding:  Pad the first block to 64 bytes */
memset(p 0 count);
byteReverse(ctx->in 16);
MD5Transform(ctx->buf (word32 *) ctx->in);

/* Now fill the next block with 56 bytes */
memset(ctx->in 0 56);
    } else {
/* Pad block to 56 bytes */
memset(p 0 count - 8);
    }
    byteReverse(ctx->in 14);

    /* Append length in bits and transform */
    ((word32 *) ctx->in)[14] = ctx->bits[0];
    ((word32 *) ctx->i

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      10658  2009-02-25 16:19  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\md5.c

     文件        752  2009-02-25 16:19  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\md5.h

     文件      16048  2010-03-06 13:18  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\NetBoxDex.cpp

     文件      44032  2012-04-11 06:40  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\NetBoxDex.exe

     文件       8479  2010-03-04 14:08  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\NetBoxDex.vcproj

     文件       1318  2010-03-03 23:49  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\ReadMe.txt

     文件        296  2010-03-03 23:49  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\stdafx.cpp

     文件        610  2010-03-04 02:42  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\stdafx.h

     文件       2237  2003-11-18 05:24  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\zlib\adler32.c

     文件       9336  2003-06-02 12:16  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\zlib\algorithm.txt

     文件      35981  2003-11-18 05:25  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\zlib\ChangeLog

     文件       2489  2003-07-07 13:37  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\zlib\compress.c

     文件      12667  2003-11-17 11:50  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\zlib\configure

     文件       9723  2003-09-08 04:52  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\zlib\crc32.c

     文件      30568  2003-01-06 00:53  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\zlib\crc32.h

     文件      54964  2003-11-09 10:33  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\zlib\deflate.c

     文件      11942  2003-07-24 13:59  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\zlib\deflate.h

     文件      16436  2003-09-14 08:23  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\zlib\example.c

     文件      14142  2003-09-10 12:13  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\zlib\FAQ

     文件      30528  2003-10-27 11:05  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\zlib\gzio.c

     文件       1162  2003-08-24 12:00  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\zlib\INDEX

     文件      22038  2003-08-12 07:48  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\zlib\infback.c

     文件      12192  2003-09-14 08:23  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\zlib\inffast.c

     文件        407  2003-01-02 01:46  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\zlib\inffast.h

     文件       6343  2002-11-25 07:44  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\zlib\inffixed.h

     文件      45355  2003-10-26 14:15  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\zlib\inflate.c

     文件       5802  2003-09-08 12:52  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\zlib\inflate.h

     文件      13328  2003-11-09 10:38  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\zlib\inftrees.c

     文件       2373  2003-08-11 06:15  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\zlib\inftrees.h

     文件       4133  2003-11-09 10:29  NetBoxDex v0.1(逆向web文件解呀)\NetBoxDex V0.1\zlib\Makefile

............此处省略19个文件信息

评论

共有 条评论

相关资源