苏飞论坛

 找回密码
 马上注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

分布式系统框架(V1.3) 轻松承载百亿数据,千万流量!讨论专区 - 源码下载 - 官方教程

HttpHelper万能框架(V2.3-含.netcore) HttpHelper官方出品,无敌框架讨论区 - 源码下载 - 在线测试和代码生成

HttpHelper爬虫类(V2.0) 最牛的爬虫类,没有爬不到只有想不到 源码 - 代码生成器 - 讨论区 - 教程- 例子

查看: 411|回复: 4

[咨询站长] SVG验证码如何用飞哥的类破

[复制链接]
发表于 2019-7-31 10:23:38 | 显示全部楼层 |阅读模式
飞哥,你好!
飞哥,请问如何破以下网站的验证码,麻烦指导一下思路,谢谢!
网址:https://vipc.cn/i/verify/image?__=1564539208686
代码:
HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
    URL = "https://vipc.cn/i/verify/image?__=1564539208686",//URL     必需项
    Method = "GET",//URL     可选项 默认为Get
    Timeout = 100000,//连接超时时间     可选项默认为100000
    ReadWriteTimeout = 30000,//写入Post数据超时时间     可选项默认为30000
    IsToLower = false,//得到的HTML代码是否转成小写     可选项默认转小写
    Cookie = "aliyungf_tc=AQAAAMq3jjMBswAACutScQG74ZmKdtdO; vid=5d40f6c0118ee0001619f1c1; __guid=71793556.2633522106849539000.1564538560171.6497; monitor_count=1; Hm_lvt_440c628e979f4b5049ea8b0ea7ecf9aa=1564538561; Hm_lpvt_440c628e979f4b5049ea8b0ea7ecf9aa=1564538561",//字符串Cookie     可选项
    UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0",//用户的浏览器类型,版本,操作系统     可选项有默认值
    Accept = "text/html, application/xhtml+xml, */*",//    可选项有默认值
    ContentType = "text/html",//返回类型    可选项有默认值
    Referer ="https://vipc.cn/signup/part1",//来源URL     可选项
    Allowautoredirect = False,//是否根据301跳转     可选项
    AutoRedirectCookie = False,//是否自动处理Cookie     可选项
    //CerPath = "d:\123.cer",//证书绝对路径     可选项不需要证书时可以不写这个参数
    //Connectionlimit = 1024,//最大连接数     可选项 默认为1024
    Postdata = "",//Post数据     可选项GET时不需要写
    //ProxyIp = "192.168.1.105:2020",//代理服务器ID     可选项 不需要代理 时可以不设置这三个参数
    //ProxyPwd = "123456",//代理服务器密码     可选项
    //ProxyUserName = "administrator",//代理服务器账户名     可选项
    ResultType = ResultType.String,//返回数据类型,是Byte还是String
    ProtocolVersion = System.Net.HttpVersion.Version11,//获取或设置用于请求的 HTTP 版本。默认为 System.Net.HttpVersion.Version11
};
HttpResult result = http.GetHtml(item);
string html = result.Html;
string cookie = result.Cookie;


F12后看到的有显示验证码:
360截图20190731102252538.png
发表于 2019-7-31 11:04:52 | 显示全部楼层
 楼主| 发表于 2019-7-31 11:12:25 | 显示全部楼层
