Search GitHub Repositories

Google Search

site:github.com ( "keyword1" OR "keyword2" ) -"company-name-1 corp"

Sensitive files of a company/user

  • Go to the Company/User page on Github.
  • In the search box, enter search like filename:users

GitHub Dorks

General

DescriptionGitHub Dork
Host Header Injectionhost path:**/*forgot*/**
GitHub Dorks

PHP

DescriptionGitHub Dork
XSS/\becho\b.*\$_GET\b/
/echo\s+\$_REQUEST/
/^.*\becho\s+\$_GET\b.*$/
XSS
(more false positives)
/^.*\becho\s+\$\b.*$/
SQLi/(SELECT|INSERT|UPDATE|DELETE)\s(.*\$_POST|.*\$_GET|.*\$_REQUEST)/
OS Cmd injection/(exec\(|system\(|shell_exec\(|passthru\()(.*\$_POST|.*\$_GET|.*\$_REQUEST)/
Host Header Injection (Node.js)req.headers.host path:*pass*
/\$_SERVER\[‘host’\]|gethostname\(\).*(reset|forgot)/
Insecure Deserialization/(unserialize\()(.*\$_POST|.*\$_GET|.*\$_REQUEST)/
GitHub Dorks for PHP

.NET

DescriptionGitHub Dork
Host Header Injection/(Request\.Headers\[“Host”\]|Request\.Host\.Value|HttpContext\.Current\.Request\.Headers\[“Host”\]|HttpContext\.Request\.Host\.Value)/ forgot
GitHub Dorks for .NET