半冷半暖秋天

2009-06-25

一键访问Google/Gmail

Filed under: Delphi开发 — sunu @ 14:43:01

下载hellogoogle
(压缩包内附Delphi源码),点击“更新hosts”,“保存hosts”,然后重启所有浏览器,就可以访问www.google.com, mail.google.com了。

起码今天是管用的。如果发现不起作用了,可以修改ip.txt中内容,再操作一遍,如果google的ip没有被封的话。

hellogoogle

2009-06-24

从内存中加载动态库

Filed under: C/C++ — sunu @ 19:13:44

http://www.joachim-bauch.de/tutorials/load_dll_memory.html
http://blog.vckbase.com/iwaswzq/archive/2006/07/28/21562.html
http://blog.vckbase.com/iwaswzq/archive/2006/07/28/21563.html

程序使用动态库DLL一般分为隐式加载和显式加载两种,分别对应两种链接情况。本文主要讨论显式加载的技术问题。我们知道,要显式加载一个DLL,并取得其中导出的函数地址一般是通过如下步骤:
(1) 用LoadLibrary加载dll文件,获得该dll的模块句柄;
(2) 定义一个函数指针类型,并声明一个变量;
(3) 用GetProcAddress取得该dll中目标函数的地址,赋值给函数指针变量;
(4) 调用函数指针变量。

这个方法要求dll文件位于硬盘上面。现在假设我们的dll已经位于内存中,比如通过脱壳、解密或者解压缩得到,能不能不把它写入硬盘文件,而直接从内存加载呢?答案是肯定的。经过多天的研究,非法操作了N次,修改了M个BUG,死亡了若干脑细胞后,终于有了初步的结果,下面做个总结与大家共享。

以下为全文及相应源码:
load_dll_memory

2009-06-21

多谢展护卫前来搭救

Filed under: 不知所云 — sunu @ 14:47:27

2009-06-13

测试嵌入原生态html标签

Filed under: 不知所云 — sunu @ 07:57:25

[code lang="html"]

Call javascript function

[/code]

Call javascript function

2009-06-12

测试

Filed under: 不知所云 — sunu @ 20:11:16

代码效果:
[code lang="c" line="1"]
int main(int argc, char**argv){
return 1;
}
[/code]

代码:
[code lang="html" line="1"]

test audio

音频片段:需要 Adobe Flash Player(9 或以上版本)播放音频片段。 点击这里下载最新版本。您需要开启浏览器的 JavaScript 支持。

[/code]
效果:

test audio

音频片段:需要 Adobe Flash Player(9 或以上版本)播放音频片段。 点击这里下载最新版本。您需要开启浏览器的 JavaScript 支持。

代码:
[code lang="html" line="1"]

test video

Get the Flash Player to see this content.

[/code]

test video

Get the Flash Player to see this content.

Powered by WordPress