Re: [libreoffice-users] Lost Pass Word

2014-11-26 Thread Cley Faye
2014-11-26 21:41 GMT+01:00 jonathon :

> 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


Re: [libreoffice-users] Lost Pass Word

2014-11-26 Thread jonathon


On 26/11/14 06:39, Isaac Cajina wrote:
> I need to open some documents and I do not remember my pass word. 

LibO 3.4.5 and lower can write files whose password protection relies on
Blowfish;
LibO 3.4.4 and lower can read files whose password protection relies on
Blowfish;
LibO 3.4.5 and higher can read files whose password protection relies on
AES-256;
LibO 3.5.0 and higher can write files whose password protection relies
on AES-256;

The Crypto++ library contains routines for encrypting/decrypting
blowfish, AES-256, and other algorithms for ciphers.

In 2001, four or five firms, worldwide, offered commercial OOo password
recovery services.

One of the firms frankly admitted that they used brute force. The setup
fee paid for the computers used for the "attack". The monthly fee
covered the utility bills that the "attack" generated. FWIW, this firm
now appears to be out of business.

Once upon a time, there was an extension that did password recovery. I
don't know how well it works/worked. I couldn't find it, when I searched
the LibreOffice and Apache OpenOffice archives today.

There are a couple of commercially distributed tools that _might_ work.

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.

jonathon


-- 
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


Re: [libreoffice-users] Lost Pass Word

2014-11-26 Thread Cley Faye
2014-11-26 17:32 GMT+01:00 Tom Davies :

> I've only done it the other way around though.  An MS Office document
> opened in LibreOffice just by double-clicking it, and later i found the
> document had supposedly been password-protected (but not encrypted).
>

​It will only ever work this way, not the other.

For reference, old .doc where simply flagged as "password protected", which
of course got us OpenOffice/LibreOffice simply opening them without warning
;)

On the other hand, open password for .odt (and other open document formats)
always implied some form of encryption. Granted, previous versions might
have used what is now weak encryption, but still it is not something that
can be opened easily without password, especially if the file is
manipulated on a regular basis, as recent versions of LibreOffice might
simply have overwritten the old encryption with something more up to date.

I'm afraid that beside brute-force (using a dedicated program) or an
unencrypted backup there is no much hope.

-- 
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


Re: [libreoffice-users] Lost Pass Word

2014-11-26 Thread Tom Davies
Hi :)
It's worth trying to open the documents in some other office suite or
program.  If the documents are old enough than you might be able to open
them in Microsoft Office.

I've only done it the other way around though.  An MS Office document
opened in LibreOffice just by double-clicking it, and later i found the
document had supposedly been password-protected (but not encrypted).
Regards from
Tom :)



On 26 November 2014 at 16:06, Mailer Daemon 
wrote:

> On 26/11/14 01:39 AM, Isaac Cajina wrote:
>
>> I need to open some documents and I do not remember my pass word. I need
>> you help.
>> Thanks.
>>
>>  If they are the passwords for your documents, you may be out of luck.
> You can try password cracking programs like John the Ripper - there are
> probably some that will try to crack encrypted documents. Google
> "LibreOffice password cracker" for some suggestions.
>
>
> --
> 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


Re: [libreoffice-users] Lost Pass Word

2014-11-26 Thread Mailer Daemon

On 26/11/14 01:39 AM, Isaac Cajina wrote:

I need to open some documents and I do not remember my pass word. I need
you help.
Thanks.

If they are the passwords for your documents, you may be out of luck. 
You can try password cracking programs like John the Ripper - there are 
probably some that will try to crack encrypted documents. Google 
"LibreOffice password cracker" for some suggestions.


--
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


Re: [libreoffice-users] Lost Pass Word

2014-11-26 Thread Dan Lewis

On 11/26/2014 01:39 AM, Isaac Cajina wrote:

I need to open some documents and I do not remember my pass word. I need
you help.
Thanks.

 There is a reason for encrypting a document: to prevent others 
from seeing it if they do not know the password. LibreOffice does an 
excellent job of this. Most likely you will not be able to open these 
documents. The only hope you have is have used a simple password that 
has a significant value in your life and you go through what these are 
trying them as passwords. Otherwise, it would take access to a super 
computer running for a few hours to break the password. (This is expensive.)


Dan

--
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


[libreoffice-users] Lost Pass Word

2014-11-26 Thread Isaac Cajina
I need to open some documents and I do not remember my pass word. I need
you help.
Thanks.

-- 
Isaac Cajina

e: isaac.caj...@gmail.com
c: (323) 314 6430

-- 
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


Re: [libreoffice-users] Re: Setting up Hyperlink Color in Impress

2014-11-26 Thread Tom Davies
Hi :)
I'm not sure how to get a style to roll out all the way through a
presentation.  It seems to be more difficult in a presentation than in a
writer document.
Regards from
Tom :)



On 25 November 2014 at 20:37, Csányi Pál  wrote:

> > From: csanyipal 
> > Date: Mon, Nov 24, 2014 at 11:02 AM
> > Subject: [libreoffice-users] Re: Setting up Hyperlink Color in Impress
> > To: users@global.libreoffice.org
> >
> >
> > It must be a Style issue but I can't figure out what to do to get all
> slides
> > behave same, e.g. to have the same color for hyperlinks on every slides.
> >
> > What can I do to achieve this goal?
>
> 2014-11-25 21:06 GMT+01:00 anne-ology :
> >Unless it's a bug in these later editions,
> >
> >   this is one of the settings you can choose before starting the
> PP
> > -
> >  should be consistent throughout unless you decide to make a
> change
> > at some point for some particular aspect.
>
> Indeed, I belive this is the cause of my problem.
> I decide to setup hyperlink color in the middle of work with this
> prezentation.
>
> So I get the problem that that this setup isn't consistent throughout
> all slides of this presentation.
>
> On 3 or 4 slides have I this problem only.
>
> I think I must to create new slide instead of these and copy-paste
> text on to new slides, where I can then get the colors of hyperlinks
> as I wish. Right?
>
> -
> Best Regards from
> Pál
>
> --
> 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


Re: [libreoffice-users] LO Basic: problem retrieving document Keywords property

2014-11-26 Thread Niklas Johansson

Hi John

It seems that Keywords is stored as a string array, so if you want to 
read it into a string you need to convert it into a string. One way to 
do this is to use the Join-function. In your case exchange the line that 
crashes with.

pDates = Join(oDoc.DocumentProperties.Keywords, ", ")

I'm not 100 % sure if comma is used as a separator in all languages, let 
us know if the code above does not work for you.


Regards,
Niklas Johansson

john herron skrev den 2014-11-26 07:55:


For billing purposes I store parameters into the Description fields of 
LO text document properties.


Have no problems retrieving data entered in the Title, Subject, 
Description property fields by simply assigning the data to string 
variables.
However, when I try to assign to a string variable the contents of the 
Keywords property, I get the error message depicted in the following 
code screenshot:


http://tinypic.com/m/imus2c/4

Can anyone help me figure out what the problem might be?
Thanks.

jdh




--
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