Author Topic: Problem with command-line compiled for linux  (Read 8356 times)

Offline Enea

  • Normal Members
  • *
  • Posts: 4
Problem with command-line compiled for linux
« on: February 17, 2007, 12:57:39 AM »
Hi,
I've compiled PasswordMaker for linux ubuntu as explained in building.txt instruction with no problems.
It seems to work well except for -f option. I can't load a configuration file neither if i create a passwordmaker.rdf file in currrent directory and it always works with default options.

> passwordmaker -f /home/carlo/work/passwordmaker-cli-1.4/passwordmaker.rdf -b
Master Password :

Master Password :
Use l33t :none
l33t level :0
Hash Algorithm :SHA256
URL :
Generated Password Length :8
Username :
Modifier :
Characters :ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`~!@#$%^&*()_-+={}|[]\:";'<>?,./
Generated Password Prefix :
Generated Password Suffix :
BOL%\8)%

I try in many manners without success. Can anyone help me?
Thanks

Carlo

Offline Miquel 'Fire' Burns

  • Administrator
  • *****
  • Posts: 1152
  • Programmer
Problem with command-line compiled for linux
« Reply #1 on: February 17, 2007, 02:39:42 AM »
Might be a bug. I'll look into it.
"I'm not drunk, just sleep deprived."

Offline Miquel 'Fire' Burns

  • Administrator
  • *****
  • Posts: 1152
  • Programmer
Problem with command-line compiled for linux
« Reply #2 on: February 17, 2007, 03:11:50 AM »
If you know how to check files out of the SVN, can you do me a favor and check out a copy of the 1.4 code at https://passwordmaker.svn.sourceforge.net/s...ags/release-1.4

It seems to work here, and if the same thing happens with that copy, we'll have to make some code to find out where the issue is coming from on your computer. Ubuntu may be doing things slightly differently than my current Gentoo system that resulting in a nasty bug.
"I'm not drunk, just sleep deprived."

Offline Enea

  • Normal Members
  • *
  • Posts: 4
Problem with command-line compiled for linux
« Reply #3 on: February 17, 2007, 03:41:17 PM »
I check out a copy of the 1.4 code and the result is the same.

> ./passwordmaker -f /home/carlo/work/release-1.4/passwordmaker.rdf -b
Master Password :

Master Password :
Use l33t :none
l33t level :0
Hash Algorithm :SHA256
URL :
Generated Password Length :8
Username :
Modifier :
Characters :ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`~!@#$%^&*()_-+={}|[]\:";'<>?,./
Generated Password Prefix :
Generated Password Suffix :
BOL%\8)%

I try also with Fedora disto, but i found some problems with mHash library rpm (but i try only a few...).
If i can help you in other way, let me know.

Carlo

Offline Enea

  • Normal Members
  • *
  • Posts: 4
Problem with command-line compiled for linux
« Reply #4 on: February 17, 2007, 04:09:24 PM »
I made some other tests.

PasswordMaker Command-Line Edition 1.4 Source Code
PasswordMaker Command-Line Edition 1.3 Source Code
PasswordMaker Command-Line Edition 1.2 Source Code
Works in the same manner.
I also try to run windows binary with wine and i have the same problem

PasswordMaker Command-Line Edition 1.1 Source Code
PasswordMaker Command-Line Edition 1.0 Source Code
Gives some compilation errors.

By the way... in http://passwordmaker.org/downloads/cli.html
there is twice
Download PasswordMaker Command-Line Edition 1.1 for Windows
instead of
Download PasswordMaker Command-Line Edition 1.2 for Windows
« Last Edit: February 17, 2007, 04:10:13 PM by Enea »

Offline Miquel 'Fire' Burns

  • Administrator
  • *****
  • Posts: 1152
  • Programmer
Problem with command-line compiled for linux
« Reply #5 on: February 18, 2007, 02:18:09 AM »
Post the file, maybe there's something that just isn't being read correctly.

[edit] Posting it is a bad idea.

The rdf file may in fact be corrupted in some way that affects only the command-line version. If possible, make a dummy one using another Firefox profile and see if the issue is still there. If the issue doesn't show up with the new file, then something is wrong with it (or something that is really legal for and RDF is not handled correctly)
« Last Edit: February 18, 2007, 02:24:12 AM by miquelfire »
"I'm not drunk, just sleep deprived."

Offline Enea

  • Normal Members
  • *
  • Posts: 4
Problem with command-line compiled for linux
« Reply #6 on: February 18, 2007, 10:14:30 AM »
Ok, now it works, it was my mistake.
Reading Readme file i understood that rdf file must have the same pattern of your exampe. This was my passwordmaker.rdf:

masterPassword : foobar
url          : google.com
algorithm      : HMAC-SHA1
trim          : yes
length         : 12
characters     : ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`~!@#$%^&*()_-+={}|[]\:";'<>?,./
useLeet        : none
leetLevel      : 0
username       : ericjung
modifier       : none
prefix         : none
suffix         : none

Now i export and use a firefox version of passwordmaker.rdf and it works.
Perhaps it wasn't clearly explained on instructions how generate the correct rdf  file.

Thanks

Carlo
« Last Edit: February 18, 2007, 10:15:13 AM by Enea »

Offline Miquel 'Fire' Burns

  • Administrator
  • *****
  • Posts: 1152
  • Programmer
Problem with command-line compiled for linux
« Reply #7 on: February 19, 2007, 02:57:34 AM »
I was never too good at writing documentation.

The thing is, when that bit was written, the Firefox edition was the only edition to do exporting and it can only export RDFs.

Oh well, the current trunk is broken anyway, and needs to be fixed.
"I'm not drunk, just sleep deprived."

PasswordMaker Forums

Problem with command-line compiled for linux
« Reply #7 on: February 19, 2007, 02:57:34 AM »