shard icon indicating copy to clipboard operation
shard copied to clipboard

Issue with "weird" characters in passwords

Open simonsmiley opened this issue 8 years ago • 6 comments

My current facebook password includes a bunch of very unusual characters. For obvious reasons I'll just put a range of characters that might include additional characters not actually in my password.

~`¬|><@+=*&^%£{}[]()

I'm not sure what the problem is, the result to the post still includes login links. Does facebook sometimes show captchas or something alike?

simonsmiley avatar Jul 12 '16 13:07 simonsmiley

I just noticed that if you haven't logged into Facebook for a while, you may redirected to a "2FA" screen.

The screen says "Please enter the code sent to your email"

WriteCodeEveryday avatar Jul 12 '16 14:07 WriteCodeEveryday

when i add such characters to the password, i get an error saying "bash: !@: event not found". I try to add these characters "!@". apparently the program functions fine with the characters individually however when combined, the error is thrown. further testing shows me that the combination of any special characters throws an error

ankushgoel27 avatar Jul 14 '16 04:07 ankushgoel27

I wonder if this issue is because of the code or the way bash is handling program arguments. Does bug still happen when you store the credentials in a file with the format, "username":"password" and use the -f option?

philwantsfish avatar Jul 17 '16 01:07 philwantsfish

Why not using tabulation character as a separator? Tab (ascii 9) can't be used in a login/pw, this will avoid to have to detect multiple quotes, single or double quotes, all usual quotes problems 🐞 "username":"password" becomes username[tab]password

TraderStf avatar Jul 23 '16 23:07 TraderStf

This will also avoid the problem of new tld (http://www.iana.org/domains/root/db or https://www.icann.org/resources/pages/tlds-2012-02-25-en) or multiple-bytes languages (Chinese,Japanese...)

val emailregex = """[^@]+@[^\.].{2,3}"""

will not make it.

left-of-tab and right-of-tab would be easier. I don't know for multibytes.

TraderStf avatar Jul 23 '16 23:07 TraderStf

I saw the problem in how the bash handled the special characters. It worked fine when credentials were in a document. Bash was not able to handle the special characters even when inbetween single or double quotes.

Sent from my iPhone

On Jul 23, 2016, at 4:34 PM, Stéphane Moureau [email protected] wrote:

This will also avoid the problem of new tld or multiple-bytes languages (Chinese,Japanese...)

val emailregex = """[^@]+@[^.].{2,3}"""

will not make it.

left-of-tab and right-of-tab would be easier. I don't know for multibytes.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

ankushgoel27 avatar Jul 24 '16 04:07 ankushgoel27