Debian Codegraph @

pkg/interactive/termhandler.go

raw symbols SCIP
1 package interactivescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/
2
3 import (
4 "bufioscip-go gomod github.com/golang/go/src go1.18 bufio/"
5 "fmtscip-go gomod github.com/golang/go/src go1.18 fmt/"
6 "strconvscip-go gomod github.com/golang/go/src go1.18 strconv/"
7 "stringsscip-go gomod github.com/golang/go/src go1.18 strings/"
8 "timescip-go gomod github.com/golang/go/src go1.18 time/"
9
10 "github.com/ffuf/ffuf/v2/pkg/ffufscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/"
11 )
12
13 type interactivescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive# struct {
14 Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job. *ffufscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#
15 pausedscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#paused. bool
16 }
17
18 func Handlescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/Handle().(job *ffufscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#) error {
19 i := interactivescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#{job, false}
20 tty, err := termHandlescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/termHandle().()
21 if err != nil {
22 return err
23 }
24 defer tty.Closescip-go gomod github.com/golang/go/src go1.18 os/File#Close().()
25 inreader := bufioscip-go gomod github.com/golang/go/src go1.18 bufio/.NewScannerscip-go gomod github.com/golang/go/src go1.18 bufio/NewScanner().(tty)
26 inreader.Splitscip-go gomod github.com/golang/go/src go1.18 bufio/Scanner#Split().(bufioscip-go gomod github.com/golang/go/src go1.18 bufio/.ScanLinesscip-go gomod github.com/golang/go/src go1.18 bufio/ScanLines().)
27 for inreader.Scanscip-go gomod github.com/golang/go/src go1.18 bufio/Scanner#Scan().() {
28 i.handleInputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#handleInput().(inreader.Bytesscip-go gomod github.com/golang/go/src go1.18 bufio/Scanner#Bytes().())
29 }
30 return nil
31 }
32
33 func (i *interactivescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#) handleInputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#handleInput().(in []byte) {
34 instr := string(in)
35 args := stringsscip-go gomod github.com/golang/go/src go1.18 strings/.Splitscip-go gomod github.com/golang/go/src go1.18 strings/Split().(stringsscip-go gomod github.com/golang/go/src go1.18 strings/.TrimSpacescip-go gomod github.com/golang/go/src go1.18 strings/TrimSpace().(instr), " ")
36 if len(args) == 1 && args[0] == "" {
37 // Enter pressed - toggle interactive state
38 i.pausedscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#paused. = !i.pausedscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#paused.
39 if i.pausedscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#paused. {
40 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Pausescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Pause().()
41 timescip-go gomod github.com/golang/go/src go1.18 time/.Sleepscip-go gomod github.com/golang/go/src go1.18 time/Sleep().(500 * timescip-go gomod github.com/golang/go/src go1.18 time/.Millisecondscip-go gomod github.com/golang/go/src go1.18 time/Millisecond.)
42 i.printBannerscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#printBanner().()
43 } else {
44 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Resumescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Resume().()
45 }
46 } else {
47 switch args[0] {
48 case "?":
49 i.printHelpscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#printHelp().()
50 case "help":
51 i.printHelpscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#printHelp().()
52 case "resume":
53 i.pausedscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#paused. = false
54 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Resumescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Resume().()
55 case "restart":
56 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Resetscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Reset().(false)
57 i.pausedscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#paused. = false
58 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Infoscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Info.("Restarting the current ffuf job!")
59 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Resumescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Resume().()
60 case "show":
61 for _, r := range i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..GetCurrentResultsscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#GetCurrentResults.() {
62 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..PrintResultscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#PrintResult.(r)
63 }
64 case "savejson":
65 if len(args) < 2 {
66 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.("Please define the filename")
67 } else if len(args) > 2 {
68 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.("Too many arguments for \"savejson\"")
69 } else {
70 err := i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..SaveFilescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#SaveFile.(args[1], "json")
71 if err != nil {
72 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.(fmtscip-go gomod github.com/golang/go/src go1.18 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.18 fmt/Sprintf().("%s", err))
73 } else {
74 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Infoscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Info.("Output file successfully saved!")
75 }
76 }
77 case "fc":
78 if len(args) < 2 {
79 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.("Please define a value for status code filter, or \"none\" for removing it")
80 } else if len(args) > 2 {
81 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.("Too many arguments for \"fc\"")
82 } else {
83 i.updateFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#updateFilter().("status", args[1], true)
84 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Infoscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Info.("New status code filter value set")
85 }
86 case "afc":
87 if len(args) < 2 {
88 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.("Please define a value to append to status code filter")
89 } else if len(args) > 2 {
90 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.("Too many arguments for \"afc\"")
91 } else {
92 i.appendFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#appendFilter().("status", args[1])
93 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Infoscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Info.("New status code filter value set")
94 }
95 case "fl":
96 if len(args) < 2 {
97 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.("Please define a value for line count filter, or \"none\" for removing it")
98 } else if len(args) > 2 {
99 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.("Too many arguments for \"fl\"")
100 } else {
101 i.updateFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#updateFilter().("line", args[1], true)
102 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Infoscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Info.("New line count filter value set")
103 }
104 case "afl":
105 if len(args) < 2 {
106 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.("Please define a value to append to line count filter")
107 } else if len(args) > 2 {
108 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.("Too many arguments for \"afl\"")
109 } else {
110 i.appendFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#appendFilter().("line", args[1])
111 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Infoscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Info.("New line count filter value set")
112 }
113 case "fw":
114 if len(args) < 2 {
115 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.("Please define a value for word count filter, or \"none\" for removing it")
116 } else if len(args) > 2 {
117 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.("Too many arguments for \"fw\"")
118 } else {
119 i.updateFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#updateFilter().("word", args[1], true)
120 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Infoscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Info.("New word count filter value set")
121 }
122 case "afw":
123 if len(args) < 2 {
124 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.("Please define a value to append to word count filter")
125 } else if len(args) > 2 {
126 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.("Too many arguments for \"afw\"")
127 } else {
128 i.appendFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#appendFilter().("word", args[1])
129 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Infoscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Info.("New word count filter value set")
130 }
131 case "fs":
132 if len(args) < 2 {
133 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.("Please define a value for response size filter, or \"none\" for removing it")
134 } else if len(args) > 2 {
135 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.("Too many arguments for \"fs\"")
136 } else {
137 i.updateFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#updateFilter().("size", args[1], true)
138 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Infoscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Info.("New response size filter value set")
139 }
140 case "afs":
141 if len(args) < 2 {
142 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.("Please define a value to append to size filter")
143 } else if len(args) > 2 {
144 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.("Too many arguments for \"afs\"")
145 } else {
146 i.appendFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#appendFilter().("size", args[1])
147 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Infoscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Info.("New response size filter value set")
148 }
149 case "ft":
150 if len(args) < 2 {
151 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.("Please define a value for response time filter, or \"none\" for removing it")
152 } else if len(args) > 2 {
153 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.("Too many arguments for \"ft\"")
154 } else {
155 i.updateFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#updateFilter().("time", args[1], true)
156 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Infoscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Info.("New response time filter value set")
157 }
158 case "aft":
159 if len(args) < 2 {
160 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.("Please define a value to append to response time filter")
161 } else if len(args) > 2 {
162 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.("Too many arguments for \"aft\"")
163 } else {
164 i.appendFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#appendFilter().("time", args[1])
165 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Infoscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Info.("New response time filter value set")
166 }
167 case "queueshow":
168 i.printQueuescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#printQueue().()
169 case "queuedel":
170 if len(args) < 2 {
171 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.("Please define the index of a queued job to remove. Use \"queueshow\" for listing of jobs.")
172 } else if len(args) > 2 {
173 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.("Too many arguments for \"queuedel\"")
174 } else {
175 i.deleteQueuescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#deleteQueue().(args[1])
176 }
177 case "queueskip":
178 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..SkipQueuescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#SkipQueue().()
179 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Infoscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Info.("Skipping to the next queued job")
180 case "rate":
181 if len(args) < 2 {
182 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.("Please define the new rate")
183 } else if len(args) > 2 {
184 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.("Too many arguments for \"rate\"")
185 } else {
186 newrate, err := strconvscip-go gomod github.com/golang/go/src go1.18 strconv/.Atoiscip-go gomod github.com/golang/go/src go1.18 strconv/Atoi().(args[1])
187 if err != nil {
188 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.(fmtscip-go gomod github.com/golang/go/src go1.18 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.18 fmt/Sprintf().("Could not adjust rate: %s", err))
189 } else {
190 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Ratescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Rate..ChangeRatescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/RateThrottle#ChangeRate().(newrate)
191 }
192 }
193
194 default:
195 if i.pausedscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#paused. {
196 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Warningscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Warning.(fmtscip-go gomod github.com/golang/go/src go1.18 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.18 fmt/Sprintf().("Unknown command: \"%s\". Enter \"help\" for a list of available commands", args[0]))
197 } else {
198 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Errorscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Error.("NOPE")
199 }
200 }
201 }
202
203 if i.pausedscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#paused. {
204 i.printPromptscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#printPrompt().()
205 }
206 }
207
208 func (i *interactivescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#) refreshResultsscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#refreshResults().() {
209 results := make([]ffufscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/.Resultscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Result#, 0)
210 filters := i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Configscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Config..MatcherManagerscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Config#MatcherManager..GetFiltersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/MatcherManager#GetFilters.()
211 for _, filter := range filters {
212 for _, res := range i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..GetCurrentResultsscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#GetCurrentResults.() {
213 fakeResp := &ffufscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/.Responsescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Response#{
214 StatusCodescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Response#StatusCode.: res.StatusCodescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Result#StatusCode.,
215 ContentLinesscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Response#ContentLines.: res.ContentLengthscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Result#ContentLength.,
216 ContentWordsscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Response#ContentWords.: res.ContentWordsscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Result#ContentWords.,
217 ContentLengthscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Response#ContentLength.: res.ContentLengthscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Result#ContentLength.,
218 }
219 filterOut, _ := filter.Filterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/FilterProvider#Filter.(fakeResp)
220 if !filterOut {
221 results = append(results, res)
222 }
223 }
224 }
225 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..SetCurrentResultsscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#SetCurrentResults.(results)
226 }
227
228 func (i *interactivescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#) updateFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#updateFilter().(name, value string, replace bool) {
229 if value == "none" {
230 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Configscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Config..MatcherManagerscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Config#MatcherManager..RemoveFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/MatcherManager#RemoveFilter.(name)
231 } else {
232 _ = i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Configscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Config..MatcherManagerscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Config#MatcherManager..AddFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/MatcherManager#AddFilter.(name, value, replace)
233 }
234 i.refreshResultsscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#refreshResults().()
235 }
236
237 func (i *interactivescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#) appendFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#appendFilter().(name, value string) {
238 i.updateFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#updateFilter().(name, value, false)
239 }
240
241 func (i *interactivescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#) printQueuescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#printQueue().() {
242 if len(i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..QueuedJobsscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#QueuedJobs().()) > 0 {
243 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Rawscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Raw.("Queued jobs:\n")
244 for index, job := range i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..QueuedJobsscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#QueuedJobs().() {
245 postfix := ""
246 if index == 0 {
247 postfix = " (active job)"
248 }
249 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Rawscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Raw.(fmtscip-go gomod github.com/golang/go/src go1.18 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.18 fmt/Sprintf().(" [%d] : %s%s\n", index, job.Urlscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/QueueJob#Url., postfix))
250 }
251 } else {
252 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Infoscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Info.("Job queue is empty")
253 }
254 }
255
256 func (i *interactivescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#) deleteQueuescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#deleteQueue().(in string) {
257 index, err := strconvscip-go gomod github.com/golang/go/src go1.18 strconv/.Atoiscip-go gomod github.com/golang/go/src go1.18 strconv/Atoi().(in)
258 if err != nil {
259 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Warningscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Warning.(fmtscip-go gomod github.com/golang/go/src go1.18 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.18 fmt/Sprintf().("Not a number: %s", in))
260 } else {
261 if index < 0 || index > len(i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..QueuedJobsscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#QueuedJobs().())-1 {
262 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Warningscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Warning.("No such queued job. Use \"queueshow\" to list the jobs in queue")
263 } else if index == 0 {
264 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Warningscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Warning.("Cannot delete the currently running job. Use \"queueskip\" to advance to the next one")
265 } else {
266 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..DeleteQueueItemscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#DeleteQueueItem().(index)
267 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Infoscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Info.("Job successfully deleted!")
268 }
269 }
270 }
271 func (i *interactivescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#) printBannerscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#printBanner().() {
272 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Rawscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Raw.("entering interactive mode\ntype \"help\" for a list of commands, or ENTER to resume.\n")
273 }
274
275 func (i *interactivescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#) printPromptscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#printPrompt().() {
276 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Rawscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Raw.("> ")
277 }
278
279 func (i *interactivescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#) printHelpscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#printHelp().() {
280 var fc, fl, fs, ft, fw string
281 for name, filter := range i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Configscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Config..MatcherManagerscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Config#MatcherManager..GetFiltersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/MatcherManager#GetFilters.() {
282 switch name {
283 case "status":
284 fc = "(active: " + filter.Reprscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/FilterProvider#Repr.() + ")"
285 case "line":
286 fl = "(active: " + filter.Reprscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/FilterProvider#Repr.() + ")"
287 case "word":
288 fw = "(active: " + filter.Reprscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/FilterProvider#Repr.() + ")"
289 case "size":
290 fs = "(active: " + filter.Reprscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/FilterProvider#Repr.() + ")"
291 case "time":
292 ft = "(active: " + filter.Reprscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/FilterProvider#Repr.() + ")"
293 }
294 }
295 rate := fmtscip-go gomod github.com/golang/go/src go1.18 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.18 fmt/Sprintf().("(active: %d)", i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Configscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Config..Ratescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Config#Rate.)
296 help := `
297 available commands:
298 afc [value] - append to status code filter %s
299 fc [value] - (re)configure status code filter %s
300 afl [value] - append to line count filter %s
301 fl [value] - (re)configure line count filter %s
302 afw [value] - append to word count filter %s
303 fw [value] - (re)configure word count filter %s
304 afs [value] - append to size filter %s
305 fs [value] - (re)configure size filter %s
306 aft [value] - append to time filter %s
307 ft [value] - (re)configure time filter %s
308 rate [value] - adjust rate of requests per second %s
309 queueshow - show job queue
310 queuedel [number] - delete a job in the queue
311 queueskip - advance to the next queued job
312 restart - restart and resume the current ffuf job
313 resume - resume current ffuf job (or: ENTER)
314 show - show results for the current job
315 savejson [filename] - save current matches to a file
316 help - you are looking at it
317 `
318 i.Jobscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/interactive`/interactive#Job..Outputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/Job#Output..Rawscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/OutputProvider#Raw.(fmtscip-go gomod github.com/golang/go/src go1.18 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.18 fmt/Sprintf().(help, fc, fc, fl, fl, fw, fw, fs, fs, ft, ft, rate))
319 }