AnsweredAssumed Answered

does Lua parser support standard Lua library?

Question asked by RSA Admin Employee on Dec 3, 2014
Latest reply on Dec 8, 2014 by RSA Admin

for example

function pdfParser:onToken(token, first, last)

    local file = io.open("payload.txt", "w+")

    io.output(file)

    local payload = nw.getPayload(1,200)

    io.write(payload)

    io.close(file)

    nw.createMeta(self.keys['filetype'], "pdf Archive" )

end

 

Can i save the payload as a file?

Does Lua parser support IO.open and other standard function?

Outcomes