2024-04-02 07:31:29 +00:00
|
|
|
id: tftp-detect
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: TFTP Service - Detection
|
|
|
|
author: pussycat0x
|
|
|
|
severity: info
|
|
|
|
description: |
|
|
|
|
Detect TFTP Service.
|
|
|
|
metadata:
|
|
|
|
verified: true
|
2024-04-08 11:34:33 +00:00
|
|
|
shodan-query: port:69
|
2024-04-02 07:31:29 +00:00
|
|
|
tags: js,tftp,udp,network
|
2024-04-08 11:34:33 +00:00
|
|
|
|
2024-04-02 07:31:29 +00:00
|
|
|
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"
|
2024-04-02 08:13:44 +00:00
|
|
|
# digest: 4b0a004830460221009dc426849668e09d58a39e7ac859ff0978be1c0bd11426da65d9a51966af5d9b022100b698bb147bb7519b8954f87b98bbb5cadff63036b165e4ed21bb7df3e037ef85:922c64590222798bb761d5b6d8e72950
|