mirror of
https://github.com/ffuf/ffuf
synced 2024-11-10 14:14:24 +00:00
Added version to user-agent string and prepared for next release
This commit is contained in:
parent
a3c59eeb09
commit
d869393b81
2 changed files with 3 additions and 2 deletions
|
@ -2,5 +2,5 @@ package ffuf
|
|||
|
||||
const (
|
||||
//VERSION holds the current version number
|
||||
VERSION = "0.1"
|
||||
VERSION = "0.3"
|
||||
)
|
||||
|
|
|
@ -3,6 +3,7 @@ package runner
|
|||
import (
|
||||
"bytes"
|
||||
"crypto/tls"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
@ -61,7 +62,7 @@ func (r *SimpleRunner) Execute(req *ffuf.Request) (ffuf.Response, error) {
|
|||
}
|
||||
// Add user agent string if not defined
|
||||
if _, ok := req.Headers["User-Agent"]; !ok {
|
||||
req.Headers["User-Agent"] = "Fuzz Faster You Fool"
|
||||
req.Headers["User-Agent"] = fmt.Sprintf("%s v%s", "Fuzz Faster U Fool", ffuf.VERSION)
|
||||
}
|
||||
httpreq = httpreq.WithContext(r.config.Context)
|
||||
for k, v := range req.Headers {
|
||||
|
|
Loading…
Reference in a new issue