Added version to user-agent string and prepared for next release

This commit is contained in:
Joona Hoikkala 2018-11-08 16:16:55 +02:00
parent a3c59eeb09
commit d869393b81
No known key found for this signature in database
GPG key ID: D5AA86BBF9B29A5C
2 changed files with 3 additions and 2 deletions

View file

@ -2,5 +2,5 @@ package ffuf
const (
//VERSION holds the current version number
VERSION = "0.1"
VERSION = "0.3"
)

View file

@ -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 {