IDunit
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # 第三章 internet --- 課程連結 board.idunit.online ---- ## 開始之前先說好 before we start ---- - workshop 需要的工具 - 筆電 ---- - workshop 會用到的線上工具 [hackmd](board.idunit.online) discord https://discord.gg/UdtEyq slido https://app.sli.do/event/pr46kr0u ---- - 現場資源 - wifi - 電源 ---- - 如果太累 可以睡覺,但請不要打乎吵到其他人。 ---- - 如果覺得講太快 請告訴我 ---- - 由於我們時間有限,我們無法涵蓋所有內容 ---- - 而是挑選幾個代表性的工具跟用法 ---- - 如果覺得內容有誤 - 或覺得講得可以更好 歡迎來意見回饋 bootcamp 工作人員 ---- - 或你有更多想說 - 歡迎報名成為講師 ---- - Greeting I am jeffery - icafe - self-study to open source in security - teapook - London linux scholarship - consult ---- - shell basic last time ---- ### .net + powershell + chocolatey ---- - 接下來是 - OSI layer 1-4 TCP/IP - OSI layer 5-7 http - frontend domain - ssh forwarding ---- - 再來就是 - git workshop 9/5 --- web frontend backend need to know ---- internet basic structure OSI https://zh.wikipedia.org/zh-tw/OSI%E6%A8%A1%E5%9E%8B ![](https://cdn1.techbang.com/system/excerpt_images/15859/original/e832e43ce763c0faf46acd2b08c49531.jpg?1385627311 =400x) ---- [IETF](https://zh.wikipedia.org/wiki/%E4%BA%92%E8%81%94%E7%BD%91%E5%B7%A5%E7%A8%8B%E4%BB%BB%E5%8A%A1%E7%BB%84) 眾人合力的 [RFC(Request for Comments)](https://zh.wikipedia.org/zh-tw/RFC) 網路是眾人合力的成果 ---- layer 1 the hardware Broadcom cisco 通訊晶片廠 aruba asus 路由器廠 ---- layer 2 節點資料有沒有接起來 https://en.wikipedia.org/wiki/Data_link_layer ``` ppp pppoe arp -a ``` ---- mac https://en.wikipedia.org/wiki/Medium_access_control ---- layer 3 ICMP (Internet Control Message Protocol) ---- IP (Internet Protocal) https://en.wikipedia.org/wiki/Network_layer ---- reserved privated ip https://m.gamer.com.tw/home/creationDetail.php?sn=402247 ---- ``` ping traceroute ``` ---- layer 4 TCP UDP https://en.wikipedia.org/wiki/Transport_layer ![](https://preview.redd.it/duv11av99nm11.png?auto=webp&s=e911479f36d71ebe903030d45b66e5a68f686efd =400x) ---- TCP handshake ![](https://i.imgur.com/BQcseB1.png =400x) ---- port https://en.wikipedia.org/wiki/Port_(computer_networking) ---- 65535? ---- 0-65535 65535 + 1 =65536 2 ** 16 ---- nmap --- layer 5 - layer 7 ---- [What happens when...](https://github.com/alex/what-happens-when) ---- request and response ![](https://cdn.tutsplus.com/net/authors/jeremymcpeak/http1-request-response.png) ---- more user? ![](https://i.stack.imgur.com/wOfS8.png =500x) ---- [HTTP: The Protocol Every Web Developer Must Know ](https://code.tutsplus.com/tutorials/http-the-protocol-every-web-developer-must-know-part-1--net-31177) ---- URL ![](https://cdn.tutsplus.com/net/authors/jeremymcpeak/http1-url-structure.png) [API(Application Programming Interface)](https://zh.wikipedia.org/zh-hant/%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E6%8E%A5%E5%8F%A3) ---- http get https://developer.mozilla.org/zh-TW/docs/Web/HTTP/Methods ---- http status code https://developer.mozilla.org/en-US/docs/Web/HTTP/Status ---- restful api 1.Nouns 名詞:定義資源位置的 URL,每個資源在網路上都會有唯一的位置,就如每戶人家都有唯一的地址一樣。 2.Verbs 動詞:對資源要做的動作。 3.Content Types 資源呈現方式:API 資源可以以多種方式表現,最常用的是 JSON,較輕,也較好處理。 ---- ``` curl ``` ---- https://httpbin.org/ https://http.cat/ --- html css javascript ---- ``` wget ``` ---- wget 整包帶回家 https://www.moreofless.co.uk/download-website-wget-entire-html-css-js/ ---- crawler 爬蟲 你以為你是資料工程師,有時候你其實是爬蟲工程師 ---- http header ---- js py ---- cookie and session ---- more reference ---- ![](https://images-na.ssl-images-amazon.com/images/I/51qvr+iNtML._SX376_BO1,204,203,200_.jpg =400x) ---- 鳥哥 伺服器篇 --- domain [how dns works](https://howdns.works/) ---- ``` whois dig url nslookup ``` ---- TWNIC APNIC ---- SEO ---- google hacking ---- shodan --- ssh ---- remote login ---- to your own machine ---- play with others'? https://null-byte.wonderhowto.com/how-to/haunt-computer-with-ssh-0199625/ ---- vm ---- even mobile ---- port forwarding ---- NAT ifconfig iptable, router command ---- tunneling https://newtoypia.blogspot.com/2020/05/ssh-tunnel.html ---- vpn proxy ---- protect yourself from shodan https://null-byte.wonderhowto.com/how-to/set-up-ssh-server-with-tor-hide-from-shodan-hackers-0194455/ ---- key-gen https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh ---- for cert

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully