Author Topic: Please post a sample passwordmaker.rdf file for the command line version  (Read 5445 times)

Offline TomCat99

  • Normal Members
  • *
  • Posts: 2
I am creating a vbscript program that collects inputs from a user and then builds a command from the input and runs it through the command line version of passwordmaker.exe. The command line version of passwordmaker then passes the output back to my vbscript front-end.

We are going to use Citrix to securely publish our vbscipt passwordmaker front-end and use the command line version of passwordmaker as the backend engine for it. This way we can precisely control the options that are available to the end user as they will be dictated by how I program the vbscipt front-end to work.

I have it working...now I need to be able to build a passwordmaker.rdf file that the command line version will obey for default preferences. I am mainly trying to create a custom character set (i don't want 1, 0, O, I, or, l in the character set, as end users commonly mistake 1 for l and 0 for O and so on. I want to omit those characters from the generated passwords.

I have tried simply cutting and pasting the small section of preferences as described in the readme.txt file that accompanies the command line version of passwordmaker into a text file and renamed it to passwordmaker.rdf and it did not work.  I do not know RDF; I think that I am missing XML and RDF tags in my file. The readme.txt file does not show how to create the RDF file for the command line version (I think they assume RDF experience).  Could someone please help?

My file only contains the text exactly as shown below between the start and end tags and then I renamed the file to passwordmaker.rdf.  Passwordmaker dose not obey the rdf file that I have created (I assume it’s because my file is missing rdf tags and I don’t know where they go).

-------------Start----------
masterPassword : none
url            : none
algorithm      : SHA-256
hmac           : no
trim           : yes
length         : 8
characters     : ABCDEFGHJKLPRSTXYZabcdefhkrstxz23456789!@#$%^&*
useLeet        : none
leetLevel      : 0
username       : none
modifier       : none
prefix         : none
suffix         : none
-------------End------------

Offline Eric H. Jung

  • grimholtz
  • Administrator
  • *****
  • Posts: 3353
Please post a sample passwordmaker.rdf file for the command line version
« Reply #1 on: June 25, 2006, 11:10:35 PM »
Hi TomCat,

You might find it easier to not use a file at all and instead use all command-line arguments. The RDF file is not required; support for it is only there to help Firefox users of PasswordMaker (that is the edition which creates the RDF file). You can "hard-code" the command-line arguments that you don't want users to be able to change... don't expose them in your GUI.

However, I will post a sample RDF file for your momentarily.

Regards,
Eric

Offline TomCat99

  • Normal Members
  • *
  • Posts: 2
Please post a sample passwordmaker.rdf file for the command line version
« Reply #2 on: June 26, 2006, 12:42:02 AM »
Thank you for taking the time to answer my post.

I did not see a way to specify the character set as a command line parameter.

My current program builds a command input for passwordmaker.exe based on the end user's inputs with the following syntax:

passwordmaker.exe -f passwordmaker.rdf -m%privatekey% -r%location% -u%accountname% -g 8 -a SHA256

I want to specify a character set of :ACDEFGHJKLPRSTXYZabcdefhkrstxz2345679!@#$%^&*

You will notice that I have eliminated 8,B,l,1,O,0,n,m,v,w,V,W, and some others.

Can I specify the character set as a command line argument, or do I need to figure out how to make a functional passwordmaker.rdf file?

Offline Eric H. Jung

  • grimholtz
  • Administrator
  • *****
  • Posts: 3353
Please post a sample passwordmaker.rdf file for the command line version
« Reply #3 on: June 26, 2006, 12:57:52 AM »
Hi TomCat,

Quote
Thank you for taking the time to answer my post.
My pleasure.

Quote
I did not see a way to specify the character set as a command line parameter.
This is from the ReadMe.txt:

Quote
USAGE
=====

   passwordmaker  [-f <string>] [-b] [-0] [-x] [-r <string>] [-a <MD4|MD5
                  |SHA1|SHA256|RIPEMD160>] [-c <string>] [-g <integer>] [-d
                  <string>] [-s <string>] [-p <string>] [-u <string>] [-l
                  <none|before|after|both>] [-e <1|2|3|4|5|6|7|8|9>] [-m
                  <string>] [--] [-v] [-h]


Where:

   -f <string>,  --file <string>
     (value required)  Path/filename to a settings file

   -b,  --verbose
     Echo command-line arguments

   -0,  --trimzeros
     Trim leading zeros from the generated password

   -x,  --HMAC
     Use the HMAC version of the specified hash algorithm

   -r <string>,  --url <string>
     (value required)  URL (equivalent to "Use This URL" in the
     Firefox/Mozilla extension)

   -a <MD4|MD5|SHA1|SHA256|RIPEMD160>,  --alg <MD4|MD5|SHA1|SHA256
      |RIPEMD160>
     (value required)  Hash Algorithm

   -c <string>,  --chars <string>
     (value required)  Characters

   -g <integer>,  --length <integer>
     (value required)  Password Length

   -d <string>,  --modifier <string>
     (value required)  Password Modifier

   -s <string>,  --suffix <string>
     (value required)  Password Suffix

   -p <string>,  --prefix <string>
     (value required)  Password Prefix

   -u <string>,  --username <string>
     (value required)  Username

   -l <none|before|after|both>,  --l33t <none|before|after|both>
     (value required)  Where to use l33t

   -e <1|2|3|4|5|6|7|8|9>,  --level <1|2|3|4|5|6|7|8|9>
     (value required)  l33t level

   -m <string>,  --mpw <string>
     (value required)  Master Password

   --,  --ignore_rest
     Ignores the rest of the labeled arguments following this flag.

   -v,  --version
     Displays version information and exits.

   -h,  --help
     Displays usage information and exits.

If you look closely, you'll see the character set can be specified using -c or --chars.

Let me know if it's not working for you,
Eric
p.s. I'd be interested in hearing how you're using PasswordMaker more for this system!
« Last Edit: June 26, 2006, 12:58:41 AM by Eric H. Jung »

Offline Miquel 'Fire' Burns

  • Administrator
  • *****
  • Posts: 1157
  • Programmer
Please post a sample passwordmaker.rdf file for the command line version
« Reply #4 on: June 26, 2006, 01:02:03 AM »
-c <string>,  --chars <string>

Using "passwordmaker.exe -h" shows all the commands

BTW, bare minum for a working RDF file for the default settings if you still want to go this route:
Code: [Select]
<?xml version="1.0"?>
<RDF:RDF xmlns:NS1="http://passwordmaker.mozdev.org/rdf#"
         xmlns:NC="http://home.netscape.com/NC-rdf#"
         xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  <RDF:Description RDF:about="http://passwordmaker.mozdev.org/defaults"
                   NS1:whereLeetLB="off"
                   NS1:leetLevelLB="1"
                   NS1:hashAlgorithmLB="md5"
                   NS1:passwordLength="8"
                   NS1:name="Defaults"
                   NS1:description="Default settings for URLs not elsewhere in this list"
                   NS1:protocolCB="false"
                   NS1:subdomainCB="false"
                   NS1:domainCB="true"
                   NS1:pathCB="false"
                   NS1:charset="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`~!@#$%^&amp;*()_-+={}|[]\:&quot;;'&lt;&gt;?,./"
                   NS1:prefix=""
                   NS1:suffix=""
                   NS1:autoPopulate="false" />
</RDF:RDF>

[edit] And Eric beats me.
« Last Edit: June 26, 2006, 01:03:00 AM by miquelfire »
"I'm not drunk, just sleep deprived."

PasswordMaker Forums

Please post a sample passwordmaker.rdf file for the command line version
« Reply #4 on: June 26, 2006, 01:02:03 AM »