gis計算各省河流長度_用河流和各方解釋安全漏洞

gis計算各省河流長度

by Andrea Zanin

由Andrea Zanin

用河流和各方解釋安全漏洞 (Security Vulnerabilities Explained with Rivers and Parties)

Security vulnerabilities can be boring to learn. But you still need to learn them, unless you want some hacker to delete all your production databases. To make it a bit more entertaining, I tried to explain 3 major vulnerabilities in terms of every day life. So without further delay let’s begin.

安全漏洞可能很無聊。 但是,除非您希望某些黑客刪除所有生產數據庫,否則您仍然需要學習它們。 為了使它更具娛樂性,我嘗試從日常生活的角度來解釋3個主要漏洞。 因此,讓我們立即開始吧。

中間人攻擊 (Man-in-the-middle attack)

When you open a website you are connecting to a server. You can imagine this connection like a river and the data (for example Tweets in Twitter) are messages in bottles that float down the river.

當您打開網站時,您正在連接到服務器。 您可以想象這種連接就像一條河,而數據(例如Twitter中的Tweets)是漂浮在河中的瓶子中的消息。

If Alex (the server) wants to send you a dinner invitation he has to put it in a bottle and send it down the stream. But what if John (the attacker) takes the bottle out of the river and changes the message into an insult, then puts it back in the river? You will have no way of recognizing that the message you received hadn’t been sent by the Alex!

如果Alex(服務器)想要向您發送晚餐邀請,則必須將其放入瓶中并沿流發送。 但是,如果約翰(攻擊者)將瓶子從河里拿出來并將消息變成侮辱,然后又把它放回河里怎么辦? 您將無法識別Alex并未發送您收到的消息!

This is called a Man-in-the-middle attack.

這稱為中間人攻擊

To solve this you and Alex can decide that you will write your messages reversing the order of the characters. For example, secret message becomes egassem terces.

為了解決這個問題,您和Alex可以決定您將反轉字符順序編寫消息。 例如, 秘密消息變成egassem字符串

John doesn’t know the method you used to generate the secret code, so he can’t understand what the message says nor change what’s written on it without you noticing.

John不知道您用來生成密碼的方法 ,因此,在您不注意的情況下,他無法理解消息內容,也無法更改消息內容。

This is what the HTTPS protocol does, just with a fancier method.

這就是HTTPS協議所做的,只是采用了一種更高級的方法。

DoS和DDoS (DoS and DDoS)

Another way you can see a server is like your home’s Inbox. You receive mail, read them and reply.

您可以看到服務器的另一種方式是在家中的收件箱。 您收到郵件,閱讀并回復。

What if John starts to write you a ton of mail? You wouldn’t be able to respond to Alex’s dinner invitation in time, because you would be too busy replying to all the other Spam messages sent by John.

如果約翰開始給您寫很多郵件怎么辦? 您將無法及時回復Alex的晚餐邀請,因為您將太忙于答復John發送的所有其他垃圾郵件。

This is called a Denial-of-service attack, DoS in short.

簡稱為拒絕服務攻擊 (DoS)。

A way to mitigate this is reading the sender on top of the mail before opening it. If it’s John then don’t bother opening the mail. This way you don’t need to reply to John and can focus on handling serious stuff, like Alex’s dinner invitation.

減輕這種情況的一種方法是在打開郵件之前先在郵件頂部閱讀發件人。 如果是約翰,那就不用費心打開郵件了。 這樣,您無需回復??John,而可以專注于處理嚴肅的事情,例如Alex的晚餐邀請。

This is IP Blacklisting in a nutshell, only with digital sender internet protocol addresses.

簡而言之,這是IP黑名單 ,僅包含數字發送者Internet協議地址。

Unfortunately John convinced a lot of other evil people to send you Spam mails. So now you can’t simply discard John’s mails, because there are lots of people writing you.

不幸的是,約翰說服了許多其他邪惡的人向您發送垃圾郵件。 因此,現在您不能簡單地丟棄John的郵件,因為有很多人在給您寫信。

