存档

‘Computer’ 分类的存档

srand,rand函数的使用注意事项

2010年1月12日 coolspace 没有评论

在实际应用中,我们经常需要产生随机数,这些随机数的应用范围也是十分广泛的。但计算机只能依据一定算法产生伪随机数序列。c语言中最常用的产生伪随机数序列的函数是srand和rand

srand,rand函数在实现上利用TlsGetValue等一系列函数进行数据的存取,也就意味着srand,rand存取的数据是和线程相关的。

根据我使用经验,总结出以下几点注意事项:

1、rand函数初次使用之前必须调用srand函数初始化,才能保证产生不同的随机数序列。

2、在多线程程序中,如果每个线程都需要调用rand,那么必须在每个线程里单独进行初始化。

3、单进程的srand初始化,可以简单的采用time(0)即可,但是多线程中,如果每个线程的开始时间近乎相同,那么就不可采用time(0)进行初始化,因为time(0)实际精度只有s级,会导致每个线程产生相同的随机数序列,因此需要用每个线程各不相同的一个数去初始化srand,例如threadid等等

分类: Computer 标签: , ,

IDA Pro 5.5+Hex-Rays.Decompiler 1.1 0day放出

2009年12月20日 coolspace 2 条评论

RT。
相信不用多做介绍,ida和hex-rays decompiler是什么东西,大部分玩逆向的都知道~~

自从去年0day放出5.2以后,长达一年的时间内没有动静,这次终于等到了ida 5.5版本。~

这里感谢 crackl@b forum的分享!

http://www.namipan.com/d/idapro55.zip/e0f420a29d2da1ed58697c6ab2e97adcc97daf5a97b37705

http://www.brsbox.com/filebox/down/fc/7fed14a8c798c73bf733360dda76a0e7

分类: Computer 标签: , ,

琢磨SSreader偶有所得

2009年12月12日 coolspace 1 条评论

近期琢磨SSreader,包括其下载过程和整个相关参数的解码过程。
刚刚突然灵感出现,将所有已知的线索串联了起来。
我想我知道老鹰版ssreader为什么即使是能看不能下的书能下到300dpi的没加密的pdg了。无外乎利用超星服务器或者说超星软件在整个沟通过程中的一个很大漏洞,去绕掉下载限制,去下载能看不能下的书,至于没加密,那就更简单了,加密时在本地,回避即可。至于300dpi,也是利用前面那个漏洞,因为超星阅读器实际上在服务器有300dpi的时候,阅读时看到的是300dpi,但是下回来的是快速版。所以绕掉了下载限制也就绕掉了300dpi。

所以总之一句话:老鹰版ssreader并没那么神秘。

自己在原版ssreader上测试了下,的确如是。~

分类: Computer 标签: , , ,

因不可抗原因,博客之前暂停服务半周,现恢复

2009年12月9日 coolspace 没有评论

RT

不可抗原因导致博客主机的所在机房被封,停止运营。

现转移机房后恢复~

分类: Computer 标签:

BoxedAppSdk 2.1.0.16 cracked(X64 INC)

2009年11月2日 coolspace 3 条评论

BoxedAppSdk 2.1.0.16破解,带X64版本。

链接——>   猛击下载

What is BoxedApp SDK?

BoxedApp SDK is a developer library that provides a set of functions for emulating a file system and a system registry for an application. Using these functions, you can create virtual files, fake registry entries, keys and values.

32-bit and x64 are supported.

Why and when is it useful?

  • When an application must run properly even if it doesn’t have the right to write to the system registry and to the file system
  • When an application uses DLL and files, which are to be kept secure, and because of that you can’t save them to disk
  • When an application needs ActiveX but doesn’t have an installer because it must run instantly, without the installation (for example, when it’s a portable application that runs from a flash card)

Just a quick example: suppose, your application uses a Flash ActiveX player to display a Flash movie or video. The end users would need a Flash player ActiveX to allow your application work properly. Also, keep in mind that Flash player is not capable of loading files directly from memory. That exposes two major problems: first, you would have to install a Flash player ActiveX, and second, you would have to have the movie in a file. BoxedApp SDK solves these problems: you simply create a virtual file that contains the flash movie, another virtual file that contains the Flash player ActiveX DLL, and virtual registry entries that point to that virtual file. That’s it. Now the application “thinks” that that the Flash player ActiveX is actually installed, so the Flash player works just as if the movie file was actually there.

In other words, you can now embed all DLL and content files, all ActiveX and OCX components, which your application uses, into a single EXE file. BoxedApp SDK doesn’t unpack these files to disk; it doesn’t use temporary files either.

