自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

开心乐源的专栏

关于互联 关于安全

  • 博客(173)
  • 资源 (7)
  • 收藏
  • 关注

原创 使用wine在ubuntu上运行和制作deb安装包

windows和linux,作为典型的PC操作系统,分为内核态的系统调用和用户态的API。所以在linux上模拟windows的api是可能的,只要实现了ntdll的API兼容实现(部分或者全部),在通过对PE文件的拆解和定位,就可以将所有的调用通过树状结构汇总到ntdll。然而是线上,还是相当工作需要执行,比如如何在用户态或者linux内核其他对象来模拟windows的句柄概念(windows内核对象的访问方式)?deb打包有详细的debian文档支持,这里从一个已有的deb包作为base来打包。

2022-11-28 11:06:28 1262 1

原创 Git 的内部工作原理

通过本次分享学习 Git 的内部工作原理和实现方式。学习这部分内容对于理解 Git 的用途和强大至关重要。首先要弄明白一点,从根本上来讲 Git 是一个内容寻址(content-addressable)文件系统,并在此之上提供了一个版本控制系统的用户界面。

2022-11-28 09:08:24 1102

原创 Wireshark分析https流量

wireshark分析https流量

2022-09-13 10:55:38 1463 1

原创 build php module

Creating directory hubCreating basic files: config.m4 config.w32 .svnignore hub.c php_hub.h CREDITS EXPERIMENTAL tests/001.phpt hub.php [done].To use your new extension, you will have to execute the...

2018-11-30 18:32:55 282

原创 以太坊 - Whisper:一个点对点的隐秘消息传输网络

https://github.com/ethereum/go-ethereum/wiki/Whisper-OverviewWhisper OverviewWhisper is a pure identity-based messaging system. Whisper provides a simple low-level API without being based upon or ...

2018-05-16 08:00:19 2657

原创 【BOP】- Introductions of Blockchain Oriented Programming

Blockchain Oriented Programming

2018-04-26 18:12:42 391

原创 【nodejs】调试

use v8.9.3 instead of v0.10.x version of nodejscompile a debuggeevar hell = 'world';console.log(hello.length); // undefined errorstartup debuggee witho nodejs$node --inspect-brk=0.0.0...

2018-02-08 10:33:15 702

原创 【以太坊】Debugging Ethereum-cpp

Source $git clone –recursive https://github.com/ethereum/cpp-ethereumDepends $ cd cpp-ethereum $ sh scripts/install_deps.shBuildNOTE: remove GUI, MINIUPNPC, VMJIT, TESTS etc. from CMakeLis

2016-08-31 14:46:10 5978 2

原创 【BitMail】A Peer-to-Peer Instant Messenger Client

BitMail: a Peer-to-Peer Instant Messenger Client.

2016-06-22 11:07:38 664

原创 【OpenSSL】SMIME Group Message

IntroductionHere GroupMessage means that a message is sent to a group of recipients.

2016-04-28 10:07:01 834

原创 【OpenSSL】base64 with EVP codecs

