Skip to content

Commit 608c938

Browse files
committed
lint
1 parent 99cc67d commit 608c938

9 files changed

Lines changed: 17 additions & 17 deletions

File tree

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ require (
2020
github.com/russross/blackfriday/v2 v2.1.0 // indirect
2121
github.com/xrash/smetrics v0.0.0-20250705151800-55b8f293f342 // indirect
2222
golang.org/x/crypto v0.48.0 // indirect
23-
golang.org/x/mod v0.30.0 // indirect
23+
golang.org/x/mod v0.33.0 // indirect
2424
golang.org/x/net v0.50.0 // indirect
25-
golang.org/x/sync v0.18.0 // indirect
25+
golang.org/x/sync v0.19.0 // indirect
2626
golang.org/x/sys v0.41.0 // indirect
27-
golang.org/x/tools v0.39.0 // indirect
27+
golang.org/x/tools v0.42.0 // indirect
2828
mvdan.cc/gofumpt v0.9.2 // indirect
2929
)
3030

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,22 @@ go.uber.org/automaxprocs v1.6.0/go.mod h1:ifeIMSnPZuznNm6jmdzmU3/bfk01Fe2fotchwE
3939
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
4040
golang.org/x/crypto v0.48.0 h1:/VRzVqiRSggnhY7gNRxPauEQ5Drw9haKdM0jqfcCFts=
4141
golang.org/x/crypto v0.48.0/go.mod h1:r0kV5h3qnFPlQnBSrULhlsRfryS2pmewsg+XfMgkVos=
42-
golang.org/x/mod v0.30.0 h1:fDEXFVZ/fmCKProc/yAXXUijritrDzahmwwefnjoPFk=
43-
golang.org/x/mod v0.30.0/go.mod h1:lAsf5O2EvJeSFMiBxXDki7sCgAxEUcZHXoXMKT4GJKc=
42+
golang.org/x/mod v0.33.0 h1:tHFzIWbBifEmbwtGz65eaWyGiGZatSrT9prnU8DbVL8=
43+
golang.org/x/mod v0.33.0/go.mod h1:swjeQEj+6r7fODbD2cqrnje9PnziFuw4bmLbBZFrQ5w=
4444
golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
4545
golang.org/x/net v0.50.0 h1:ucWh9eiCGyDR3vtzso0WMQinm2Dnt8cFMuQa9K33J60=
4646
golang.org/x/net v0.50.0/go.mod h1:UgoSli3F/pBgdJBHCTc+tp3gmrU4XswgGRgtnwWTfyM=
47-
golang.org/x/sync v0.18.0 h1:kr88TuHDroi+UVf+0hZnirlk8o8T+4MrK6mr60WkH/I=
48-
golang.org/x/sync v0.18.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
47+
golang.org/x/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4=
48+
golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
4949
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
5050
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
5151
golang.org/x/sys v0.41.0 h1:Ivj+2Cp/ylzLiEU89QhWblYnOE9zerudt9Ftecq2C6k=
5252
golang.org/x/sys v0.41.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
5353
golang.org/x/term v0.40.0 h1:36e4zGLqU4yhjlmxEaagx2KuYbJq3EwY8K943ZsHcvg=
5454
golang.org/x/term v0.40.0/go.mod h1:w2P8uVp06p2iyKKuvXIm7N/y0UCRt3UfJTfZ7oOpglM=
5555
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
56-
golang.org/x/tools v0.39.0 h1:ik4ho21kwuQln40uelmciQPp9SipgNDdrafrYA4TmQQ=
57-
golang.org/x/tools v0.39.0/go.mod h1:JnefbkDPyD8UU2kI5fuf8ZX4/yUeh9W877ZeBONxUqQ=
56+
golang.org/x/tools v0.42.0 h1:uNgphsn75Tdz5Ji2q36v/nsFSfR/9BRFvqhGBaJGd5k=
57+
golang.org/x/tools v0.42.0/go.mod h1:Ma6lCIwGZvHK6XtgbswSoWroEkhugApmsXyrUmBhfr0=
5858
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
5959
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
6060
mvdan.cc/gofumpt v0.9.2 h1:zsEMWL8SVKGHNztrx6uZrXdp7AX8r421Vvp23sz7ik4=