Would like to see BoxedApp SDK in action? Download the demo right now! It includes many examples:

  • The basic example that explains how to create virtual files and registry keys
  • Embedding Flash player and Flash movies

and more!

 

Features

分类: Computer 标签:

方块表情

2009年9月30日 coolspace 没有评论

最近看见一套QQ表情,和qq自带的很像,只是全是方方正正的,看起来不错,呵呵,原作者比较低调,没发现是谁:)

squaer_eif
点击下载方块表情

分类: Computer 标签:

谈谈Action Script Replacer

2009年9月24日 coolspace 没有评论

ASR是buraks公司的三大拳头产品之一,由于官方很少独立销售,大多与asv+uae进行捆绑销售,因此网友大多难得一见。ASR究竟有这么神秘么?虽然没见过ASR真身,但我敢说我下面的一些看法也是八九不离十的。

ASR官方的介绍是:

With ASR you can;

  • See all the scripts in a SWF file. (SWF version 8 and below, Flash 8, Flash MX 2004, MX, 5, 4, 3 generated SWF files officially supported).
  • Replace any script with another compatible script that resides in another SWF file (with batch replace option).
  • Insert/Append a frame actionscript to any frame on any timeline (with batch insert option).
  • Append a frame to any timeline.
  • Change the order of InitClip actions.

总结来说,不外乎以下几个功能

1、从已有的swf中的脚本中提取一部分插入新的swf中

2、替换

3、修改swf中内置脚本的执行顺序

从这里,可以看出,你要想使用asr进行替换或插入,首先必须有一个编译后的as的来源,例如其他的一个swf文件。这是至关重要的,也是其致命缺点之一,无法将手写as编译进去。

另外,现在as已经发展到as3.0阶段,as3.0与as2.0和as1.0是从本质上就不相同的,as2.0和as1.0的脚本是分散在swf的各个元件中的,每段as之间相关性并不大,因此你可以替换一段或插入一段新的as,而对其他as造成不了多大的破坏或影响。

但AS3.0中脚本基本上都是集中的,并且相互依存性比较大,这由其面向对象编程的特点所决定,因此,当替换一段或插入一段新的as时,对as3.0的swf来说,兼容性是个极大的问题,甚至于输出的swf无法运行。

总结一下:如果我料想不错的话,ASR对AS3.0不一定会有支持,即使有,肯定也是鸡肋中的鸡肋。

PS:如上长篇大论皆为本人臆想所得,如有正在使用ASR的朋友发现某方面有出入,可以指出。

分类: Computer 标签: ,

发几颗swf encrypt 6.0 dll version的password

2009年9月22日 coolspace 没有评论

swf encrypt是amayeta公司的拳头产品,在swf保护领域使用的人的确也不少,其发布版本有ide版本和dll版本,dll版本十分适用于集成到自己的程序中。swf encrypt 的dll version的验证方式一向是在调用encfile函数前需要调用password函数输入正确的password,才可以使用这个dll进行swf文件加密。

这里提供几组swf encrypt 6.0 dll version的password,至于dll version的下载地址和使用说明,大家八仙过海吧。

“SWF6-DLL-L875880H-949G6RKM”
“SWF6-DLL-P268460J-712E4QEM”
“SWF6-DLL-M441621V-303M2SSL”
“SWF6-DLL-C844590F-764B7CLV”
“SWF6-DLL-J448819U-556B7CBS”
“SWF6-DLL-K758981R-945N5VQL”
“SWF6-DLL-Q464782K-499J7MYN”
“SWF6-DLL-A163533N-640F3VMH”
“SWF6-DLL-M276915X-688Q6TGD”
“SWF6-DLL-L635195Z-916T2FSM”
“SWF6-DLL-L175743S-586M5AMT”
“SWF6-DLL-S764103E-126X1DCJ”
“SWF6-DLL-Z496370Q-211T2DFC”
“SWF6-DLL-J587830H-650Q1NFQ”
“SWF6-DLL-L308471X-675L5BLN”
“SWF6-DLL-T513948Q-708P6WCL”
“SWF6-DLL-G814203U-371V4WGS”
“SWF6-DLL-F248369D-719Y8CLF”
“SWF6-DLL-W266696Y-412L9JCE”
“SWF6-DLL-R882819E-745M9UWJ”
“SWF6-DLL-K294519D-784L4RRZ”
“SWF6-DLL-B411145T-747H4YLK”
“SWF6-DLL-Y709645R-507G2XPQ”
“SWF6-DLL-C465832Z-662C4MJN”
“SWF6-DLL-V737381C-341T5QAR”

分类: Computer 标签: ,