Guest User

Untitled

a guest
Nov 22nd, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 KB | None | 0 0
  1. function init (args)
  2.     local needs = {}
  3.     needs["packet"] = tostring(true)
  4.     return needs
  5. end
  6.    
  7. function match(args)
  8.     p = SCPacketPayload()
  9.    
  10.     print("expval: ", p)
  11.    
  12.     -- Opens a file in append mode
  13.     local file = io.open("test.tst", "a")
  14.    
  15.     -- sets the default output file
  16.     io.output(file)
  17.    
  18.     -- appends to the file
  19.     io.write(p)
  20.    
  21.     -- closes the open file
  22.     io.close(file)
  23.     io.flush()
  24.    
  25.     return 1
  26.    
  27. end
Advertisement
Add Comment
Please, Sign In to add comment