05 2015 档案

摘要:一、Socket简介Socket是进程通讯的一种方式,即调用这个网络库的一些API函数实现分布在不同主机的相关进程之间的数据交换。几个定义:(1)IP地址:即依照TCP/IP协议分配给本地主机的网络地址,两个进程要通讯,任一进程首先要知道通讯对方的位置,即对方的IP。(2)端口号:用来辨别本地通讯进... 阅读全文
posted @ 2015-05-09 20:49 luzhiyuan 阅读(240) 评论(0) 推荐(0)
摘要:工具类:import java.lang.reflect.Field;import java.lang.reflect.InvocationTargetException;import java.lang.reflect.Method;public class RefInvoke { ... 阅读全文
posted @ 2015-05-03 18:19 luzhiyuan 阅读(321) 评论(0) 推荐(0)
摘要:#include #include #include #include #include #include #include #include #include #include #include /**************************************************... 阅读全文
posted @ 2015-05-03 18:14 luzhiyuan 阅读(1475) 评论(0) 推荐(0)
摘要:java代码://Application类,壳入口public class MainApplication extends Application { public native void Decrypt(Context context); public native Objec... 阅读全文
posted @ 2015-05-03 18:01 luzhiyuan 阅读(751) 评论(0) 推荐(0)
摘要:以ReadFile为例ntdll.dll导出了ZwReadFile和NtReadFile在用户态不管你调用ZwReadFile还是NtReadFile都是一样的因为他们是同一个函数的两个不同名称而已....而且他们最终都会调用到ntoskrnl中的NtReadFile中去在内核态ntoskrnl.e... 阅读全文
posted @ 2015-05-03 01:08 luzhiyuan 阅读(1508) 评论(0) 推荐(0)
摘要: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) ... 阅读全文
posted @ 2015-05-02 19:40 luzhiyuan 阅读(193) 评论(0) 推荐(0)