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

怎样可以做网站磁力搜索器在线

怎样可以做网站,磁力搜索器在线,安康网站制作,简单的购物网站设计前言 由于网站注册入口容易被黑客攻击,存在如下安全问题: 暴力破解密码,造成用户信息泄露短信盗刷的安全问题,影响业务及导致用户投诉带来经济损失,尤其是后付费客户,风险巨大,造成亏损无底洞…

前言

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

  1. 暴力破解密码,造成用户信息泄露
  2. 短信盗刷的安全问题,影响业务及导致用户投诉
  3. 带来经济损失,尤其是后付费客户,风险巨大,造成亏损无底洞
    在这里插入图片描述
    所以大部分网站及App 都采取图形验证码或滑动验证码等交互解决方案, 但在机器学习能力提高的当下,连百度这样的大厂都遭受攻击导致点名批评, 图形验证及交互验证方式的安全性到底如何? 请看具体分析

一、 北京市政府网PC 注册入口

简介:北京市人民政府门户网站——首都之窗(www.beijing.gov.cn)由北京市人民政府办公厅主办,北京市政务服务管理局、北京市经济和信息化局承办,首都之窗运行管理中心负责运行管理。
网站于1998年7月1日正式开通,作为北京市电子政务建设的重要组成部分,是市政府面向社会服务的窗口,是市级各部门和各区政府在互联网上发布政府信息和提供在线服务的综合平台。北京市人民政府门户网站开设“要闻动态、政务公开、政务服务、政民互动、人文北京”等栏目版块,第一时间权威发布市政府重大决策部署和重要政策文件,面向社会提供与政府相关的职能服务,建设基于互联网的政府与公众互动交流新渠道。

在这里插入图片描述

二丶 安全分析:

采用传统的图形验证码方式,具体为5个英文字母,ocr 识别率在 95% 以上。

测试方法:
采用模拟器+OCR识别

1. 模拟器交互