好的,飞哥,我用您的框架已经请求到以下数据,我的VS也安装了SVG的程序包,请问请求出的这个数据是什么意思,如何使用让它显示在pictureBox的image上呢?请飞哥指点一下,谢谢
<svg xmlns="http://www.w3.org/2000/svg" width="160" height="60" viewBox="0,0,160,60"><path fill="#444" d="M113.67 27.97L113.64 27.94L113.55 27.85Q111.67 30.83 108.82 36.87L108.84 36.89L106.65 41.40L106.61 41.35Q105.75 43.47 104.32 45.88L104.38 45.94L104.22 45.77Q104.85 45.91 103.05 45.95L103.09 45.99L102.92 45.82Q103.04 45.94 101.69 45.94L101.59 45.84L101.57 45.81Q100.92 44.35 97.78 36.68L97.72 36.62L97.66 36.57Q95.44 30.91 93.19 27.69L93.19 27.68L93.18 27.67Q94.01 31.00 94.01 34.38L93.99 34.36L94.04 34.41Q93.95 41.30 90.77 47.25L90.81 47.29L90.89 47.37Q89.48 47.76 86.96 48.54L86.91 48.49L86.91 48.49Q90.89 42.44 90.89 34.69L90.80 34.60L90.78 34.58Q90.91 25.12 85.11 17.65L84.94 17.47L85.10 17.64Q86.72 18.28 89.25 19.01L89.28 19.05L89.30 19.07Q96.90 26.33 103.42 40.61L103.31 40.50L103.47 40.65Q107.13 33.06 109.50 29.31L109.54 29.36L109.59 29.41Q113.40 23.18 117.64 19.47L117.62 19.45L117.53 19.36Q118.99 19.22 121.52 18.41L121.54 18.43L121.43 18.32Q116.10 25.43 116.10 34.65L116.05 34.60L116.17 34.72Q116.10 41.78 119.77 47.70L119.86 47.79L119.78 47.71Q118.36 47.40 115.43 46.74L115.42 46.74L115.37 46.69Q112.93 41.64 112.93 35.24L112.95 35.25L112.80 35.10Q112.86 31.49 113.59 27.90ZM115.21 47.13L115.30 47.23L115.29 47.22Q115.98 47.29 117.53 47.58L117.54 47.59L117.51 47.56Q118.01 48.38 119.02 49.97L119.00 49.94L118.95 49.89Q121.26 50.37 124.97 51.67L125.02 51.73L125.04 51.75Q118.36 44.99 118.36 34.46L118.20 34.30L118.28 34.38Q118.32 26.14 123.01 19.57L122.95 19.51L120.66 20.32L120.62 20.28Q121.64 18.57 122.33 17.63L122.38 17.68L122.45 17.75Q120.32 18.31 117.51 18.88L117.57 18.95L117.66 19.03Q110.36 25.52 103.87 39.02L103.77 38.92L103.78 38.93Q98.28 27.23 92.98 21.60L92.99 21.61L92.97 21.60Q92.54 21.49 91.93 21.37L92.00 21.44L90.57 19.93L90.70 20.06Q90.00 19.27 89.26 18.62L89.31 18.66L89.28 18.64Q86.00 17.56 84.08 16.78L84.12 16.82L84.03 16.73Q90.48 24.49 90.48 34.56L90.44 34.52L90.62 34.70Q90.48 42.72 86.03 49.00L86.03 49.00L86.08 49.04Q86.87 48.86 88.26 48.41L88.17 48.32L88.24 48.39Q88.01 48.57 86.50 50.82L86.50 50.81L86.66 50.98Q88.55 50.41 92.30 49.60L92.26 49.56L92.31 49.61Q96.32 42.07 96.12 33.75L96.08 33.72L96.00 33.64Q97.62 37.91 101.34 46.36L101.41 46.43L101.41 46.43Q101.56 46.25 101.81 46.25L101.92 46.37L102.46 46.34L102.39 46.27Q102.89 47.01 103.74 48.40L103.83 48.48L103.87 48.53Q105.54 48.44 105.54 48.44L105.54 48.44L105.46 48.36Q106.66 48.46 107.36 48.54L107.23 48.42L107.32 48.50Q109.03 44.22 112.62 35.66L112.55 35.59L112.51 35.55Q112.45 41.44 115.23 47.15Z"/><path d="M4 40 C94 20,73 2,140 9" stroke="#666" fill="none"/><path d="M7 28 C84 59,76 58,149 30" stroke="#111" fill="none"/><path fill="#333" d="M49.31 46.37L49.17 46.22L49.24 46.29Q45.55 46.43 43.79 45.86L43.70 45.77L43.85 45.92Q41.60 45.09 41.27 41.46L41.27 41.47L42.88 40.39L42.97 40.47Q43.70 39.86 44.52 39.33L44.50 39.31L44.46 39.27Q44.29 41.42 46.00 42.73L45.88 42.61L45.86 42.59Q47.38 43.82 49.66 43.62L49.58 43.53L49.65 43.61Q54.23 43.04 54.02 39.25L54.01 39.24L54.06 39.29Q54.01 36.99 51.20 35.69L51.07 35.56L51.13 35.62Q48.01 34.42 45.48 33.12L45.58 33.22L45.46 33.10Q42.79 31.72 41.73 26.71L41.64 26.62L41.76 26.74Q41.65 26.26 41.52 25.44L41.43 25.35L41.49 25.41Q41.43 24.61 41.51 24.00L41.38 23.87L41.46 23.95Q41.61 22.23 42.96 21.74L43.06 21.84L42.93 21.71Q45.47 20.74 49.75 20.95L49.92 21.12L49.74 20.93Q51.83 21.18 52.68 21.27L52.56 21.15L52.69 21.27Q54.29 21.49 5........</svg>
发表于 2019-8-1 09:42:08 | 显示全部楼层
发表于 2019-8-5 10:16:57 | 显示全部楼层
您需要登录后才可以回帖 登录 | 马上注册

本版积分规则

QQ|手机版|小黑屋|手机版|联系我们|关于我们|广告合作|苏飞论坛 ( 豫ICP备17001017号-1)

GMT+8, 2019-8-26 15:04

© 2017-2018

快速回复 返回顶部 返回列表