读书人

解析lotus notes 邮箱的nsf文件时怎么

发布时间: 2012-01-21 21:31:43 作者: rapoo

解析lotus notes 邮箱的nsf文件时如何绕过身份验证?即不用选择id文件也能对其进行解析
本人现在做一小程序,要将nsf文件里面的邮件信息提取出来,安装了lotus notes客户端,并用notes.jar 基本实现了该功能,但问题是 :根据notes.jar的API,需要提供身份验证文件(.id)和密码,如果没有则解析不了。想请教对此有研究的大侠,有没有方法可以绕过身份验证?不管是通过编码方式或者是通过第三方软件破解的方式都行!

对于编码方式,本人愚钝,实在是想不出好的方法(或者说是对notes.jar 的API不熟);

而第三方软件在网上倒是找到几个,都是国外的收费软件,如 PDS NSF Security Remover,Systools Securase,都说能移除本地nsf文件的身份验证,但只提供demo版下载,不知大家能否搞到full version?

万分感谢!!

下面贴出已实现的代码:

Java code
try{                String idfile="G:\\testNsf\\admin.id";               String pwd="123";               NotesThread.sinitThread(); // 启动线程               Session session = NotesFactory.createSession();                Registration r=session.createRegistration();               r.switchToID(idfile,pwd);   //关键!此外即为身份验证的代码               Database db = session.getDatabase("", "G:\\testNsf\\administ.nsf",true);               View vw = db.getView ("($Sent)");                 Document doc = vw.getFirstDocument();                      int i=1;               while (doc != null) {                              System.out.println("----------------------第"+i+"封邮件");                              System.out.println ("Subject:"+doc.getItemValueString("Subject"));                   doc = vw.getNextDocument(doc);                         i++;                                }    }catch(NotesException e){           e.printStackTrace();   }finally {             NotesThread.stermThread(); // 结束该线程   }


[解决办法]
华为就用的notes,关注你的帖子
不行你就反编译下NotesFactory看看。
[解决办法]
lz v5想破解notes,哈哈,没那么简单的,华为都是用这个,

读书人网 >Java相关

热点推荐