This is a Distributed Denial of Service (DDoS) and it’s very hard to deal with.

這是一種分布式拒絕服務(DDoS) ,很難處理。

One way to handle this is to receive mail only from Alex. It’s unfortunate that your other friends won’t be able to write you, because you will discard their emails too. But desperate times call for desperate measures. But gradually, you can increase the number of legitimate people you’d like to receive mail from.

一種解決方法是僅接收來自Alex的郵件。 不幸的是您的其他朋友無法寫信給您,因為您也將丟棄他們的電子郵件。 但是,絕望的時代要求采取絕望的措施。 但逐漸地,您可以增加想要接收郵件的合法人員的數量。

This is called IP Whitelisting and can be used to mitigate the impact of a DDoS attack, but it’s not a perfect solution.

這稱為IP白名單 ,可用于減輕DDoS攻擊的影響,但這不是一個完美的解決方案。

DDoS attacks are hard to deal with, luckily they are also hard to organize, because you need a lot of people helping you. But with attackers leveraging vulnerable IOT devices, misconfigured servers and DDoS-for-hire services to launch DDoS attacks, it is becoming very easy to launch such attacks.

DDoS攻擊難以應對,幸運的是,它們也難以組織,因為您需要很多人的幫助。 但是,隨著攻擊者利用易受攻擊的物聯網設備,配置錯誤的服務器和DDoS租用服務發起DDoS攻擊,發起此類攻擊變得非常容易。

注射 (Injection)

Let’s say that Alex decided that he will organize a party with some friends. He prepared a template invitation:

假設亞歷克斯決定與一些朋友一起組織一個聚會。 他準備了一個模板邀請:

Next Saturday I’m throwing a party, wanna come? If possible bring some [blank space left for food item here].

下周六我要舉行一個聚會,想參加嗎? 如果可能的話,請帶些[在此處留出空白的食物]。

He also decided to take suggestions for the food, so he left a suggestion box in the school’s cafeteria. Then he mindlessly copied one suggestion from the box in the blank space left on each invitation.

他還決定對食物提出建議,因此他在學校食堂里放了一個建議箱。 然后,他無意中從每個邀請的空白處的框中復制了一個建議。

These were the suggestions:

這些是建議:

  • coke

    可樂
  • chips

    籌碼
  • pasta

    意大利面
  • oranges. I also wanted to tell you that Rick is dumb

    橘子。 我也想告訴你里克很笨

You see what’s going on here? A friend of Tom’s will receive this message

你知道這里發生了什么嗎? 湯姆的朋友將收到此消息

Next Saturday I’m throwing a party, wanna come? If possible bring some oranges. I also wanted to tell you that Rick is dumb.

下周六我要舉行一個聚會,想參加嗎? 如果可能,帶些橘子。 我還想告訴你里克很蠢。

Tom’s friend will think that the whole message was written by Tom including the part regarding Rick! The guy who left the food suggestion (I think we know his name) just injected a message in Alex’s invitation.

湯姆的朋友會認為整個消息是湯姆寫的,包括有關里克的部分! 誰留下的食物的建議(我想我們知道他的名字)那家伙就注入亞歷克斯的邀請的消息。

To avoid injection all together simply validate (in technical lingo escape) what you are accepting from a user when it doesn’t come from a trusted source.

要避免一起注入 ,只需驗證(以技術術語逃逸為準)當您從用戶那里接受的內容不是來自可信來源時。

離開之前 (Before you leave)

If your name is John I owe you an apology, but stick around, I promise that in the next article you will be the good one.

如果您的名字叫約翰,我應該向您道歉,但是請您堅持,我保證在下一篇文章中,您會很不錯。

I hope you enjoyed the article. Don’t forget that you can ? up to 50 times!

希望您喜歡這篇文章。 別忘了你可以嗎? 多達50次!

翻譯自: https://www.freecodecamp.org/news/security-vulnerabilities-explained-with-rivers-and-parties-9c08798289b9/

gis計算各省河流長度

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/394617.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/394617.shtml
英文地址,請注明出處:http://en.pswp.cn/news/394617.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