IntroductionHere are some deoms code of Base64 encoding/decoding with EVP_Encode/EVP_Decode.Encodebool Base64Encode(const std::vector<unsigned char > & vchInput, std::string & b64str){ EVP_ENCOD

2016-04-28 09:25:05 1727

原创 【OpenSSL】base64 with BIO filter

IntroductionThere are many ways to do base64 encoding/decoding in OpenSSL, Here are some demos code with BIO filter. Other ways, e.g. EVP_* will be introduced later Base64 with EVP.Encodestd::string

2016-04-28 09:18:02 746

原创 【OpenSSL】ssl client

practice of s_client from openssl

2015-10-23 14:33:00 1287

原创 【GNU-Basic】How to daemon

欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:Markdown和扩展Markdown简洁的语法代码块高亮图片链接和图片上传LaTex数学公式UML序列图和流程图离线写博客导入导出Markdown文件丰富的快捷键快捷键加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl

2015-10-21 09:13:53 653

原创 【GNU-Basic】Hi, Makefile

Hi, Makefile. Long time no see.

2015-10-10 09:44:05 610

转载 Linux I/O Models

http://www.ibm.com/developerworks/library/l-async/The most common input/output (I/O) model used in Linux® is synchronous I/O. After a request is made in this model, the application blocks until

2015-09-29 11:55:46 1259

原创 【V8.Internal】Building V8 from bootstrap

Prerequisitedepot_tools A collection of tools used to sync repository with the huge chromium project.gyp A python module used to generate building system, that is, GYP is a meta generating tool. si

2015-09-01 08:49:13 1226

原创 【OpenSSL】Memory BIO

Test code#include <stdio.h>#include <stdlib.h>#include <string.h># include <openssl/e_os2.h># include <openssl/bio.h># include <openssl/err.h># include <openssl/bn.h># include <openssl/rsa.h># i

2015-04-21 18:12:53 1640

原创 【OpenSSL】Access PEM

Test code#include <stdio.h>#include <stdlib.h>#include <string.h># include <openssl/e_os2.h># include <openssl/bio.h># include <openssl/err.h># include <openssl/bn.h># include <openssl/rsa.h># i

2015-04-21 18:10:55 1437 3

原创 【OpenSSL】Sign & Verify

Prepare Test dataecho -n "hello world" > msg.txtsign means that encrypt a little data (usually digest of message, not the message itself) with private key. so do NOT sign with a large input, which ma

2015-03-26 16:37:38 5278

原创 【Win32API】CreateProcess启动脚本

脚本ping -w 1000 -n %1 1.0.0.1exitc代码#include "stdafx.h"#include <string>#include <Windows.h>static void runScript(const char * cmdline);int _tmain(int argc, _TCHAR* argv[]){ runScript(" /k c:\\t

2015-03-11 10:55:50 1109

原创 【OpenSSL】Generation of RSA key pair

1. RSA密钥生成1. 测试代码#include <stdio.h>#include <stdlib.h>#include <string.h># include <openssl/bio.h># include <openssl/err.h># include <openssl/bn.h># include <openssl/rsa.h># include <openssl/evp.

2015-02-27 15:11:56 1668

原创 【OpenSSL】内存BIO

代码头文件 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <openssl/buffer.h> #include <openssl/bio.h>#记得包含openssl/buffer.h,否则BUF_MEM定义未知测试代码int main(int argc, char *

2015-02-25 17:36:10 1047

原创 【OpenSSL】使用SMIME发送签名和加密邮件

1,通信双方的证书生成openssl genrsa -out cakey.pem 2048openssl req -new -key cakey.pem -subj "/CN=rootca.bitbaba.com" -out cacsr.pemopenssl x509 -req -in cacsr.pem -days 999 -signkey cakey.pem -out cacert

2015-02-25 15:48:52 9688 1

原创 【OpenSSL】使用证书和私钥导出P12格式个人证书

参考上文【OpenSSL】创建证书1, 产生CA证书1.1, 生成ca的私钥openssl genrsa -out cakey.pem 20481.2, 生成ca的自签名证书请求openssl req -new -key cakey.pem -subj "/CN=Example Root CA" -out cacsr.pem 1.3, 自签名ca的证书openssl x509 -req -in ...

2015-02-16 11:27:21 15870

原创 【OpenSSL】创建证书

1)生成根证书1.1) 生成RSA私钥openssl genrsa -out cakey.pem 20481.2) 生成证书请求openssl req -new -key cakey.pem -out cacsr.pem1.3) 签发自签名证书openssl x509 -in cacsr.pem -req -signkey cakey.pem -da

2015-02-15 14:18:10 4830 1

原创 【OpenSSL】为Android系统构建OpenSSL

参考Wiki:http://wiki.openssl.org/index.php/AndroidWhile the Executive Summary provided the whirlwind instructions for building and installing the OpenSSL library, this sections provides detail

2015-02-10 13:18:30 5932 1

转载 Linux 实时信号程序中锁的探索

原文地址:http://www.ibm.com/developerworks/cn/linux/l-cn-signallocks/前言Linux 下的信号分为可靠信号和不可靠信号,或称为实时信号和非实时信号,对应于 Linux 的信号值为 1-31 和 34-64。对于他们的分类以及应用的时的区分并不在本文的讨论范围之内,读者可参考文献 1,对其应用做初步的了解。本

2015-02-04 10:39:32 970

原创 TCP状态转换图

备份一下,网络程序调试的时候用的着

2014-07-15 11:04:19 1098

