03 2012 档案

摘要:要求在.Net端生成公钥私钥对。然后在.Net端使用RSA公钥加密;在Linux端使用RSA私钥解密。最初的尝试是:.Net端使用RSACryptoServiceProvider; Linux端使用OpenSSL搞了整整5个小时,有木有啊,有木有啊! .Net的RSA和OpenSSL对不上,有木有啊,有木有啊!人都搞晕了就是对不上。最后解决方式换成了,.Net端使用 OpenSSL.Net..Net端代码string publicKeyFile = context.Server.MapPath("~/App_Data/public.pem"); using( RSA rsa 阅读全文
posted @ 2012-03-28 11:51 Hanf 阅读(2221) 评论(0) 推荐(0)
摘要:1.启动客户端 生成一个固定封包,长度0x4F, 发送到服务器 (内容应包含rsa公钥, 客户端版本)2.服务器用RSA公钥加密信息返回长度0x4C,后0x40是RSA密文, 用RSA私钥进行RSA解密, 得到 加密_key3.用加密_key 对 密码(username+0x28+0x0+SHA1(password)) 进行简单加密(此加密已实现) 发送加密后的封包登录.--------------------------------------------2012.3.26 跟踪日志已跟踪至此,除第1条,其它已证实. 阅读全文
posted @ 2012-03-21 15:12 Hanf 阅读(239) 评论(0) 推荐(0)
摘要:OllyDbg supports very complex expressions. Formal grammar of expressions is described at the end of this topic, but honestly - you are not interested in it, are you? So I'll begin with examples:10 - constant 0x10 (unsigned). All integer constants are assumed hexadecimal unless followed by a deci 阅读全文
posted @ 2012-03-20 12:52 Hanf 阅读(3465) 评论(0) 推荐(2)
摘要:-----------------------------物理层:HUB,网线链路层:MAC,ARP,交换机网络层:IP,ICMP,IGMP,路由器传输层:TCP,UDP会话层:HTTP,SMTP,FTP,POP3表示层:SOAP,SSL应用层:WebService的Method-------------------------------Socket是对网络层操作TcpClient是对传输层操作ASP.NET是对会话层操作=================================如果用Socket访问IIS,要做如下考虑:网络层:使用什么网络层协议,如IPV4还是IPV6;如果开发路 阅读全文
posted @ 2012-03-08 23:04 Hanf 阅读(2205) 评论(0) 推荐(0)

Copyright © 2008-2016 Hanf All Rights Reserved