-
-
Notifications
You must be signed in to change notification settings - Fork 339
/
HOWTO.txt
264 lines (225 loc) · 5.84 KB
/
HOWTO.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
| github HTML | github API | must be authed
----------------------------------------------------------
bio | X | X |
----------------------------------------------------------
status | X | |
----------------------------------------------------------
email | X | X | X
----------------------------------------------------------
company | X | X |
----------------------------------------------------------
organization | X | |
(people)
MY METHODOLOGY:
- company official account
https://github.com/<company>
- users listed in "People"
https://github.com/orgs/<company>/people
- users retrieved from search
https://github.com/search?q=<company>&type=Users
github-users.py -k <company>
- users listed as collaborators
github-contributors.py -o <company>
- users retrieved from google/linkedin search
github-employees.py -f <fb_cookie> -t <company> -p 50 -m github
github-employees.py -f <fb_cookie> -t <company> -t <company.com> -t "<company> developer" -t "<company> admin" -t "<company> engineer" -t "<company> programmer" -t "<company> designer" -p 50 -m linkedin
### -> cat reco-github | egrep -o -i "github.com/[-_a-z0-9]*" | cut -d '/' -f 2 | sort -fu | tr "\n" ","
-> cat reco-github | awk -F '|' '{print $3" "$6}' | grep -i tripadvisor | awk '{print $1}' | sort -fu
-> cat reco-github-sure | egrep "github.com/[^ ]+" -o | cut -d '/' -f 2 | sort -fu | tr "\n" ","
- for all those entities, perform the following code searches (specific to the company, ex: <company>, domain.com)
github-dorks.php u <user> company-dorks.txt
- for all positive results, perform the following code searches
github-grabrepo.php -d <user> -u <user>
- for all those repositories, perform the following regexp search
git-history.py -p <path> -s ~/.gf/mykeys
git-history.py -p <path> -s <company keyword>
- for all positive results, perform the following code searches
github-dorks.php u <user> dorks.txt
-> https://github.com/search?o=desc&s=indexed&type=Code&q=user%3A<user>+<keyword>
filename:constants
filename:settings
filename:database
filename:config
filename:environment
filename:env
filename:cfg
filename:yml
filename:yaml
filename:properties
filename:zhrc
filename:bat
filename:sh
filename:py
filename:npmrc
filename:dockercfg
filename:pem
filename:ppk
filename:sql
filename:credentials
filename:connections
filename:s3cfg
filename:wp-config
filename:htpasswd
filename:git-credentials
filename:id_dsa
filename:id_rsa
filename:bash_history
filename:bash_profile
filename:bashrc
filename:cshrc
filename:history
filename:netrc
filename:pgpass
filename:tugboat
filename:dhcpd.conf
filename:express.conf
filename:filezilla.xml
filename:idea14.key
filename:makefile
filename:prod.exs
filename:prod.secret.exs
filename:proftpdpasswd
filename:recentservers.xml
filename:robomongo.json
filename:server.cfg
filename:shadow
filename:sshd_config
dotfiles
config
dbpasswd
db_password
db_username
dbuser
dbpassword
keyPassword
storePassword
password
pass
pwd
credentials
security_credentials
connectionstring
private
private_key
token
access_token
oauth_token
secret
secret_key
secret_token
api_secret
client_secret
key
apikey
api_key
app_key
access_key
secret_access_key
auth
login
conn.login
ftp
ssh
ssh2_auth_password
irc_pass
fb_secret
sf_username
send_keys
aws_access
bucket_password
redis_password
root_password
gsecr
jdbc
amazonaws.com
firebaseio.com
cloudfront.net
storage.google
storage.cloud.google
digitaloceanspaces.com
mailchimp
###############################################################################################################
##############################THE OLD ONE ###################################THE OLD ONE ######################
###############################################################################################################
# php /home/gwen/Security/mytools/github-search/github-grabrepo.php -o deliveroo -d $(pwd)
# for r in $(ls -1) ; do echo $r; trufflehog https://github.com/deliveroo/$r > "$r-trufflehog.txt"; done
# for r in $(ls -1) ; do echo $r; cd $r; git log > "$r-reflog.txt"; cd ..; done
extract-endpoints -d $(pwd) -n "apk,dex,jar,png,so,zip,pack" -r -e "*" -v 1 -k
extract-endpoints -d $(pwd) -n "apk,dex,jar,png,so,zip,pack" -r -e "*" -v 1 -c
extract-endpoints -d $(pwd) -n "apk,dex,jar,png,so,zip,pack" -r -e "*" -v 1
https://github.com/<company>
- search specific services
ftp, ssh, http, vpn...
<example.com> <keyword>
<example> <keyword>
<company> <keyword>
org:<company> <keyword>
user:<user> <keyword>
<company> language:<python> <keyword>
<company> language:<python> <keyword> NOT <unwanted keyword>
find people:
<company> dotfiles
<company> language:bash
<company> language:python
-> Recently indexed
KEYWORDS:
password
secret
credentials
token
config
key
pass
login
ftp
pwd
security_credentials
connectionstring
JDBC
ssh2_auth_password
send_keys
send,keys
password
dbpassword
dbuser
access_key
secret_access_key
bucket_password
redis_password
root_password
filename:.npmrc _auth
filename:.dockercfg auth
extension:pem private
extension:ppk private
filename:id_rsa or filename:id_dsa
extension:sql mysql dump
extension:sql mysql dump password
filename:credentials aws_access_key_id
filename:.s3cfg
filename:wp-config.php
filename:.htpasswd
filename:.env DB_USERNAME NOT homestead
filename:.env MAIL_HOST=smtp.gmail.com
filename:.git-credentials
dotfiles
db_password
aws_access
access_key
secret_access_key
credential
credentials
api_secret
keyPassword
storePassword
filename:constants.py
filename:settings.py
filename:database.yml
filename:environment.rb
filename:env
filename:cfg
filename:yml
filename:properties
filename:zhrc
filename:bat
filename:sh
filename:py