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

做网站都用什么技术广东app开发公司

做网站都用什么技术,广东app开发公司,煎蛋网 wordpress,瑞安 网站建设培训班前言 由于网站注册入口容易被黑客攻击#xff0c;存在如下安全问题#xff1a; 暴力破解密码#xff0c;造成用户信息泄露短信盗刷的安全问题#xff0c;影响业务及导致用户投诉带来经济损失#xff0c;尤其是后付费客户#xff0c;风险巨大#xff0c;造成亏损无底洞…前言 由于网站注册入口容易被黑客攻击存在如下安全问题 暴力破解密码造成用户信息泄露短信盗刷的安全问题影响业务及导致用户投诉带来经济损失尤其是后付费客户风险巨大造成亏损无底洞 所以大部分网站及App 都采取图形验证码或滑动验证码等交互解决方案 但在机器学习能力提高的当下连百度这样的大厂都遭受攻击导致点名批评 图形验证及交互验证方式的安全性到底如何 请看具体分析 一、 农信网PC 注册入口 简介北京农信互联科技集团有限公司是一家农业互联网高科技企业以“用互联网改变农业”为使命致力于构建最有影响力的农业数智生态平台推动中国农业数字化转型升级。2018年9月农信互联以增资前70亿元的整体估值完成B轮融资成为农业互联网领域的“独角兽”企业。 二丶 安全分析 采用传统的图形验证码方式具体为6个数字,ocr 识别率在 95% 以上。   测试方法 采用模拟器OCR识别 1. 模拟器交互 private static String INDEX_URL https://passport.nxin.com/register/user;Overridepublic RetEntity send(WebDriver driver, String areaCode, String phone) {RetEntity retEntity new RetEntity();try {driver.get(INDEX_URL);// 1 输入手机号WebElement phoneElemet ChromeDriverManager.waitElement(driver, By.xpath(//input[placeholder输入手机号]), 1);phoneElemet.sendKeys(phone);WebElement codeInputElement driver.findElement(By.id(ember258));codeInputElement.click();// 2 获取图形验证码Thread.sleep(1 * 1000);String imgCode null, imgUrl;byte[] imgByte null;WebElement imgElement driver.findElement(By.xpath(//img[contains(src,/register/verifyCode)]));for (int i 0; i 3; i) {imgUrl imgElement.getAttribute(src);imgByte (imgUrl ! null) ? GetImage.callJsByUrl(driver, imgUrl) : null;int len (imgByte ! null) ? imgByte.length : 0;imgCode (len 0) ? ddddOcr.getImgCode(imgByte) : null;imgCode DigitFormat.getDigit(imgCode);if (imgCode ! null imgCode.length() 6) {break;}imgElement.click();Thread.sleep(1 * 1000);}if (imgCode null || imgCode.length() 6) {System.out.println(imgCode imgCode);return retEntity;}// 3 输入识别出来的图形验证码codeInputElement.sendKeys(imgCode);// 4 点击获取验证码Thread.sleep(1 * 1000);WebElement getCodeElement ChromeDriverManager.waitElement(driver, By.xpath(//button[classvalidatebtn]), 20);if (getCodeElement ! null) {getCodeElement.click();Thread.sleep(1 * 1000);StringBuffer alertSb new StringBuffer();boolean isAlert ChromeDriverManager.isAlertPresent(driver, alertSb);if (isAlert) {System.out.println(alertSb alertSb);driver.switchTo().defaultContent();return null;}}Thread.sleep(1500);String gtInfo (getCodeElement ! null) ? getCodeElement.getText() : null;retEntity.setMsg([imgCode: imgCode ]- gtInfo);if (gtInfo ! null gtInfo.contains(重新获取)) {retEntity.setRet(0);ddddOcr.saveFile(Nxin, imgCode, imgByte);return retEntity;} else {System.out.println(gtInfo gtInfo);ddddOcr.saveFile(Nxin/err/, imgCode, imgByte);}return retEntity;} catch (Exception e) {System.out.println(phone phone ,e e.toString());for (StackTraceElement ele : e.getStackTrace()) {System.out.println(ele.toString());}return null;} finally {if (driver ! null)driver.manage().deleteAllCookies();}} 2. 获取图形验证码 public static byte[] callJsById(WebDriver driver, String id) {return callJsById(driver, id, null);}public static byte[] callJsById(WebDriver driver, String id, StringBuffer base64) {String js let c document.createElement(canvas);let ctx c.getContext(2d);;js let img document.getElementById( id ); /*找到图片*/ ;js c.heightimg.naturalHeight;c.widthimg.naturalWidth;;js ctx.drawImage(img, 0, 0,img.naturalWidth, img.naturalHeight);;js let base64String c.toDataURL();return base64String;;String src ((JavascriptExecutor) driver).executeScript(js).toString();String base64Str src.substring(src.indexOf(,) 1);if (base64 ! null) {base64.append(base64Str);}byte[] vBytes (base64Str ! null) ? imgStrToByte(base64Str) : null;return vBytes;} 3.图形验证码识别Ddddocr public String getImgCode(byte[] bigImage) {try {if (ddddUrl null) {System.out.println(ddddUrl ddddUrl);return null;}long time (new Date()).getTime();HttpURLConnection con null;String boundary ---------- String.valueOf(time);String boundarybytesString \r\n-- boundary \r\n;OutputStream out null;URL u new URL(ddddUrl);con (HttpURLConnection) u.openConnection();con.setRequestMethod(POST);con.setConnectTimeout(10000);con.setReadTimeout(10000);con.setDoOutput(true);con.setDoInput(true);con.setUseCaches(true);con.setRequestProperty(Content-Type, multipart/form-data; boundary boundary);out con.getOutputStream();if (bigImage ! null bigImage.length 0) {out.write(boundarybytesString.getBytes(UTF-8));String paramString Content-Disposition: form-data; name\image\; filename\ bigNxt.gif \\r\n;paramString Content-Type: application/octet-stream\r\n\r\n;out.write(paramString.getBytes(UTF-8));out.write(bigImage);}String tailer \r\n-- boundary --\r\n;out.write(tailer.getBytes(UTF-8));out.flush();out.close();StringBuffer buffer new StringBuffer();BufferedReader br new BufferedReader(new InputStreamReader(con.getInputStream(), UTF-8));String temp;while ((temp br.readLine()) ! null) {buffer.append(temp);}String ret buffer.toString();if (ret.length() 1) {System.out.println(ddddUrl ddddUrl ret buffer.toString());}return buffer.toString();} catch (Throwable e) {logger.error(ddddUrl ddddUrl ,e e.toString());return null;}}public void saveFile(String factory, String imgCode, byte[] imgByte) {try {String basePath ConstTable.codePath factory /;File ocrFile new File(basePath imgCode .png);FileUtils.writeByteArrayToFile(ocrFile, imgByte);} catch (Exception e) {logger.error(saveFile() e.toString());}} 4. 图形OCR识别结果 5. 测试返回结果 三 丶测试报告 四丶结语 北京农信互联科技集团有限公司是一家农业互联网高科技企业以“用互联网改变农业”为使命致力于构建最有影响力的农业数智生态平台推动中国农业数字化转型升级。作为农业互联网领域的“独角兽”企业 技术实力也应该不错但采用的还是老一代的图形验证码已经落伍了 用户体验一般容易被破解 一旦被国际黑客发起攻击将会对老百姓形成骚扰影响声誉。 很多人在短信服务刚开始建设的阶段可能不会在安全方面考虑太多理由有很多。 比如“ 需求这么赶当然是先实现功能啊 ”“ 业务量很小啦系统就这么点人用不怕的 ” “ 我们怎么会被盯上呢不可能的 ”等等。 有一些理由虽然有道理但是该来的总是会来的。前期欠下来的债总是要还的。越早还问题就越小损失就越低。 所以大家在安全方面还是要重视。血淋淋的栗子#安全短信# 戳这里→康康你手机号在过多少网站注册过 谷歌图形验证码在AI 面前已经形同虚设所以谷歌宣布退出验证码服务 那么当所有的图形验证码都被破解时大家又该如何做好防御呢 相关阅读 《腾讯防水墙滑动拼图验证码》 《百度旋转图片验证码》 《网易易盾滑动拼图验证码》 《顶象区域面积点选验证码》 《顶象滑动拼图验证码》 《极验滑动拼图验证码》 《使用深度学习来破解 captcha 验证码》 《验证码终结者-基于CNNBLSTMCTC的训练部署套件》
http://www.w-s-a.com/news/836413/

