description = [[ ]] --- -- @usage -- -- @output -- -- @args -- --- author = "" license = "Same as Nmap--See http://nmap.org/book/man-legal.html" categories = {"vuln"} require "shortport" require "queue" require "httpspider" portrule = shortport.http action = function(host, port) local basepath = stdnse.get_script_args(SCRIPT_NAME..".basepath") or "/" local myqueue = queue.new() queue.add(myqueue, "http://google.com") queue.add(myqueue, "http://www.websec.ca") print(myqueue.tail, myqueue.head) print(queue.remove(myqueue)) print(myqueue.tail, myqueue.head) print(queue.is_empty(myqueue)) print(queue.remove(myqueue)) print(queue.is_empty(myqueue)) httpspider.crawl(host, port, basepath) end