Exemplo n.º 1
0
    def __init__(self):
        OutputPlugin.__init__(self)

        # These attributes hold the file pointers
        self._file = None

        # User configured parameters
        self._file_name = 'report.xml'
        self._timeFormat = '%a %b %d %H:%M:%S %Y'
        self._longTimestampString = str(
            time.strftime(self._timeFormat, time.localtime()))
        self._timestampString = str(int(time.time()))

        # List with additional xml elements
        self._errorXML = []

        # xml
        self._xmldoc = xml.dom.minidom.Document()
        self._topElement = self._xmldoc.createElement("w3afrun")
        self._topElement.setAttribute("start", self._timestampString)
        self._topElement.setAttribute("startstr", self._longTimestampString)
        self._topElement.setAttribute("xmloutputversion", "2.0")
        # Add in the version details
        version_element = self._xmldoc.createElement("w3af-version")
        version_data = self._xmldoc.createTextNode(
            str(get_w3af_version.get_w3af_version()))
        version_element.appendChild(version_data)
        self._topElement.appendChild(version_element)

        self._scanInfo = self._xmldoc.createElement("scaninfo")

        # HistoryItem to get requests/responses
        self._history = HistoryItem()
Exemplo n.º 2
0
    def __init__(self):
        OutputPlugin.__init__(self)

        self.targets = []
        self._exec = False

        self.smtpServer = 'localhost'
        self.smtpPort = 25
        self.toAddrs = ''
        self.fromAddr = ''
Exemplo n.º 3
0
    def __init__(self):
        OutputPlugin.__init__(self)

        # Internal variables
        self._initialized = False
        self._style_output_file = os.path.join('plugins', 'output',
                                               'html_file', 'style.css')

        # These attributes hold the file pointers
        self._file = None
        self._aditional_info = DiskList()

        # User configured parameters
        self._verbose = False
        self._output_file_name = '~/report.html'
Exemplo n.º 4
0
    def __init__(self):
        OutputPlugin.__init__(self)

        # User configured parameters
        self._output_file_name = 'output.txt'
        self._http_file_name = 'output-http.txt'
        self.verbose = True

        # Internal variables
        self._flush_counter = 0
        self._flush_number = 10
        self._initialized = False
        # File handlers
        self._file = None
        self._http = None
        # XXX Only set '_show_caller' to True for debugging purposes. It
        # causes the execution of potentially slow code that handles
        # with introspection.
        self._show_caller = False
Exemplo n.º 5
0
    def __init__(self):
        OutputPlugin.__init__(self)

        # User configured parameters
        self._output_file_name = '~/output.txt'
        self._http_file_name = '~/output-http.txt'
        self.verbose = True

        # Internal variables
        self._flush_counter = 0
        self._flush_number = 10
        self._initialized = False
        # File handlers
        self._file = None
        self._http = None
        # XXX Only set '_show_caller' to True for debugging purposes. It
        # causes the execution of potentially slow code that handles
        # with introspection.
        self._show_caller = False
Exemplo n.º 6
0
    def __init__(self):
        OutputPlugin.__init__(self)

        # User configured setting
        self.verbose = False
Exemplo n.º 7
0
 def __init__(self):
     OutputPlugin.__init__(self)
     self.output_file = '~/output-requests.csv'
Exemplo n.º 8
0
 def __init__(self):
     OutputPlugin.__init__(self)
     self.output_file = '~/output-requests.csv'
Exemplo n.º 9
0
 def __init__(self):
     OutputPlugin.__init__(self)
     self.output_file = 'output-w3af.csv'
Exemplo n.º 10
0
 def __init__(self):
     OutputPlugin.__init__(self)
     self.output_file = "output-w3af.csv"