-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathmaigret.ts
278 lines (277 loc) · 7.13 KB
/
maigret.ts
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
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
const completionSpec: Fig.Spec = {
name: "maigret",
description:
"Maigret is an easy-to-use and powerful OSINT tool for collecting a dossier on a person by username only",
args: {
name: "user",
description: "The username for which you want to search sites",
isVariadic: true,
},
options: [
{
name: ["-a", "--all-sites"],
description: "Use all sites for scan",
icon: "🌍",
},
{
name: "--version",
description: "Display version information and dependencies",
},
{
name: "--timeout",
args: {
name: "Timeout",
description: "Timeout in seconds",
},
description:
"Time in seconds to wait for response to requests (default {settings.timeout}s). A longer timeout will be more likely to get results from slow sites. On the other hand, this may cause a long delay to gather all results",
icon: "⚙️",
},
{
name: "--retries",
args: {
name: "Retries",
description: "Number of attempts",
},
description: "Attempts to restart temporarily failed requests",
icon: "⚙️",
},
{
name: ["-n", "--max-connections"],
args: {
name: "Connections",
description: "Number connections",
},
description:
"Allowed number of concurrent connections (default {settings.max_connections})",
icon: "⚙️",
},
{
name: "--no-recursion",
description:
"Disable recursive search by additional data extracted from pages",
icon: "⚙️",
},
{
name: "--no-extracting",
description:
"Disable parsing pages for additional data and other usernames",
icon: "⚙️",
},
{
name: "--id-type",
args: {
name: "Type",
description: "Type of identifier",
suggestions: [
"username",
"yandex_public_id",
"gaia_id",
"vk_id",
"ok_id",
"wikimapia_uid",
"steam_id",
"uidme_uguid",
"yelp_userid",
],
default: "username",
},
description: "Specify identifier(s) type (default: username)",
icon: "⚙️",
},
{
name: "--db",
args: {
name: "DB path",
description: "DB path",
template: ["filepaths"],
},
description:
"Load Maigret database from a JSON file or HTTP web resource",
icon: "🗄",
},
{
name: "--cookies-jar-file",
args: {
name: "Cookie file",
description: "Cookie file",
template: ["filepaths"],
},
description: "File with cookies",
icon: "🍪",
},
{
name: "--ignore-ids",
args: {
name: "Ignored ids",
description: "Ignored ids",
isVariadic: true,
},
description: "Do not make search by the specified username or other ids",
},
{
name: ["-fo", "--folderoutput"],
args: {
name: "Reports path",
description: "Reports path",
template: "folders",
},
description:
"If using multiple usernames, the output of the results will be saved to this folder",
},
{
name: ["-p", "--proxy"],
args: {
name: "Proxy URL",
description: "Proxy URL",
},
description: "Make requests over a proxy. e.g. socks5://127.0.0.1:1080",
},
{
name: "--tor-proxy",
args: {
name: "Tor Proxy URL",
description: "Tor Proxy URL",
},
description:
"Specify URL of your Tor gateway. Default is socks5://127.0.0.1:9050",
},
{
name: "--i2p-proxy",
args: {
name: "I2P URL",
description: "I2P URL",
},
description:
"Specify URL of your I2P gateway. Default is http://127.0.0.1:4444",
},
{
name: "--with-domains",
description:
"Enable (experimental) feature of checking domains on usernames",
},
{
name: "--tags",
args: {
name: "Tags",
isVariadic: true,
},
description: "Specify tags of sites (see `--stats`)",
},
{
name: "--site",
args: {
name: "Site name",
isVariadic: true,
// TODO: autocomplete from https://github.com/soxoj/maigret/blob/main/sites.md
},
description:
"Limit analysis to just the specified sites (multiple option)",
},
{
name: "--use-disabled-sites",
description:
"Use disabled sites to search (may cause many false positives)",
},
{
name: "--parse",
args: {
name: "Parse URL",
default: "",
},
description:
"Parse page by URL and extract username and IDs to use for search",
},
{
name: "--submit",
args: {
name: "Site URL",
default: "False",
},
description: "URL of existing profile in new site to submit",
},
{
name: "--self-check",
description:
"Do self check for sites and database and disable non-working ones",
},
{
name: "--stats",
description:
"Show database statistics (most frequent sites engines and tags)",
},
{
name: "--print-not-found",
description: "Print sites where the username was not found",
},
{
name: "--print-errors",
description:
"Print errors messages: connection, captcha, site country ban, etc",
},
{
name: ["-v", "--verbose"],
description: "Display extra information and metrics",
},
{
name: ["-info", "--vv"],
description: "Display extra/service information and metrics",
},
{
name: ["--debug", "-vvv", "-d"],
description:
"Display extra/service/debug information and metrics, save responses in debug.log",
},
{
name: "--no-color",
description: "Don't color terminal output",
},
{
name: "--no-progressbar",
description: "Don't show progressbar",
},
{
name: ["-T", "--txt"],
description: "Create a TXT report (one report per username)",
},
{
name: ["-C", "--csv"],
description: "Create a CSV report (one report per username)",
},
{
name: ["-H", "--html"],
description: "Create an HTML report (one report per username)",
},
{
name: ["-X", "--xmind"],
description: "Create a XMind 8 mindmap report (one report per username)",
},
{
name: ["-P", "--pdf"],
description: "Create a PDF report (one report per username)",
},
{
name: ["-G", "--graph"],
description: "Create a graph report (one report per username)",
},
{
name: ["-J", "--json"],
args: {
name: "Type",
suggestions: ["simple", "ndjson"],
},
description:
"Generate a JSON report of specific type: simple, ndjson (one report per username)",
},
{
name: "--reports-sorting",
args: {
name: "Type",
suggestions: ["default", "data"],
},
description:
"Method of results sorting in reports (default: in order of getting the result)",
},
],
};
export default completionSpec;