Delphi關于記錄文件的操作

http://www.cnblogs.com/railgunman/archive/2010/08/16/1801004.html Delphi關于記錄文件的操作 本例子幾個變量的說明TFileRec record   //記錄定義Day : Integer;...          //其他定義end;f : File of TFileRec;   //標準的輸入/輸出文件FilRec : TFileR…

pygame游戲開發入門例子

# *_* coding:utf-8 *_*# 開發團隊:中國軟件開發團隊# 開發人員:Administrator# 開發時間:2019/3/23 11:16# 文件名稱:pygame_demo# 開發工具:PyCharmimport sysimport pygameimport timedef main(): sizewidth,height640,480 pygame.init() screenpygame.display.set…

HTML引入媒體查詢CSS,CSS3 多媒體查詢

CSS3 多媒體查詢CSS2 多媒體類型media 規則在 CSS2 中有介紹,針對不同媒體類型可以定制不同的樣式規則。例如:你可以針對不同的媒體類型(包括顯示器、便攜設備、電視機,等等)設置不同的樣式規則。但是這些多媒體類型在很多設備上支持還不夠友…

Codeforces 835 F Roads in the Kingdom(樹形dp)

F. Roads in the Kingdom(樹形dp) 題意&#xff1a; 給一張n個點n條邊的無向帶權圖 定義不便利度為所有點對最短距離中的最大值 求出刪一條邊之后&#xff0c;保證圖還連通時不便利度的最小值 $n < 2e5 $\(w_i < 1e9\) 思路:樹形dp 這個圖是一個環上掛著很多顆樹&#xf…

前端websocket獲取數據后需要存本地嗎_是什么讓我放棄了restful api?了解清楚后我全面擁抱GraphQL...

GraphQL初步認識背景REST作為一種現代網絡應用非常流行的軟件架構風格&#xff0c;自從Roy Fielding博士在2000年他的博士論文中提出來到現在已經有了20年的歷史。它的簡單易用性&#xff0c;可擴展性&#xff0c;伸縮性受到廣大Web開發者的喜愛。REST 的 API 配合JSON格式的數…

列出薪金高于在部門30_我如何在五個月內將薪金提高一倍并獲得一份了不起的工作...

列出薪金高于在部門30by Sam Williams通過山姆威廉姆斯 我如何在五個月內將薪金提高一倍并獲得一份了不起的工作 (How I Doubled my Salary in Five Months and Got an Amazing Job) Six months ago I quit my job as a junior JavaScript developer and travelled around sou…

ftp服務器 vsftpd搭建和配置以及虛擬用戶的設置

tp: File Transfer Protocol應用層協議&#xff1a;tcp, 21/tcpC/S&#xff1a;Client: 程序Server: 程序數據&#xff1a;命令連接&#xff1a;文件管理類命令&#xff0c;始終在線的連接數據連接&#xff1a;數據傳輸&#xff0c;按需創建及關閉的連接數據傳輸格式&#xff1…

計算機應用基礎案例教程總結,計算機應用基礎案例教程

包杰軍等編著的《計算機應用基礎案例教程》以培養職業能力為目標&#xff0c;本著“做學合一”、“理論與實踐并行”、“知識與技能并重”的教育思想編寫。本書將實際操作案例與教學內容緊密結合&#xff0c;結構清晰、內容翔實、圖文并茂、實用性強。全書共分6章&#xff0c;第…

讓不支持h5新標簽的瀏覽器支持新標簽

把這段js加到頁面的頭部就可以了&#xff0c;創建想讓瀏覽器支持的標簽即可 //條件判斷是否支持 h5 if(window.applicationCache){alert("支持h5")}else{alert("不支持h5")document.createElement("article");document.createElement("head…

ios開發之--UIDocumentInteractionController的使用(實現更多分享服務)

最近在做項目的時候&#xff0c;碰到這樣一個需求&#xff0c;就是本地生成pdf文件&#xff0c;然后本地打開&#xff0c;經過測試發現&#xff0c;pdf文件是無法保存到相冊里面的&#xff0c;只能存到手機里面&#xff0c;鑒于蘋果的存儲機制&#xff0c;需要取出來&#xff0…

