mirror of https://github.com/daffainfo/nuclei.git
parent
514c6e2d1e
commit
38cfc1c183
|
@ -6,6 +6,7 @@ import (
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/corpix/uarand"
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
@ -112,6 +113,7 @@ func (exporter *Exporter) Export(event *output.ResultEvent) error {
|
||||||
if len(exporter.authentication) > 0 {
|
if len(exporter.authentication) > 0 {
|
||||||
req.Header.Add("Authorization", exporter.authentication)
|
req.Header.Add("Authorization", exporter.authentication)
|
||||||
}
|
}
|
||||||
|
req.Header.Set("User-Agent", uarand.GetRandom())
|
||||||
req.Header.Add("Content-Type", "application/json")
|
req.Header.Add("Content-Type", "application/json")
|
||||||
|
|
||||||
d := data{
|
d := data{
|
||||||
|
|
Loading…
Reference in New Issue