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-06-07 10:04:29 +00:00
|
|
|
max-request: 1
|
|
|
|
shodan-query: "port:69"
|
2024-04-02 07:31:29 +00:00
|
|
|
tags: js,tftp,udp,network
|
|
|
|
javascript:
|
2024-07-24 11:23:12 +00:00
|
|
|
- pre-condition: |
|
|
|
|
isUDPPortOpen(Host,Port);
|
|
|
|
code: |
|
2024-04-02 07:31:29 +00:00
|
|
|
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-07-24 11:14:28 +00:00
|
|
|
case-insensitive: true
|
2024-07-24 12:14:10 +00:00
|
|
|
# digest: 4a0a00473045022100a1c79318d0befe25bbbb39c9ee4c6bbf794382950ee1cf4a665a159e283614540220460812549e4196efbe34cab92628186bf168564c521a7a72527b2f96cf497c7f:922c64590222798bb761d5b6d8e72950
|