Skip to content

Instantly share code, notes, and snippets.

View brianondemand's full-sized avatar
🎯
Focusing

Brian Muiruri brianondemand

🎯
Focusing
View GitHub Profile
description = [[
A simple banner grabber which connects to an open TCP port and prints out anything sent by the listening service within five seconds.
If no banner is received, a HTTP GET request is sent and the response recorded. Banners which contain telnet sequences will trigger
telnet option negotiation, with the intent to get far enough into the handshake that we can receive the real banner. If data is
received, more data will be read for up to fifteen seconds.
]]
---
-- @output