Beispiel #1
0
    def __init__(self, parent, w3af, enableWidget=[], editable=False, widgname="default"):
        requestResponsePart.__init__(self, parent, w3af, enableWidget, editable,
                                     widgname=widgname + "request")

        self.raw_view = HttpRawView(w3af, self, editable)
        self.add_view(self.raw_view)

        self.add_view(HttpHeadersView(w3af, self, editable))
Beispiel #2
0
 def __init__(self, parent, w3af, editable, widgname="default"):
     requestResponsePart.__init__(self, parent, w3af, editable=editable, widgname=widgname + "response")
     http = HttpRawView(w3af, self, editable)
     http.is_request = False
     self.add_view(http)
     headers = HttpHeadersView(w3af, self, editable)
     headers.is_request = False
     self.add_view(headers)
     try:
         rend = getRenderingView(w3af, self)
         self.add_view(rend)
     except Exception, ex:
         print ex
Beispiel #3
0
 def __init__(self, parent, w3af, editable, widgname="default"):
     requestResponsePart.__init__(self, parent, w3af, editable=editable,
                                  widgname=widgname + "response")
     http = HttpRawView(w3af, self, editable)
     http.is_request = False
     self.add_view(http)
     headers = HttpHeadersView(w3af, self, editable)
     headers.is_request = False
     self.add_view(headers)
     try:
         rend = getRenderingView(w3af, self)
         self.add_view(rend)
     except Exception, ex:
         print ex
Beispiel #4
0
    def __init__(self, parent, w3af, enableWidget=[], editable=False, widgname="default"):
        requestResponsePart.__init__(self, parent, w3af, enableWidget, editable, widgname=widgname + "request")

        self.raw_view = HttpRawView(w3af, self, editable)
        self.add_view(self.raw_view)

        self.add_view(HttpHeadersView(w3af, self, editable))
Beispiel #5
0
class requestPart(requestResponsePart):
    def __init__(self,
                 parent,
                 w3af,
                 enableWidget=[],
                 editable=False,
                 widgname="default"):
        requestResponsePart.__init__(self,
                                     parent,
                                     w3af,
                                     enableWidget,
                                     editable,
                                     widgname=widgname + "request")

        self.raw_view = HttpRawView(w3af, self, editable)
        self.add_view(self.raw_view)

        self.add_view(HttpHeadersView(w3af, self, editable))

    def get_both_texts_raw(self):
        return self.raw_view.get_split_text()

    def get_both_texts(self):
        head = self._obj.dump_request_head()
        data = str(self._obj.get_data()) if self._obj.get_data() else ''
        return head, data

    def show_raw(self, head, body):
        self._obj = http_request_parser(head, body)
        self.synchronize()
Beispiel #6
0
class requestPart(requestResponsePart):
    def __init__(self, parent, w3af, enableWidget=[], editable=False, widgname="default"):
        requestResponsePart.__init__(self, parent, w3af, enableWidget, editable, widgname=widgname + "request")

        self.raw_view = HttpRawView(w3af, self, editable)
        self.add_view(self.raw_view)

        self.add_view(HttpHeadersView(w3af, self, editable))

    def get_both_texts_raw(self):
        return self.raw_view.get_split_text()

    def get_both_texts(self):
        head = self._obj.dump_request_head()
        data = str(self._obj.get_data()) if self._obj.get_data() else ""
        return head, data

    def show_raw(self, head, body):
        self._obj = http_request_parser(head, body)
        self.synchronize()