mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 18:35:25 +00:00
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"
|