KeePass wildcard in url

6

3

I started using Keepass yesterday and it's really useful however I cannot find a way to add wildcard into the url...

I want one key being used on all url(s) that met the following rule:

http://www*.domain_name.ext

Then surfing to:

http://www.domain_name.ext
http://www1.domain_name.ext
http://www11.domain_name.ext
http://www12.domain_name.ext
http://www9999.domain_name.ext

will automatically fill user/password...

How can I obtain that?

Marcx

Posted 2013-04-19T09:24:49.230

Reputation: 679

Answers

8

Original poster, are you using KeeFox plugin ? ( If not, it's advisable because it will solve your issue. )

A solution that worked for me was :

  1. install Firefox web browser, this does not work in Chrome or Iexplore as far as I know
  2. install KeeFox plugin and ensure it works with keepass on some test website like gmail.com
  3. in URL field, enter : domain_name.ext
  4. in KeeFox tab -> URLs tab enter: ^..domain_name.ext/. -> Regular expression ticked, Match ticked
  5. test. Worked for me.

SomeguyfromBrisbane

Posted 2013-04-19T09:24:49.230

Reputation: 81

1Something like ^.*foo.com.* will match foo.com, http://foo.com/bar, https://www.foo.com, etc - ^ matches start, . matches any character, and * matches zero or more of the previous. – Brian Burns – 2014-08-05T03:40:18.957

@BrianBurns that also matches http://barfoo.com

– dube – 2015-03-03T09:12:22.997

2@dube Yeah, and I guess ^.* is kind of redundant - i.e. do either ^foo or .*foo. – Brian Burns – 2015-03-03T17:21:51.343

1

I don't know about a wildcard solution but you can use references to re-use the username and/or password from one key in another.

You'd have to set up a key for each URL once but you'd only have to maintain the credentials in the master key.

See http://keepass.info/help/base/fieldrefs.html for more details.

Another thing that may match what you are looking for closer is how auto-type matches the window, look at http://keepass.info/help/base/autotype.html. If the different URL's contain the same title auto-type might work on all of them.

Bram

Posted 2013-04-19T09:24:49.230

Reputation: 582

1

You want to use regular expression. So:

http://www*.domain_name.ext

would be represented as:

//http:\/\/www.*\.domain_name\.ext//

Depending on what browser you are using and what extension you are using to get the URL into the title bar, you may have to add something like this:

//.\*http:\/\/www.*\.domain_name\.ext/ - Chromium//

More on regular expressions can be found ... well, it won't let me post any more links.

Diagon

Posted 2013-04-19T09:24:49.230

Reputation: 598

Here's the regexp link. Also, another Chrom(e|ium) extension.

– Diagon – 2015-08-21T00:07:44.593

0

You can use wildcards but they need to be regex wildcards so:

  1. you use .* instead of just a *
  2. you need to wrap everything between double forward slashes //
  3. you need to escape special regex characters (like / or -)

Say you wanted to save the same username and password for all *.wordpress.com domains. Your easiest option would be to use the following URL expression:

//.*wordpress.com//

This basically boils down to *.wordpress.com as we normally understand wildcards.

If you really want to specify a protocol (so that KeePass only worked on HTTPS) you would need to escape the forward slashes:

//https:\/\/.*wordpress.com//

You can try out your URL expressions on any regex tester tool (example) but just don't include the // at the start and the end when you test. These double-slashes are just for use in KeePass to let them know you are using regex.

Marc

Posted 2013-04-19T09:24:49.230

Reputation: 226