diff --git a/README.md b/README.md
index 6c5422d2..aa3075a1 100644
--- a/README.md
+++ b/README.md
@@ -1,14 +1,13 @@
-
+
-
-
🌙🦊=XSS
-
+
+
-
+
diff --git a/docs/_config.yml b/docs/_config.yml
index 559f5ad2..c47742e7 100644
--- a/docs/_config.yml
+++ b/docs/_config.yml
@@ -1,5 +1,5 @@
title: DalFox
-description: Parameter Analysis and XSS Scanning tool based on golang
+description: Dalfox is a powerful open-source XSS scanner and utility focused on automation.
lang: en-US
baseurl: "" # the subpath of your site, e.g. /blog/
diff --git a/docs/_includes/topnav.html b/docs/_includes/topnav.html
index 4f6525a6..53658e15 100644
--- a/docs/_includes/topnav.html
+++ b/docs/_includes/topnav.html
@@ -9,7 +9,7 @@
-
+ DALFOX
diff --git a/docs/assets/img/bg.jpg b/docs/assets/img/bg.jpg
index 6dd37ccc..e07681ee 100644
Binary files a/docs/assets/img/bg.jpg and b/docs/assets/img/bg.jpg differ
diff --git a/docs/assets/img/logonav.png b/docs/assets/img/logonav.png
index 05ba097c..c27f3730 100644
Binary files a/docs/assets/img/logonav.png and b/docs/assets/img/logonav.png differ
diff --git a/docs/index.html b/docs/index.html
index 30c41cce..e7fd200b 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -5,8 +5,8 @@
diff --git a/pkg/optimization/optimization.go b/pkg/optimization/optimization.go
index ac04a597..2f419fce 100644
--- a/pkg/optimization/optimization.go
+++ b/pkg/optimization/optimization.go
@@ -4,13 +4,14 @@ import (
"bufio"
"bytes"
"fmt"
- "github.com/hahwul/dalfox/v2/pkg/har"
"html/template"
"net/http"
"net/url"
"os"
"strings"
+ "github.com/hahwul/dalfox/v2/pkg/har"
+
"github.com/hahwul/dalfox/v2/pkg/model"
)
@@ -19,30 +20,30 @@ func GenerateNewRequest(url, body string, options model.Options) *http.Request {
req, _ := http.NewRequest("GET", url, nil)
req = har.AddMessageIDToRequest(req)
// Add the Accept header like browsers do.
- req.Header.Add("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9")
+ req.Header.Set("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9")
if options.Data != "" {
d := []byte(body)
req, _ = http.NewRequest("POST", url, bytes.NewBuffer(d))
req = har.AddMessageIDToRequest(req)
- req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
+ req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
}
if len(options.Header) > 0 {
for _, v := range options.Header {
h := strings.Split(v, ": ")
if len(h) > 1 {
- req.Header.Add(h[0], h[1])
+ req.Header.Set(h[0], h[1])
}
}
}
if options.Cookie != "" {
- req.Header.Add("Cookie", options.Cookie)
+ req.Header.Set("Cookie", options.Cookie)
}
if options.UserAgent != "" {
- req.Header.Add("User-Agent", options.UserAgent)
+ req.Header.Set("User-Agent", options.UserAgent)
} else {
- req.Header.Add("User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:75.0) Gecko/20100101 Firefox/75.0")
+ req.Header.Set("User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:75.0) Gecko/20100101 Firefox/75.0")
}
if options.Method != "" {
req.Method = options.Method
@@ -60,7 +61,7 @@ func GenerateNewRequest(url, body string, options model.Options) *http.Request {
fmt.Println(err)
os.Exit(1)
} else {
- req.Header.Add("Cookie", GetRawCookie(rq.Cookies()))
+ req.Header.Set("Cookie", GetRawCookie(rq.Cookies()))
}
}
}
@@ -89,30 +90,30 @@ func MakeHeaderQuery(target, hn, hv string, options model.Options) (*http.Reques
d := []byte("")
req, _ = http.NewRequest("POST", target, bytes.NewBuffer(d))
req = har.AddMessageIDToRequest(req)
- req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
+ req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
}
if len(options.Header) > 0 {
for _, v := range options.Header {
h := strings.Split(v, ": ")
if len(h) > 1 {
- req.Header.Add(h[0], h[1])
+ req.Header.Set(h[0], h[1])
}
}
}
if options.Cookie != "" {
- req.Header.Add("Cookie", options.Cookie)
+ req.Header.Set("Cookie", options.Cookie)
}
if options.UserAgent != "" {
- req.Header.Add("User-Agent", options.UserAgent)
+ req.Header.Set("User-Agent", options.UserAgent)
} else {
- req.Header.Add("User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:75.0) Gecko/20100101 Firefox/75.0")
+ req.Header.Set("User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:75.0) Gecko/20100101 Firefox/75.0")
}
if options.Method != "" {
req.Method = options.Method
}
- req.Header.Add(hn, hv)
+ req.Header.Set(hn, hv)
return req, tempMap
}
diff --git a/pkg/printing/version.go b/pkg/printing/version.go
index 3930046a..7be36c9c 100644
--- a/pkg/printing/version.go
+++ b/pkg/printing/version.go
@@ -1,4 +1,4 @@
package printing
// VERSION is version of dalfox
-const VERSION = "v2.9.1"
+const VERSION = "v2.9.2"