
तेज़ GitHub रीकॉन उपकरण। सभी GitHub पर लीक हुए रहस्यों को स्कैन करता है, केवल ज्ञात रेपो और संगठनों तक सीमित नहीं। GitHub डॉर्क्स के लिए समर्थन।
GitHound, GitHub dorks को पैटर्न मिलान, प्रासंगिक पहचान और कमिट-इतिहास विश्लेषण के साथ जोड़कर, पूरे GitHub में उजागर API कुंजियों, गुप्तों और क्रेडेंशियल्स की खोज करता है। GitHound में एक GitHub dork डालें, और यह आपकी क्वेरी से मेल खाने वाली किसी भी फ़ाइल और रेपो को स्कैन करेगा। सामान्य स्कैनर्स के विपरीत, GitHound GitHub के Code Search API का लाभ उठाता है, जो आपको केवल कुछ लक्ष्यों तक ही सीमित नहीं, बल्कि सभी सार्वजनिक रिपॉजिटरी में पूर्ण दृश्यता देता है। अधिक जानकारी में उपलब्ध है।
नए GitHound Explore डैशबोर्ड के साथ अपने खोज परिणामों को रीयल-टाइम में विज़ुअलाइज़ और प्रबंधित करें। अभी https://githoundexplore.com पर या --dashboard फ़्लैग का उपयोग करके मुफ्त में शुरुआत करें। GitHound या TruffleHog की स्थानीय स्थापना के साथ इसका उपयोग करने का तरीका Wiki पृष्ठ पर जानें। ध्यान रखें कि आप डैशबोर्ड के बिना भी GitHound का उपयोग कर सकते हैं।
हमने एक GitHub Dorks डेटाबेस भी शुरू किया है, जहाँ आप विभिन्न API कीवर्ड के लिए dorks ब्राउज़ और खोज सकते हैं और नए dorks के लिए विचार प्राप्त कर सकते हैं! इसे https://githoundexplore.com/github-dorks पर देखें।
🔍 वैश्विक GitHub खोज – पूरे GitHub में, Gists सहित, गुप्तों का पता लगाएं
🔑 स्मार्ट API कुंजी पहचान – regex + एंट्रॉपी + संदर्भ मिलान
🕵️ कमिट इतिहास खोदाई – हटाए गए या वापस लिए गए क्रेडेंशियल्स का पता लगाएं
🧮 अनुकूली स्कोरिंग – गलत सकारात्मक को छांटता है
🧰 Base64 डिकोडिंग और एन्कोडेड गुप्त निष्कर्षण
💻 ऑटोमेशन पाइपलाइनों के लिए JSON आउटपुट और कस्टम regex नियम
echo "AKIA" | git-hound or git-hound --query "AKIA"
config.yml में एक API कुंजी सेट है।./git-hound चलाएं (सुनिश्चित करें कि आप सही निर्देशिका में हैं!)कॉन्फ़िगरेशन:
GitHound मुख्य रूप से कॉन्फ़िगरेशन के लिए config.yml (वर्तमान निर्देशिका या $HOME/.githound/ में स्थित) का उपयोग करता है। उदाहरण के लिए config.example.yml देखें।
वैकल्पिक रूप से, आप पर्यावरण चर का उपयोग कर सकते हैं, जो config.yml में मानों को ओवरराइड करेंगे:
GITHOUND_GITHUB_TOKEN: GitHub API एक्सेस टोकन सेट करता है।GITHOUND_INSERT_KEY: --dashboard सुविधा के लिए GitHoundExplore इन्सर्ट की सेट करता है।GitHound Gitleaks लेखकों द्वारा अनुरक्षित API कुंजी regexes के डेटाबेस का उपयोग करता है।
किसी विशिष्ट सेवा की API कुंजियों के पैटर्न को जानने से आप GitHub पर इन कुंजियों की खोज कर सकते हैं। फिर आप अपने कस्टम कुंजी regex के मिलानों को अपनी स्क्रिप्ट में पाइप कर सकते हैं ताकि API कुंजी को सेवा के विरुद्ध परीक्षण कर सकें और जोखिम वाले खाते की पहचान कर सकें।
echo "api.halcorp.biz" | githound --dig-files --dig-commits --many-results --rules halcorp-api-regexes.txt --results-only | python halapitester.py
भविष्य में API कुंजी लीक का पता लगाने के लिए, GitHub Push Token Scanning प्रदान करता है जो पोस्ट होने पर तुरंत API कुंजियों का पता लगाता है।
GitHound का मेरा प्राथमिक उपयोग बग बाउंटी कार्यक्रमों के लिए संवेदनशील जानकारी खोजना है। उच्च-प्रोफ़ाइल लक्ष्यों के लिए, --many-results हैक और --languages फ़्लैग >100 पृष्ठों के परिणामों को स्क्रैप करने के लिए उपयोगी हैं।
echo "\"uberinternal.com\"" | githound --dig-files --dig-commits --many-results --languages common-languages.txt --threads 100
https://github.com/tillson/git-hound/blob/master/internal/app/keyword_scan.go GitHound API कुंजियाँ ढूंढता है Slack और AWS जैसी सामान्य सेवाओं के लिए सटीक regexes और एक संदर्भ-संवेदनशील सामान्य API regex के संयोजन से। यह लंबे स्ट्रिंग्स ढूंढता है जो "Authorization" और "API-Token" जैसे कीवर्ड से घिरी API कुंजियों की तरह दिखती हैं। GitHound मानता है कि ये गलत सकारात्मक हैं और फिर शैनन एंट्रॉपी, शब्दकोश शब्द जांच, विशिष्टता गणना और एन्कोडिंग पहचान के साथ उनकी वैधता साबित करता है। GitHound फिर उच्च निश्चितता वाले सकारात्मक आउटपुट करता है। गुप्तों को एन्कोड करने वाली फ़ाइलों के लिए, base64 स्ट्रिंग्स को डिकोड करता है और एन्कोडेड स्ट्रिंग्स में API कुंजियाँ खोजता है।
उपयोग के मामलों और पद्धतियों पर अधिक जानकारी के लिए यह ब्लॉग पोस्ट देखें।
GitHound पैटर्न मिलान, लक्षित क्वेरींग और एक मजबूत स्कोरिंग सिस्टम का उपयोग करके GitHub पर उजागर API कुंजियों को ढूंढना आसान बनाता है।
Usage:
-h, --help help for githound
--dashboard Stream results to web dashboard (see https://githoundexplore.com)
--all-results Print all results, even if they do not contain secrets
--api-debug Prints details about GitHub API requests and counts them.
--config-file string Supply the path to a config file.
--debug Enables verbose debug logging.
--dig-commits Dig through commit history to find more secrets (CPU intensive).
--dig-files Dig through the repo's files to find more secrets (CPU intensive).
--fast Skip file grepping and only return search preview
--json Print results in JSON format
--many-results Search >100 pages with filtering hack
--no-api-keys Don't search for generic API keys.
--no-files Don't search for interesting files.
--no-gists Don't search Gists
--no-keywords Don't search for built-in keywords
--no-repos Don't search repos
--no-scoring Don't use scoring to filter out false positives.
--otp-code string Github account 2FA token used for sign-in. (Only use if you have 2FA enabled on your account via authenticator app)
--pages int Maximum pages to search per query (default 100)
--profile Enable pprof profiling on localhost:6060
--profile-addr string Address to serve pprof profiles (default "localhost:6060")
--query string A query string (default: stdin)
--query-file string A file containing a list of subdomains (or other queries).
--results-only Only print match strings.
--rules string Path to a list of regexes or a GitLeaks rules folder. (default "rules/")
--search-type api Search interface (api or `ui`).
--threads int Threads to dig with (default 20)
On launch.json send the needed flags as args "args": [ "searchKeyword", "tillsongalloway.com", "--regex-file", "regexes.txt" ]
मुख्य फ़ोल्डर से: go build .
Git-Hound के लिए Docker इमेज बनाने के लिए, निम्न कमांड का उपयोग करें:
docker build -t my-githound-container .
यह कमांड my-githound-container टैग के साथ Docker इमेज बनाता है। आप टैग नाम अपनी पसंद के अनुसार बदल सकते हैं।
Git-Hound Docker कंटेनर चलाने के लिए, आपको Docker वॉल्यूम के माध्यम से अपनी config.yaml फ़ाइल और कोई भी इनपुट फ़ाइल (जैसे subdomains.txt) प्रदान करनी होगी।
config.yaml माउंट करनाअपनी config.yaml फ़ाइल को अपने होस्ट मशीन पर एक ज्ञात स्थान पर रखें। इस फ़ाइल में GitHub क्रेडेंशियल्स सहित आपका Git-Hound कॉन्फ़िगरेशन होना चाहिए।
Example config.yaml:
# config.yaml
github_username: "your_username"
github_password: "your_password"
# Optional: GitHub TOTP seed
# github_totp_seed: "ABCDEF1234567890"
यदि आपके पास subdomains.txt जैसी कोई फ़ाइल है, तो इसे अपने होस्ट मशीन पर एक निर्देशिका में रखें।
अपने कॉन्फ़िगरेशन और इनपुट फ़ाइलों के साथ कंटेनर चलाने के लिए निम्न कमांड का उपयोग करें:
docker run -v /path/to/config.yaml:/root/.githound/config.yaml -v $(pwd)/data:/data my-githound-container --subdomain-file /data/subdomains.txt
/path/to/config.yaml को अपनी config.yaml फ़ाइल के वास्तविक पथ से बदलें। -v $(pwd)/data:/data भाग आपकी इनपुट फ़ाइलों (subdomains.txt) वाली निर्देशिका को कंटेनर में माउंट करता है।