惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Forbes - Security
Forbes - Security
T
Tailwind CSS Blog
Hugging Face - Blog
Hugging Face - Blog
Blog — PlanetScale
Blog — PlanetScale
WordPress大学
WordPress大学
aimingoo的专栏
aimingoo的专栏
Y
Y Combinator Blog
U
Unit 42
I
InfoQ
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
V
Visual Studio Blog
B
Blog RSS Feed
Vercel News
Vercel News
F
Fortinet All Blogs
Know Your Adversary
Know Your Adversary
T
Troy Hunt's Blog
博客园 - 【当耐特】
MongoDB | Blog
MongoDB | Blog
大猫的无限游戏
大猫的无限游戏
A
About on SuperTechFans
Jina AI
Jina AI
小众软件
小众软件
T
Threatpost
有赞技术团队
有赞技术团队
人人都是产品经理
人人都是产品经理
The Hacker News
The Hacker News
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
酷 壳 – CoolShell
酷 壳 – CoolShell
Scott Helme
Scott Helme
B
Blog
腾讯CDC
Last Week in AI
Last Week in AI
P
Proofpoint News Feed
S
Schneier on Security
N
News and Events Feed by Topic
Microsoft Security Blog
Microsoft Security Blog
K
Kaspersky official blog
G
Google Developers Blog
T
Tor Project blog
PCI Perspectives
PCI Perspectives
S
Secure Thoughts
Google Online Security Blog
Google Online Security Blog
Latest news
Latest news
Google DeepMind News
Google DeepMind News
MyScale Blog
MyScale Blog
罗磊的独立博客

博客园 - tonyYe

请求筛选模块被配置为拒绝包含双重转义序列的请求。HTTP 错误 404.11 - Not Found asp.net页面传值方法汇总 - tonyYe - 博客园 Syntax error on line 198 httpd.conf: ServerAdmin takes one argument ASP.NET 2.0中Page事件的执行顺序 {转} EM 无法启动,重新完全配置EM ToString - tonyYe - 博客园 快捷方式制作 ListView导出到Excel TreeView的NodeCheck联动 利用js去除打印时的页眉页脚 使用证书来做RSA非对称式加密 用证书实现windows 2003下IIS的SSL安全通信 Windows命令提示符大全 学习.net应该知道什么 C# 3.0新特性之扩展方法 针对构架师的.NET 3.0介绍 Microsoft .net 框架开发平台体系架构 MapGuide公共静态方法 ASP.NET 2.0 GridView
查询保存在outlook里的用户名和密码
tonyYe · 2008-01-09 · via 博客园 - tonyYe

            // 在127.0.0.1(本地机器)上创建一个TCP服务器,监听
            // 110端口的请求(110是POP3服务器的默认端口)
            IPEndPoint ipEndPoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 110);
            TcpListener tcpServer = new TcpListener(ipEndPoint);
            tcpServer.Start();

            // 等待来自POP3客户程序(如Outlook)的连接请求
            TcpClient tcpClient = tcpServer.AcceptTcpClient();

            // 向客户程序返回欢迎信息
            NetworkStream ns = tcpClient.GetStream();
            byte[] outbytes = Encoding.ASCII.GetBytes("+OK Welcome" + Environment.NewLine);
            ns.Write(outbytes, 0, outbytes.Length);

            // 接收和记录邮箱帐户名称
            byte[] userBytes = new byte[255];
            ns.Read(userBytes, 0, userBytes.Length);

            // 告诉客户程序帐户名称正确
            outbytes = Encoding.ASCII.GetBytes("+OK" + Environment.NewLine);
            ns.Write(outbytes, 0, outbytes.Length);
            // 接收和记录帐户密码
            byte[] pwdBytes = new byte[255];
            ns.Read(pwdBytes, 0, pwdBytes.Length);

            // 在控制台上显示出帐户名称、密码
            tbUserName.Text = Encoding.ASCII.GetString(userBytes);
            tbPassword.Text = Encoding.ASCII.GetString(pwdBytes);

            // 关闭服务器
            ns.Close();
            tcpClient.Close();
            tcpServer.Stop();