diff options
Diffstat (limited to '')
-rw-r--r-- | ncat/scripts/discard.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ncat/scripts/discard.lua b/ncat/scripts/discard.lua new file mode 100644 index 0000000..6b386f6 --- /dev/null +++ b/ncat/scripts/discard.lua @@ -0,0 +1,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 |