Hi :) I really like the way people on this mailing list go that extra mile for people.
Even if it's a Frankenstein's monster it might well be a good start Many thanks and regards from Tom :) On 26 November 2014 at 21:49, Cley Faye <cleyf...@gmail.com> wrote: > 2014-11-26 21:41 GMT+01:00 jonathon <toki.kant...@gmail.com>: > > > The time required to brute force a solution can be reduced if: > > * The length of the password is known; > > * Part of the password is known; > > * Which glyphs the password uses are known; > > > > This issue comes up often enough, that I'm surprised I can't find an > > open source tool to brute force ODF passwords. It is a straightforward > > algorithm. > > > > Guess_password > > Throw_at_document > > If fails Guess_password > > If success read_document > > > > Guess_password is simply repeat until loops. > > > > If you're motivated, here's a piece of code that attempt a very poor > bruteforce, but have all the pieces needed to make a real brute-force app. > (disclaimer: this is like the monster from frankenstein, I cut & pasted > code from all around the web, as I have zero knowledge about Java bindings > for UNO). > http://pastebin.com/cQJnA8F6 > > It will try to open a file located at e:\test.odt, and use passwords from > "tota", "totb", "totc"... to "tott" (more or less). Still, it is probably > very easy to change it so that it use proper, parametrized passwords > guess, and have some form of UI. If no one else look into this, I might > give it a go. > > (for this stub to work, you need a running instance of libreoffice started > with the command line "$ soffice.exe -accept=socket,host=0,port=2002;urp;") > It is 100% possible to integrate this better, in a way that would > automatically launch an invisible instance of LibreOffice. In fact the > first SDK sample does this, but as I run a 64-bit version of Java, I had to > go this way. YMMV. > > > -- > Cley Faye > http://cleyfaye.net > > -- > To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org > Problems? > http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ > Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette > List archive: http://listarchives.libreoffice.org/global/users/ > All messages sent to this list will be publicly archived and cannot be > deleted > -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted