Create tftp-detect.yaml

patch-1
pussycat0x 2024-04-02 13:01:29 +05:30 committed by GitHub
parent 41e24c8823
commit fbd4cf4cd4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,33 @@
id: tftp-detect
info:
name: TFTP Service - Detection
author: pussycat0x
severity: info
description: |
Detect TFTP Service.
metadata:
verified: true
shodan-query: port:69
tags: js,tftp,udp,network
javascript:
- code: |
let packet = bytes.NewBuffer();
let message = "1.txt"
let data = message;
packet.WriteString(data)
let c = require("nuclei/net");
let conn = c.Open('udp', `${Host}:${Port}`);
conn.SendHex(packet.Hex());
let resp = conn.RecvString(256);
resp;
args:
Host: "{{Host}}"
Port: 69
matchers:
- type: word
words:
- "Unknown transfer ID"