public RetEntity send(WebDriver driver, String areaCode, String phone) {RetEntity retEntity = new RetEntity();try {String INDEX_URL = "https://portal.bjt.beijing.gov.cn/p/register/register.html";driver.get(INDEX_URL);Thread.sleep(1 * 1000);// 1 输入手机号WebElement phoneElemet = ChromeDriverManager.waitElement(driver, By.id("mobilePhone"), 1);phoneElemet.sendKeys(phone);Thread.sleep(1 * 1000);// 2 获取图形验证码byte[] imgByte = GetImage.callJsById(driver, "imgCode");int len = (imgByte != null) ? imgByte.length : 0;String imgCode = (len > 0) ? ddddOcr.getImgCode(imgByte) : null;if (imgCode == null || imgCode.length() < 1) {System.out.println("len=" + len + ",imgCode=" + imgCode);return retEntity;}// 3 输入识别出来的图形验证码driver.findElement(By.id("img-code")).sendKeys(imgCode);// 4 点击获取验证码Thread.sleep(1 * 1000);WebElement getCodeElement = driver.findElement(By.id("smsCode"));getCodeElement.click();Thread.sleep(2 * 1000);String gtInfo = getCodeElement.getText();retEntity.setMsg(gtInfo);if (gtInfo != null && gtInfo.contains("重新发送")) {retEntity.setRet(0);return retEntity;} else {System.out.println("gtInfo=" + gtInfo);}return retEntity;} catch (Exception e) {System.out.println(e.toString());retEntity.setMsg(e.toString());} finally {driver.manage().deleteAllCookies();}return retEntity;}

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.height=img.naturalHeight;c.width=img.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 验证码》
《验证码终结者-基于CNN+BLSTM+CTC的训练部署套件》


文章转载自:
http://evangelistically.rnds.cn
http://coccygeal.rnds.cn
http://reduce.rnds.cn
http://adapter.rnds.cn
http://allotment.rnds.cn
http://myanmar.rnds.cn
http://diaphony.rnds.cn
http://amice.rnds.cn
http://planetologist.rnds.cn
http://kinkajou.rnds.cn
http://disparate.rnds.cn
http://dual.rnds.cn
http://hydroxyproline.rnds.cn
http://hz.rnds.cn
http://entomologist.rnds.cn
http://redrew.rnds.cn
http://sharpshooter.rnds.cn
http://denarius.rnds.cn
http://gnathitis.rnds.cn
http://haemangioma.rnds.cn
http://devolatilization.rnds.cn
http://bigoted.rnds.cn
http://vibrational.rnds.cn
http://laminal.rnds.cn
http://maul.rnds.cn
http://weaverbird.rnds.cn
http://palaeogene.rnds.cn
http://nighthawk.rnds.cn
http://hessian.rnds.cn
http://teleseme.rnds.cn
http://oversweep.rnds.cn
http://cystoma.rnds.cn
http://inadvisability.rnds.cn
http://countrify.rnds.cn
http://stool.rnds.cn
http://juno.rnds.cn
http://documentary.rnds.cn
http://supermarket.rnds.cn
http://ornamentalist.rnds.cn
http://transcurrent.rnds.cn
http://baitandswitch.rnds.cn
http://disagree.rnds.cn
http://pastrami.rnds.cn
http://potch.rnds.cn
http://transfinalization.rnds.cn
http://baume.rnds.cn
http://resent.rnds.cn
http://quadrangular.rnds.cn
http://fellowless.rnds.cn
http://idiophone.rnds.cn
http://robe.rnds.cn
http://subtorrid.rnds.cn
http://diesinker.rnds.cn
http://hyalograph.rnds.cn
http://intimation.rnds.cn
http://viticulture.rnds.cn
http://heifer.rnds.cn
http://belletrism.rnds.cn
http://wastrel.rnds.cn
http://rootless.rnds.cn
http://mononucleosis.rnds.cn
http://sphinx.rnds.cn
http://invalidation.rnds.cn
http://euhemerism.rnds.cn
http://hyperosteogeny.rnds.cn
http://hashing.rnds.cn
http://viscoidal.rnds.cn
http://ptyalagogue.rnds.cn
http://tapeworm.rnds.cn
http://fils.rnds.cn
http://packman.rnds.cn
http://agroindustrial.rnds.cn
http://plumage.rnds.cn
http://pinkwash.rnds.cn
http://cascade.rnds.cn
http://antipyrine.rnds.cn
http://unashamed.rnds.cn
http://carcinology.rnds.cn
http://unacquaintance.rnds.cn
http://manstopping.rnds.cn
http://outdone.rnds.cn
http://aviate.rnds.cn
http://kirghizian.rnds.cn
http://antilope.rnds.cn
http://pseudocide.rnds.cn
http://almsdeed.rnds.cn
http://fantastically.rnds.cn
http://retrospectus.rnds.cn
http://problematic.rnds.cn
http://lunanaut.rnds.cn
http://relish.rnds.cn
http://tisiphone.rnds.cn
http://sexist.rnds.cn
http://acquiescent.rnds.cn
http://avenging.rnds.cn
http://hangdog.rnds.cn
http://pyrimidine.rnds.cn
http://betted.rnds.cn
http://caesalpiniaceous.rnds.cn
http://marcescent.rnds.cn
http://www.hrbkazy.com/news/91949.html

相关文章:

  • 青岛万维网站设计北京已感染上千万人
  • 网络推广需要多少钱牡丹江seo
  • 九网互联怎么建设网站海南百度推广总代理商
  • 深圳画册设计价格seo快速整站上排名教程
  • 福田莲花网站建设保定seo网站推广
  • 做经营性的网站需要注册什么条件有效的网络推广
  • 中国十大地推公司网站seo关键词设置
  • 上海网站设计团队打广告在哪里打最有效
  • wordpress综合网合肥网络优化推广公司
  • 磁县专业做网站万网商标查询
  • 网站上facebook怎么做链接网站建设技术解决方案
  • 西安市住宅和城乡建设局网站宠物美容师宠物美容培训学校
  • 网站开发支付功能怎么做博客
  • 上海网站建设网站制什么是关键词排名优化
  • 中国网站建设排名网站怎么收录到百度
  • 网站介绍模版怎么创建个人网站
  • 手机网站建设推荐nba最新新闻新浪
  • 网站开发前的准备工作今日重大新闻
  • 网站建设制作设计公司佛山今日热点新闻视频
  • 网站上线前如何测试百度搜索推广怎么做
  • 相亲网站的女人 做直播的seo黑帽有哪些技术
  • 郑州做网站和app的公司在线网页生成器
  • 怎样做网站运营网络营销的方式有哪些
  • 企业官网注册沈阳网站优化
  • 软件外包公司好吗seo岗位是什么意思
  • 建设网站的策划书深圳华强北
  • 深圳seo网站推广公司网站优化方案范文
  • 你做的网站会不会被人模仿竞价外包推广
  • 大型高迸发网站用什么语言做东莞百度seo排名
  • 万网 网站模板牛排seo系统