修也

实践出真知.

使用java证书开发包,测试开发用例

package com.xiuye.test; import java.util.Date; import java.util.List; import org.junit.Test; import com.xiuye.cert.DigitalCertificateGenerator; im...

2017-01-18 13:03:52

阅读数:886

评论数:3

windows让自签证书受信任(自签根证书受信任就行了)设置

输入:mmc->控制台

2017-01-18 10:59:30

阅读数:4578

评论数:0

java 生成证书和签发证书(纯代码,编译通过)

package com.xiuye.cert; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; ...

2017-01-17 17:42:42

阅读数:3970

评论数:6

获取当前指令执行地址

void CurrentIpAddress(int *b){ int a = 0; __asm{ mov eax,[ebp+4]; mov a,eax; } *b = a; } int a = 0; CurrentIpAddress(&a); block: ...

2017-01-15 17:55:32

阅读数:435

评论数:0

栈,ebp和esp寄存器的简单探索

#include using namespace std; void ff(){ cout << "f executing "<< endl; int a =0,b = 0,c = 0,d = 0,e =0; /* * cpu 的读值顺序,...

2017-01-15 16:03:22

阅读数:257

评论数:0

函数参数与堆栈有关,与寄存器无关

#include using namespace std; void f(int a,int b){ cout << "c++ inline asm " << endl; cout << "a := " <&...

2017-01-15 11:44:09

阅读数:312

评论数:0

windows socket 客户端

#include #include using namespace std; #pragma comment(lib,"ws2_32.lib") #define PORT 8888 #define IP_ADDRESS "127.0.0.1" int mai...

2017-01-09 17:14:29

阅读数:247

评论数:0

windows 服务器 --- java 客户端

#include #include using namespace std; #pragma comment(lib,"ws2_32.lib") #define PORT 8888 #define IP_ADDRESS "127.0.0.1" DWORD W...

2017-01-09 16:54:50

阅读数:215

评论数:0

windows下获取pc一些新的批处理脚本

@echo off //"@" 不显示自身, off 不显示运行命令 echo bios info >> info.txt echo "bios..." wmic bios >> info.txt echo cpu info >...

2017-01-08 01:58:46

阅读数:363

评论数:0

Rmi Hello World (实践rmi)

package com.xiuye.rmi; import java.rmi.Remote; import java.rmi.RemoteException; public interface IHello extends Remote { /** * java.rmi.server....

2017-01-06 12:18:47

阅读数:221

评论数:0

openejb Example1

package com.xiuye.ejb; import java.util.Date; import java.util.Properties; import javax.naming.Context; import javax.naming.InitialContext; import ...

2017-01-05 17:43:11

阅读数:319

评论数:0

java HTTP download

public static void download(String resourceUrl, String outputFileNamePath) { URL url = null; FileOutputStream fos = null; InputStream is = null...

2017-01-05 14:18:19

阅读数:499

评论数:0

内嵌汇编 jmp

#include using namespace std; int main(){ R: cout << "see you" << endl; //goto R; __asm{ mov eax,R jmp eax } ret...

2017-01-04 11:35:24

阅读数:268

评论数:0

汇编(指令cpuid)获取cpu信息

#include using namespace std; int main(){ unsigned int meax; unsigned int mebx; unsigned int mecx; unsigned int medx; __asm{ xor eax,eax cp...

2017-01-03 17:37:35

阅读数:1219

评论数:0

AT&T内嵌汇编

#include using namespace std; int main(){ int a = 3; int b = 5; int c = 0; __asm__ __volatile__("mov %1,%0":"=r"(c):"r&...

2017-01-03 16:34:13

阅读数:248

评论数:0

java自定义证书管理器

package com.xiuye.security.keymanager; import java.net.Socket; import java.security.KeyStore; import java.security.KeyStoreException; import java.se...

2017-01-02 21:04:48

阅读数:349

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