eclipse tomcat新建一個_Javaweb07-Eclipse自動創建動態web項目

學習筆記是參考的how2j使用Eclipse創建Dynamic Web Project前面的web項目都是通過手動創建的&#xff0c;現在使用eclipse EE自動創建動態web項目&#xff0c;熟悉一下創建流程&#xff0c;仍舊使用前面創建過的HelloServlet。需要注意的是&#xff0c;這里的tomcat版本變了&am…

python 刪除重復字符_Google面試問題指南:使用Python刪除重復出現的字符

python 刪除重復字符by Anthony Sistilli安東尼西斯蒂里(Anthony Sistilli) Google面試問題指南&#xff1a;使用Python刪除重復出現的字符 (Google Interview Question Guide: Delete Reoccurring Characters with Python) Nowadays, Google interviews are all the rage. Bu…

cordova

命令行 npm install -g cordova cordova create MyApp cd MyApp cordova platform add android 當然也可以把android換成browser把自己的前端程序放在www文件夾內這里注意如果用android studio打包或運行的話&#xff0c;&#xff08;即不用cordova&#xff09;&#xff0c;要把…

冒泡排序(Java版)

冒泡排序基本思想&#xff1a; 1.比較相鄰的元素&#xff0c;如果第一個比第二個大&#xff0c;就交換它們兩個。 2.對每一對相鄰元素做同樣的工作&#xff0c;從開始的第一對到結尾的最后一對。在這一點&#xff0c;最后的元素應該會是最大的數。 3.針對所有的元素重復以上的步…

計算機科學與技術專業的論文周報,畢業設計(實習)周報

本科畢業設計周報第1 周畢業生周記撰寫畢業論文開題報告(初稿)&#xff0c;結合畢業設計所選的題目&#xff0c;查閱大量相關資料&#xff0c;主要針對該設計所涉及的背景&#xff0c;研究目的及意義&#xff0c;以及國內外的相關成熟技術進行篩選&#xff0c;提取部分核心內容…

excel導出_SpringBoot實現快速導出Excel

閱讀本文約需要6分鐘 大家好&#xff0c;我是你們的導師&#xff0c;我每天都會在這里給大家分享一些干貨內容(當然了&#xff0c;周末也要允許老師休息一下哈)。上次老師跟大家分享了下MyBatis 幾種通用的寫法的相關知識&#xff0c;今天跟大家分享SpringBoot實現快速導出Exce…

SignalR Self Host+MVC等多端消息推送服務(4)

由于工作太忙&#xff0c;一直沒時間更新博客&#xff0c;之前有很多朋友一直問我什么時候將后續的代碼發上來&#xff0c;一直沒時間&#xff0c;今天就長話短說&#xff0c;不寫文章了&#xff0c;直接上demo&#xff0c;里面將正式項目中用到的一些敏感信息修改了&#xff0…

項目中需要總結的內容

1.鐵塔項目的硬件總結 2.傳感器項目的硬件總結 3.燈控項目的硬件總結 控制燈閃爍的電路&#xff0c;SIM卡板子復位電路&#xff0c;繼電器控制電路轉載于:https://www.cnblogs.com/yuesheng/p/6086647.html

計算機應用計算機電算化題庫,2014年浙江省會計電算化客觀題題庫

第一套試題一、單選題1.在會計軟件初始設置中&#xff0c;錄入期初余額時(C)A&#xff0e;只要求錄入一級科目的期初余額 B.只要求錄入中間級科目的期初余額C&#xff0e;每級科目均需錄入期初余額 D.只要求錄入最末級科目的期初余額2.在總賬系中&#xff0c;要求能夠進行上下級…

使用一些我喜歡的東西開始使用ES6

by Todd Palmer托德帕爾默(Todd Palmer) 使用一些我喜歡的東西開始使用ES6 (Getting started with ES6 using a few of my favorite things) This tutorial walks you through some easy steps to get started learning the newest version of JavaScript: ES6.本教程將引導您…