Files
Dwi Siswanto f893b6c0cb refactor: native tests (#7307)
Signed-off-by: Dwi Siswanto <git@dw1.io>
2026-04-15 05:27:07 +07:00

25 lines
510 B
YAML

id: net-https
info:
name: net-https
author: pdteam
severity: info
description: send and receive https data using net module
javascript:
- code: |
let m = require('nuclei/net');
let name=Host+':'+Port;
let conn = m.OpenTLS('tcp', name);
conn.Send('GET / HTTP/1.1\r\nHost:'+name+'\r\nConnection: close\r\n\r\n');
resp = conn.RecvString();
args:
Host: "{{Host}}"
Port: "443"
matchers:
- type: word
words:
- "HTTP/1.1 200 OK"