Menu

#1 [PATCH] Fix rendering of payloads

open
nobody
None
5
2008-09-04
2008-09-03
Luke Macken
No

Attached is a patch that fixes the following unicode decoding error.

Traceback (most recent call last):
File "/usr/lib64/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14364, in <lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "powerfuzzer.py", line 1457, in write_dic_to_box
self.rtc.WriteText("'"+x+"' => '"+dic[x]+"' ")
File "/usr/lib64/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/richtext.py", line 2464, in WriteText
return _richtext.RichTextCtrl_WriteText(*args, **kwargs)
File "/usr/lib64/python2.5/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xbf in position 13: unexpected code byte

Discussion

  • Luke Macken

    Luke Macken - 2008-09-03

    Logged In: YES
    user_id=875832
    Originator: YES

    File Added: powerfuzzer-unicode-take2.patch

     
  • Luke Macken

    Luke Macken - 2008-09-04

    Logged In: YES
    user_id=875832
    Originator: YES

    I also was able to trigger this issue. I'm attaching an updated patch to fix this as well.

    Traceback (most recent call last):
    File "/usr/lib64/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14364, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
    File "powerfuzzer.py", line 1441, in write_to_box
    self.rtc.WriteText(msg)
    File "/usr/lib64/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/richtext.py", line 2464, in WriteText
    return _richtext.RichTextCtrl_WriteText(*args, **kwargs)
    File "/usr/lib64/python2.5/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
    UnicodeDecodeError: 'utf8' codec can't decode byte 0xbf in position 28: unexpected code byte
    File Added: powerfuzzer-render-payload.patch

     
  • Luke Macken

    Luke Macken - 2008-09-04

    A patch to properly render payloads when writing to the GUI

     
  • Luke Macken

    Luke Macken - 2008-09-04
    • summary: [PATCH] Fix a UnicodeDecodeError --> [PATCH] Fix rendering of payloads
     
  • Luke Macken

    Luke Macken - 2008-09-04

    Logged In: YES
    user_id=875832
    Originator: YES

    File Added: powerfuzzer-render-payload.patch

     

Log in to post a comment.