Re: [W3af-users] w3af_console breaks after import ConsoleUI
List, After some private emails and a remote debugging session (thanks for your time mate!) we know two things: * Assmann's system is completely crazy and makes w3af dead-lock, hopefully nobody else will hit this bug that we couldn't debug * We were able to identify a bug in the way I was calling external programs during dependency checks [0], which created zombie processes. This one I'll fix shortly. All in all, a great experience working with Assmann to debug and fix some issues :) [0] https://github.com/andresriancho/w3af/issues/2056 Regards, On Mon, Apr 14, 2014 at 8:53 AM, Andres Riancho wrote: > Well, if it hangs in that line then you should be able to do something > like this: > > try: > filename = unicode_filename.encode("utf-8") > except Exception, e: > print(e) > > On Mon, Apr 14, 2014 at 8:50 AM, wrote: >> sorry, as I don`t speak python, I have no idea how to catch any >> exception. the program just hangs, it does not abort or something. >> is there a way to force logging of some kind? >> >> and yes encoding issues are really kinda magic sometimes. >> >>> Got the exact traceback/exception being raised? It's really strange to >>> see an encoding error with such a simple string >>> "/root/.w3af/tmp/4009/main.db", but it wouldn't be the strangest thing >>> I've seen with encodings ;) >> >>> On Mon, Apr 14, 2014 at 6:40 AM, wrote: So...just did this: it breaks at line 269: filename = unicode_filename.encode("utf-8") A filename example would be: /root/.w3af/tmp/4009/main.db Sounds strange to me, as no magic happens here. > Did you add some prints to the setup handler method? > https://github.com/andresriancho/w3af/blob/master/w3af/core/data/db/dbms.py#L263 > What do you see? > On Fri, Apr 11, 2014 at 10:26 AM, wrote: >> Hi Andres, >> >> I could track it down to the following call: >> >> w3af/core/data/db/dbms.py:86 >> >> future.result() >> >> I can read somthing about blocking here until some thread is >> startedseems that this takes forever. >> >> Is there anything that can go wrong when starting the sqlite db? >> How can I find out? >> >> Hope this helps. >> >> TIA >> >> Tobias >> >>> Tobias, >> >>> Well, that's the first time someone reports this... and it never >>> happen to me either. Could you help us by debugging it a little bit? >>> Try adding print statements and follow the code a little bit to see >>> where you end up. If your bug report is more specific I'll be able to >>> try to reproduce/fix it. >> >>> Regards, >> >>> On Fri, Apr 11, 2014 at 6:36 AM, wrote: Hi, I just upgraded my w3af to commit f7d67d80228255. Installed the new dependencies and wanted to run w3af_console. After startup...no reaction, I need to kill the process to get my shell back. Everything is fine till line 15 where ConsoleUI import happens. No more output afterwards. I run a debain stable, everything up to date. Going back some commits doesn`t change a thing. Any Ideas, what might help me out here? TIA Tobias -- Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees ___ W3af-users mailing list W3af-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/w3af-users >> >> >> >> >> >> Mit freundlichen Grüßen >> >> Tobias Assmann >> ___ >> >> SkyGate internetworking GmbH >> Pfuelstrasse 5, Aufgang VI >> D - 10997 Berlin >> Handelsreg. Berlin Charlottenburg, HRB 87258 >> Geschaeftsfuehrer: Stephan Jensen >> >> T: +49- (0)30 - 611038-0 >> F: +49- (0)30 - 61280465 >> W: http://www.skygate.de >> ___ >> >> Mit freundlichen Grüßen Tobias Assmann ___ SkyGate internetworking GmbH Pfuelstrasse 5, Aufgang VI D - 10997 Berlin Handelsreg. Berlin Charlottenburg, HRB 87258 Geschaeftsfuehrer: Stephan Jensen T: +49- (0)30 - 611038-0 F: +49- (0)30 - 61280465 W: http://www.skygate.de ___ >> >> >>
Re: [W3af-users] w3af_console breaks after import ConsoleUI
Well, if it hangs in that line then you should be able to do something like this: try: filename = unicode_filename.encode("utf-8") except Exception, e: print(e) On Mon, Apr 14, 2014 at 8:50 AM, wrote: > sorry, as I don`t speak python, I have no idea how to catch any > exception. the program just hangs, it does not abort or something. > is there a way to force logging of some kind? > > and yes encoding issues are really kinda magic sometimes. > >> Got the exact traceback/exception being raised? It's really strange to >> see an encoding error with such a simple string >> "/root/.w3af/tmp/4009/main.db", but it wouldn't be the strangest thing >> I've seen with encodings ;) > >> On Mon, Apr 14, 2014 at 6:40 AM, wrote: >>> So...just did this: >>> >>> it breaks at line 269: >>> >>> filename = unicode_filename.encode("utf-8") >>> >>> A filename example would be: /root/.w3af/tmp/4009/main.db >>> >>> Sounds strange to me, as no magic happens here. >>> Did you add some prints to the setup handler method? https://github.com/andresriancho/w3af/blob/master/w3af/core/data/db/dbms.py#L263 >>> What do you see? >>> On Fri, Apr 11, 2014 at 10:26 AM, wrote: > Hi Andres, > > I could track it down to the following call: > > w3af/core/data/db/dbms.py:86 > > future.result() > > I can read somthing about blocking here until some thread is > startedseems that this takes forever. > > Is there anything that can go wrong when starting the sqlite db? > How can I find out? > > Hope this helps. > > TIA > > Tobias > >> Tobias, > >> Well, that's the first time someone reports this... and it never >> happen to me either. Could you help us by debugging it a little bit? >> Try adding print statements and follow the code a little bit to see >> where you end up. If your bug report is more specific I'll be able to >> try to reproduce/fix it. > >> Regards, > >> On Fri, Apr 11, 2014 at 6:36 AM, wrote: >>> Hi, >>> >>> I just upgraded my w3af to commit f7d67d80228255. Installed the new >>> dependencies and wanted to run w3af_console. >>> >>> After startup...no reaction, I need to kill the process to get my shell >>> back. >>> >>> Everything is fine till line 15 where ConsoleUI import happens. No >>> more output afterwards. >>> >>> I run a debain stable, everything up to date. >>> >>> Going back some commits doesn`t change a thing. >>> >>> Any Ideas, what might help me out here? >>> >>> TIA >>> >>> Tobias >>> >>> >>> >>> -- >>> Put Bad Developers to Shame >>> Dominate Development with Jenkins Continuous Integration >>> Continuously Automate Build, Test & Deployment >>> Start a new project now. Try Jenkins in the cloud. >>> http://p.sf.net/sfu/13600_Cloudbees >>> ___ >>> W3af-users mailing list >>> W3af-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/w3af-users > > > > > > Mit freundlichen Grüßen > > Tobias Assmann > ___ > > SkyGate internetworking GmbH > Pfuelstrasse 5, Aufgang VI > D - 10997 Berlin > Handelsreg. Berlin Charlottenburg, HRB 87258 > Geschaeftsfuehrer: Stephan Jensen > > T: +49- (0)30 - 611038-0 > F: +49- (0)30 - 61280465 > W: http://www.skygate.de > ___ > > >>> >>> >>> >>> >>> >>> Mit freundlichen Grüßen >>> >>> Tobias Assmann >>> ___ >>> >>> SkyGate internetworking GmbH >>> Pfuelstrasse 5, Aufgang VI >>> D - 10997 Berlin >>> Handelsreg. Berlin Charlottenburg, HRB 87258 >>> Geschaeftsfuehrer: Stephan Jensen >>> >>> T: +49- (0)30 - 611038-0 >>> F: +49- (0)30 - 61280465 >>> W: http://www.skygate.de >>> ___ >>> >>> > > > > > > Mit freundlichen Grüßen > > Tobias Assmann > ___ > > SkyGate internetworking GmbH > Pfuelstrasse 5, Aufgang VI > D - 10997 Berlin > Handelsreg. Berlin Charlottenburg, HRB 87258 > Geschaeftsfuehrer: Stephan Jensen > > T: +49- (0)30 - 611038-0 > F: +49- (0)30 - 61280465 > W: http://www.skygate.de > ___ > > -- Andrés Riancho Project Leader at w3af - http://w3af.org/ Web Application Attack and Audit Framework Twitter: @w3af GPG: 0x93C344F3 -- Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applic
Re: [W3af-users] w3af_console breaks after import ConsoleUI
Got the exact traceback/exception being raised? It's really strange to see an encoding error with such a simple string "/root/.w3af/tmp/4009/main.db", but it wouldn't be the strangest thing I've seen with encodings ;) On Mon, Apr 14, 2014 at 6:40 AM, wrote: > So...just did this: > > it breaks at line 269: > > filename = unicode_filename.encode("utf-8") > > A filename example would be: /root/.w3af/tmp/4009/main.db > > Sounds strange to me, as no magic happens here. > >> Did you add some prints to the setup handler method? >> https://github.com/andresriancho/w3af/blob/master/w3af/core/data/db/dbms.py#L263 > >> What do you see? > >> On Fri, Apr 11, 2014 at 10:26 AM, wrote: >>> Hi Andres, >>> >>> I could track it down to the following call: >>> >>> w3af/core/data/db/dbms.py:86 >>> >>> future.result() >>> >>> I can read somthing about blocking here until some thread is >>> startedseems that this takes forever. >>> >>> Is there anything that can go wrong when starting the sqlite db? >>> How can I find out? >>> >>> Hope this helps. >>> >>> TIA >>> >>> Tobias >>> Tobias, >>> Well, that's the first time someone reports this... and it never happen to me either. Could you help us by debugging it a little bit? Try adding print statements and follow the code a little bit to see where you end up. If your bug report is more specific I'll be able to try to reproduce/fix it. >>> Regards, >>> On Fri, Apr 11, 2014 at 6:36 AM, wrote: > Hi, > > I just upgraded my w3af to commit f7d67d80228255. Installed the new > dependencies and wanted to run w3af_console. > > After startup...no reaction, I need to kill the process to get my shell > back. > > Everything is fine till line 15 where ConsoleUI import happens. No > more output afterwards. > > I run a debain stable, everything up to date. > > Going back some commits doesn`t change a thing. > > Any Ideas, what might help me out here? > > TIA > > Tobias > > > > -- > Put Bad Developers to Shame > Dominate Development with Jenkins Continuous Integration > Continuously Automate Build, Test & Deployment > Start a new project now. Try Jenkins in the cloud. > http://p.sf.net/sfu/13600_Cloudbees > ___ > W3af-users mailing list > W3af-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/w3af-users >>> >>> >>> >>> >>> >>> Mit freundlichen Grüßen >>> >>> Tobias Assmann >>> ___ >>> >>> SkyGate internetworking GmbH >>> Pfuelstrasse 5, Aufgang VI >>> D - 10997 Berlin >>> Handelsreg. Berlin Charlottenburg, HRB 87258 >>> Geschaeftsfuehrer: Stephan Jensen >>> >>> T: +49- (0)30 - 611038-0 >>> F: +49- (0)30 - 61280465 >>> W: http://www.skygate.de >>> ___ >>> >>> > > > > > > Mit freundlichen Grüßen > > Tobias Assmann > ___ > > SkyGate internetworking GmbH > Pfuelstrasse 5, Aufgang VI > D - 10997 Berlin > Handelsreg. Berlin Charlottenburg, HRB 87258 > Geschaeftsfuehrer: Stephan Jensen > > T: +49- (0)30 - 611038-0 > F: +49- (0)30 - 61280465 > W: http://www.skygate.de > ___ > > -- Andrés Riancho Project Leader at w3af - http://w3af.org/ Web Application Attack and Audit Framework Twitter: @w3af GPG: 0x93C344F3 -- Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech ___ W3af-users mailing list W3af-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/w3af-users
Re: [W3af-users] w3af_console breaks after import ConsoleUI
So...just did this: it breaks at line 269: filename = unicode_filename.encode("utf-8") A filename example would be: /root/.w3af/tmp/4009/main.db Sounds strange to me, as no magic happens here. > Did you add some prints to the setup handler method? > https://github.com/andresriancho/w3af/blob/master/w3af/core/data/db/dbms.py#L263 > What do you see? > On Fri, Apr 11, 2014 at 10:26 AM, wrote: >> Hi Andres, >> >> I could track it down to the following call: >> >> w3af/core/data/db/dbms.py:86 >> >> future.result() >> >> I can read somthing about blocking here until some thread is >> startedseems that this takes forever. >> >> Is there anything that can go wrong when starting the sqlite db? >> How can I find out? >> >> Hope this helps. >> >> TIA >> >> Tobias >> >>> Tobias, >> >>> Well, that's the first time someone reports this... and it never >>> happen to me either. Could you help us by debugging it a little bit? >>> Try adding print statements and follow the code a little bit to see >>> where you end up. If your bug report is more specific I'll be able to >>> try to reproduce/fix it. >> >>> Regards, >> >>> On Fri, Apr 11, 2014 at 6:36 AM, wrote: Hi, I just upgraded my w3af to commit f7d67d80228255. Installed the new dependencies and wanted to run w3af_console. After startup...no reaction, I need to kill the process to get my shell back. Everything is fine till line 15 where ConsoleUI import happens. No more output afterwards. I run a debain stable, everything up to date. Going back some commits doesn`t change a thing. Any Ideas, what might help me out here? TIA Tobias -- Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees ___ W3af-users mailing list W3af-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/w3af-users >> >> >> >> >> >> Mit freundlichen Grüßen >> >> Tobias Assmann >> ___ >> >> SkyGate internetworking GmbH >> Pfuelstrasse 5, Aufgang VI >> D - 10997 Berlin >> Handelsreg. Berlin Charlottenburg, HRB 87258 >> Geschaeftsfuehrer: Stephan Jensen >> >> T: +49- (0)30 - 611038-0 >> F: +49- (0)30 - 61280465 >> W: http://www.skygate.de >> ___ >> >> Mit freundlichen Grüßen Tobias Assmann ___ SkyGate internetworking GmbH Pfuelstrasse 5, Aufgang VI D - 10997 Berlin Handelsreg. Berlin Charlottenburg, HRB 87258 Geschaeftsfuehrer: Stephan Jensen T: +49- (0)30 - 611038-0 F: +49- (0)30 - 61280465 W: http://www.skygate.de ___ -- Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech ___ W3af-users mailing list W3af-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/w3af-users
Re: [W3af-users] w3af_console breaks after import ConsoleUI
Did you add some prints to the setup handler method? https://github.com/andresriancho/w3af/blob/master/w3af/core/data/db/dbms.py#L263 What do you see? On Fri, Apr 11, 2014 at 10:26 AM, wrote: > Hi Andres, > > I could track it down to the following call: > > w3af/core/data/db/dbms.py:86 > > future.result() > > I can read somthing about blocking here until some thread is > startedseems that this takes forever. > > Is there anything that can go wrong when starting the sqlite db? > How can I find out? > > Hope this helps. > > TIA > > Tobias > >> Tobias, > >> Well, that's the first time someone reports this... and it never >> happen to me either. Could you help us by debugging it a little bit? >> Try adding print statements and follow the code a little bit to see >> where you end up. If your bug report is more specific I'll be able to >> try to reproduce/fix it. > >> Regards, > >> On Fri, Apr 11, 2014 at 6:36 AM, wrote: >>> Hi, >>> >>> I just upgraded my w3af to commit f7d67d80228255. Installed the new >>> dependencies and wanted to run w3af_console. >>> >>> After startup...no reaction, I need to kill the process to get my shell >>> back. >>> >>> Everything is fine till line 15 where ConsoleUI import happens. No >>> more output afterwards. >>> >>> I run a debain stable, everything up to date. >>> >>> Going back some commits doesn`t change a thing. >>> >>> Any Ideas, what might help me out here? >>> >>> TIA >>> >>> Tobias >>> >>> >>> >>> -- >>> Put Bad Developers to Shame >>> Dominate Development with Jenkins Continuous Integration >>> Continuously Automate Build, Test & Deployment >>> Start a new project now. Try Jenkins in the cloud. >>> http://p.sf.net/sfu/13600_Cloudbees >>> ___ >>> W3af-users mailing list >>> W3af-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/w3af-users > > > > > > Mit freundlichen Grüßen > > Tobias Assmann > ___ > > SkyGate internetworking GmbH > Pfuelstrasse 5, Aufgang VI > D - 10997 Berlin > Handelsreg. Berlin Charlottenburg, HRB 87258 > Geschaeftsfuehrer: Stephan Jensen > > T: +49- (0)30 - 611038-0 > F: +49- (0)30 - 61280465 > W: http://www.skygate.de > ___ > > -- Andrés Riancho Project Leader at w3af - http://w3af.org/ Web Application Attack and Audit Framework Twitter: @w3af GPG: 0x93C344F3 -- Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees ___ W3af-users mailing list W3af-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/w3af-users
Re: [W3af-users] w3af_console breaks after import ConsoleUI
Hi Andres, I could track it down to the following call: w3af/core/data/db/dbms.py:86 future.result() I can read somthing about blocking here until some thread is startedseems that this takes forever. Is there anything that can go wrong when starting the sqlite db? How can I find out? Hope this helps. TIA Tobias > Tobias, > Well, that's the first time someone reports this... and it never > happen to me either. Could you help us by debugging it a little bit? > Try adding print statements and follow the code a little bit to see > where you end up. If your bug report is more specific I'll be able to > try to reproduce/fix it. > Regards, > On Fri, Apr 11, 2014 at 6:36 AM, wrote: >> Hi, >> >> I just upgraded my w3af to commit f7d67d80228255. Installed the new >> dependencies and wanted to run w3af_console. >> >> After startup...no reaction, I need to kill the process to get my shell back. >> >> Everything is fine till line 15 where ConsoleUI import happens. No >> more output afterwards. >> >> I run a debain stable, everything up to date. >> >> Going back some commits doesn`t change a thing. >> >> Any Ideas, what might help me out here? >> >> TIA >> >> Tobias >> >> >> >> -- >> Put Bad Developers to Shame >> Dominate Development with Jenkins Continuous Integration >> Continuously Automate Build, Test & Deployment >> Start a new project now. Try Jenkins in the cloud. >> http://p.sf.net/sfu/13600_Cloudbees >> ___ >> W3af-users mailing list >> W3af-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/w3af-users Mit freundlichen Grüßen Tobias Assmann ___ SkyGate internetworking GmbH Pfuelstrasse 5, Aufgang VI D - 10997 Berlin Handelsreg. Berlin Charlottenburg, HRB 87258 Geschaeftsfuehrer: Stephan Jensen T: +49- (0)30 - 611038-0 F: +49- (0)30 - 61280465 W: http://www.skygate.de ___ -- Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees ___ W3af-users mailing list W3af-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/w3af-users
Re: [W3af-users] w3af_console breaks after import ConsoleUI
Tobias, Well, that's the first time someone reports this... and it never happen to me either. Could you help us by debugging it a little bit? Try adding print statements and follow the code a little bit to see where you end up. If your bug report is more specific I'll be able to try to reproduce/fix it. Regards, On Fri, Apr 11, 2014 at 6:36 AM, wrote: > Hi, > > I just upgraded my w3af to commit f7d67d80228255. Installed the new > dependencies and wanted to run w3af_console. > > After startup...no reaction, I need to kill the process to get my shell back. > > Everything is fine till line 15 where ConsoleUI import happens. No > more output afterwards. > > I run a debain stable, everything up to date. > > Going back some commits doesn`t change a thing. > > Any Ideas, what might help me out here? > > TIA > > Tobias > > > > -- > Put Bad Developers to Shame > Dominate Development with Jenkins Continuous Integration > Continuously Automate Build, Test & Deployment > Start a new project now. Try Jenkins in the cloud. > http://p.sf.net/sfu/13600_Cloudbees > ___ > W3af-users mailing list > W3af-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/w3af-users -- Andrés Riancho Project Leader at w3af - http://w3af.org/ Web Application Attack and Audit Framework Twitter: @w3af GPG: 0x93C344F3 -- Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees ___ W3af-users mailing list W3af-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/w3af-users