Changeset 1202
- Timestamp:
- 08/01/07 14:00:42 (6 years ago)
- Files:
-
- 1 modified
-
branch/max/umitNSEFacilitator/luaParser.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branch/max/umitNSEFacilitator/luaParser.py
r1201 r1202 2 2 # 3 3 # Author: Maxim Gavrilov <lovelymax@gmail.com> 4 # Lua stub script: Diman Todorov <diman.todorov@gmail.com> 4 5 # 5 6 # This program is free software; you can redistribute it and/or modify … … 122 123 filename = NmapFetchScripts().fetchfile(filename) 123 124 p = Popen(["lua", "-e", self.stub, "-i"], stdin=PIPE, stdout=PIPE, stderr=PIPE) 124 (output, error) = p.communicate(filename + "\nquit\n") # TODO: find some way to interact line-by-line 125 # TODO: find some way to interact line-by-line 126 # this prevent Lua interpretator from running many times 127 # and save much time 128 (output, error) = p.communicate(filename + "\nquit\n") 125 129 l = [self._translate(x) for x in output.split('\n')] 126 130 self.attr = dict()
