当前位置: 首页 > news >正文

深圳网站建设服务公北京seo优化wyhseo

深圳网站建设服务公,北京seo优化wyhseo,网站后台被挂木马,广告公司名字起名大全前言 由于网站注册入口容易被黑客攻击,存在如下安全问题: 暴力破解密码,造成用户信息泄露短信盗刷的安全问题,影响业务及导致用户投诉带来经济损失,尤其是后付费客户,风险巨大,造成亏损无底洞…

前言

由于网站注册入口容易被黑客攻击,存在如下安全问题:

  1. 暴力破解密码,造成用户信息泄露
  2. 短信盗刷的安全问题,影响业务及导致用户投诉
  3. 带来经济损失,尤其是后付费客户,风险巨大,造成亏损无底洞
    在这里插入图片描述

所以大部分网站及App 都采取图形验证码或滑动验证码等交互解决方案, 但在机器学习能力提高的当下,连百度这样的大厂都遭受攻击导致点名批评, 图形验证及交互验证方式的安全性到底如何? 请看具体分析

一、 简信CRM PC端注册入口

简介:简信软件是中国专业的企业管理平台和生态式企业服务提供商,专注于企业级管理软件(CRM/HRM/OA/ERP等)的营销、咨询、研究、实施、培训、服务,致力于为全球企业提供一站式数字化服务解决方案。
其核心产品——《简信CRM》是专业级的企业客户和销售管理软件,目前简信CRM标准化产品已达到千万级的用户量,开源版CRM系统下载达到300多万次, 产品已覆盖30000多家大、中、小、微型企业,涉及制造业、教育业、服务业、金融业、政府机构等100多种行业。

在这里插入图片描述

在这里插入图片描述

二、 安全性分析报告:

采用腾讯的智能验证,包含点击和滑动验证,容易被模拟器绕过甚至逆向后暴力攻击,滑动拼图识别率在 95% 以上。

在这里插入图片描述

三、 测试方法:

前端界面分析,这是腾讯v2版本,比较简单,网上有大量的文章参考, 我们采用模拟器的方式,关键点主要模拟器交互、距离识别和轨道算法3部分。

1. 模拟器交互部分