gobusterdir/gobusterdir.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ func (d *GobusterDir) ProcessWord(ctx context.Context, word string, progress *li
310310
if d.options.BodyOutputDir != "" && body != nil {
311311
fname := libgobuster.SanitizeFilename(fmt.Sprintf("%s_%d.html", strings.Trim(entity, "/"), statusCode))
312312
fpath := filepath.Join(d.options.BodyOutputDir, fname)
313-
err := os.WriteFile(fpath, body, 0o600)
313+
err := os.WriteFile(fpath, body, 0o600) // nolint:gosec
314314
if err != nil {
315315
progress.MessageChan <- libgobuster.Message{
316316
Level: libgobuster.LevelError,

gobusterfuzz/gobusterfuzz.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ func (d *GobusterFuzz) ProcessWord(ctx context.Context, word string, progress *l
197197
if d.options.BodyOutputDir != "" && body != nil {
198198
fname := libgobuster.SanitizeFilename(fmt.Sprintf("%s_%d.html", strings.Trim(word, "/"), statusCode))
199199
fpath := filepath.Join(d.options.BodyOutputDir, fname)
200-
err := os.WriteFile(fpath, body, 0o600)
200+
err := os.WriteFile(fpath, body, 0o600) // nolint:gosec
201201
if err != nil {
202202
progress.MessageChan <- libgobuster.Message{
203203
Level: libgobuster.LevelError,

gobustervhost/gobustervhost.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ func (v *GobusterVhost) ProcessWord(ctx context.Context, word string, progress *
204204
if v.options.BodyOutputDir != "" && body != nil {
205205
fname := libgobuster.SanitizeFilename(fmt.Sprintf("%s_%d.html", strings.Trim(word, "/"), statusCode))
206206
fpath := filepath.Join(v.options.BodyOutputDir, fname)
207-
err := os.WriteFile(fpath, body, 0o600)
207+
err := os.WriteFile(fpath, body, 0o600) // nolint:gosec
208208
if err != nil {
209209
progress.MessageChan <- libgobuster.Message{
210210
Level: libgobuster.LevelError,

libgobuster/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func lineCounter(r io.Reader) (int, error) {
8686

8787
// store last character received if we got any bytes
8888
if c > 0 {
89-
lastChar = buf[c-1]
89+
lastChar = buf[c-1] // nolint:gosec
9090
}
9191

9292
switch {

libgobuster/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ func (client *HTTPClient) makeRequest(ctx context.Context, fullURL url.URL, opts
226226
client.logger.Debugf("%s", dump)
227227
}
228228

229-
resp, err := client.client.Do(req)
229+
resp, err := client.client.Do(req) // nolint:gosec
230230
if err != nil {
231231
var ue *url.Error
232232
if errors.As(err, &ue) {

libgobuster/options_http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type BasicHTTPOptions struct {
2323
// HTTPOptions is the struct to pass in all http options to Gobuster
2424
type HTTPOptions struct {
2525
BasicHTTPOptions
26-
Password string
26+
Password string // nolint:gosec
2727
URL *url.URL
2828
Username string
2929
Cookies string

vhs/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ func main() {
4141
})})
4242
x.routes = append(x.routes, &route{regexp.MustCompile(`^/`), http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
4343
w.WriteHeader(http.StatusOK)
44-
if _, err := w.Write([]byte(r.URL.Path)); err != nil {
45-
log.Fatal(err.Error())
44+
if _, err := w.Write([]byte(r.URL.Path)); err != nil { // nolint:gosec
45+
log.Fatal(err.Error()) // nolint:gosec
4646
}
4747
})})
4848

0 commit comments

Comments
 (0)