摘要:
1. 无分支求绝对值1 mov ax, tmp2 cwd3 xor ax, dx4 sub ax, dx2. 判断是否为01 cmp ax, 02 3 test ax, ax3. 判断奇偶1 test ax, 01h4. 判断正负1 test ax, 8000h5. 取模优化1 x % (2^n) ... 阅读全文
摘要:
Eclipse下NDK开发。新建android项目后,右键添加native支持,将Application.mk拷贝到jni目录下,支持生成可执行文件。APP_ABI := armeabiAPP_PLATFORM := android-8APP_STL := gnustl_staticAPP_CPPF... 阅读全文
摘要:
[oledb]; Everything after this line is an OLE DB initstringProvider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=te... 阅读全文
摘要:
1. ps | grep crackme2. gdb --pid 如果附加进程不成功,可以附加该进程的线程 执行 ls /proc//task 查看该的线程 如果不能查看线程信息,根据经验,tid一般在 pid+2~ pid+15 之间 附加上后,在gdb中执行info proc maps... 阅读全文
摘要:
auto i,fp;fp = fopen("d:\\dump.dex","wb");for(i=0x46B6D000;i<0x46B6f000;i++)fputc(Byte(i),fp); 阅读全文
摘要:
1. dg 0 100查看gdt所指向的全局描述符表2. !process 0 0查看所有进程信息,其中Cid为PID,DirBase为CR3,Image为进程名。!process查看当前进程信息3. uf nt!ZwCreateFileu查看反汇编,uf查看函数完整的反汇编4. x nt!*cre... 阅读全文
摘要:
1 #源文件路径,call my-dir调用my-dir宏,返回Android.mk的路径 2 LOCAL_PATH := $(call my-dir) 3 4 #生成so 5 include $(CLEAR_VARS) 6 LOCAL_MODULE := First 7 LOCAL_SR... 阅读全文
摘要:
Ring3测试程序:http://blog.csdn.net/zj510/article/details/82163211.readfile和writefile可以实现应用程序与驱动程序通信,另外一个Win32 API 是DeviceIoControl。应用程序自定义一中IO控制码,然后调用Devi... 阅读全文
摘要:
原文链接:http://blog.sina.com.cn/s/blog_967817f20101bsf0.html参考链接:http://www.cnblogs.com/Dahaka/archive/2012/02/19/2358528.html因为pthread_cond_wait函数包含了很多操... 阅读全文