mirror of
https://github.com/projectdiscovery/nuclei
synced 2026-06-08 16:50:47 +00:00
f893b6c0cb
Signed-off-by: Dwi Siswanto <git@dw1.io>
25 lines
510 B
YAML
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" |