summaryrefslogtreecommitdiffstats
path: root/ncat/scripts/discard.lua
blob: 6b386f60f032acce98be874025dcbf3a0b610bc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
--This script reads data from the standard input and discards them.

while true do

  data = io.stdin:read(512)

  if data == nil then
    break
  end

end