我喜欢黑夜,喜欢网络安全,孤独寂寞的黑夜里,我只需要,一包烟,一台笔记本...
更多
首  页>>JAVA安全开发>> C#安全开发C#实现在线各大网站的Md5密文查询破解
C#实现在线各大网站的Md5密文查询破解
5577
1推荐
0评论

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using System.Net;
using System.IO;

namespace OnlineMd5Crack
{
public partial class Main : Form
{
public Main()
{
InitializeComponent();
}
String url = "";
private void button1_Click(object sender, EventArgs e)
{

//md5破解http接口
this.url = "http://md5.hk/index.asp?md5="+this.txt_pass.Text.Trim();
this.txt_info.Text = "正在破解,请稍后...";
ThreadStart pth = new ThreadStart(this.ThreadMethod);
Thread th = new Thread(pth);
th.Start();
}

public void ThreadMethod()
{


Uri uri = new Uri(url);
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uri);
request.UserAgent = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; .NET4.0C; .NET4.0E)";
request.Accept = "*/*";
request.ContentType = "application/x-www-form-urlencoded;";
request.Method = "get";
HttpWebResponse response = (HttpWebResponse)request.GetResponse();

Stream s = response.GetResponseStream();

String str = new StreamReader(s, Encoding.GetEncoding("GB2312")).ReadToEnd();
int start = str.IndexOf("

");
int end = str.IndexOf("
", start);

String result = str.Substring(start, end - start).Replace("

", "");
this.txt_info.Text = "破解结果:" + result;

}

}
}

vs2008解决方案,此文章提供的只是一个思路,利用http接口我们可以做很多事。

源码包下载:

OnlineMd5Crack.rar

已经有 ( 0 ) 位网友对此发表了自己的看法,你也评一评吧! 此文不错,我要推荐-->    推 荐
欢迎参与讨论,请在这里发表您的看法、交流您的观点@禁止各种脚本

  • 点击Top
  • 推荐Top
  • 评论Top
更 多>>
本站采用Java语言开发,Spring框架,欢迎朋友们提意见。重新对页面进行布局,修改了程序,方便开源使用,由于本人美工真的不行 ,很少用背景图片,页面基本都用背景色...
主题:无色无味 | 网站地图|
Copyright (c) 2012-2013 www.shack2.org All Rights Reserved. | 空ICP备111111111号 | 程序设计: shack2 Powered by SJBlog v1.0 联系QQ:1341413415