mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 11:05:26 +00:00
Misc changes to PR
This commit is contained in:
parent
2f0600878d
commit
b91bad813b
@ -6,11 +6,10 @@ info:
|
|||||||
severity: info
|
severity: info
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
a1: "FQDN"
|
a1: "IN"
|
||||||
a2: "IN"
|
|
||||||
|
|
||||||
dns:
|
dns:
|
||||||
- name: "{{a1}}"
|
- name: "{{FQDN}}"
|
||||||
type: A
|
type: A
|
||||||
class: inet
|
class: inet
|
||||||
recursion: true
|
recursion: true
|
||||||
@ -18,4 +17,4 @@ dns:
|
|||||||
matchers:
|
matchers:
|
||||||
- type: word
|
- type: word
|
||||||
words:
|
words:
|
||||||
- "{{a2}}"
|
- "{{a1}}"
|
||||||
@ -6,7 +6,7 @@ info:
|
|||||||
severity: info
|
severity: info
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
a1: "value"
|
a1: "{{base64('hello')}}"
|
||||||
|
|
||||||
headless:
|
headless:
|
||||||
- steps:
|
- steps:
|
||||||
|
|||||||
@ -7,7 +7,7 @@ info:
|
|||||||
|
|
||||||
variables:
|
variables:
|
||||||
a1: "value"
|
a1: "value"
|
||||||
a2: "rand_base(5)"
|
a2: "{{base64('hello')}}"
|
||||||
|
|
||||||
requests:
|
requests:
|
||||||
- raw:
|
- raw:
|
||||||
@ -22,5 +22,5 @@ requests:
|
|||||||
matchers:
|
matchers:
|
||||||
- type: word
|
- type: word
|
||||||
words:
|
words:
|
||||||
- "{{a1}}"
|
- "value"
|
||||||
- "{{a2}}"
|
- "aGVsbG8="
|
||||||
@ -6,18 +6,17 @@ info:
|
|||||||
severity: info
|
severity: info
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
a1: "Hostname"
|
a1: "PING"
|
||||||
a2: "PING"
|
a2: "{{base64('hello')}}"
|
||||||
a3: "PONG"
|
|
||||||
|
|
||||||
network:
|
network:
|
||||||
- host:
|
- host:
|
||||||
- "{{a1}}"
|
- "{{Hostname}}"
|
||||||
inputs:
|
inputs:
|
||||||
- data: "{{a2}}\r\n"
|
- data: "{{a1}}"
|
||||||
read-size: 4
|
read-size: 8
|
||||||
matchers:
|
matchers:
|
||||||
- type: word
|
- type: word
|
||||||
part: data
|
part: data
|
||||||
words:
|
words:
|
||||||
- "{{a3}}"
|
- "{{a2}}"
|
||||||
@ -100,7 +100,7 @@ type headlessVariables struct{}
|
|||||||
func (h *headlessVariables) Execute(filePath string) error {
|
func (h *headlessVariables) Execute(filePath string) error {
|
||||||
router := httprouter.New()
|
router := httprouter.New()
|
||||||
router.GET("/", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
|
router.GET("/", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
|
||||||
_, _ = w.Write([]byte("<html><body>value</body></html>"))
|
_, _ = w.Write([]byte("<html><body>aGVsbG8=</body></html>"))
|
||||||
})
|
})
|
||||||
ts := httptest.NewServer(router)
|
ts := httptest.NewServer(router)
|
||||||
defer ts.Close()
|
defer ts.Close()
|
||||||
|
|||||||
@ -133,7 +133,7 @@ func (h *networkVariables) Execute(filePath string) error {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if string(data) == "PING" {
|
if string(data) == "PING" {
|
||||||
_, _ = conn.Write([]byte("PONG"))
|
_, _ = conn.Write([]byte("aGVsbG8="))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
defer ts.Close()
|
defer ts.Close()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user