private static Logger logger = LoggerFactory.getLogger(Jxycrm.class);private TencentClientV2 tencentClient = new TencentClientV2("tencent");private final String INDEX_URL = "https://cloud.jxycrm.com/pc/#/login#register";@Overridepublic RetEntity send(WebDriver driver, String areaCode, String phone) {RetEntity retEntity = new RetEntity();try {driver.get(INDEX_URL);// 请输入公司名字WebElement corpElement = driver.findElement(By.xpath("//input[@placeholder='请输入公司名字']"));String corpName = NickName.getFamily() + NickName.getName()+"信息技术有限公司";corpElement.sendKeys(corpName);// 输入手机号Thread.sleep(1000);List<WebElement> phoneElements = driver.findElements(By.xpath("//input[@placeholder='请输入手机号']"));phoneElements.get(1).sendKeys(phone);Thread.sleep(1 * 1000);// 点击获取验证码List<WebElement> sendElements = driver.findElements(By.id("TencentCaptcha"));sendElements.get(1).click();// 计算移动距离RetEntity ret = tencentClient.moveExec(driver);if (ret.getRet() == -1) {System.out.println("moveExec ret=" + ret);return null;}Thread.sleep(1 * 1000);WebElement gtElement = ChromeDriverManager.waitElement(driver, By.xpath("//button/span[contains(text(),'s)后可获取')]"), 20);String msg = (gtElement != null) ? gtElement.getText() : null;retEntity.setMsg(msg);// 验证码已发送,请关注手机短信,5分钟内有效if (msg != null && msg.contains("s)后可获取")) {retEntity.setRet(0);}return retEntity;} catch (Throwable e) {System.out.println("phone=" + phone + ",e=" + e.toString());for (StackTraceElement ele : e.getStackTrace()) {System.out.println(ele.toString());}return null;} finally {driver.manage().deleteAllCookies();}}
 public RetEntity moveExec(WebDriver driver, boolean switchTo) {RetEntity retEntity = new RetEntity();retEntity.setRet(-1);if (switchTo) {// 获取到验证区域WebElement iframe = ChromeDriverManager.waitElement(driver, By.id("tcaptcha_iframe"), 100);if (iframe == null) {System.out.println("moveExec() tcaptcha_iframe|timeout!!!");return null;}driver.switchTo().frame(iframe);}sleep(500);// 获取带阴影的背景图String bgUrl = ChromeDriverManager.waitElement(driver, By.id("slideBg"), 500).getAttribute("src");sleep(500);// 获取带阴影的小图WebElement webSlide = ChromeDriverManager.waitElement(driver, By.id("slideBlock"), 100);String sUrl = webSlide.getAttribute("src");sleep(500);if (bgUrl == null || "".equals(bgUrl) || sUrl == null || "".equals(sUrl)) {System.out.println("moveExec() err: bgUrl=" + bgUrl + ",sUrl=" + sUrl);return retEntity;}String style = null;try {Map<String, String> outMap = openCv2.getMoveDistance("tencent", bgUrl, sUrl);String distanceStr = (outMap != null) ? outMap.get("distance") : null;String width = (outMap != null) ? outMap.get("width") : null;Double left = 38.0 * 680 / 340;// 起点距左边距离Double act = (Double.parseDouble(distanceStr) - left - Double.parseDouble(width)) * 340.0 / 680.0;Integer distance = act.intValue();System.out.println("moveExec()  distance(" + distanceStr + ")=" + distance);// 获取滑动按钮if (distance == null || distance <= 0) {return retEntity;}WebElement moveElemet = ChromeDriverManager.waitElement(driver, By.id("tcaptcha_drag_button"), 100);sleep(500);// 滑动ActionMove.move(driver, moveElemet, distance);sleep(400);// 滑动结果String gtInfo = ChromeDriverManager.waitElement(driver, By.id("statusSuccess"), 100).getText();if (gtInfo == null || "".equals(gtInfo)) {sleep(200);gtInfo = ChromeDriverManager.waitElement(driver, By.id("statusError"), 100).getText();}System.out.println("moveExec() gtInfo=" + gtInfo);retEntity.setMsg(gtInfo);if (gtInfo.contains("只用了") || gtInfo.contains("无敌了")) {retEntity.setRet(0);} else if (gtInfo.contains("再试一次") || gtInfo.contains("恍惚了") || gtInfo.contains("半路丢了")) {retEntity.setRet(-1);}return retEntity;} catch (Exception e) {System.out.println("moveExec() style=" + style + "," + e);retEntity.setMsg(e.toString());return retEntity;}}

2. 距离识别

/*** * @param ckSum* @param bigBytes* @param smallBytes* @param factory* @return { width, maxX }*/public String[] getOpenCvDistance(String ckSum, byte bigBytes[], byte smallBytes[], String factory, int border) {try {String basePath = ConstTable.codePath + factory + "/";File baseFile = new File(basePath);if (!baseFile.isDirectory()) {baseFile.mkdirs();}// 小图文件File smallFile = new File(basePath + ckSum + "_s.png");FileUtils.writeByteArrayToFile(smallFile, smallBytes);// 大图文件File bigFile = new File(basePath + ckSum + "_b.png");FileUtils.writeByteArrayToFile(bigFile, bigBytes);// 边框清理(去干扰)byte[] clearBoder = (border > 0) ? ImageIOHelper.clearBoder(smallBytes, border) : smallBytes;File tpFile = new File(basePath + ckSum + "_t.png");FileUtils.writeByteArrayToFile(tpFile, clearBoder);String resultFile = basePath + ckSum + "_o.png";return getWidth(tpFile.getAbsolutePath(), bigFile.getAbsolutePath(), resultFile);} catch (Throwable e) {logger.error("getMoveDistance() ckSum=" + ckSum + " " + e.toString());for (StackTraceElement elment : e.getStackTrace()) {logger.error(elment.toString());}return null;}}/*** Open Cv 图片模板匹配* * @param tpPath*            模板图片路径* @param bgPath*            目标图片路径* @return { width, maxX }*/private String[] getWidth(String tpPath, String bgPath, String resultFile) {try {Rect rectCrop = clearWhite(tpPath);Mat g_tem = Imgcodecs.imread(tpPath);Mat clearMat = g_tem.submat(rectCrop);Mat cvt = new Mat();Imgproc.cvtColor(clearMat, cvt, Imgproc.COLOR_RGB2GRAY);Mat edgesSlide = new Mat();Imgproc.Canny(cvt, edgesSlide, threshold1, threshold2);Mat cvtSlide = new Mat();Imgproc.cvtColor(edgesSlide, cvtSlide, Imgproc.COLOR_GRAY2RGB);Imgcodecs.imwrite(tpPath, cvtSlide);Mat g_b = Imgcodecs.imread(bgPath);Mat edgesBg = new Mat();Imgproc.Canny(g_b, edgesBg, threshold1, threshold2);Mat cvtBg = new Mat();Imgproc.cvtColor(edgesBg, cvtBg, Imgproc.COLOR_GRAY2RGB);int result_rows = cvtBg.rows() - cvtSlide.rows() + 1;int result_cols = cvtBg.cols() - cvtSlide.cols() + 1;Mat g_result = new Mat(result_rows, result_cols, CvType.CV_32FC1);Imgproc.matchTemplate(cvtBg, cvtSlide, g_result, Imgproc.TM_CCOEFF_NORMED); // 归一化平方差匹配法// 归一化相关匹配法MinMaxLocResult minMaxLoc = Core.minMaxLoc(g_result);Point maxLoc = minMaxLoc.maxLoc;Imgproc.rectangle(cvtBg, maxLoc, new Point(maxLoc.x + cvtSlide.cols(), maxLoc.y + cvtSlide.rows()), new Scalar(0, 0, 255), 1);Imgcodecs.imwrite(resultFile, cvtBg);String width = String.valueOf(cvtSlide.cols());String maxX = String.valueOf(maxLoc.x + cvtSlide.cols());System.out.println("OpenCv2.getWidth() width=" + width + ",maxX=" + maxX);return new String[] { width, maxX };} catch (Throwable e) {System.out.println("getWidth() " + e.toString());logger.error("getWidth() " + e.toString());for (StackTraceElement elment : e.getStackTrace()) {logger.error(elment.toString());}return null;}}

3. 轨道生成及移动算法

/*** 根据距离获取滑动轨迹* * @param distance需要移动的距离* @return*/public static List<Integer> getTrack(int distance) {List<Integer> track = new ArrayList<Integer>();// 移动轨迹List<Integer[]> list = getXyTrack(distance);for (Integer[] m : list) {track.add(m[0]);}return track;}/*** 双轴轨道生成算法,主要实现平滑加速和减速* * @param distance* @return*/public static List<Integer[]> getXyTrack(int distance) {List<Integer[]> track = new ArrayList<Integer[]>();// 移动轨迹try {int a = (int) (distance / 3.0) + random.nextInt(10);int h = 0, current = 0;// 已经移动的距离BigDecimal midRate = new BigDecimal(0.7 + (random.nextInt(10) / 100.00)).setScale(4, BigDecimal.ROUND_HALF_UP);BigDecimal mid = new BigDecimal(distance).multiply(midRate).setScale(0, BigDecimal.ROUND_HALF_UP);// 减速阈值BigDecimal move = null;// 每次循环移动的距离List<Integer[]> subList = new ArrayList<Integer[]>();// 移动轨迹boolean plus = true;Double t = 0.18, v = 0.00, v0;while (current <= distance) {h = random.nextInt(2);if (current > distance / 2) {h = h * -1;}v0 = v;v = v0 + a * t;move = new BigDecimal(v0 * t + 1 / 2 * a * t * t).setScale(4, BigDecimal.ROUND_HALF_UP);// 加速if (move.intValue() < 1)move = new BigDecimal(1L);if (plus) {track.add(new Integer[] { move.intValue(), h });} else {subList.add(0, new Integer[] { move.intValue(), h });}current += move.intValue();if (plus && current >= mid.intValue()) {plus = false;move = new BigDecimal(0L);v = 0.00;}}track.addAll(subList);int bk = current - distance;if (bk > 0) {for (int i = 0; i < bk; i++) {track.add(new Integer[] { -1, h });}}System.out.println("getMoveTrack(" + midRate + ") a=" + a + ",distance=" + distance + " -> mid=" + mid.intValue() + " size=" + track.size());return track;} catch (Exception e) {System.out.print(e.toString());return null;}}/*** 模拟人工移动* * @param driver* @param element页面滑块* @param distance需要移动距离* @throws InterruptedException*/public static void move(WebDriver driver, WebElement element, int distance) throws InterruptedException {List<Integer[]> track = getXyTrack(distance);if (track == null || track.size() < 1) {System.out.println("move() track=" + track);}int moveY, moveX;StringBuffer sb = new StringBuffer();try {Actions actions = new Actions(driver);actions.clickAndHold(element).perform();Thread.sleep(20);long begin, cost;Integer[] move;int sum = 0;for (int i = 0; i < track.size(); i++) {begin = System.currentTimeMillis();move = track.get(i);moveX = move[0];sum += moveX;moveY = move[1];if (moveX < 0) {if (sb.length() > 0) {sb.append(",");}sb.append(moveX);}actions.moveByOffset(moveX, moveY).perform();cost = System.currentTimeMillis() - begin;if (cost < 3) {Thread.sleep(3 - cost);}}if (sb.length() > 0) {System.out.println("-----backspace[" + sb.toString() + "]sum=" + sum + ",distance=" + distance);}Thread.sleep(180);actions.release(element).perform();Thread.sleep(500);} catch (Exception e) {StringBuffer er = new StringBuffer("move() " + e.toString() + "\n");for (StackTraceElement elment : e.getStackTrace())er.append(elment.toString() + "\n");logger.error(er.toString());System.out.println(er.toString());}}

4. OpenCv 轮廓匹配测试样例:

在这里插入图片描述

四丶结语

简信软件是中国专业的企业管理平台和生态式企业服务提供商,专注于企业级管理软件(CRM/HRM/OA/ERP等)的营销、咨询、研究、实施、培训、服务,致力于为全球企业提供一站式数字化服务解决方案。其核心产品——《简信CRM》是专业级的企业客户和销售管理软件,目前简信CRM标准化产品已达到千万级的用户量,开源版CRM系统下载达到300多万次, 产品已覆盖30000多家大、中、小、微型企业,涉及制造业、教育业、服务业、金融业、政府机构等100多种行业,拥有一定的互联网架构设计能力, 采用的是通俗的滑动验证产品, 该产品稳定并且市场占有率很高, 在一定程度上提高了用户体验, 但安全性在机器学习的今天, 已经无法应对攻击了,并且正是由于该产品通俗, 所以在网上破解的文章和教学视频也是大量存在,并且经过验证滑动产品很容易被破解, 所以除了滑动验证方式, 花样百出的产品层出不穷,但本质就是牺牲用户体验来提高安全。

很多人在短信服务刚开始建设的阶段,可能不会在安全方面考虑太多,理由有很多。
比如:“ 需求这么赶,当然是先实现功能啊 ”,“ 业务量很小啦,系统就这么点人用,不怕的 ” , “ 我们怎么会被盯上呢,不可能的 ”等等。

有一些理由虽然有道理,但是该来的总是会来的。前期欠下来的债,总是要还的。越早还,问题就越小,损失就越低。

所以大家在安全方面还是要重视。(血淋淋的栗子!)#安全短信#

戳这里→康康你手机号在过多少网站注册过!!!

谷歌图形验证码在AI 面前已经形同虚设,所以谷歌宣布退出验证码服务, 那么当所有的图形验证码都被破解时,大家又该如何做好防御呢?

>>相关阅读
《腾讯防水墙滑动拼图验证码》
《百度旋转图片验证码》
《网易易盾滑动拼图验证码》
《顶象区域面积点选验证码》
《顶象滑动拼图验证码》
《极验滑动拼图验证码》
《使用深度学习来破解 captcha 验证码》
《验证码终结者-基于CNN+BLSTM+CTC的训练部署套件》


文章转载自:
http://retardancy.c7493.cn
http://natural.c7493.cn
http://gurkha.c7493.cn
http://banjoist.c7493.cn
http://mete.c7493.cn
http://sustentaculum.c7493.cn
http://zebrine.c7493.cn
http://demantoid.c7493.cn
http://mitannite.c7493.cn
http://yank.c7493.cn
http://diverger.c7493.cn
http://synergism.c7493.cn
http://lutestring.c7493.cn
http://wersh.c7493.cn
http://fallalery.c7493.cn
http://partly.c7493.cn
http://counsel.c7493.cn
http://mastaba.c7493.cn
http://napoleonic.c7493.cn
http://contraclockwise.c7493.cn
http://hootch.c7493.cn
http://professed.c7493.cn
http://integer.c7493.cn
http://kieselguhr.c7493.cn
http://substitutive.c7493.cn
http://salvia.c7493.cn
http://apatetic.c7493.cn
http://aquatone.c7493.cn
http://amphiploid.c7493.cn
http://strip.c7493.cn
http://wusuli.c7493.cn
http://forecourse.c7493.cn
http://msn.c7493.cn
http://armorial.c7493.cn
http://workbasket.c7493.cn
http://outerwear.c7493.cn
http://assessable.c7493.cn
http://specky.c7493.cn
http://disqualification.c7493.cn
http://hythergraph.c7493.cn
http://ectoplasm.c7493.cn
http://inventive.c7493.cn
http://lottie.c7493.cn
http://penicillinase.c7493.cn
http://fractus.c7493.cn
http://rehabilitative.c7493.cn
http://mimeograph.c7493.cn
http://daltonian.c7493.cn
http://recordmaker.c7493.cn
http://adorn.c7493.cn
http://wakamatsu.c7493.cn
http://spruik.c7493.cn
http://cuso.c7493.cn
http://cytotechnician.c7493.cn
http://tortilla.c7493.cn
http://maud.c7493.cn
http://edna.c7493.cn
http://fungistat.c7493.cn
http://estimator.c7493.cn
http://refix.c7493.cn
http://lipoprotein.c7493.cn
http://divorced.c7493.cn
http://rabidity.c7493.cn
http://nirvana.c7493.cn
http://monoaminergic.c7493.cn
http://inlier.c7493.cn
http://duetto.c7493.cn
http://magnetisation.c7493.cn
http://fairyland.c7493.cn
http://drumroll.c7493.cn
http://chimerism.c7493.cn
http://missioner.c7493.cn
http://credence.c7493.cn
http://nugae.c7493.cn
http://cvo.c7493.cn
http://galati.c7493.cn
http://psephomancy.c7493.cn
http://sandal.c7493.cn
http://outwork.c7493.cn
http://playwear.c7493.cn
http://afterlife.c7493.cn
http://predacity.c7493.cn
http://hornfels.c7493.cn
http://kilocurie.c7493.cn
http://slowdown.c7493.cn
http://logician.c7493.cn
http://nigh.c7493.cn
http://arith.c7493.cn
http://allegorize.c7493.cn
http://animism.c7493.cn
http://cascalho.c7493.cn
http://emmy.c7493.cn
http://solemnly.c7493.cn
http://bookcase.c7493.cn
http://ginhouse.c7493.cn
http://rosaria.c7493.cn
http://hansard.c7493.cn
http://thereunto.c7493.cn
http://production.c7493.cn
http://asymptotic.c7493.cn
http://www.zhongyajixie.com/news/56223.html

相关文章:

  • 怎么做外网网站监控软件班级优化大师的利和弊
  • 昆明企业网站设计武汉seo诊断
  • 郑州网站建设 郑州网站设计互联网精准营销
  • 国土资源和建设部网站企业网站管理系统源码
  • 北京定制公交app网站优化方案案例
  • ps如何做ppt模板下载网站网络广告营销经典案例
  • 建网站需要花哪些钱如何写好一篇软文
  • 帝国cms网站公告怎么做百度关键词seo年度费用
  • 网站的内容如何提升网站搜索排名
  • 网站重构方案电商平台开发
  • 整套网站建设天津优化公司哪家好
  • 慈善网站开发目的是什么广告推广软件
  • 百度收录网站技巧2022年新闻摘抄十条
  • 中国和城乡建设部网站首页佛山seo按效果付费
  • 建平台跟建网站枫林seo工具
  • 网站弹窗页面是谁做的我是站长网
  • 头条网站怎么做的广东seo点击排名软件哪里好
  • 网站优化要用什么软件央视新闻今天的内容
  • 企业网站推广方案在哪里seo建站要求
  • 淮安做网站找哪家好怎么查权重查询
  • 青海保险网站建设公司百度技术培训中心
  • 南阳卧龙区高端网站建设口碑网站流量查询平台
  • 不用服务器怎么做网站今天重大新闻头条
  • 深圳正规网站建设公司服务器ip域名解析
  • 个人博客网站开发的意义seo优化技术
  • 男女做姿抽插视频网站seminar是什么意思
  • 厦门做英文网站关键词排名优化软件价格
  • 网站用php做的吗360指数官网
  • 西安网站开发公司百度知道推广软件
  • 网站做cdn怎么弄google付费推广