gurnec / btcrecover

An open source Bitcoin wallet password and seed recovery tool designed for the case where you already know most of your password/seed, but need assistance in trying different possible combinations.
GNU General Public License v2.0
1.3k stars 691 forks source link

escape bracket inside brackets #217

Open apgcloud opened 6 years ago

apgcloud commented 6 years ago

Is there anyway to escape a bracket inside of the brackers? I tried \ and \ but was unable to escape the bracket. I know I could use multiple tokens but was wondering..

password contains something like

|[}]>]

pedrohrcunha commented 6 years ago

I guess you can use the following: %1,3[chars] - between 1 and 3 of the characters between [ and ]. Did I understand correctly?

apgcloud commented 6 years ago

I tried this because there is a pipe first

|[)}]] but the second closing ] is considered a third literal value where as I really want just two either a |] or |) or |}

the password is something like this [|]/[|/]|[)}]][|/]\/[|]%p%p

On Fri, Dec 29, 2017 at 7:42 AM, pedrohrcunha notifications@github.com wrote:

I guess you can use the following: %1,3[chars] - between 1 and 3 of the characters between [ and ]. Did I understand correctly?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gurnec/btcrecover/issues/217#issuecomment-354441410, or mute the thread https://github.com/notifications/unsubscribe-auth/AhT1ziEFAu5_SA9TjNlKoYylO0h_lGDlks5tFN4mgaJpZM4ROywS .

gurnec commented 6 years ago

See here, next to the ]. In short, if you'd like a ] to be part of a replacement set, make it the first character in the set. E.g. for 1-10 characters from this list of characters: |[}]>], you'd use:

%1,10[]|[}]>]

(I copied this somewhat from regular expressions: "[The \ ( ']' ) shall lose its special meaning and represent itself in a bracket expression if it occurs first in the list](http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html#tag_09_03_05)".)

apgcloud commented 6 years ago

missed that, thank you!

On Fri, Dec 29, 2017 at 11:02 AM, Christopher Gurnee < notifications@github.com> wrote:

See here https://github.com/gurnec/btcrecover/blob/master/docs/Limitations_and_Caveats.md#delimiters-spaces-and-special-symbols-in-passwords, next to the ]. In short, if you'd like a ] to be part of a replacement set, make it the first character in the set. E.g. for 1-10 characters from this list of characters: |[}]>], you'd use:

%1,10[]|[}]>]

(I copied this somewhat from regular expressions: "The

( ']' ) shall lose its special meaning and represent itself in a bracket expression if it occurs first in the list ".) — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub , or mute the thread .