Changeset 1202

Show
Ignore:
Timestamp:
08/01/07 14:00:42 (6 years ago)
Author:
maxim-gavrilov
Message:

copyrights

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branch/max/umitNSEFacilitator/luaParser.py

    r1201 r1202  
    22# 
    33# Author: Maxim Gavrilov <lovelymax@gmail.com> 
     4# Lua stub script: Diman Todorov <diman.todorov@gmail.com> 
    45# 
    56# This program is free software; you can redistribute it and/or modify 
     
    122123        filename = NmapFetchScripts().fetchfile(filename) 
    123124        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") 
    125129        l = [self._translate(x) for x in output.split('\n')] 
    126130        self.attr = dict()