You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GH_USER - Environment variable to specify github user
19
-
GH_PWD - Environment variable to specify password
17
+
GH_USER - Environment variable to specify github user
18
+
GH_PWD - Environment variable to specify password
20
19
GH_TOKEN - Environment variable to specify github token
21
20
```
22
21
23
22
Some example usages are listed below:
24
23
25
24
```shell
26
-
python github-dork.py -r techgaun/github-dorks # search single repo
25
+
python github-dork.py -r techgaun/github-dorks # search single repo
27
26
28
-
python github-dork.py -u techgaun # search all repos of user
27
+
python github-dork.py -u techgaun # search all repos of user
29
28
30
-
python github-dork.py -u dev-nepal # search all repos of an organization
29
+
python github-dork.py -u dev-nepal# search all repos of an organization
31
30
32
31
GH_USER=techgaun GH_PWD=<mypass> python github-dork.py -u dev-nepal # search as authenticated user
33
32
34
-
GH_TOKEN=<github_token> python github-dork.py -u dev-nepal # search using auth token
33
+
GH_TOKEN=<github_token> python github-dork.py -u dev-nepal # search using auth token
35
34
```
36
35
37
36
#### Limitations
@@ -44,82 +43,46 @@ GH_TOKEN=<github_token> python github-dork.py -u dev-nepal # search using a
44
43
Please consider contributing the dorks that can reveal potentially senstive information in github.
45
44
46
45
### List of Dorks
47
-
List of dorks follow. I am not categorizing at the moment. Instead am going to just the list of dorks with optionally a description separated by # in the same line. Many of the dorks can be modified to make the search more specific or generic. You can see more options [HERE](https://github.com/search#search_cheatsheet_pane).
48
-
49
-
```
50
-
filename:.npmrc _auth # npm registry authentication data
51
-
52
-
filename:.dockercfg auth # docker registry authentication data
53
-
54
-
extension:pem private # private keys
55
-
56
-
extension:ppk private # puttygen private keys
57
-
58
-
filename:id_rsa or filename:id_dsa # private ssh keys
59
-
60
-
extension:sql mysql dump # mysql dump
61
-
62
-
extension:sql mysql dump password # mysql dump look for password; you can try varieties
63
-
64
-
filename:credentials aws_access_key_id # might return false negatives with dummy values
65
-
66
-
filename:.s3cfg # might return false negatives with dummy values
67
-
68
-
filename:wp-config.php # wordpress config files
69
-
70
-
filename:.htpasswd # htpasswd files
71
-
72
-
filename:.env DB_USERNAME NOT homestead # laravel .env (CI, various ruby based frameworks too)
filename:.git-credentials # git credentials store, add NOT username for more valid results
77
-
78
-
PT_TOKEN language:bash # pivotaltracker tokens
79
-
80
-
filename:.bashrc password # search for passwords, etc. in .bashrc (try with .bash_profile too)
81
-
82
-
filename:.bashrc mailchimp # variation of above (try more variations)
83
-
84
-
filename:.bash_profile aws # aws access and secret keys
85
-
86
-
rds.amazonaws.com password # Amazon RDS possible credentials
87
-
88
-
extension:json api.forecast.io # try variations, find api keys/secrets
89
-
90
-
extension:json mongolab.com # mongolab credentials in json configs
91
-
92
-
extension:yaml mongolab.com # mongolab credentials in yaml configs (try with yml)
93
-
94
-
jsforce extension:js conn.login # possible salesforce credentials in nodejs projects
95
-
96
-
SF_USERNAME "salesforce" # possible salesforce credentials
97
-
98
-
filename:.tugboat NOT "_tugboat" # Digital Ocean tugboat config
99
-
100
-
HEROKU_API_KEY language:shell # Heroku api keys
101
-
102
-
HEROKU_API_KEY language:json # Heroku api keys in json files
103
-
104
-
filename:.netrc password # netrc that possibly holds sensitive credentials
105
-
106
-
filename:_netrc password # netrc that possibly holds sensitive credentials
107
-
108
-
filename:hub oauth_token # hub config that stores github tokens
109
-
110
-
filename:robomongo.json # mongodb credentials file used by robomongo
111
-
112
-
filename:filezilla.xml Pass # filezilla config file with possible user/pass to ftp
113
-
114
-
filename:recentservers.xml Pass # filezilla config file with possible user/pass to ftp
115
-
116
-
filename:config.json auths # docker registry authentication data
117
-
118
-
filename:idea14.key # IntelliJ Idea 14 key, try variations for other versions
119
-
120
-
filename:config irc_pass # possible IRC config
121
-
122
-
filename:connections.xml # possible db connections configuration, try variations to be specific
123
-
124
-
filename:express.conf path:.openshift # openshift config, only email and server though
125
-
```
46
+
I am not categorizing at the moment. Instead I am going to just the list of dorks with a description. Many of the dorks can be modified to make the search more specific or generic. You can see more options [here](https://github.com/search#search_cheatsheet_pane).
0 commit comments