Patrick, On Sat, Jul 25, 2009 at 6:53 PM, Patrick Hof<patrick...@web.de> wrote: > Hi all, > > I hope I don't make myself unpopular with my first email to this list by > adding > Ruby stuff to a Python project ;).
hehe, no problem. We're open to new, unstable, slow, and nasty to write languages too ;) ;) > First of all: The new request export feature is really nice. My first language > is Ruby though, with Python being a close second. So I adapted the Python > export > plugin for Ruby, see the attachments. The code looks really nice, thanks for your contribution. I just commited it to the trunk =) > BTW, is sending this stuff to the mailing > list the preferred way for you to get new code Andrés? Otherwise, please tell > me > how you'd like to receive any contributions. It's perfect to do it like this. If you want to contribute on a regular basis, and you send some more good patches I'll give you SVN access. > Some more thoughts: > > 1. There also seems to be a bug in line 47 of python_export.py: > > escaped_data = http_request.getData().replace('"', '\\"') > > This gives you the error > > AttributeError: 'queryString' object has no attribute 'replace' > > if you have POST data in the request. I fixed this with a simple call to > str(): > > escaped_data = str(http_request.getData()).replace('"', '\\"') Excellent, I modified the code with your patch. > 2. There are more things I'd like to see in w3af: > > - There was a contribution to w3af to import Burp logs. I'd like to have this > for WebScarab, too. > > - I'd love to have a JavaScript pretty printer as one of the Encode/Decode > plugins. At least for me, there are so many times that I have compressed > JavaScript in a response that is barely readable. At the moment, I run those > through http://jsbeautifier.org/ with the Rhino script I wrote for it, but > having this in the framework would be neat. > > So, what do you think, do these sound interesting? If so, I'm gonna start > coding > in the little spare time I have ;). Both ideas sound really interesting, for the first one I recommend you to perform some google searches to see if somebody else did it before in python, maybe we can copy+paste that code (if license is GPL compatible). For the second idea... pff!... I wouldn't know where to start from with a task like that... JS is horrible, and it will be a hard task to do, but if you wan't it... do it =) Thanks for your support and contributions, > Patrick > > -- > The Plague: You wanted to know who I am, Zero Cool? Well, let me explain > the New World Order. Governments and corporations need people > like you and me. We are Samurai... the Keyboard Cowboys... and > all those other people who have no idea what's going on are > the cattle... Moooo. > (Hackers) > > ------------------------------------------------------------------------------ > > _______________________________________________ > W3af-develop mailing list > W3af-develop@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/w3af-develop > > -- Andrés Riancho Founder, Bonsai - Information Security http://www.bonsai-sec.com/ http://w3af.sf.net/ ------------------------------------------------------------------------------ _______________________________________________ W3af-develop mailing list W3af-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/w3af-develop