Added version to user-agent string and prepared for next release
This commit is contained in:
parent
a3c59eeb09
commit
d869393b81
@ -2,5 +2,5 @@ package ffuf
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
//VERSION holds the current version number
|
//VERSION holds the current version number
|
||||||
VERSION = "0.1"
|
VERSION = "0.3"
|
||||||
)
|
)
|
||||||
|
|||||||
@ -3,6 +3,7 @@ package runner
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
@ -61,7 +62,7 @@ func (r *SimpleRunner) Execute(req *ffuf.Request) (ffuf.Response, error) {
|
|||||||
}
|
}
|
||||||
// Add user agent string if not defined
|
// Add user agent string if not defined
|
||||||
if _, ok := req.Headers["User-Agent"]; !ok {
|
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)
|
httpreq = httpreq.WithContext(r.config.Context)
|
||||||
for k, v := range req.Headers {
|
for k, v := range req.Headers {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user