可以在 Windows 上運行的 5 個終端命令,給人一種大駭客的感覺

WBOY
發布: 2024-07-15 15:38:31
原創
1122 人瀏覽過

是否曾經想過像好萊塢駭客一樣,卻沒有相關風險?以下是如何使用五個無害的命令將無聊的 Windows 終端轉變為「駭客」空間。

先決條件:啟用 WSL 並將終端顏色設為矩陣綠色

我們將展示的一些命令是 Linux 原生命令,不能在 Windows 上運行。但這無需擔心,因為您可以透過啟用 Windows Subsystem for Linux (WSL) 在 Windows 終端機上輕鬆執行 Linux 命令。以下是啟用 WSL 的快速指南:

  1. 開啟「開始」功能表。
  2. 搜尋開啟或關閉 Windows 功能。
  3. 向下捲動並勾選「適用於 Linux 的 Windows 子系統」旁的方塊。
  4. 按一下「確定」並在出現提示時重新啟動電腦。
  5. 重新啟動後,開啟 Microsoft Store 並搜尋 Ubuntu 24.04 或您喜歡的 Linux 發行版。
  6. 點擊安裝並等待下載。
  7. 安裝後,打開「開始」功能表並搜尋 Ubuntu。
  8. 開啟 Ubuntu,將會出現 Ubuntu 終端機視窗。
  9. 建立使用者名稱和密碼。
  10. 就是這樣!現在,您可以在 Windows PC 上執行的 Ubuntu 終端機中輸入 Linux 命令。

啟用 WSL 後,我們就可以開始準備了。沒有什麼比《駭客任務》中標誌性的黑底綠字更能體現「駭客」的意思了。幸運的是,您可以輕鬆更改 Windows 終端的顏色來實現這種外觀。只要開啟命令提示字元並輸入:

color a
登入後複製

color 2
登入後複製

「color」指令僅適用於 Windows 指令提示字元 (cmd),不適用於 PowerShell。 5 Terminal Commands You Can Run on Windows that Give Big Hacker Vibes

這兩個命令都會將您的文字變成亮綠色,立即為您的終端帶來經典的黑客美感。如果您想返回預設顏色,只需輸入:

color
登入後複製

現在我們已經了解了下面的內容,讓我們繼續學習一些讓您感覺像黑客的命令。

使用 dir /s 指令建立大量捲動文字

我們要看的第一個指令是:

dir /s
登入後複製

此指令列出目前目錄及其所有子目錄中的所有檔案和目錄。當從 C 盤等高級目錄運行時,它可以生成大量滾動文本,看起來就像您正在深入系統的文件結構一樣。

以下是該命令的作用:

dir:列出文件和目錄
  • /s:包括所有子目錄
  • 要使用它,只需打開命令提示符並輸入dir /s 並觀察屏幕快速滾動填充文本,顯示系統上的每個文件和資料夾。
  • 此命令不僅僅是為了顯示,當您​​需要查找特定文件或了解目錄結構時非常有用。

    或者,為了讓它看起來更令人印象深刻,可以使用以下命令:

    dir /s | more
    登入後複製

    它會在每屏信息後暫停輸出,讓你看起來像是在仔細分析每一行數據。

    使用 ping-t 指令連續 Ping 網站 5 Terminal Commands You Can Run on Windows that Give Big Hacker Vibes

    接下來是帶有 -t 選項的 ping 指令:

    rrree

    ping 指令用於測試 Internet 協定上主機的可達性( IP)網路。新增 -t 選項允許它繼續 ping 指定的位址,直到您手動停止它(按 Ctrl+C)。它的作用如下:

    ping:向特定 IP 位址或網域發送網路請求
    • -t:繼續 ping 直到停止
    • example.com:您想要 ping 的網站。例如google.com
    • 此指令將持續顯示伺服器的回應時間,為您提供即時網路效能數據。它不僅在視覺上具有持續的資料流吸引力,而且對於監控網路連接也非常有用。
    • Use cmatrix to Create the Iconic Matrix Text Rain (WSL necessary)

      Let's step it up a notch with a command that truly embodies the hacker aesthetic—cmatrix. This command creates the falling green text effect popularized by The Matrix movies. Now this is a Linux command, and you’ll need to first install it on your system before you can use it. To do this, open the Ubuntu terminal—or whichever Linux terminal you've installed using WSL, and enter the following command:

      sudo apt install cmatrix
      登入後複製

      After installation, simply type:

      cmatrix
      登入後複製

      Press CTRL+C to quit when you're done basking in the glow of your Matrix-inspired terminal.

      Use genact to Simulate Running Random Tasks (WSL necessary)

      This is another fun Linux command that generates fake but realistic-looking activity in your terminal—perfect for when you want to look busy or just enjoy some tech-themed eye candy. Same as before, you’ll first need to install genact on your system. To do this, make sure you have Rust installed in your WSL environment by entering the following command in your WSL-backed Ubuntu terminal:

      sudo snap install genact
      登入後複製

      Once installed, you can run it simply by typing:

      genact
      登入後複製

      Genact will start displaying various fake activities, such as compiling code, running tests, or downloading files. It's completely harmless but looks impressively technical. Some of the modules you might see include:

      • Cargo: Simulates building a Rust project
      • Bootlog: Fakes downloading a file
      • Cryptomining: Pretends to mine cryptocurrency
      • Composer: Mimics compiling a Linux kernel

        The command for running the modules is like this:

        genact -m <em>module-name     <p> </p></em>
        登入後複製

        So, if you are trying to simulate cryptomining, this is the command you'll use:

        genact -m cryptomining
        登入後複製

        Use hollywood to Feel Like a Hacker From The Movies (WSL necessary)

        For our final command, let’s pull out all the stops and go full overboard with “hollywood”. This is another Linux command that creates a split-screen terminal that looks like something straight out of a Hollywood movie—the stereotypical mainstream hacker visuals.

        You can run the command on your WSL powered Ubuntu terminal by entering:

        hollywood
        登入後複製

        As you can see, the terminal will split into multiple terminals, each running different commands and displaying various outputs. You'll see things like network scans, server logs, code compilations, system monitoring, and much more. It's a feast for the eyes and will definitely make anyone looking over your shoulder think you're engaged in some serious hacking. To exit hollywood, simply press Ctrl+C, and you'll be back to the base terminal.

        Now, in case, the command doesn't run, it means you'll need to first install it on your system. To do this, enter the following commands one-by-one into the terminal.

        <code class="hljs javascript">sudo apt-add-repository ppa:hollywood/ppasudo apt-get updatesudo apt-get install byobu hollywood</code> 
        登入後複製

        So, as you can see, these five terminal commands can transform your Windows terminal into a hacker's playground. This can be a fun way to satisfy your inner cyberpunk or just impress (or scare) your friends.

以上是可以在 Windows 上運行的 5 個終端命令,給人一種大駭客的感覺的詳細內容。更多資訊請關注PHP中文網其他相關文章!

來源:howtogeek.com
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!