Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Google Hacking 入門:善用搜尋語法挖掘深層資訊

編輯:XP 系統基礎知識

Google Hacking 並非新事物,早期常被忽視,認為無實際用途。實則不然,善用 Google 進階搜尋語法,能獲取驚人資訊——無論是資安研究或滲透測試。

常用搜尋語法速查

語法說明範例
intext:搜尋網頁正文包含特定字串intext:動網
allintext:搜尋正文同時包含多個字串allintext:安全 天使
intitle:搜尋網頁標題包含字串intitle:安全天使
allintitle:標題同時包含多字串allintitle:admin login
cache:檢視 Google 快取頁面cache:example.com
define:查詢詞語定義define:hacker
filetype:重點推薦 搜尋特定檔案類型filetype:doc、filetype:bak、filetype:mdb
info:查詢指定網站基本資訊info:example.com
inurl:搜尋 URL 包含字串inurl:admin 尋找後台登入頁
allinurl:URL 同時包含多字串allinurl:admin login
link:查詢連結至指定網站的頁面link:example.com
site:限定搜尋特定網域site:example.com

實戰:對特定站點進行資訊蒐集與滲透測試

以 xxxx.com 為例演示:

  1. 掌握基本架構:site:xxxx.com → 發現子域名 a1~a4.xxxx.com (不同伺服器)
  2. 尋找文件資源:site:xxxx.com filetype:doc → 獲得多份文件
  3. 尋找管理後台:
    • site:xxxx.com intext:管理
    • site:xxxx.com inurl:login
    • site:xxxx.com intitle:管理
    → 發現兩個後台:https://a2.xxxx.com/sys/admin_login.ASP、https://a3.xxxx.com:88/_admin/login_in.ASP
  4. 識別伺服器技術棧:
    • site:a2.xxxx.com filetype:asp、filetype:php、filetype:aspx
    • a2:IIS + ASP 整站 + PHP 論壇
    • a3:IIS + ASPX + ASP,應為自開發系統
  5. 尋找 FTP 帳號洩漏:site:a2.xxxx.com intext:FTP://*:* → 無收穫
  6. 尋找上傳漏洞:
    • site:a2.xxxx.com inurl:file
    • site:a3.xxxx.com inurl:load
    → 發現上傳頁面 https://a2.xxxx.com/sys/uploadfile.ASP,但無權限存取,嘗試 SQL 注入…

提醒: 本文僅供資安研究與防禦教學,請勿用於非法滲透。實際測試需取得授權。

Copyright © Windows教程網 All Rights Reserved