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