C#调用亦思DLL识别验证码备份
下面是关于C#调用亦思DLL来识别验证码的方法的,需要亦思破解版的可以加群:37140394,找群主要。这里是自己从易语言的调用方法中修改过来的,有2种识别方式,第一种保存到本地识别,第二种直接在内存中识别。
保存到本地识别的方法
- public static void Recognition(ref string jieguo, string url, string locatepic, ref string resultpic)
- {
- try
- {
- int i = 0;
- int n2 = 0;
- IntPtr n1 = new IntPtr();
- IntPtr no1 = Recognition(1, null, 0, url, locatepic, ref n1, ref n2, ref i);
- jieguo = Marshal.PtrToStringAnsi(no1);
- // Writepic(""); //这行代码的目的是把图片解码成bmp图片,可选。
- // resultpic = @"c:\code.bmp"; //默认存放到c:\code.bmp
- }
- catch (System.Exception ex)
- {
- }
- }
验证码图片保存到本地识别
- imageStream = System.Drawing.Image.FromStream(TianCiClass.GetHttpImageByGet(codeurl, cookie));
- result = "";
- imglocation = "";
- imageStream.Save("code.bmp");
- // Thread.Sleep(AddFriendDelyTime * 1000);
- TianCiClass.Recognition(ref result, "", "code.bmp", ref imglocation);
- code = result;
下面记录下朋友告诉我的直接内存识别
Code
- public static void Recognition(ref string jieguo, byte[] pic, int bytepic, string locatepic)
- {
- try
- {
- int cLength = 0;
- int lpLength = 0;
- IntPtr lppicout = new IntPtr();
- IntPtr ptr = Recognition(1, pic, bytepic, null, locatepic, ref lppicout, ref lpLength, ref cLength);
- jieguo = Marshal.PtrToStringAnsi(ptr);
- }
- catch (Exception)
- {
- }
- }
Code
- Image imageStream = System.Drawing.Image.FromStream(TianCiClass.GetHttpImageByGet(codeurl, cookie));
- MemoryStream ms = new MemoryStream();
- byte[] imagedata = null;
- imageStream.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp);
- imagedata = ms.GetBuffer();
- string result = "";
- string imglocation = "";
- // imageStream.Save("pic_.bmp");
- // TianCiClass.Recognition(ref result, "", "pic_.bmp", ref imglocation);
- TianCiClass.Recognition(ref result, imagedata, imagedata.Length, imglocation);
- // pictureBox1.ImageLocation = imglocation;
- // textBox1.Text = result;
- string code = result;
Popularity: 42% [?]
求一份
你好,希望得到一份c#可以引用的dll,拜托楼主。
谢谢!
972665379@qq.com
加不了群,能发一份亦思的破解版给我吗。
你好, 群不能加人哦, 我也希望得到亦思的破解版, 如果可以的话, 麻烦你发一份给我好吗? 谢谢!
taowaylee@126.com
我的邮箱:66102908@qq.com
你们QQ群怎么满了,加不进去,又发份给我吗,我急等。万份感谢!
你好,能发一份亦思的破解版和c#源码么?非常感谢!
您好 可以吧c#可以引用的dll,并进行调用的代码给我看看是如何写的么 最好是控制台应用程序 的 我这经常在报一个“尝试读取或写入受保护的内存。这通常指示其他内存已损坏。” 这个错 我循环调用100次到底4次的时候就已经报错了,还请指教
你好, 能要一份C#调用 亦思DLL的源码吗? 谢谢
我的邮箱, hyblusea@126.com
你好, 能要一份C#亦思DLL的源码吗? 谢谢
我的邮箱, hyblusea@126.com
楼主,能发我份吗,那个群不让加人了
谢谢
你好,我没有联系到那个群的群主,我却依然希望得到亦思的破解版,若你有的话,希望你能发到我的邮箱,(包括c#可以引用的dll,我在你代码里看到几个未知的方法,不解其意),感激不尽
已经发给你了。