原创 JSON格式配置文件

最近写了一个打印机的项目,用到配置,希望比较轻量,zhe

2014-07-09 12:01:58 5853

原创 【Qt编程】- 基本项目

1, 用向导生成一个框架

2014-05-23 16:20:55 1355

原创 【Qt编程】- 信号槽

http://woboq.com/blog/how-qt-signals-slots-work.htmlhttp://ntcore.com/files/qtrev.htmhttp://qt-project.org/doc/qtcreator-2.6/creator-targets.html2018.7 补充:信号槽机制有2种实现方式:1)直接连接,同一个线程的信号和槽是同步关联...

2014-05-21 17:55:03 1513

原创 【Qt编程】- 入门

下载安装qt-4.8.6预编译的windows版本,

2014-05-15 16:54:16 1182

原创 【Android开发】- HelloWorld

在移动互联网时代,做产品基本上离不开这几个领域,and

2014-05-10 16:58:22 618

原创 Eclipse & MinGW

主要讲讲eclipse和mingw环境的配置,做一个备忘。

2014-05-10 10:55:12 1378

原创 创建并保存位图

static void savetobmp(BITMAPINFOHEADER* bmih, void * buffer, int lBufferLen){    BITMAPFILEHEADER bmpFileHeader;    ZeroMemory(&bmpFileHeader, sizeof(bmpFileHeader));    bmpFileHeader.bfType =

2014-04-08 16:33:10 1063

原创 把无线网卡设置成wifi热点

常见的tp-link网卡是使用的国外著名厂商ralink的芯片,支持标准的802.11各种协议,当然也可以工作在host模式,也就是热点。在win7下,首先用驱动精灵安装好你的网卡的驱动。1,设置成无线host模式:netsh wlan set hostednetwork mode=allow ssid=mytestap key=mytestpassword2,启动

2014-04-02 14:21:33 3384

原创 MingW64和MSYS开发环境

预编译的最新的mingw64下载地址:http://mingw-w64.sourceforge.net/首先说明这里提到的host,target是指制作这些工具链的时候的设置,不是大家用这些工具链编译程序时候的设置,应用场景不一样,请对号入座。HOST=Linux TARGET=Windows1)运行在32bit的linux上的工具链,用来生成win

2014-02-13 15:37:09 5740

原创 Diffie-Hellman密钥交换

参考:迪菲-赫尔曼密钥交换密钥交换的过程,是通信双方AB协商一个公共密钥的过程,该过程的输出是一个密钥K,这个密钥K用于接下来的AB间的通信过程的加解密。考虑到因特网可以被窃听,需要一个算法来保护这个协商过程,确保只有AB知道协商的。很自然大家会想到非对称加密机制,实际上DH密钥交换过程确实比RSA算法早。举个例子:A使用一个只有他自己知道的整数Sa,B使用一个

2014-02-08 14:19:53 3800

原创 HTTPS通信建立过程

参考The First Few Milliseconds of an HTTPS Connection测试环境,server: https://www.google.com.hkclient: ie/win7wireshark 1.10.1表达式: tcp.port==443 && ip.addr=172.194.127.19 && ssl主要步骤:

2014-02-08 12:55:18 5026

以前的人工智能.pdf

高等教育版人工智能教材,主要是供大家看一下那个时代的神经网络的前世,和科学家们在深度神经网络问世之前(超过三层)基于各种技术对于AI方向的探索。有些看起来是暂时失败了,有些被改造并应用的如火如荼(nn)。温故而知新吧。希望有用。

2019-05-16

Learn Objective–C on the Mac

Learn Objective–C on the Mac Learn Objective–C on the Mac Learn Objective–C on the Mac Learn Objective–C on the MacLearn Objective–C on the Mac

2018-08-07

vax-v1.0.0

visual studio development, c++, visual c++

2014-07-07

intel ipp 编解码器

intel ipp 编解码器 支持h264格式(不带splitter信息)到yuv格式转换。

2012-05-22

windows版本8bit的x264视频转码工具

windows版本8bit的x264视频转码工具

2012-05-21

简单实用的文件加密工具

一个集成在windows资源管理器右键菜单里的文件加解密工具。

2009-06-08

Inside L4/MIPS

微内核L4操作系统在MIPS芯片上的实现。

2008-08-19

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

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