首页 > 资料收集 > C#调用亦思DLL识别验证码备份

C#调用亦思DLL识别验证码备份

亦思验证码识别

 

下面是关于DLL来识别验证码的方法的,需要亦思破解版的可以加群:37140394,找群主要。这里是自己从易语言的调用方法中修改过来的,有2种识别方式,第一种保存到本地识别,第二种直接在内存中识别。


 

保存到本地识别的方法
  1. public static void Recognition(ref string jieguo, string url, string locatepic, ref string resultpic)
  2. {
  3.     try
  4.     {
  5.         int i = 0;
  6.         int n2 = 0;
  7.         IntPtr n1 = new IntPtr();
  8.  
  9.         IntPtr no1 = Recognition(1, null, 0, url, locatepic, ref n1, ref n2, ref i);
  10.         jieguo = Marshal.PtrToStringAnsi(no1);
  11.      //   Writepic("");     //这行代码的目的是把图片解码成bmp图片,可选。             
  12.     //    resultpic = @"c:\code.bmp";  //默认存放到c:\code.bmp
  13.     }
  14.     catch (System.Exception ex)
  15.     {
  16.     }
  17. }

验证码图片保存到本地识别
  1. imageStream = System.Drawing.Image.FromStream(TianCiClass.GetHttpImageByGet(codeurl, cookie));
  2.     result = "";
  3.     imglocation = "";
  4.     imageStream.Save("code.bmp");
  5.  
  6.    // Thread.Sleep(AddFriendDelyTime * 1000);
  7.  
  8.     TianCiClass.Recognition(ref result, "", "code.bmp", ref imglocation);
  9.     code = result;

下面记录下朋友告诉我的直接内存识别

Code
  1. public static void Recognition(ref string jieguo, byte[] pic, int bytepic, string locatepic)
  2.    {
  3.        try
  4.        {
  5.            int cLength = 0;
  6.            int lpLength = 0;
  7.            IntPtr lppicout = new IntPtr();
  8.            IntPtr ptr = Recognition(1, pic, bytepic, null, locatepic, ref lppicout, ref lpLength, ref cLength);
  9.            jieguo = Marshal.PtrToStringAnsi(ptr);
  10.        }
  11.        catch (Exception)
  12.        {
  13.        }
  14.    }

Code
  1. Image imageStream = System.Drawing.Image.FromStream(TianCiClass.GetHttpImageByGet(codeurl, cookie));
  2.  
  3.       MemoryStream ms = new MemoryStream();
  4.       byte[] imagedata = null;
  5.       imageStream.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp);
  6.       imagedata = ms.GetBuffer();
  7.       string result = "";
  8.       string imglocation = "";
  9.       //   imageStream.Save("pic_.bmp");  
  10.       //   TianCiClass.Recognition(ref result, "", "pic_.bmp", ref imglocation);
  11.       TianCiClass.Recognition(ref result, imagedata, imagedata.Length, imglocation);
  12.       //  pictureBox1.ImageLocation = imglocation;
  13.       //   textBox1.Text = result;
  14.       string code = result;

Popularity: 42% [?]

你可能对下面的内容也感兴趣

分类: 资料收集 标签: , 阅读:3,106
  1. 2011年4月24日12:15 | #1

    求一份

  2. deathsea
    2010年12月7日21:23 | #2

    你好,希望得到一份c#可以引用的dll,拜托楼主。
    谢谢!
    972665379@qq.com

  3. ImRay
    2010年11月13日22:57 | #3

    4040 能将c#可以引用的dll 发一份给我吗? taowaylee@126.com

  4. asdfcfdsa
    2010年11月13日00:05 | #4

    加不了群,能发一份亦思的破解版给我吗。

  5. ImRay
    2010年11月11日12:49 | #5

    你好, 群不能加人哦, 我也希望得到亦思的破解版, 如果可以的话, 麻烦你发一份给我好吗? 谢谢!
    taowaylee@126.com

  6. 八二愚人
    2010年10月28日20:33 | #6

    我的邮箱:66102908@qq.com

  7. 八二愚人
    2010年10月28日20:30 | #7

    你们QQ群怎么满了,加不进去,又发份给我吗,我急等。万份感谢!

  8. Ray Liao
    2010年10月11日19:40 | #8

    你好,能发一份亦思的破解版和c#源码么?非常感谢!

  9. 疯子爸
    2010年9月28日19:23 | #9

    您好 可以吧c#可以引用的dll,并进行调用的代码给我看看是如何写的么 最好是控制台应用程序 的 我这经常在报一个“尝试读取或写入受保护的内存。这通常指示其他内存已损坏。” 这个错 我循环调用100次到底4次的时候就已经报错了,还请指教

  10. hyblusea
    2010年9月10日14:00 | #10

    你好, 能要一份C#调用 亦思DLL的源码吗? 谢谢
    我的邮箱, hyblusea@126.com

  11. hyblusea
    2010年9月10日13:57 | #11

    你好, 能要一份C#亦思DLL的源码吗? 谢谢
    我的邮箱, hyblusea@126.com

  12. ade
    2010年9月1日20:49 | #12

    楼主,能发我份吗,那个群不让加人了
    谢谢

  13. 2010年7月6日00:13 | #13

    你好,我没有联系到那个群的群主,我却依然希望得到亦思的破解版,若你有的话,希望你能发到我的邮箱,(包括c#可以引用的dll,我在你代码里看到几个未知的方法,不解其意),感激不尽

  1. 本文目前尚无任何 trackbacks 和 pingbacks.

3718150474633154929112424204136344840324513627301092612313516391742725322194423144338215828