这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@TheRealXaiL
Copy link

Description

Added functionality to randomize user-agent by specifying a -random-agent flag when executing ffuf

JG added 2 commits July 22, 2023 13:15
rand.Seed(time.Now().UnixNano())
randIndex := rand.Intn(len(userAgents))
httpreq.Header.Set("User-Agent", userAgents[randIndex]) // Set the agent header
fmt.Printf("Debug: User-Agent is %s\n", httpreq.Header.Get("User-Agent")) // Debug print

Check failure

Code scanning / CodeQL

Log entries created from user input

This log entry depends on a [user-provided value](1).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant