forked from 0x09AL/raven
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompleters.go
59 lines (50 loc) · 1.39 KB
/
completers.go
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
package terminal
import (
"github.com/chzyer/readline"
"raven/database"
)
var MainCompleter = readline.NewPrefixCompleter(
readline.PcItem("new" ,
readline.PcItem("scan"),
),
readline.PcItem("use",
readline.PcItemDynamic(database.GetScanCompleters()),
),
readline.PcItem("scans"),
)
var ScanCompleter = readline.NewPrefixCompleter(
readline.PcItem("options"),
readline.PcItem("back"),
readline.PcItem("start"),
readline.PcItem("set",
readline.PcItem("scan_name"),
readline.PcItem("company"),
readline.PcItem("domain"),
readline.PcItem("pages_number"),
),
readline.PcItem("unset",
readline.PcItem("scan_name"),
readline.PcItem("company"),
readline.PcItem("domain"),
),
)
var ExportCompleter = readline.NewPrefixCompleter(
readline.PcItem("export"),
readline.PcItem("set",
readline.PcItem("domain"),
readline.PcItem("output"),
readline.PcItem("format",
readline.PcItem("{firstname}.{lastname}@{domain}"),
readline.PcItem("{lastname}.{firstname}@{domain}"),
readline.PcItem("{firstname}-{lastname}@{domain}"),
readline.PcItem("{firstname[0]}{lastname}@{domain}"),
readline.PcItem("{lastname}{firstname[0]}@{domain}"),
readline.PcItem("{lastname[0]}{firstname}@{domain}"),
readline.PcItem("{firstname}{lastname[0]}@{domain}"),
readline.PcItem("ALL"),
),
),
readline.PcItem("options"),
readline.PcItem("checkpwned"),
readline.PcItem("back"),
)