Skip to content

Commit

Permalink
dirlist: handle 403
Browse files Browse the repository at this point in the history
  • Loading branch information
vmfunc committed Apr 15, 2024
1 parent a0bd6f9 commit db25276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scan/dirlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func Dirlist(size string, url string, timeout time.Duration, threads int, logdir
return
}

if resp.StatusCode != 404 {
if resp.StatusCode != 404 && resp.StatusCode != 403 {
// log url, directory, and status code
dirlog.Infof("%s [%s]", styles.Status.Render(strconv.Itoa(resp.StatusCode)), styles.Highlight.Render(directory))
if logdir != "" {
Expand Down

0 comments on commit db25276

Please sign in to comment.