相关文章:

  • 苏州新区城乡建设网站人才招聘网站开发
  • 一般网站是怎么做的威远移动网站建设
  • 赣州网站开发公司怎么才能设计好一个网站
  • 个人网站建设分几个步走培训网站开发哪个好
  • 智能网站价格河北城乡建设网站
  • 做动画在线观看网站网上花店 网站源代码
  • 做网站项目体会商业信息
  • 深圳的设计网站谷歌浏览器下载手机版官网
  • 苏州网站建设都找全网天下外贸响应式网站设计
  • 揭阳专业做网站网站迁移教材
  • 手机上怎么上传网站吗工程信息网站建设
  • 用手机建网站微信手机网站流程
  • 专注软件优化分享的网站梧州网页设计
  • 长春火车站和高铁站是一个站吗公司名称注册查询系统
  • 便利的集团网站建设网页的依托网站
  • 茶叶网站建设题库制作助手app
  • 网站建设栏目层级北京网站搭建公司电话
  • 网站开发运营经理打开百度竞价页面是网站是什么
  • 国内最专业的设计网站建设现在用什么语言做网站
  • 湖南网站开发 岚鸿象山县建设工程招投标网站
  • 长沙免费网站排名wordpress 教学
  • 专门做app的网站html代码是什么
  • 临沂网站制作建设欧米茄表官网
  • 北京模板网站开发全包网站建设的第三方平台
  • 在凡科做的网站怎么推广网页模板下载 免费 html
  • 有关网站建设的标题仿亿欧网wordpress
  • 网站建设公司销售招聘常用的搜索引擎有哪些?
  • wordpress中.htaccess新上线的网站怎么做优化
  • 家教网站怎么做网站建设品牌推荐
  • 青岛做外贸网站建设茶叶公司网站建设策划书