Wide Source Code Search - HackTricks

# Wide Source Code Search

> [!TIP] Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE)
> Learn & practice GCP Hacking: HackTricks Training GCP Red Team Expert (GRTE)

> Support HackTricks
> - Check the subscription plans!
> - Join the 💬 Discord group or the telegram group or follow us on Twitter 🐦 @hacktricks_live.
> - Share hacking tricks by submitting PRs to the HackTricks and HackTricks Cloud github repos.

The goal of this page is to enumerate platforms that allow to search for code (literal or regex) in across thousands/millions of repos in one or more platforms.

This helps in several occasions to search for leaked information or for vulnerabilities patterns.

- Sourcebot: Open source code search tool. Index and search across thousands of your repos through a modern web interface.
- SourceGraph: Search in millions of repos. There is a free version and an enterprise version (with 15 days free). It supports regexes.
- Github Search: Search across Github. It supports regexes.
  - Maybe it's also useful to check also Github Code Search.
- Gitlab Advanced Search: Search across Gitlab projects. Support regexes.
- SearchCode: Search code in millions of projects.

> [!WARNING] When you look for leaks in a repo and run something like `git log -p` don't forget there might be other branches with other commits containing secrets!

> [!TIP] Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE)
> Learn & practice GCP Hacking: HackTricks Training GCP Red Team Expert (GRTE)

> Support HackTricks
> - Check the subscription plans!
> - Join the 💬 Discord group or the telegram group or follow us on Twitter 🐦 @hacktricks_live.
> - Share hacking tricks by submitting PRs to the HackTricks and HackTricks Cloud github repos.